From 1c668c4d41bd8dd732c2955c37ade29911062a94 Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Tue, 27 Nov 2018 07:30:14 -0800 Subject: [PATCH] [SIL][preanalysis] add call flag for functions treating first formal as return Summary: This helps some checkers and the liveness preanalysis. Reviewed By: da319 Differential Revision: D13102954 fbshipit-source-id: b8d3c5fe2 --- infer/src/IR/CallFlags.ml | 3 + infer/src/IR/CallFlags.mli | 1 + infer/src/backend/preanal.ml | 15 ++- infer/src/checkers/liveness.ml | 19 +++- infer/src/clang/cTrans.ml | 20 ++-- infer/src/istd/IList.ml | 9 ++ infer/src/istd/IList.mli | 4 + .../clang_translation/src/main.cpp.dot | 10 +- .../src/main_default_root.cpp.dot | 10 +- .../src/main_default_symlink.cpp.dot | 10 +- .../src/main_symlink.cpp.dot | 10 +- .../arithmetic/compound_assignment.c.dot | 4 +- .../c/frontend/arithmetic/int_const.c.dot | 6 +- .../c/frontend/arithmetic/plus_expr.c.dot | 4 +- .../c/frontend/arithmetic/unary.c.dot | 2 +- .../booleans/condition_as_param.c.dot | 2 +- .../c/frontend/comma/comma.c.dot | 20 ++-- .../binary_operator.c.dot | 6 +- .../frontend/conditional_operator/cond2.c.dot | 6 +- .../conditional_operator.c.dot | 6 +- .../conditional_operator/member_access.c.dot | 6 +- .../conditional_operator/unary_operator.c.dot | 2 +- .../c/frontend/enumeration/enum.c.dot | 2 +- .../c/frontend/enumeration/enum_bitmask.c.dot | 4 +- .../c/frontend/enumeration/other_enum.c.dot | 18 ++-- .../c/frontend/gotostmt/goto_ex.c.dot | 40 ++++---- .../initialization/array_initlistexpr.c.dot | 4 +- .../initialization/compound_literal.c.dot | 2 +- .../initialization/enum_initlistexpr.c.dot | 6 +- .../initialization/struct_initlistexpr.c.dot | 4 +- .../c/frontend/loops/do_while.c.dot | 4 +- .../do_while_condition_side_effects.c.dot | 4 +- .../c/frontend/loops/do_while_nested.c.dot | 4 +- .../loops/for_condition_side_effects.c.dot | 6 +- .../c/frontend/loops/for_nested.c.dot | 10 +- .../c/frontend/loops/for_no_condition.c.dot | 4 +- .../loops/for_no_condition_incr.c.dot | 4 +- .../loops/for_no_condition_incr_body.c.dot | 2 +- .../c/frontend/loops/for_only_body.c.dot | 2 +- .../c/frontend/loops/for_simple.c.dot | 4 +- .../c/frontend/loops/for_while_nested.c.dot | 4 +- .../c/frontend/loops/while.c.dot | 2 +- .../loops/while_condition_side_effects.c.dot | 2 +- .../c/frontend/loops/while_nested.c.dot | 4 +- .../loops/while_with_continue_and_break.c.dot | 2 +- .../assign_with_increment.c.dot | 10 +- .../c/frontend/nestedoperators/gnuexpr.c.dot | 10 +- .../nestedoperators/nestedassignment.c.dot | 2 +- .../offsetof_expr/offsetof_expr.c.dot | 2 +- .../c/frontend/switchstmt/switch.c.dot | 56 +++++------ .../c/frontend/switchstmt/switch_unroll.c.dot | 4 +- .../switchstmt/switch_with_labels.c.dot | 4 +- .../c/frontend/unusual_exps/generic_exp.c.dot | 4 +- .../c/frontend/unusual_stmts/asm.c.dot | 2 +- .../c/frontend/vaarg_expr/vaarg_expr.c.dot | 2 +- .../attributes/clang_fallthrough.cpp.dot | 2 +- .../cpp/frontend/builtin/new.cpp.dot | 6 +- .../frontend/destructors/break_scope.cpp.dot | 92 +++++++++---------- .../destructors/continue_scope.cpp.dot | 86 ++++++++--------- .../destructors/destructor_bases.cpp.dot | 2 +- .../pseudo_destructor_expr.cpp.dot | 4 +- .../cpp/frontend/destructors/scope.cpp.dot | 30 +++--- .../frontend/globals/global_const1.cpp.dot | 6 +- .../frontend/globals/global_const2.cpp.dot | 2 +- .../cpp/frontend/globals/initializer.cpp.dot | 4 +- .../include_header/include_templ.cpp.dot | 4 +- .../inheriting_constructor.cpp.dot | 2 +- .../frontend/initialization/init_list.cpp.dot | 28 +++--- .../literals/scalar_value_init.cpp.dot | 10 +- .../cpp/frontend/loops/do_while.cpp.dot | 2 +- .../cpp/frontend/loops/foreach1.cpp.dot | 16 ++-- .../assign_with_increment.cpp.dot | 10 +- .../frontend/nestedoperators/union.cpp.dot | 2 +- .../cpp/liveness/dead_stores.cpp | 9 ++ .../tests/codetoanalyze/cpp/pulse/issues.exp | 2 - infer/tests/codetoanalyze/cpp/pulse/join.cpp | 4 +- .../cpp/shared/attributes/annotate.cpp.dot | 34 +++---- .../conditional/binary_conditional.cpp.dot | 18 ++-- .../conditional/lvalue_conditional.cpp.dot | 16 ++-- .../constructors/constructor_array.cpp.dot | 14 +-- .../constructor_default_arg.cpp.dot | 6 +- .../constructors/constructor_init.cpp.dot | 22 ++--- .../constructors/constructor_new.cpp.dot | 34 +++---- .../constructor_struct_init_list.cpp.dot | 2 +- .../constructor_with_body.cpp.dot | 8 +- .../constructors/copy_array_field.cpp.dot | 10 +- .../copy_move_constructor.cpp.dot | 36 ++++---- .../constructors/default_field_init.cpp.dot | 2 +- .../shared/constructors/std_init_list.cpp.dot | 4 +- .../shared/constructors/temp_object.cpp.dot | 18 ++-- .../cpp/shared/exceptions/Exceptions.cpp.dot | 20 ++-- .../cpp/shared/lambda/lambda1.cpp.dot | 48 +++++----- .../cpp/shared/methods/byvals.cpp.dot | 10 +- .../methods/conversion_operator.cpp.dot | 22 ++--- .../cpp/shared/methods/inline_method.cpp.dot | 2 +- .../cpp/shared/methods/return_struct.cpp.dot | 4 +- .../shared/methods/virtual_methods.cpp.dot | 24 ++--- .../cpp/shared/namespace/function.cpp.dot | 2 +- .../cpp/shared/namespace/namespace.cpp.dot | 10 +- .../var_decl_inside_for.cpp.dot | 16 ++-- .../var_decl_inside_if.cpp.dot | 18 ++-- .../var_decl_inside_switch.cpp.dot | 2 +- .../var_decl_inside_while.cpp.dot | 16 ++-- .../cpp/shared/npe/method_call.cpp.dot | 2 +- .../cpp/shared/reference/box.cpp.dot | 6 +- .../cpp/shared/reference/increment.cpp.dot | 14 +-- .../cpp/shared/reference/init.cpp.dot | 18 ++-- .../shared/reference/member_access.cpp.dot | 8 +- .../member_access_from_return.cpp.dot | 10 +- .../reference/nested_assignment.cpp.dot | 20 ++-- .../cpp/shared/reference/ptr_mem.cpp.dot | 2 +- .../shared/reference/reference_field.cpp.dot | 48 +++++----- .../reference/reference_struct_e2e.cpp.dot | 2 +- .../reference/reference_type_e2e.cpp.dot | 36 ++++---- .../shared/reference/temporary_lvalue.cpp.dot | 6 +- .../cpp/shared/reference/unbox.cpp.dot | 8 +- .../templates/class_specialization.cpp.dot | 8 +- .../cpp/shared/templates/function.cpp.dot | 12 +-- .../cpp/shared/templates/method.cpp.dot | 32 +++---- .../cpp/shared/templates/sizeof_pack.cpp.dot | 4 +- .../cpp/shared/types/casts.cpp.dot | 4 +- .../cpp/shared/types/const.cpp.dot | 10 +- .../cpp/shared/types/inheritance.cpp.dot | 6 +- .../shared/types/inheritance_casts.cpp.dot | 12 +-- .../shared/types/inheritance_field.cpp.dot | 6 +- .../shared/types/operator_overload.cpp.dot | 6 +- .../cpp/shared/types/return_struct.cpp.dot | 16 ++-- .../types/struct_forward_declare.cpp.dot | 8 +- .../shared/types/struct_pass_by_value.cpp.dot | 16 ++-- .../objc/frontend/block/retain_cycle.m.dot | 2 +- .../objc/frontend/block/static.m.dot | 2 +- .../objc/frontend/boxing/Boxing.m.dot | 16 ++-- .../objc/frontend/boxing/array.m.dot | 2 +- .../objc/frontend/boxing/array_literal.c.dot | 2 +- .../exceptions/ExceptionExample.m.dot | 4 +- .../fast_enumeration/Fast_enumeration.m.dot | 8 +- .../objc/frontend/property/main_car.m.dot | 2 +- .../frontend/returnstmt/void_return.m.dot | 4 +- .../objc/frontend/self_static/Self.m.dot | 6 +- .../objc/frontend/self_static/static.m.dot | 2 +- .../strings/global_string_literal.m.dot | 2 +- .../frontend/strings/string_literal.m.dot | 2 +- .../objc/frontend/subclass/MySubClass.m.dot | 2 +- .../objc/frontend/subclass/main.c.dot | 2 +- .../objc/frontend/types/attributes.m.dot | 10 +- .../objc/frontend/types/testloop.m.dot | 4 +- .../objc/frontend/types/void_call.m.dot | 4 +- .../objc/frontend/vardecl/initlist.m.dot | 8 +- .../objc/frontend/vardecl/last_af.m.dot | 4 +- .../annotations/nonnull_annotations.m.dot | 4 +- .../annotations/nullable_annotations.m.dot | 6 +- .../objc/shared/block/BlockVar.m.dot | 28 +++--- .../objc/shared/block/block-it.m.dot | 20 ++-- .../objc/shared/block/block.m.dot | 6 +- .../objc/shared/block/block_no_args.m.dot | 4 +- .../objc/shared/block/block_release.m.dot | 6 +- .../objc/shared/block/dispatch.m.dot | 14 +-- .../objc/shared/block/dispatch_examples.m.dot | 12 +-- .../objc/shared/category_procdesc/main.c.dot | 4 +- .../field_superclass/SuperExample.m.dot | 2 +- .../memory_leaks_benchmark/ArcExample.m.dot | 4 +- .../AutoreleaseExample.m.dot | 22 ++--- .../MemoryLeakExample.m.dot | 32 +++---- .../RetainReleaseExample.m.dot | 2 +- .../TollBridgeExample.m.dot | 18 ++-- .../memory_leaks_benchmark/arc_methods.m.dot | 12 +-- .../objc/shared/npe/Available_expr.m.dot | 2 +- .../npe/Nonnull_attribute_example.m.dot | 4 +- .../objc/shared/npe/npe_malloc.m.dot | 2 +- .../objc/shared/property/GetterExample.m.dot | 2 +- .../shared/property/PropertyAttributes.m.dot | 4 +- .../objc/shared/protocol_procdesc/main.c.dot | 2 +- .../frontend/global_const/global_const.mm.dot | 2 +- 173 files changed, 913 insertions(+), 859 deletions(-) diff --git a/infer/src/IR/CallFlags.ml b/infer/src/IR/CallFlags.ml index 61bf8db36..61766f6e9 100644 --- a/infer/src/IR/CallFlags.ml +++ b/infer/src/IR/CallFlags.ml @@ -15,6 +15,7 @@ module F = Format type t = { cf_virtual: bool ; cf_interface: bool + ; cf_assign_last_arg: bool ; cf_noreturn: bool ; cf_is_objc_block: bool ; cf_targets: Typ.Procname.t list @@ -23,6 +24,7 @@ type t = let pp f cf = if cf.cf_virtual then F.pp_print_string f " virtual" ; + if cf.cf_assign_last_arg then F.pp_print_string f " assign_last" ; if cf.cf_noreturn then F.pp_print_string f " noreturn" ; if cf.cf_with_block_parameters then F.pp_print_string f " block_params" @@ -30,6 +32,7 @@ let pp f cf = let default = { cf_virtual= false ; cf_interface= false + ; cf_assign_last_arg= false ; cf_noreturn= false ; cf_is_objc_block= false ; cf_with_block_parameters= false diff --git a/infer/src/IR/CallFlags.mli b/infer/src/IR/CallFlags.mli index 6d305f7df..6f572c1a1 100644 --- a/infer/src/IR/CallFlags.mli +++ b/infer/src/IR/CallFlags.mli @@ -15,6 +15,7 @@ module F = Format type t = { cf_virtual: bool ; cf_interface: bool + ; cf_assign_last_arg: bool ; cf_noreturn: bool ; cf_is_objc_block: bool ; cf_targets: Typ.Procname.t list diff --git a/infer/src/backend/preanal.ml b/infer/src/backend/preanal.ml index d054dfbb2..71aa22b50 100644 --- a/infer/src/backend/preanal.ml +++ b/infer/src/backend/preanal.ml @@ -92,9 +92,18 @@ module NullifyTransferFunctions = struct match instr with | Sil.Load (lhs_id, _, _, _) -> (VarDomain.add (Var.of_id lhs_id) active_defs, to_nullify) - | Sil.Call ((id, _), _, _, _, _) -> - let active_defs' = VarDomain.add (Var.of_id id) active_defs in - (active_defs', to_nullify) + | Sil.Call ((id, _), _, actuals, _, {CallFlags.cf_assign_last_arg}) -> + let active_defs = VarDomain.add (Var.of_id id) active_defs in + let active_defs = + if cf_assign_last_arg then + match IList.split_last_rev actuals with + | Some ((Exp.Lvar pvar, _), _) -> + VarDomain.add (Var.of_pvar pvar) active_defs + | _ -> + active_defs + else active_defs + in + (active_defs, to_nullify) | Sil.Store (Exp.Lvar lhs_pvar, _, _, _) -> (VarDomain.add (Var.of_pvar lhs_pvar) active_defs, to_nullify) | Sil.Store _ | Prune _ | ExitScope _ | Abstract _ -> diff --git a/infer/src/checkers/liveness.ml b/infer/src/checkers/liveness.ml index ff899e580..9bfdc9471 100644 --- a/infer/src/checkers/liveness.ml +++ b/infer/src/checkers/liveness.ml @@ -13,6 +13,9 @@ module F = Format module VarSet = AbstractDomain.FiniteSet (Var) module Domain = VarSet +(* only kill pvars that are local; don't kill those that can escape *) +let is_always_in_scope pvar = Pvar.is_return pvar || Pvar.is_global pvar + (* compilers 101-style backward transfer functions for liveness analysis. gen a variable when it is read, kill the variable when it is assigned *) module TransferFunctions (CFG : ProcCfg.S) = struct @@ -57,7 +60,7 @@ module TransferFunctions (CFG : ProcCfg.S) = struct Domain.remove (Var.of_id lhs_id) astate |> exp_add_live rhs_exp | Sil.Store (Lvar lhs_pvar, _, rhs_exp, _) -> let astate' = - if Pvar.is_global lhs_pvar then astate (* never kill globals *) + if is_always_in_scope lhs_pvar then astate (* never kill globals *) else Domain.remove (Var.of_pvar lhs_pvar) astate in exp_add_live rhs_exp astate' @@ -65,9 +68,19 @@ module TransferFunctions (CFG : ProcCfg.S) = struct exp_add_live lhs_exp astate |> exp_add_live rhs_exp | Sil.Prune (exp, _, _, _) -> exp_add_live exp astate - | Sil.Call ((ret_id, _), call_exp, actuals, _, _) -> + | Sil.Call ((ret_id, _), call_exp, actuals, _, {CallFlags.cf_assign_last_arg}) -> + let actuals_to_read, astate = + if cf_assign_last_arg then + match IList.split_last_rev actuals with + | Some ((Exp.Lvar pvar, _), actuals') when not (is_always_in_scope pvar) -> + (actuals', Domain.remove (Var.of_pvar pvar) astate) + | _ -> + (actuals, astate) + else (actuals, astate) + in Domain.remove (Var.of_id ret_id) astate - |> exp_add_live call_exp |> add_live_actuals actuals call_exp + |> exp_add_live call_exp + |> add_live_actuals actuals_to_read call_exp | Sil.ExitScope _ | Abstract _ | Nullify _ -> astate diff --git a/infer/src/clang/cTrans.ml b/infer/src/clang/cTrans.ml index 818757f9f..a1af81979 100644 --- a/infer/src/clang/cTrans.ml +++ b/infer/src/clang/cTrans.ml @@ -236,7 +236,7 @@ module CTrans_funct (F : CModule_type.CFrontend) : CModule_type.CTranslation = s let create_call_instr trans_state (return_type : Typ.t) function_sil params_sil sil_loc call_flags ~is_objc_method ~is_inherited_ctor = let ret_id_typ = (Ident.create_fresh Ident.knormal, return_type) in - let ret_id', params, initd_exps, ret_exps = + let ret_id', params, initd_exps, ret_exps, call_flags = (* Assumption: should_add_return_param will return true only for struct types *) if CType_decl.should_add_return_param return_type ~is_objc_method then let param_type = Typ.mk (Typ.Tptr (return_type, Typ.Pk_pointer)) in @@ -272,13 +272,18 @@ module CTrans_funct (F : CModule_type.CFrontend) : CModule_type.CTranslation = s (* value doesn't work good anyway. This may need to be revisited later*) let ret_param = (var_exp, param_type) in let ret_exp = (var_exp, return_type) in - (mk_fresh_void_id_typ (), params_sil @ [ret_param], [var_exp], ret_exp) + ( mk_fresh_void_id_typ () + , params_sil @ [ret_param] + , [var_exp] + , ret_exp + , {call_flags with CallFlags.cf_assign_last_arg= true} ) else ( ret_id_typ , params_sil , [] - , let i, t = ret_id_typ in - (Exp.Var i, t) ) + , (let i, t = ret_id_typ in + (Exp.Var i, t)) + , call_flags ) in let forwarded_params, forwarded_init_instrs = if is_inherited_ctor then get_forwarded_params trans_state sil_loc else ([], []) @@ -2265,8 +2270,11 @@ module CTrans_funct (F : CModule_type.CFrontend) : CModule_type.CTranslation = s { empty_control with instrs= [ Sil.Call - ((ret_id, Typ.void), sil_fun, [var_exp_typ], sil_loc, CallFlags.default) ] - } + ( (ret_id, Typ.void) + , sil_fun + , [var_exp_typ] + , sil_loc + , {CallFlags.default with cf_assign_last_arg= true} ) ] } | _ -> None in diff --git a/infer/src/istd/IList.ml b/infer/src/istd/IList.ml index 23bd5b81c..dd9ed16f8 100644 --- a/infer/src/istd/IList.ml +++ b/infer/src/istd/IList.ml @@ -117,6 +117,15 @@ let rec fold_last l ~init ~f ~f_last = fold_last tl ~init:(f init hd) ~f ~f_last +let split_last_rev l = + let result, _rev_prefix = + fold_last l ~init:(None, []) + ~f:(fun (_, rev_prefix) x -> (None, x :: rev_prefix)) + ~f_last:(fun (_, rev_prefix) last -> (Some (last, rev_prefix), rev_prefix)) + in + result + + let append_no_duplicates (type a) ~(cmp : a -> a -> int) = (* roughly based on [Core.List.stable_dedup_staged] but also takes care of the append and takes into account the invariant that [list1] and [list2] do not contain duplicates individually *) diff --git a/infer/src/istd/IList.mli b/infer/src/istd/IList.mli index ed01e0a50..4419325d2 100644 --- a/infer/src/istd/IList.mli +++ b/infer/src/istd/IList.mli @@ -27,6 +27,10 @@ val inter : cmp:('a -> 'a -> int) -> 'a list -> 'a list -> 'a list val fold_last : 'a list -> init:'b -> f:('b -> 'a -> 'b) -> f_last:('b -> 'a -> 'b) -> 'b (** like fold, but apply f_last to the last element *) +val split_last_rev : 'a list -> ('a * 'a list) option +(** [split_last_rev l] is [Some (last, rev_prefix)] where [last :: (List.rev rev_prefix) == l], + [None] if [l] is empty *) + val append_no_duplicates : cmp:('a -> 'a -> int) -> ('a list -> 'a list -> 'a list) Staged.t (** [append_no_duplicates list1 list2], assuming that list1 and list2 have no duplicates on their own, it computes list1 @ (filtered list2), so it keeps the order of both lists and has no diff --git a/infer/tests/build_systems/codetoanalyze/clang_translation/src/main.cpp.dot b/infer/tests/build_systems/codetoanalyze/clang_translation/src/main.cpp.dot index 5d9e3bfcd..e074a283b 100644 --- a/infer/tests/build_systems/codetoanalyze/clang_translation/src/main.cpp.dot +++ b/infer/tests/build_systems/codetoanalyze/clang_translation/src/main.cpp.dot @@ -124,11 +124,11 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; -"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&s:std::basic_string,std::allocator>) [line 20, column 3]\n n$5=_fun_std::basic_string,std::allocator>_basic_string(&s:std::basic_string,std::allocator>*,\"1234\":char const *) [line 20, column 15]\n EXIT_SCOPE(n$5,n$6); [line 20, column 15]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&s:std::basic_string,std::allocator>) assign_last [line 20, column 3]\n n$5=_fun_std::basic_string,std::allocator>_basic_string(&s:std::basic_string,std::allocator>*,\"1234\":char const *) [line 20, column 15]\n EXIT_SCOPE(n$5,n$6); [line 20, column 15]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$9=_fun___variable_initialization(&x:int*) [line 19, column 3]\n n$8=_fun_std::shared_ptr_shared_ptr(&x:int**) [line 19, column 24]\n n$7=*&x:int* [line 19, column 24]\n EXIT_SCOPE(n$7,n$8,n$9); [line 19, column 24]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$9=_fun___variable_initialization(&x:int*) assign_last [line 19, column 3]\n n$8=_fun_std::shared_ptr_shared_ptr(&x:int**) [line 19, column 24]\n n$7=*&x:int* [line 19, column 24]\n EXIT_SCOPE(n$7,n$8,n$9); [line 19, column 24]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; @@ -155,7 +155,7 @@ digraph cfg { "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_3" -> "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_2" ; -"unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:int) [line 15, column 3]\n n$3=_fun_internal::used_in_main_header(0:int) [line 15, column 11]\n *&x:int=n$3 [line 15, column 3]\n NULLIFY(&x); [line 15, column 3]\n EXIT_SCOPE(n$3,n$4,x); [line 15, column 3]\n " shape="box"] +"unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:int) assign_last [line 15, column 3]\n n$3=_fun_internal::used_in_main_header(0:int) [line 15, column 11]\n *&x:int=n$3 [line 15, column 3]\n NULLIFY(&x); [line 15, column 3]\n EXIT_SCOPE(n$3,n$4,x); [line 15, column 3]\n " shape="box"] "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_4" -> "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_3" ; @@ -669,7 +669,7 @@ digraph cfg { "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_4" -> "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_3" ; -"test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) [line 933, column 5]\n n$3=*&this:std::atomic_flag* [line 933, column 16]\n n$4=*n$3.a:_Bool [line 933, column 16]\n *&ret:_Bool=n$4 [line 933, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 933, column 5]\n " shape="box"] +"test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) assign_last [line 933, column 5]\n n$3=*&this:std::atomic_flag* [line 933, column 16]\n n$4=*n$3.a:_Bool [line 933, column 16]\n *&ret:_Bool=n$4 [line 933, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 933, column 5]\n " shape="box"] "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_5" -> "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_4" ; @@ -688,7 +688,7 @@ digraph cfg { "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_4" -> "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_3" ; -"test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) [line 938, column 5]\n n$3=*&this:std::atomic_flag* [line 938, column 16]\n n$4=*n$3.a:_Bool [line 938, column 16]\n *&ret:_Bool=n$4 [line 938, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 938, column 5]\n " shape="box"] +"test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) assign_last [line 938, column 5]\n n$3=*&this:std::atomic_flag* [line 938, column 16]\n n$4=*n$3.a:_Bool [line 938, column 16]\n *&ret:_Bool=n$4 [line 938, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 938, column 5]\n " shape="box"] "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_5" -> "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_4" ; diff --git a/infer/tests/build_systems/codetoanalyze/clang_translation/src/main_default_root.cpp.dot b/infer/tests/build_systems/codetoanalyze/clang_translation/src/main_default_root.cpp.dot index 5d9e3bfcd..e074a283b 100644 --- a/infer/tests/build_systems/codetoanalyze/clang_translation/src/main_default_root.cpp.dot +++ b/infer/tests/build_systems/codetoanalyze/clang_translation/src/main_default_root.cpp.dot @@ -124,11 +124,11 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; -"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&s:std::basic_string,std::allocator>) [line 20, column 3]\n n$5=_fun_std::basic_string,std::allocator>_basic_string(&s:std::basic_string,std::allocator>*,\"1234\":char const *) [line 20, column 15]\n EXIT_SCOPE(n$5,n$6); [line 20, column 15]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&s:std::basic_string,std::allocator>) assign_last [line 20, column 3]\n n$5=_fun_std::basic_string,std::allocator>_basic_string(&s:std::basic_string,std::allocator>*,\"1234\":char const *) [line 20, column 15]\n EXIT_SCOPE(n$5,n$6); [line 20, column 15]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$9=_fun___variable_initialization(&x:int*) [line 19, column 3]\n n$8=_fun_std::shared_ptr_shared_ptr(&x:int**) [line 19, column 24]\n n$7=*&x:int* [line 19, column 24]\n EXIT_SCOPE(n$7,n$8,n$9); [line 19, column 24]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$9=_fun___variable_initialization(&x:int*) assign_last [line 19, column 3]\n n$8=_fun_std::shared_ptr_shared_ptr(&x:int**) [line 19, column 24]\n n$7=*&x:int* [line 19, column 24]\n EXIT_SCOPE(n$7,n$8,n$9); [line 19, column 24]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; @@ -155,7 +155,7 @@ digraph cfg { "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_3" -> "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_2" ; -"unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:int) [line 15, column 3]\n n$3=_fun_internal::used_in_main_header(0:int) [line 15, column 11]\n *&x:int=n$3 [line 15, column 3]\n NULLIFY(&x); [line 15, column 3]\n EXIT_SCOPE(n$3,n$4,x); [line 15, column 3]\n " shape="box"] +"unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:int) assign_last [line 15, column 3]\n n$3=_fun_internal::used_in_main_header(0:int) [line 15, column 11]\n *&x:int=n$3 [line 15, column 3]\n NULLIFY(&x); [line 15, column 3]\n EXIT_SCOPE(n$3,n$4,x); [line 15, column 3]\n " shape="box"] "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_4" -> "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_3" ; @@ -669,7 +669,7 @@ digraph cfg { "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_4" -> "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_3" ; -"test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) [line 933, column 5]\n n$3=*&this:std::atomic_flag* [line 933, column 16]\n n$4=*n$3.a:_Bool [line 933, column 16]\n *&ret:_Bool=n$4 [line 933, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 933, column 5]\n " shape="box"] +"test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) assign_last [line 933, column 5]\n n$3=*&this:std::atomic_flag* [line 933, column 16]\n n$4=*n$3.a:_Bool [line 933, column 16]\n *&ret:_Bool=n$4 [line 933, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 933, column 5]\n " shape="box"] "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_5" -> "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_4" ; @@ -688,7 +688,7 @@ digraph cfg { "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_4" -> "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_3" ; -"test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) [line 938, column 5]\n n$3=*&this:std::atomic_flag* [line 938, column 16]\n n$4=*n$3.a:_Bool [line 938, column 16]\n *&ret:_Bool=n$4 [line 938, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 938, column 5]\n " shape="box"] +"test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) assign_last [line 938, column 5]\n n$3=*&this:std::atomic_flag* [line 938, column 16]\n n$4=*n$3.a:_Bool [line 938, column 16]\n *&ret:_Bool=n$4 [line 938, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 938, column 5]\n " shape="box"] "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_5" -> "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_4" ; diff --git a/infer/tests/build_systems/codetoanalyze/clang_translation/src/main_default_symlink.cpp.dot b/infer/tests/build_systems/codetoanalyze/clang_translation/src/main_default_symlink.cpp.dot index 5d9e3bfcd..e074a283b 100644 --- a/infer/tests/build_systems/codetoanalyze/clang_translation/src/main_default_symlink.cpp.dot +++ b/infer/tests/build_systems/codetoanalyze/clang_translation/src/main_default_symlink.cpp.dot @@ -124,11 +124,11 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; -"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&s:std::basic_string,std::allocator>) [line 20, column 3]\n n$5=_fun_std::basic_string,std::allocator>_basic_string(&s:std::basic_string,std::allocator>*,\"1234\":char const *) [line 20, column 15]\n EXIT_SCOPE(n$5,n$6); [line 20, column 15]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&s:std::basic_string,std::allocator>) assign_last [line 20, column 3]\n n$5=_fun_std::basic_string,std::allocator>_basic_string(&s:std::basic_string,std::allocator>*,\"1234\":char const *) [line 20, column 15]\n EXIT_SCOPE(n$5,n$6); [line 20, column 15]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$9=_fun___variable_initialization(&x:int*) [line 19, column 3]\n n$8=_fun_std::shared_ptr_shared_ptr(&x:int**) [line 19, column 24]\n n$7=*&x:int* [line 19, column 24]\n EXIT_SCOPE(n$7,n$8,n$9); [line 19, column 24]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$9=_fun___variable_initialization(&x:int*) assign_last [line 19, column 3]\n n$8=_fun_std::shared_ptr_shared_ptr(&x:int**) [line 19, column 24]\n n$7=*&x:int* [line 19, column 24]\n EXIT_SCOPE(n$7,n$8,n$9); [line 19, column 24]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; @@ -155,7 +155,7 @@ digraph cfg { "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_3" -> "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_2" ; -"unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:int) [line 15, column 3]\n n$3=_fun_internal::used_in_main_header(0:int) [line 15, column 11]\n *&x:int=n$3 [line 15, column 3]\n NULLIFY(&x); [line 15, column 3]\n EXIT_SCOPE(n$3,n$4,x); [line 15, column 3]\n " shape="box"] +"unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:int) assign_last [line 15, column 3]\n n$3=_fun_internal::used_in_main_header(0:int) [line 15, column 11]\n *&x:int=n$3 [line 15, column 3]\n NULLIFY(&x); [line 15, column 3]\n EXIT_SCOPE(n$3,n$4,x); [line 15, column 3]\n " shape="box"] "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_4" -> "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_3" ; @@ -669,7 +669,7 @@ digraph cfg { "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_4" -> "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_3" ; -"test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) [line 933, column 5]\n n$3=*&this:std::atomic_flag* [line 933, column 16]\n n$4=*n$3.a:_Bool [line 933, column 16]\n *&ret:_Bool=n$4 [line 933, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 933, column 5]\n " shape="box"] +"test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) assign_last [line 933, column 5]\n n$3=*&this:std::atomic_flag* [line 933, column 16]\n n$4=*n$3.a:_Bool [line 933, column 16]\n *&ret:_Bool=n$4 [line 933, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 933, column 5]\n " shape="box"] "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_5" -> "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_4" ; @@ -688,7 +688,7 @@ digraph cfg { "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_4" -> "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_3" ; -"test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) [line 938, column 5]\n n$3=*&this:std::atomic_flag* [line 938, column 16]\n n$4=*n$3.a:_Bool [line 938, column 16]\n *&ret:_Bool=n$4 [line 938, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 938, column 5]\n " shape="box"] +"test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) assign_last [line 938, column 5]\n n$3=*&this:std::atomic_flag* [line 938, column 16]\n n$4=*n$3.a:_Bool [line 938, column 16]\n *&ret:_Bool=n$4 [line 938, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 938, column 5]\n " shape="box"] "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_5" -> "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_4" ; diff --git a/infer/tests/build_systems/codetoanalyze/clang_translation/src/main_symlink.cpp.dot b/infer/tests/build_systems/codetoanalyze/clang_translation/src/main_symlink.cpp.dot index 5d9e3bfcd..e074a283b 100644 --- a/infer/tests/build_systems/codetoanalyze/clang_translation/src/main_symlink.cpp.dot +++ b/infer/tests/build_systems/codetoanalyze/clang_translation/src/main_symlink.cpp.dot @@ -124,11 +124,11 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; -"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&s:std::basic_string,std::allocator>) [line 20, column 3]\n n$5=_fun_std::basic_string,std::allocator>_basic_string(&s:std::basic_string,std::allocator>*,\"1234\":char const *) [line 20, column 15]\n EXIT_SCOPE(n$5,n$6); [line 20, column 15]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&s:std::basic_string,std::allocator>) assign_last [line 20, column 3]\n n$5=_fun_std::basic_string,std::allocator>_basic_string(&s:std::basic_string,std::allocator>*,\"1234\":char const *) [line 20, column 15]\n EXIT_SCOPE(n$5,n$6); [line 20, column 15]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$9=_fun___variable_initialization(&x:int*) [line 19, column 3]\n n$8=_fun_std::shared_ptr_shared_ptr(&x:int**) [line 19, column 24]\n n$7=*&x:int* [line 19, column 24]\n EXIT_SCOPE(n$7,n$8,n$9); [line 19, column 24]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$9=_fun___variable_initialization(&x:int*) assign_last [line 19, column 3]\n n$8=_fun_std::shared_ptr_shared_ptr(&x:int**) [line 19, column 24]\n n$7=*&x:int* [line 19, column 24]\n EXIT_SCOPE(n$7,n$8,n$9); [line 19, column 24]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; @@ -155,7 +155,7 @@ digraph cfg { "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_3" -> "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_2" ; -"unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:int) [line 15, column 3]\n n$3=_fun_internal::used_in_main_header(0:int) [line 15, column 11]\n *&x:int=n$3 [line 15, column 3]\n NULLIFY(&x); [line 15, column 3]\n EXIT_SCOPE(n$3,n$4,x); [line 15, column 3]\n " shape="box"] +"unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:int) assign_last [line 15, column 3]\n n$3=_fun_internal::used_in_main_header(0:int) [line 15, column 11]\n *&x:int=n$3 [line 15, column 3]\n NULLIFY(&x); [line 15, column 3]\n EXIT_SCOPE(n$3,n$4,x); [line 15, column 3]\n " shape="box"] "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_4" -> "unused_deref_in_header#15260603227785084028.ec2f844a26989dc35e9856ba0d7a485b_3" ; @@ -669,7 +669,7 @@ digraph cfg { "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_4" -> "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_3" ; -"test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) [line 933, column 5]\n n$3=*&this:std::atomic_flag* [line 933, column 16]\n n$4=*n$3.a:_Bool [line 933, column 16]\n *&ret:_Bool=n$4 [line 933, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 933, column 5]\n " shape="box"] +"test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) assign_last [line 933, column 5]\n n$3=*&this:std::atomic_flag* [line 933, column 16]\n n$4=*n$3.a:_Bool [line 933, column 16]\n *&ret:_Bool=n$4 [line 933, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 933, column 5]\n " shape="box"] "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_5" -> "test_and_set#atomic_flag#std#(6342589292624928640).e1a95571862fb026e9cf3fed47e15f71_4" ; @@ -688,7 +688,7 @@ digraph cfg { "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_4" -> "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_3" ; -"test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) [line 938, column 5]\n n$3=*&this:std::atomic_flag* [line 938, column 16]\n n$4=*n$3.a:_Bool [line 938, column 16]\n *&ret:_Bool=n$4 [line 938, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 938, column 5]\n " shape="box"] +"test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&ret:_Bool) assign_last [line 938, column 5]\n n$3=*&this:std::atomic_flag* [line 938, column 16]\n n$4=*n$3.a:_Bool [line 938, column 16]\n *&ret:_Bool=n$4 [line 938, column 5]\n EXIT_SCOPE(n$3,n$4,n$5); [line 938, column 5]\n " shape="box"] "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_5" -> "test_and_set#atomic_flag#std#(6471561702066990866).1f32ee5584df8a2cd5807312ee98cdb7_4" ; diff --git a/infer/tests/codetoanalyze/c/frontend/arithmetic/compound_assignment.c.dot b/infer/tests/codetoanalyze/c/frontend/arithmetic/compound_assignment.c.dot index e6b724da2..a5afa588c 100644 --- a/infer/tests/codetoanalyze/c/frontend/arithmetic/compound_assignment.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/arithmetic/compound_assignment.c.dot @@ -35,7 +35,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_9" -> "main.fad58de7366495db4650cfefac2fcd61_8" ; -"main.fad58de7366495db4650cfefac2fcd61_10" [label="10: DeclStmt \n n$6=_fun___variable_initialization(&b:int) [line 14, column 3]\n *&b:int=1 [line 14, column 3]\n EXIT_SCOPE(n$6); [line 14, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_10" [label="10: DeclStmt \n n$6=_fun___variable_initialization(&b:int) assign_last [line 14, column 3]\n *&b:int=1 [line 14, column 3]\n EXIT_SCOPE(n$6); [line 14, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_10" -> "main.fad58de7366495db4650cfefac2fcd61_9" ; @@ -55,7 +55,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_14" -> "main.fad58de7366495db4650cfefac2fcd61_13" ; -"main.fad58de7366495db4650cfefac2fcd61_15" [label="15: DeclStmt \n n$11=_fun___variable_initialization(&x:double) [line 9, column 3]\n *&x:double=1. [line 9, column 3]\n EXIT_SCOPE(n$11); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_15" [label="15: DeclStmt \n n$11=_fun___variable_initialization(&x:double) assign_last [line 9, column 3]\n *&x:double=1. [line 9, column 3]\n EXIT_SCOPE(n$11); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_15" -> "main.fad58de7366495db4650cfefac2fcd61_14" ; diff --git a/infer/tests/codetoanalyze/c/frontend/arithmetic/int_const.c.dot b/infer/tests/codetoanalyze/c/frontend/arithmetic/int_const.c.dot index 17edd04eb..0fcdf9df0 100644 --- a/infer/tests/codetoanalyze/c/frontend/arithmetic/int_const.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/arithmetic/int_const.c.dot @@ -11,15 +11,15 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; -"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$0=_fun___variable_initialization(&overflow_int:int) [line 18, column 3]\n *&overflow_int:int=9223372036854775808 [line 18, column 3]\n NULLIFY(&overflow_int); [line 18, column 3]\n EXIT_SCOPE(n$0,overflow_int); [line 18, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$0=_fun___variable_initialization(&overflow_int:int) assign_last [line 18, column 3]\n *&overflow_int:int=9223372036854775808 [line 18, column 3]\n NULLIFY(&overflow_int); [line 18, column 3]\n EXIT_SCOPE(n$0,overflow_int); [line 18, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$1=_fun___variable_initialization(&large_int:int) [line 17, column 3]\n *&large_int:int=9223372036854775807 [line 17, column 3]\n NULLIFY(&large_int); [line 17, column 3]\n EXIT_SCOPE(n$1,large_int); [line 17, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$1=_fun___variable_initialization(&large_int:int) assign_last [line 17, column 3]\n *&large_int:int=9223372036854775807 [line 17, column 3]\n NULLIFY(&large_int); [line 17, column 3]\n EXIT_SCOPE(n$1,large_int); [line 17, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; -"main.fad58de7366495db4650cfefac2fcd61_6" [label="6: DeclStmt \n n$2=_fun___variable_initialization(&#GB$main.kDuration:int const ) [line 15, column 3]\n *&#GB$main.kDuration:int=3 [line 15, column 3]\n EXIT_SCOPE(n$2); [line 15, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_6" [label="6: DeclStmt \n n$2=_fun___variable_initialization(&#GB$main.kDuration:int const ) assign_last [line 15, column 3]\n *&#GB$main.kDuration:int=3 [line 15, column 3]\n EXIT_SCOPE(n$2); [line 15, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_6" -> "main.fad58de7366495db4650cfefac2fcd61_5" ; diff --git a/infer/tests/codetoanalyze/c/frontend/arithmetic/plus_expr.c.dot b/infer/tests/codetoanalyze/c/frontend/arithmetic/plus_expr.c.dot index 87a31c4df..e158186b5 100644 --- a/infer/tests/codetoanalyze/c/frontend/arithmetic/plus_expr.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/arithmetic/plus_expr.c.dot @@ -11,11 +11,11 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; -"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&z:int) [line 10, column 3]\n *&z:int=3 [line 10, column 3]\n EXIT_SCOPE(n$2); [line 10, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&z:int) assign_last [line 10, column 3]\n *&z:int=3 [line 10, column 3]\n EXIT_SCOPE(n$2); [line 10, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&x:int) [line 9, column 3]\n *&x:int=2 [line 9, column 3]\n EXIT_SCOPE(n$3); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&x:int) assign_last [line 9, column 3]\n *&x:int=2 [line 9, column 3]\n EXIT_SCOPE(n$3); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; diff --git a/infer/tests/codetoanalyze/c/frontend/arithmetic/unary.c.dot b/infer/tests/codetoanalyze/c/frontend/arithmetic/unary.c.dot index 10d128732..4c8c9c2a9 100644 --- a/infer/tests/codetoanalyze/c/frontend/arithmetic/unary.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/arithmetic/unary.c.dot @@ -55,7 +55,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_14" -> "main.fad58de7366495db4650cfefac2fcd61_13" ; -"main.fad58de7366495db4650cfefac2fcd61_15" [label="15: DeclStmt \n n$13=_fun___variable_initialization(&x:int) [line 9, column 3]\n *&x:int=1 [line 9, column 3]\n EXIT_SCOPE(n$13); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_15" [label="15: DeclStmt \n n$13=_fun___variable_initialization(&x:int) assign_last [line 9, column 3]\n *&x:int=1 [line 9, column 3]\n EXIT_SCOPE(n$13); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_15" -> "main.fad58de7366495db4650cfefac2fcd61_14" ; diff --git a/infer/tests/codetoanalyze/c/frontend/booleans/condition_as_param.c.dot b/infer/tests/codetoanalyze/c/frontend/booleans/condition_as_param.c.dot index f6da14139..bac1bffdf 100644 --- a/infer/tests/codetoanalyze/c/frontend/booleans/condition_as_param.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/booleans/condition_as_param.c.dot @@ -43,7 +43,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_9" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; -"main.fad58de7366495db4650cfefac2fcd61_10" [label="10: DeclStmt \n n$4=_fun___variable_initialization(&x:int) [line 11, column 3]\n *&x:int=3 [line 11, column 3]\n EXIT_SCOPE(n$4); [line 11, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_10" [label="10: DeclStmt \n n$4=_fun___variable_initialization(&x:int) assign_last [line 11, column 3]\n *&x:int=3 [line 11, column 3]\n EXIT_SCOPE(n$4); [line 11, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_10" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; diff --git a/infer/tests/codetoanalyze/c/frontend/comma/comma.c.dot b/infer/tests/codetoanalyze/c/frontend/comma/comma.c.dot index b7e2cdd9b..2ba701733 100644 --- a/infer/tests/codetoanalyze/c/frontend/comma/comma.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/comma/comma.c.dot @@ -11,15 +11,15 @@ digraph cfg { "comma_1.bafaed8336991f5a2e612ee2580c1506_3" -> "comma_1.bafaed8336991f5a2e612ee2580c1506_2" ; -"comma_1.bafaed8336991f5a2e612ee2580c1506_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&d:int) [line 10, column 3]\n n$1=*&a:int [line 10, column 16]\n *&a:int=(n$1 * 2) [line 10, column 12]\n n$2=*&a:int [line 10, column 12]\n n$3=*&a:int [line 10, column 31]\n *&a:int=(n$3 + 1) [line 10, column 31]\n *&b:int=(7 * n$3) [line 10, column 23]\n n$4=*&b:int [line 10, column 23]\n *&d:int=n$4 [line 10, column 3]\n NULLIFY(&a); [line 10, column 3]\n NULLIFY(&b); [line 10, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,n$5,a,b); [line 10, column 3]\n " shape="box"] +"comma_1.bafaed8336991f5a2e612ee2580c1506_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&d:int) assign_last [line 10, column 3]\n n$1=*&a:int [line 10, column 16]\n *&a:int=(n$1 * 2) [line 10, column 12]\n n$2=*&a:int [line 10, column 12]\n n$3=*&a:int [line 10, column 31]\n *&a:int=(n$3 + 1) [line 10, column 31]\n *&b:int=(7 * n$3) [line 10, column 23]\n n$4=*&b:int [line 10, column 23]\n *&d:int=n$4 [line 10, column 3]\n NULLIFY(&a); [line 10, column 3]\n NULLIFY(&b); [line 10, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,n$5,a,b); [line 10, column 3]\n " shape="box"] "comma_1.bafaed8336991f5a2e612ee2580c1506_4" -> "comma_1.bafaed8336991f5a2e612ee2580c1506_3" ; -"comma_1.bafaed8336991f5a2e612ee2580c1506_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&b:int) [line 9, column 3]\n *&b:int=7 [line 9, column 3]\n NULLIFY(&b); [line 9, column 3]\n EXIT_SCOPE(n$6,b); [line 9, column 3]\n " shape="box"] +"comma_1.bafaed8336991f5a2e612ee2580c1506_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&b:int) assign_last [line 9, column 3]\n *&b:int=7 [line 9, column 3]\n NULLIFY(&b); [line 9, column 3]\n EXIT_SCOPE(n$6,b); [line 9, column 3]\n " shape="box"] "comma_1.bafaed8336991f5a2e612ee2580c1506_5" -> "comma_1.bafaed8336991f5a2e612ee2580c1506_4" ; -"comma_1.bafaed8336991f5a2e612ee2580c1506_6" [label="6: DeclStmt \n n$7=_fun___variable_initialization(&a:int) [line 9, column 3]\n *&a:int=9 [line 9, column 3]\n EXIT_SCOPE(n$7); [line 9, column 3]\n " shape="box"] +"comma_1.bafaed8336991f5a2e612ee2580c1506_6" [label="6: DeclStmt \n n$7=_fun___variable_initialization(&a:int) assign_last [line 9, column 3]\n *&a:int=9 [line 9, column 3]\n EXIT_SCOPE(n$7); [line 9, column 3]\n " shape="box"] "comma_1.bafaed8336991f5a2e612ee2580c1506_6" -> "comma_1.bafaed8336991f5a2e612ee2580c1506_5" ; @@ -34,15 +34,15 @@ digraph cfg { "comma_2.aa5fd44d8dfe78041d816bb9ce86a85f_3" -> "comma_2.aa5fd44d8dfe78041d816bb9ce86a85f_2" ; -"comma_2.aa5fd44d8dfe78041d816bb9ce86a85f_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&d:int) [line 16, column 3]\n n$1=*&a:int [line 16, column 16]\n *&a:int=(n$1 * 2) [line 16, column 12]\n n$2=*&a:int [line 16, column 12]\n n$3=*&a:int [line 16, column 31]\n *&a:int=(n$3 + 1) [line 16, column 31]\n *&b:int=(7 * n$3) [line 16, column 23]\n n$4=*&b:int [line 16, column 23]\n n$5=*&a:int [line 16, column 36]\n n$6=*&b:int [line 16, column 40]\n *&d:int=((n$5 + n$6) + 9) [line 16, column 3]\n NULLIFY(&b); [line 16, column 3]\n NULLIFY(&a); [line 16, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,n$5,n$6,n$7,b,a); [line 16, column 3]\n " shape="box"] +"comma_2.aa5fd44d8dfe78041d816bb9ce86a85f_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&d:int) assign_last [line 16, column 3]\n n$1=*&a:int [line 16, column 16]\n *&a:int=(n$1 * 2) [line 16, column 12]\n n$2=*&a:int [line 16, column 12]\n n$3=*&a:int [line 16, column 31]\n *&a:int=(n$3 + 1) [line 16, column 31]\n *&b:int=(7 * n$3) [line 16, column 23]\n n$4=*&b:int [line 16, column 23]\n n$5=*&a:int [line 16, column 36]\n n$6=*&b:int [line 16, column 40]\n *&d:int=((n$5 + n$6) + 9) [line 16, column 3]\n NULLIFY(&b); [line 16, column 3]\n NULLIFY(&a); [line 16, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,n$5,n$6,n$7,b,a); [line 16, column 3]\n " shape="box"] "comma_2.aa5fd44d8dfe78041d816bb9ce86a85f_4" -> "comma_2.aa5fd44d8dfe78041d816bb9ce86a85f_3" ; -"comma_2.aa5fd44d8dfe78041d816bb9ce86a85f_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&b:int) [line 15, column 3]\n *&b:int=7 [line 15, column 3]\n NULLIFY(&b); [line 15, column 3]\n EXIT_SCOPE(n$8,b); [line 15, column 3]\n " shape="box"] +"comma_2.aa5fd44d8dfe78041d816bb9ce86a85f_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&b:int) assign_last [line 15, column 3]\n *&b:int=7 [line 15, column 3]\n NULLIFY(&b); [line 15, column 3]\n EXIT_SCOPE(n$8,b); [line 15, column 3]\n " shape="box"] "comma_2.aa5fd44d8dfe78041d816bb9ce86a85f_5" -> "comma_2.aa5fd44d8dfe78041d816bb9ce86a85f_4" ; -"comma_2.aa5fd44d8dfe78041d816bb9ce86a85f_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&a:int) [line 15, column 3]\n *&a:int=9 [line 15, column 3]\n EXIT_SCOPE(n$9); [line 15, column 3]\n " shape="box"] +"comma_2.aa5fd44d8dfe78041d816bb9ce86a85f_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&a:int) assign_last [line 15, column 3]\n *&a:int=9 [line 15, column 3]\n EXIT_SCOPE(n$9); [line 15, column 3]\n " shape="box"] "comma_2.aa5fd44d8dfe78041d816bb9ce86a85f_6" -> "comma_2.aa5fd44d8dfe78041d816bb9ce86a85f_5" ; @@ -57,19 +57,19 @@ digraph cfg { "comma_3.94b9d12e6a2f1dbb384d21928d4e092d_3" -> "comma_3.94b9d12e6a2f1dbb384d21928d4e092d_2" ; -"comma_3.94b9d12e6a2f1dbb384d21928d4e092d_4" [label="4: DeclStmt \n n$9=_fun___variable_initialization(&d:int) [line 22, column 3]\n n$1=*&a:int [line 22, column 16]\n *&a:int=(n$1 * 2) [line 22, column 12]\n n$2=*&a:int [line 22, column 12]\n n$3=*&a:int [line 22, column 31]\n *&a:int=(n$3 + 1) [line 22, column 31]\n *&b:int=(7 * n$3) [line 22, column 23]\n n$4=*&b:int [line 22, column 23]\n n$5=*&a:int [line 22, column 40]\n n$6=*&b:int [line 22, column 44]\n *&c:int=((n$5 + n$6) + 9) [line 22, column 36]\n n$7=*&c:int [line 22, column 36]\n n$8=*&c:int [line 22, column 51]\n *&d:int=n$8 [line 22, column 3]\n NULLIFY(&c); [line 22, column 3]\n NULLIFY(&b); [line 22, column 3]\n NULLIFY(&a); [line 22, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,n$5,n$6,n$7,n$8,n$9,c,b,a); [line 22, column 3]\n " shape="box"] +"comma_3.94b9d12e6a2f1dbb384d21928d4e092d_4" [label="4: DeclStmt \n n$9=_fun___variable_initialization(&d:int) assign_last [line 22, column 3]\n n$1=*&a:int [line 22, column 16]\n *&a:int=(n$1 * 2) [line 22, column 12]\n n$2=*&a:int [line 22, column 12]\n n$3=*&a:int [line 22, column 31]\n *&a:int=(n$3 + 1) [line 22, column 31]\n *&b:int=(7 * n$3) [line 22, column 23]\n n$4=*&b:int [line 22, column 23]\n n$5=*&a:int [line 22, column 40]\n n$6=*&b:int [line 22, column 44]\n *&c:int=((n$5 + n$6) + 9) [line 22, column 36]\n n$7=*&c:int [line 22, column 36]\n n$8=*&c:int [line 22, column 51]\n *&d:int=n$8 [line 22, column 3]\n NULLIFY(&c); [line 22, column 3]\n NULLIFY(&b); [line 22, column 3]\n NULLIFY(&a); [line 22, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,n$5,n$6,n$7,n$8,n$9,c,b,a); [line 22, column 3]\n " shape="box"] "comma_3.94b9d12e6a2f1dbb384d21928d4e092d_4" -> "comma_3.94b9d12e6a2f1dbb384d21928d4e092d_3" ; -"comma_3.94b9d12e6a2f1dbb384d21928d4e092d_5" [label="5: DeclStmt \n n$10=_fun___variable_initialization(&c:int) [line 21, column 3]\n *&c:int=3 [line 21, column 3]\n NULLIFY(&c); [line 21, column 3]\n EXIT_SCOPE(n$10,c); [line 21, column 3]\n " shape="box"] +"comma_3.94b9d12e6a2f1dbb384d21928d4e092d_5" [label="5: DeclStmt \n n$10=_fun___variable_initialization(&c:int) assign_last [line 21, column 3]\n *&c:int=3 [line 21, column 3]\n NULLIFY(&c); [line 21, column 3]\n EXIT_SCOPE(n$10,c); [line 21, column 3]\n " shape="box"] "comma_3.94b9d12e6a2f1dbb384d21928d4e092d_5" -> "comma_3.94b9d12e6a2f1dbb384d21928d4e092d_4" ; -"comma_3.94b9d12e6a2f1dbb384d21928d4e092d_6" [label="6: DeclStmt \n n$11=_fun___variable_initialization(&b:int) [line 21, column 3]\n *&b:int=7 [line 21, column 3]\n NULLIFY(&b); [line 21, column 3]\n EXIT_SCOPE(n$11,b); [line 21, column 3]\n " shape="box"] +"comma_3.94b9d12e6a2f1dbb384d21928d4e092d_6" [label="6: DeclStmt \n n$11=_fun___variable_initialization(&b:int) assign_last [line 21, column 3]\n *&b:int=7 [line 21, column 3]\n NULLIFY(&b); [line 21, column 3]\n EXIT_SCOPE(n$11,b); [line 21, column 3]\n " shape="box"] "comma_3.94b9d12e6a2f1dbb384d21928d4e092d_6" -> "comma_3.94b9d12e6a2f1dbb384d21928d4e092d_5" ; -"comma_3.94b9d12e6a2f1dbb384d21928d4e092d_7" [label="7: DeclStmt \n n$12=_fun___variable_initialization(&a:int) [line 21, column 3]\n *&a:int=9 [line 21, column 3]\n EXIT_SCOPE(n$12); [line 21, column 3]\n " shape="box"] +"comma_3.94b9d12e6a2f1dbb384d21928d4e092d_7" [label="7: DeclStmt \n n$12=_fun___variable_initialization(&a:int) assign_last [line 21, column 3]\n *&a:int=9 [line 21, column 3]\n EXIT_SCOPE(n$12); [line 21, column 3]\n " shape="box"] "comma_3.94b9d12e6a2f1dbb384d21928d4e092d_7" -> "comma_3.94b9d12e6a2f1dbb384d21928d4e092d_6" ; diff --git a/infer/tests/codetoanalyze/c/frontend/conditional_operator/binary_operator.c.dot b/infer/tests/codetoanalyze/c/frontend/conditional_operator/binary_operator.c.dot index a468d7832..fbc18c6b9 100644 --- a/infer/tests/codetoanalyze/c/frontend/conditional_operator/binary_operator.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/conditional_operator/binary_operator.c.dot @@ -49,7 +49,7 @@ digraph cfg { "binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_12" -> "binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_8" ; -"binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_13" [label="13: DeclStmt \n n$8=_fun___variable_initialization(&y3:int) [line 24, column 3]\n n$3=*&0$?%__sil_tmpSIL_temp_conditional___n$0:int [line 24, column 13]\n n$7=*&0$?%__sil_tmpSIL_temp_conditional___n$4:int [line 24, column 27]\n *&y3:int=(n$3 + n$7) [line 24, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$0); [line 24, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$4); [line 24, column 3]\n NULLIFY(&y3); [line 24, column 3]\n EXIT_SCOPE(n$3,n$7,n$8,0$?%__sil_tmpSIL_temp_conditional___n$0,0$?%__sil_tmpSIL_temp_conditional___n$4,y3); [line 24, column 3]\n APPLY_ABSTRACTION; [line 24, column 3]\n " shape="box"] +"binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_13" [label="13: DeclStmt \n n$8=_fun___variable_initialization(&y3:int) assign_last [line 24, column 3]\n n$3=*&0$?%__sil_tmpSIL_temp_conditional___n$0:int [line 24, column 13]\n n$7=*&0$?%__sil_tmpSIL_temp_conditional___n$4:int [line 24, column 27]\n *&y3:int=(n$3 + n$7) [line 24, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$0); [line 24, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$4); [line 24, column 3]\n NULLIFY(&y3); [line 24, column 3]\n EXIT_SCOPE(n$3,n$7,n$8,0$?%__sil_tmpSIL_temp_conditional___n$0,0$?%__sil_tmpSIL_temp_conditional___n$4,y3); [line 24, column 3]\n APPLY_ABSTRACTION; [line 24, column 3]\n " shape="box"] "binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_13" -> "binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_2" ; @@ -73,7 +73,7 @@ digraph cfg { "binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_18" -> "binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_14" ; -"binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_19" [label="19: DeclStmt \n n$13=_fun___variable_initialization(&y2:int) [line 22, column 3]\n n$12=*&0$?%__sil_tmpSIL_temp_conditional___n$9:int [line 22, column 18]\n *&y2:int=(77 + n$12) [line 22, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$9); [line 22, column 3]\n NULLIFY(&y2); [line 22, column 3]\n EXIT_SCOPE(n$12,n$13,0$?%__sil_tmpSIL_temp_conditional___n$9,y2); [line 22, column 3]\n " shape="box"] +"binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_19" [label="19: DeclStmt \n n$13=_fun___variable_initialization(&y2:int) assign_last [line 22, column 3]\n n$12=*&0$?%__sil_tmpSIL_temp_conditional___n$9:int [line 22, column 18]\n *&y2:int=(77 + n$12) [line 22, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$9); [line 22, column 3]\n NULLIFY(&y2); [line 22, column 3]\n EXIT_SCOPE(n$12,n$13,0$?%__sil_tmpSIL_temp_conditional___n$9,y2); [line 22, column 3]\n " shape="box"] "binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_19" -> "binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_4" ; @@ -98,7 +98,7 @@ digraph cfg { "binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_24" -> "binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_20" ; -"binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_25" [label="25: DeclStmt \n n$18=_fun___variable_initialization(&y1:int) [line 20, column 3]\n n$17=*&0$?%__sil_tmpSIL_temp_conditional___n$14:int [line 20, column 13]\n *&y1:int=(n$17 + 77) [line 20, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$14); [line 20, column 3]\n NULLIFY(&y1); [line 20, column 3]\n EXIT_SCOPE(n$17,n$18,0$?%__sil_tmpSIL_temp_conditional___n$14,y1); [line 20, column 3]\n " shape="box"] +"binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_25" [label="25: DeclStmt \n n$18=_fun___variable_initialization(&y1:int) assign_last [line 20, column 3]\n n$17=*&0$?%__sil_tmpSIL_temp_conditional___n$14:int [line 20, column 13]\n *&y1:int=(n$17 + 77) [line 20, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$14); [line 20, column 3]\n NULLIFY(&y1); [line 20, column 3]\n EXIT_SCOPE(n$17,n$18,0$?%__sil_tmpSIL_temp_conditional___n$14,y1); [line 20, column 3]\n " shape="box"] "binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_25" -> "binop_with_side_effects.9cbc0255c95bd7e0ccf9d7a826fa2a2d_15" ; diff --git a/infer/tests/codetoanalyze/c/frontend/conditional_operator/cond2.c.dot b/infer/tests/codetoanalyze/c/frontend/conditional_operator/cond2.c.dot index 024750bf9..75528e952 100644 --- a/infer/tests/codetoanalyze/c/frontend/conditional_operator/cond2.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/conditional_operator/cond2.c.dot @@ -196,12 +196,12 @@ digraph cfg { "foo.acbd18db4cc2f85cedef654fccc4a4d8_27" -> "foo.acbd18db4cc2f85cedef654fccc4a4d8_20" ; -"foo.acbd18db4cc2f85cedef654fccc4a4d8_28" [label="28: DeclStmt \n n$10=_fun___variable_initialization(&n:int) [line 14, column 3]\n n$9=*&0$?%__sil_tmpSIL_temp_conditional___n$6:int [line 14, column 12]\n *&n:int=n$9 [line 14, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$6); [line 14, column 3]\n NULLIFY(&n); [line 14, column 3]\n EXIT_SCOPE(n$9,n$10,0$?%__sil_tmpSIL_temp_conditional___n$6,n); [line 14, column 3]\n " shape="box"] +"foo.acbd18db4cc2f85cedef654fccc4a4d8_28" [label="28: DeclStmt \n n$10=_fun___variable_initialization(&n:int) assign_last [line 14, column 3]\n n$9=*&0$?%__sil_tmpSIL_temp_conditional___n$6:int [line 14, column 12]\n *&n:int=n$9 [line 14, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$6); [line 14, column 3]\n NULLIFY(&n); [line 14, column 3]\n EXIT_SCOPE(n$9,n$10,0$?%__sil_tmpSIL_temp_conditional___n$6,n); [line 14, column 3]\n " shape="box"] "foo.acbd18db4cc2f85cedef654fccc4a4d8_28" -> "foo.acbd18db4cc2f85cedef654fccc4a4d8_10" ; "foo.acbd18db4cc2f85cedef654fccc4a4d8_28" -> "foo.acbd18db4cc2f85cedef654fccc4a4d8_11" ; -"foo.acbd18db4cc2f85cedef654fccc4a4d8_29" [label="29: DeclStmt \n n$11=_fun___variable_initialization(&y:int) [line 13, column 3]\n *&y:int=19 [line 13, column 3]\n EXIT_SCOPE(n$11); [line 13, column 3]\n " shape="box"] +"foo.acbd18db4cc2f85cedef654fccc4a4d8_29" [label="29: DeclStmt \n n$11=_fun___variable_initialization(&y:int) assign_last [line 13, column 3]\n *&y:int=19 [line 13, column 3]\n EXIT_SCOPE(n$11); [line 13, column 3]\n " shape="box"] "foo.acbd18db4cc2f85cedef654fccc4a4d8_29" -> "foo.acbd18db4cc2f85cedef654fccc4a4d8_21" ; @@ -235,7 +235,7 @@ digraph cfg { "foo.acbd18db4cc2f85cedef654fccc4a4d8_36" -> "foo.acbd18db4cc2f85cedef654fccc4a4d8_30" ; -"foo.acbd18db4cc2f85cedef654fccc4a4d8_37" [label="37: DeclStmt \n n$16=_fun___variable_initialization(&x:int) [line 9, column 3]\n *&x:int=5 [line 9, column 3]\n EXIT_SCOPE(n$16); [line 9, column 3]\n " shape="box"] +"foo.acbd18db4cc2f85cedef654fccc4a4d8_37" [label="37: DeclStmt \n n$16=_fun___variable_initialization(&x:int) assign_last [line 9, column 3]\n *&x:int=5 [line 9, column 3]\n EXIT_SCOPE(n$16); [line 9, column 3]\n " shape="box"] "foo.acbd18db4cc2f85cedef654fccc4a4d8_37" -> "foo.acbd18db4cc2f85cedef654fccc4a4d8_31" ; diff --git a/infer/tests/codetoanalyze/c/frontend/conditional_operator/conditional_operator.c.dot b/infer/tests/codetoanalyze/c/frontend/conditional_operator/conditional_operator.c.dot index f2f221c8d..a38ced382 100644 --- a/infer/tests/codetoanalyze/c/frontend/conditional_operator/conditional_operator.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/conditional_operator/conditional_operator.c.dot @@ -64,7 +64,7 @@ digraph cfg { "test1.5a105e8b9d40e1329780d62ea2265d8a_8" -> "test1.5a105e8b9d40e1329780d62ea2265d8a_4" ; -"test1.5a105e8b9d40e1329780d62ea2265d8a_9" [label="9: DeclStmt \n n$5=_fun___variable_initialization(&x:int) [line 15, column 3]\n n$4=*&0$?%__sil_tmpSIL_temp_conditional___n$1:int [line 15, column 11]\n *&x:int=n$4 [line 15, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$1); [line 15, column 3]\n EXIT_SCOPE(n$4,n$5,0$?%__sil_tmpSIL_temp_conditional___n$1); [line 15, column 3]\n " shape="box"] +"test1.5a105e8b9d40e1329780d62ea2265d8a_9" [label="9: DeclStmt \n n$5=_fun___variable_initialization(&x:int) assign_last [line 15, column 3]\n n$4=*&0$?%__sil_tmpSIL_temp_conditional___n$1:int [line 15, column 11]\n *&x:int=n$4 [line 15, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$1); [line 15, column 3]\n EXIT_SCOPE(n$4,n$5,0$?%__sil_tmpSIL_temp_conditional___n$1); [line 15, column 3]\n " shape="box"] "test1.5a105e8b9d40e1329780d62ea2265d8a_9" -> "test1.5a105e8b9d40e1329780d62ea2265d8a_3" ; @@ -115,7 +115,7 @@ digraph cfg { "test3.8ad8757baa8564dc136c1e07507f4a98_9" -> "test3.8ad8757baa8564dc136c1e07507f4a98_5" ; "test3.8ad8757baa8564dc136c1e07507f4a98_9" -> "test3.8ad8757baa8564dc136c1e07507f4a98_6" ; -"test3.8ad8757baa8564dc136c1e07507f4a98_10" [label="10: DeclStmt \n n$4=_fun___variable_initialization(&x:int) [line 20, column 3]\n n$3=*&0$?%__sil_tmpSIL_temp_conditional___n$2:int [line 20, column 11]\n *&x:int=n$3 [line 20, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$2); [line 20, column 3]\n EXIT_SCOPE(n$3,n$4,0$?%__sil_tmpSIL_temp_conditional___n$2); [line 20, column 3]\n " shape="box"] +"test3.8ad8757baa8564dc136c1e07507f4a98_10" [label="10: DeclStmt \n n$4=_fun___variable_initialization(&x:int) assign_last [line 20, column 3]\n n$3=*&0$?%__sil_tmpSIL_temp_conditional___n$2:int [line 20, column 11]\n *&x:int=n$3 [line 20, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$2); [line 20, column 3]\n EXIT_SCOPE(n$3,n$4,0$?%__sil_tmpSIL_temp_conditional___n$2); [line 20, column 3]\n " shape="box"] "test3.8ad8757baa8564dc136c1e07507f4a98_10" -> "test3.8ad8757baa8564dc136c1e07507f4a98_3" ; @@ -223,7 +223,7 @@ digraph cfg { "test6.4cfad7076129962ee70c36839a1e3e15_8" -> "test6.4cfad7076129962ee70c36839a1e3e15_4" ; -"test6.4cfad7076129962ee70c36839a1e3e15_9" [label="9: DeclStmt \n n$5=_fun___variable_initialization(&z:int) [line 29, column 3]\n n$4=*&0$?%__sil_tmpSIL_temp_conditional___n$1:int [line 29, column 11]\n *&z:int=n$4 [line 29, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$1); [line 29, column 3]\n EXIT_SCOPE(n$4,n$5,0$?%__sil_tmpSIL_temp_conditional___n$1); [line 29, column 3]\n " shape="box"] +"test6.4cfad7076129962ee70c36839a1e3e15_9" [label="9: DeclStmt \n n$5=_fun___variable_initialization(&z:int) assign_last [line 29, column 3]\n n$4=*&0$?%__sil_tmpSIL_temp_conditional___n$1:int [line 29, column 11]\n *&z:int=n$4 [line 29, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$1); [line 29, column 3]\n EXIT_SCOPE(n$4,n$5,0$?%__sil_tmpSIL_temp_conditional___n$1); [line 29, column 3]\n " shape="box"] "test6.4cfad7076129962ee70c36839a1e3e15_9" -> "test6.4cfad7076129962ee70c36839a1e3e15_3" ; diff --git a/infer/tests/codetoanalyze/c/frontend/conditional_operator/member_access.c.dot b/infer/tests/codetoanalyze/c/frontend/conditional_operator/member_access.c.dot index 544a22ab5..15c49a39b 100644 --- a/infer/tests/codetoanalyze/c/frontend/conditional_operator/member_access.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/conditional_operator/member_access.c.dot @@ -28,7 +28,7 @@ digraph cfg { "access_field_in_ife_branch.09235b723e846eb21b7cc76cb004f032_7" -> "access_field_in_ife_branch.09235b723e846eb21b7cc76cb004f032_3" ; -"access_field_in_ife_branch.09235b723e846eb21b7cc76cb004f032_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&z:int) [line 20, column 37]\n n$3=*&0$?%__sil_tmpSIL_temp_conditional___n$0:int [line 20, column 45]\n *&z:int=n$3 [line 20, column 37]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$0); [line 20, column 37]\n NULLIFY(&z); [line 20, column 37]\n EXIT_SCOPE(n$3,n$4,0$?%__sil_tmpSIL_temp_conditional___n$0,z); [line 20, column 37]\n APPLY_ABSTRACTION; [line 20, column 37]\n " shape="box"] +"access_field_in_ife_branch.09235b723e846eb21b7cc76cb004f032_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&z:int) assign_last [line 20, column 37]\n n$3=*&0$?%__sil_tmpSIL_temp_conditional___n$0:int [line 20, column 45]\n *&z:int=n$3 [line 20, column 37]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$0); [line 20, column 37]\n NULLIFY(&z); [line 20, column 37]\n EXIT_SCOPE(n$3,n$4,0$?%__sil_tmpSIL_temp_conditional___n$0,z); [line 20, column 37]\n APPLY_ABSTRACTION; [line 20, column 37]\n " shape="box"] "access_field_in_ife_branch.09235b723e846eb21b7cc76cb004f032_8" -> "access_field_in_ife_branch.09235b723e846eb21b7cc76cb004f032_2" ; @@ -60,7 +60,7 @@ digraph cfg { "call_ife_then_access_field.b6f399d1a50b93c2421854974cd226e3_7" -> "call_ife_then_access_field.b6f399d1a50b93c2421854974cd226e3_3" ; -"call_ife_then_access_field.b6f399d1a50b93c2421854974cd226e3_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&z:int) [line 18, column 37]\n n$1=*&0$?%__sil_tmpSIL_temp_conditional___n$0:int [line 18, column 54]\n n$2=_fun_ret_ptr(n$1:int) [line 18, column 46]\n n$3=*n$2.field:int [line 18, column 45]\n *&z:int=n$3 [line 18, column 37]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$0); [line 18, column 37]\n NULLIFY(&z); [line 18, column 37]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,0$?%__sil_tmpSIL_temp_conditional___n$0,z); [line 18, column 37]\n APPLY_ABSTRACTION; [line 18, column 37]\n " shape="box"] +"call_ife_then_access_field.b6f399d1a50b93c2421854974cd226e3_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&z:int) assign_last [line 18, column 37]\n n$1=*&0$?%__sil_tmpSIL_temp_conditional___n$0:int [line 18, column 54]\n n$2=_fun_ret_ptr(n$1:int) [line 18, column 46]\n n$3=*n$2.field:int [line 18, column 45]\n *&z:int=n$3 [line 18, column 37]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$0); [line 18, column 37]\n NULLIFY(&z); [line 18, column 37]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,0$?%__sil_tmpSIL_temp_conditional___n$0,z); [line 18, column 37]\n APPLY_ABSTRACTION; [line 18, column 37]\n " shape="box"] "call_ife_then_access_field.b6f399d1a50b93c2421854974cd226e3_8" -> "call_ife_then_access_field.b6f399d1a50b93c2421854974cd226e3_2" ; @@ -92,7 +92,7 @@ digraph cfg { "ife_then_access_field.314daa5b993f0f569c257230f350e2e2_7" -> "ife_then_access_field.314daa5b993f0f569c257230f350e2e2_3" ; -"ife_then_access_field.314daa5b993f0f569c257230f350e2e2_8" [label="8: DeclStmt \n n$5=_fun___variable_initialization(&z:int) [line 15, column 3]\n n$3=*&0$?%__sil_tmpSIL_temp_conditional___n$0:s* [line 15, column 12]\n n$4=*n$3.field:int [line 15, column 11]\n *&z:int=n$4 [line 15, column 3]\n NULLIFY(&z); [line 15, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$0); [line 15, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,z,0$?%__sil_tmpSIL_temp_conditional___n$0); [line 15, column 3]\n APPLY_ABSTRACTION; [line 15, column 3]\n " shape="box"] +"ife_then_access_field.314daa5b993f0f569c257230f350e2e2_8" [label="8: DeclStmt \n n$5=_fun___variable_initialization(&z:int) assign_last [line 15, column 3]\n n$3=*&0$?%__sil_tmpSIL_temp_conditional___n$0:s* [line 15, column 12]\n n$4=*n$3.field:int [line 15, column 11]\n *&z:int=n$4 [line 15, column 3]\n NULLIFY(&z); [line 15, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$0); [line 15, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,z,0$?%__sil_tmpSIL_temp_conditional___n$0); [line 15, column 3]\n APPLY_ABSTRACTION; [line 15, column 3]\n " shape="box"] "ife_then_access_field.314daa5b993f0f569c257230f350e2e2_8" -> "ife_then_access_field.314daa5b993f0f569c257230f350e2e2_2" ; diff --git a/infer/tests/codetoanalyze/c/frontend/conditional_operator/unary_operator.c.dot b/infer/tests/codetoanalyze/c/frontend/conditional_operator/unary_operator.c.dot index b7bd3423f..b8956ec8b 100644 --- a/infer/tests/codetoanalyze/c/frontend/conditional_operator/unary_operator.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/conditional_operator/unary_operator.c.dot @@ -56,7 +56,7 @@ digraph cfg { "dereference_ifthenelse.aa3447116ff03cffc729c06c91821cdc_14" -> "dereference_ifthenelse.aa3447116ff03cffc729c06c91821cdc_10" ; -"dereference_ifthenelse.aa3447116ff03cffc729c06c91821cdc_15" [label="15: DeclStmt \n n$10=_fun___variable_initialization(&y:int) [line 12, column 3]\n n$8=*&0$?%__sil_tmpSIL_temp_conditional___n$5:int* [line 12, column 13]\n n$9=*n$8:int [line 12, column 11]\n *&y:int=n$9 [line 12, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$5); [line 12, column 3]\n NULLIFY(&y); [line 12, column 3]\n EXIT_SCOPE(n$8,n$9,n$10,0$?%__sil_tmpSIL_temp_conditional___n$5,y); [line 12, column 3]\n " shape="box"] +"dereference_ifthenelse.aa3447116ff03cffc729c06c91821cdc_15" [label="15: DeclStmt \n n$10=_fun___variable_initialization(&y:int) assign_last [line 12, column 3]\n n$8=*&0$?%__sil_tmpSIL_temp_conditional___n$5:int* [line 12, column 13]\n n$9=*n$8:int [line 12, column 11]\n *&y:int=n$9 [line 12, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$5); [line 12, column 3]\n NULLIFY(&y); [line 12, column 3]\n EXIT_SCOPE(n$8,n$9,n$10,0$?%__sil_tmpSIL_temp_conditional___n$5,y); [line 12, column 3]\n " shape="box"] "dereference_ifthenelse.aa3447116ff03cffc729c06c91821cdc_15" -> "dereference_ifthenelse.aa3447116ff03cffc729c06c91821cdc_4" ; diff --git a/infer/tests/codetoanalyze/c/frontend/enumeration/enum.c.dot b/infer/tests/codetoanalyze/c/frontend/enumeration/enum.c.dot index f7a639c0e..84bad4efc 100644 --- a/infer/tests/codetoanalyze/c/frontend/enumeration/enum.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/enumeration/enum.c.dot @@ -11,7 +11,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; -"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$0=_fun___variable_initialization(&i:int) [line 24, column 3]\n *&i:int=(2 + (2 - 0)) [line 24, column 3]\n NULLIFY(&i); [line 24, column 3]\n EXIT_SCOPE(n$0,i); [line 24, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$0=_fun___variable_initialization(&i:int) assign_last [line 24, column 3]\n *&i:int=(2 + (2 - 0)) [line 24, column 3]\n NULLIFY(&i); [line 24, column 3]\n EXIT_SCOPE(n$0,i); [line 24, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; diff --git a/infer/tests/codetoanalyze/c/frontend/enumeration/enum_bitmask.c.dot b/infer/tests/codetoanalyze/c/frontend/enumeration/enum_bitmask.c.dot index 845d09f01..e61543c45 100644 --- a/infer/tests/codetoanalyze/c/frontend/enumeration/enum_bitmask.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/enumeration/enum_bitmask.c.dot @@ -7,11 +7,11 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_2" [label="2: Exit main \n " color=yellow style=filled] -"main.fad58de7366495db4650cfefac2fcd61_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&option2:int) [line 15, column 3]\n *&option2:int=(1 << 1) [line 15, column 3]\n NULLIFY(&option2); [line 15, column 3]\n EXIT_SCOPE(n$0,option2); [line 15, column 3]\n APPLY_ABSTRACTION; [line 15, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&option2:int) assign_last [line 15, column 3]\n *&option2:int=(1 << 1) [line 15, column 3]\n NULLIFY(&option2); [line 15, column 3]\n EXIT_SCOPE(n$0,option2); [line 15, column 3]\n APPLY_ABSTRACTION; [line 15, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; -"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&option1:int) [line 14, column 3]\n *&option1:int=(1 << 0) [line 14, column 3]\n NULLIFY(&option1); [line 14, column 3]\n EXIT_SCOPE(n$1,option1); [line 14, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&option1:int) assign_last [line 14, column 3]\n *&option1:int=(1 << 0) [line 14, column 3]\n NULLIFY(&option1); [line 14, column 3]\n EXIT_SCOPE(n$1,option1); [line 14, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; diff --git a/infer/tests/codetoanalyze/c/frontend/enumeration/other_enum.c.dot b/infer/tests/codetoanalyze/c/frontend/enumeration/other_enum.c.dot index 1f62e3065..16ef1474f 100644 --- a/infer/tests/codetoanalyze/c/frontend/enumeration/other_enum.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/enumeration/other_enum.c.dot @@ -7,31 +7,31 @@ digraph cfg { "other_enum_main.572f04969b0ade4902dd1faf86fac461_2" [label="2: Exit other_enum_main \n " color=yellow style=filled] -"other_enum_main.572f04969b0ade4902dd1faf86fac461_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&foo_g:int) [line 17, column 3]\n *&foo_g:int=(2 + 10) [line 17, column 3]\n NULLIFY(&foo_g); [line 17, column 3]\n EXIT_SCOPE(n$0,foo_g); [line 17, column 3]\n APPLY_ABSTRACTION; [line 17, column 3]\n " shape="box"] +"other_enum_main.572f04969b0ade4902dd1faf86fac461_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&foo_g:int) assign_last [line 17, column 3]\n *&foo_g:int=(2 + 10) [line 17, column 3]\n NULLIFY(&foo_g); [line 17, column 3]\n EXIT_SCOPE(n$0,foo_g); [line 17, column 3]\n APPLY_ABSTRACTION; [line 17, column 3]\n " shape="box"] "other_enum_main.572f04969b0ade4902dd1faf86fac461_3" -> "other_enum_main.572f04969b0ade4902dd1faf86fac461_2" ; -"other_enum_main.572f04969b0ade4902dd1faf86fac461_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&foo_f:int) [line 16, column 3]\n *&foo_f:int=2 [line 16, column 3]\n NULLIFY(&foo_f); [line 16, column 3]\n EXIT_SCOPE(n$1,foo_f); [line 16, column 3]\n " shape="box"] +"other_enum_main.572f04969b0ade4902dd1faf86fac461_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&foo_f:int) assign_last [line 16, column 3]\n *&foo_f:int=2 [line 16, column 3]\n NULLIFY(&foo_f); [line 16, column 3]\n EXIT_SCOPE(n$1,foo_f); [line 16, column 3]\n " shape="box"] "other_enum_main.572f04969b0ade4902dd1faf86fac461_4" -> "other_enum_main.572f04969b0ade4902dd1faf86fac461_3" ; -"other_enum_main.572f04969b0ade4902dd1faf86fac461_5" [label="5: DeclStmt \n n$2=_fun___variable_initialization(&foo_e:int) [line 15, column 3]\n *&foo_e:int=1 [line 15, column 3]\n NULLIFY(&foo_e); [line 15, column 3]\n EXIT_SCOPE(n$2,foo_e); [line 15, column 3]\n " shape="box"] +"other_enum_main.572f04969b0ade4902dd1faf86fac461_5" [label="5: DeclStmt \n n$2=_fun___variable_initialization(&foo_e:int) assign_last [line 15, column 3]\n *&foo_e:int=1 [line 15, column 3]\n NULLIFY(&foo_e); [line 15, column 3]\n EXIT_SCOPE(n$2,foo_e); [line 15, column 3]\n " shape="box"] "other_enum_main.572f04969b0ade4902dd1faf86fac461_5" -> "other_enum_main.572f04969b0ade4902dd1faf86fac461_4" ; -"other_enum_main.572f04969b0ade4902dd1faf86fac461_6" [label="6: DeclStmt \n n$3=_fun___variable_initialization(&foo_d:int) [line 14, column 3]\n *&foo_d:int=11 [line 14, column 3]\n NULLIFY(&foo_d); [line 14, column 3]\n EXIT_SCOPE(n$3,foo_d); [line 14, column 3]\n " shape="box"] +"other_enum_main.572f04969b0ade4902dd1faf86fac461_6" [label="6: DeclStmt \n n$3=_fun___variable_initialization(&foo_d:int) assign_last [line 14, column 3]\n *&foo_d:int=11 [line 14, column 3]\n NULLIFY(&foo_d); [line 14, column 3]\n EXIT_SCOPE(n$3,foo_d); [line 14, column 3]\n " shape="box"] "other_enum_main.572f04969b0ade4902dd1faf86fac461_6" -> "other_enum_main.572f04969b0ade4902dd1faf86fac461_5" ; -"other_enum_main.572f04969b0ade4902dd1faf86fac461_7" [label="7: DeclStmt \n n$4=_fun___variable_initialization(&foo_c:int) [line 13, column 3]\n *&foo_c:int=10 [line 13, column 3]\n NULLIFY(&foo_c); [line 13, column 3]\n EXIT_SCOPE(n$4,foo_c); [line 13, column 3]\n " shape="box"] +"other_enum_main.572f04969b0ade4902dd1faf86fac461_7" [label="7: DeclStmt \n n$4=_fun___variable_initialization(&foo_c:int) assign_last [line 13, column 3]\n *&foo_c:int=10 [line 13, column 3]\n NULLIFY(&foo_c); [line 13, column 3]\n EXIT_SCOPE(n$4,foo_c); [line 13, column 3]\n " shape="box"] "other_enum_main.572f04969b0ade4902dd1faf86fac461_7" -> "other_enum_main.572f04969b0ade4902dd1faf86fac461_6" ; -"other_enum_main.572f04969b0ade4902dd1faf86fac461_8" [label="8: DeclStmt \n n$5=_fun___variable_initialization(&foo_b:int) [line 12, column 3]\n *&foo_b:int=1 [line 12, column 3]\n NULLIFY(&foo_b); [line 12, column 3]\n EXIT_SCOPE(n$5,foo_b); [line 12, column 3]\n " shape="box"] +"other_enum_main.572f04969b0ade4902dd1faf86fac461_8" [label="8: DeclStmt \n n$5=_fun___variable_initialization(&foo_b:int) assign_last [line 12, column 3]\n *&foo_b:int=1 [line 12, column 3]\n NULLIFY(&foo_b); [line 12, column 3]\n EXIT_SCOPE(n$5,foo_b); [line 12, column 3]\n " shape="box"] "other_enum_main.572f04969b0ade4902dd1faf86fac461_8" -> "other_enum_main.572f04969b0ade4902dd1faf86fac461_7" ; -"other_enum_main.572f04969b0ade4902dd1faf86fac461_9" [label="9: DeclStmt \n n$6=_fun___variable_initialization(&foo_a:int) [line 11, column 3]\n *&foo_a:int=0 [line 11, column 3]\n NULLIFY(&foo_a); [line 11, column 3]\n EXIT_SCOPE(n$6,foo_a); [line 11, column 3]\n " shape="box"] +"other_enum_main.572f04969b0ade4902dd1faf86fac461_9" [label="9: DeclStmt \n n$6=_fun___variable_initialization(&foo_a:int) assign_last [line 11, column 3]\n *&foo_a:int=0 [line 11, column 3]\n NULLIFY(&foo_a); [line 11, column 3]\n EXIT_SCOPE(n$6,foo_a); [line 11, column 3]\n " shape="box"] "other_enum_main.572f04969b0ade4902dd1faf86fac461_9" -> "other_enum_main.572f04969b0ade4902dd1faf86fac461_8" ; @@ -71,11 +71,11 @@ digraph cfg { "other_enum_test.100f3583adf0259001be6c944828c44a_9" -> "other_enum_test.100f3583adf0259001be6c944828c44a_2" ; -"other_enum_test.100f3583adf0259001be6c944828c44a_10" [label="10: DeclStmt \n n$4=_fun___variable_initialization(&foo_a:int) [line 22, column 3]\n *&foo_a:int=0 [line 22, column 3]\n EXIT_SCOPE(n$4); [line 22, column 3]\n " shape="box"] +"other_enum_test.100f3583adf0259001be6c944828c44a_10" [label="10: DeclStmt \n n$4=_fun___variable_initialization(&foo_a:int) assign_last [line 22, column 3]\n *&foo_a:int=0 [line 22, column 3]\n EXIT_SCOPE(n$4); [line 22, column 3]\n " shape="box"] "other_enum_test.100f3583adf0259001be6c944828c44a_10" -> "other_enum_test.100f3583adf0259001be6c944828c44a_5" ; -"other_enum_test.100f3583adf0259001be6c944828c44a_11" [label="11: DeclStmt \n n$5=_fun___variable_initialization(&foo_g:int) [line 21, column 3]\n *&foo_g:int=(2 + 10) [line 21, column 3]\n EXIT_SCOPE(n$5); [line 21, column 3]\n " shape="box"] +"other_enum_test.100f3583adf0259001be6c944828c44a_11" [label="11: DeclStmt \n n$5=_fun___variable_initialization(&foo_g:int) assign_last [line 21, column 3]\n *&foo_g:int=(2 + 10) [line 21, column 3]\n EXIT_SCOPE(n$5); [line 21, column 3]\n " shape="box"] "other_enum_test.100f3583adf0259001be6c944828c44a_11" -> "other_enum_test.100f3583adf0259001be6c944828c44a_10" ; diff --git a/infer/tests/codetoanalyze/c/frontend/gotostmt/goto_ex.c.dot b/infer/tests/codetoanalyze/c/frontend/gotostmt/goto_ex.c.dot index 044af220a..0a0614881 100644 --- a/infer/tests/codetoanalyze/c/frontend/gotostmt/goto_ex.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/gotostmt/goto_ex.c.dot @@ -44,7 +44,7 @@ digraph cfg { "g0.8ac829e3bb8338d74cfb45ebe834d8e1_11" -> "g0.8ac829e3bb8338d74cfb45ebe834d8e1_8" ; -"g0.8ac829e3bb8338d74cfb45ebe834d8e1_12" [label="12: DeclStmt \n n$7=_fun___variable_initialization(&a:int) [line 13, column 3]\n *&a:int=0 [line 13, column 3]\n NULLIFY(&a); [line 13, column 3]\n EXIT_SCOPE(n$7,a); [line 13, column 3]\n " shape="box"] +"g0.8ac829e3bb8338d74cfb45ebe834d8e1_12" [label="12: DeclStmt \n n$7=_fun___variable_initialization(&a:int) assign_last [line 13, column 3]\n *&a:int=0 [line 13, column 3]\n NULLIFY(&a); [line 13, column 3]\n EXIT_SCOPE(n$7,a); [line 13, column 3]\n " shape="box"] "g0.8ac829e3bb8338d74cfb45ebe834d8e1_12" -> "g0.8ac829e3bb8338d74cfb45ebe834d8e1_9" ; @@ -88,7 +88,7 @@ digraph cfg { "g1.0120a4f9196a5f9eb9f523f31f914da7_10" -> "g1.0120a4f9196a5f9eb9f523f31f914da7_7" ; -"g1.0120a4f9196a5f9eb9f523f31f914da7_11" [label="11: DeclStmt \n n$5=_fun___variable_initialization(&a:int) [line 25, column 3]\n *&a:int=0 [line 25, column 3]\n NULLIFY(&a); [line 25, column 3]\n EXIT_SCOPE(n$5,a); [line 25, column 3]\n " shape="box"] +"g1.0120a4f9196a5f9eb9f523f31f914da7_11" [label="11: DeclStmt \n n$5=_fun___variable_initialization(&a:int) assign_last [line 25, column 3]\n *&a:int=0 [line 25, column 3]\n NULLIFY(&a); [line 25, column 3]\n EXIT_SCOPE(n$5,a); [line 25, column 3]\n " shape="box"] "g1.0120a4f9196a5f9eb9f523f31f914da7_11" -> "g1.0120a4f9196a5f9eb9f523f31f914da7_8" ; @@ -186,7 +186,7 @@ digraph cfg { "g2.e1c80488853d86ab9d6decfe30d8930f_23" -> "g2.e1c80488853d86ab9d6decfe30d8930f_20" ; -"g2.e1c80488853d86ab9d6decfe30d8930f_24" [label="24: DeclStmt \n n$15=_fun___variable_initialization(&a:int) [line 36, column 3]\n *&a:int=0 [line 36, column 3]\n NULLIFY(&a); [line 36, column 3]\n EXIT_SCOPE(n$15,a); [line 36, column 3]\n APPLY_ABSTRACTION; [line 36, column 3]\n " shape="box"] +"g2.e1c80488853d86ab9d6decfe30d8930f_24" [label="24: DeclStmt \n n$15=_fun___variable_initialization(&a:int) assign_last [line 36, column 3]\n *&a:int=0 [line 36, column 3]\n NULLIFY(&a); [line 36, column 3]\n EXIT_SCOPE(n$15,a); [line 36, column 3]\n APPLY_ABSTRACTION; [line 36, column 3]\n " shape="box"] "g2.e1c80488853d86ab9d6decfe30d8930f_24" -> "g2.e1c80488853d86ab9d6decfe30d8930f_14" ; @@ -213,7 +213,7 @@ digraph cfg { "g3.8a9fd7dfda802921fdc4079f9a528ce8_6" -> "g3.8a9fd7dfda802921fdc4079f9a528ce8_5" ; -"g3.8a9fd7dfda802921fdc4079f9a528ce8_7" [label="7: DeclStmt \n n$3=_fun___variable_initialization(&a:int) [line 71, column 3]\n *&a:int=2 [line 71, column 3]\n NULLIFY(&a); [line 71, column 3]\n EXIT_SCOPE(n$3,a); [line 71, column 3]\n " shape="box"] +"g3.8a9fd7dfda802921fdc4079f9a528ce8_7" [label="7: DeclStmt \n n$3=_fun___variable_initialization(&a:int) assign_last [line 71, column 3]\n *&a:int=2 [line 71, column 3]\n NULLIFY(&a); [line 71, column 3]\n EXIT_SCOPE(n$3,a); [line 71, column 3]\n " shape="box"] "g3.8a9fd7dfda802921fdc4079f9a528ce8_7" -> "g3.8a9fd7dfda802921fdc4079f9a528ce8_6" ; @@ -311,7 +311,7 @@ digraph cfg { "g4.b0b5c8f28ad7834e70a958a8882fa59a_6" -> "g4.b0b5c8f28ad7834e70a958a8882fa59a_5" ; -"g4.b0b5c8f28ad7834e70a958a8882fa59a_7" [label="7: DeclStmt \n n$3=_fun___variable_initialization(&a:int) [line 92, column 3]\n *&a:int=2 [line 92, column 3]\n NULLIFY(&a); [line 92, column 3]\n EXIT_SCOPE(n$3,a); [line 92, column 3]\n " shape="box"] +"g4.b0b5c8f28ad7834e70a958a8882fa59a_7" [label="7: DeclStmt \n n$3=_fun___variable_initialization(&a:int) assign_last [line 92, column 3]\n *&a:int=2 [line 92, column 3]\n NULLIFY(&a); [line 92, column 3]\n EXIT_SCOPE(n$3,a); [line 92, column 3]\n " shape="box"] "g4.b0b5c8f28ad7834e70a958a8882fa59a_7" -> "g4.b0b5c8f28ad7834e70a958a8882fa59a_6" ; @@ -409,7 +409,7 @@ digraph cfg { "g5.37c965a8d6d7bec292c7b11ff315d9ea_7" -> "g5.37c965a8d6d7bec292c7b11ff315d9ea_6" ; -"g5.37c965a8d6d7bec292c7b11ff315d9ea_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&a:int) [line 113, column 3]\n *&a:int=2 [line 113, column 3]\n NULLIFY(&a); [line 113, column 3]\n EXIT_SCOPE(n$4,a); [line 113, column 3]\n " shape="box"] +"g5.37c965a8d6d7bec292c7b11ff315d9ea_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&a:int) assign_last [line 113, column 3]\n *&a:int=2 [line 113, column 3]\n NULLIFY(&a); [line 113, column 3]\n EXIT_SCOPE(n$4,a); [line 113, column 3]\n " shape="box"] "g5.37c965a8d6d7bec292c7b11ff315d9ea_8" -> "g5.37c965a8d6d7bec292c7b11ff315d9ea_7" ; @@ -499,7 +499,7 @@ digraph cfg { "g6.4a4314ef967aad20a9e7c423bc16e39c_7" -> "g6.4a4314ef967aad20a9e7c423bc16e39c_6" ; -"g6.4a4314ef967aad20a9e7c423bc16e39c_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&a:int) [line 135, column 3]\n *&a:int=2 [line 135, column 3]\n NULLIFY(&a); [line 135, column 3]\n EXIT_SCOPE(n$4,a); [line 135, column 3]\n " shape="box"] +"g6.4a4314ef967aad20a9e7c423bc16e39c_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&a:int) assign_last [line 135, column 3]\n *&a:int=2 [line 135, column 3]\n NULLIFY(&a); [line 135, column 3]\n EXIT_SCOPE(n$4,a); [line 135, column 3]\n " shape="box"] "g6.4a4314ef967aad20a9e7c423bc16e39c_8" -> "g6.4a4314ef967aad20a9e7c423bc16e39c_7" ; @@ -606,7 +606,7 @@ digraph cfg { "g7.727bb92f57c3951d11695a52c92c2b0c_11" -> "g7.727bb92f57c3951d11695a52c92c2b0c_13" ; -"g7.727bb92f57c3951d11695a52c92c2b0c_12" [label="12: Prune (false branch, while) \n PRUNE(!(n$5 < 10), false); [line 146, column 10]\n NULLIFY(&j); [line 146, column 10]\n NULLIFY(&k); [line 146, column 10]\n NULLIFY(&i); [line 146, column 10]\n NULLIFY(&v); [line 146, column 10]\n EXIT_SCOPE(n$5,j,k,i,v); [line 146, column 10]\n APPLY_ABSTRACTION; [line 146, column 10]\n " shape="invhouse"] +"g7.727bb92f57c3951d11695a52c92c2b0c_12" [label="12: Prune (false branch, while) \n PRUNE(!(n$5 < 10), false); [line 146, column 10]\n NULLIFY(&j); [line 146, column 10]\n NULLIFY(&k); [line 146, column 10]\n NULLIFY(&i); [line 146, column 10]\n EXIT_SCOPE(n$5,j,k,i); [line 146, column 10]\n APPLY_ABSTRACTION; [line 146, column 10]\n " shape="invhouse"] "g7.727bb92f57c3951d11695a52c92c2b0c_12" -> "g7.727bb92f57c3951d11695a52c92c2b0c_8" ; @@ -648,12 +648,12 @@ digraph cfg { "g7.727bb92f57c3951d11695a52c92c2b0c_21" -> "g7.727bb92f57c3951d11695a52c92c2b0c_17" ; -"g7.727bb92f57c3951d11695a52c92c2b0c_22" [label="22: BinaryOperatorStmt: GE \n n$8=*&v:int [line 150, column 13]\n " shape="box"] +"g7.727bb92f57c3951d11695a52c92c2b0c_22" [label="22: BinaryOperatorStmt: GE \n n$8=*&v:int [line 150, column 13]\n NULLIFY(&v); [line 150, column 13]\n EXIT_SCOPE(v); [line 150, column 13]\n " shape="box"] "g7.727bb92f57c3951d11695a52c92c2b0c_22" -> "g7.727bb92f57c3951d11695a52c92c2b0c_23" ; "g7.727bb92f57c3951d11695a52c92c2b0c_22" -> "g7.727bb92f57c3951d11695a52c92c2b0c_24" ; -"g7.727bb92f57c3951d11695a52c92c2b0c_23" [label="23: Prune (true branch, if) \n PRUNE((n$8 >= 15), true); [line 150, column 13]\n NULLIFY(&j); [line 150, column 13]\n NULLIFY(&k); [line 150, column 13]\n NULLIFY(&i); [line 150, column 13]\n NULLIFY(&v); [line 150, column 13]\n EXIT_SCOPE(n$8,j,k,i,v); [line 150, column 13]\n APPLY_ABSTRACTION; [line 150, column 13]\n " shape="invhouse"] +"g7.727bb92f57c3951d11695a52c92c2b0c_23" [label="23: Prune (true branch, if) \n PRUNE((n$8 >= 15), true); [line 150, column 13]\n NULLIFY(&j); [line 150, column 13]\n NULLIFY(&k); [line 150, column 13]\n NULLIFY(&i); [line 150, column 13]\n EXIT_SCOPE(n$8,j,k,i); [line 150, column 13]\n APPLY_ABSTRACTION; [line 150, column 13]\n " shape="invhouse"] "g7.727bb92f57c3951d11695a52c92c2b0c_23" -> "g7.727bb92f57c3951d11695a52c92c2b0c_8" ; @@ -665,19 +665,19 @@ digraph cfg { "g7.727bb92f57c3951d11695a52c92c2b0c_25" -> "g7.727bb92f57c3951d11695a52c92c2b0c_5" ; -"g7.727bb92f57c3951d11695a52c92c2b0c_26" [label="26: DeclStmt \n n$18=_fun___variable_initialization(&v:int) [line 149, column 9]\n n$15=*&i:int [line 149, column 17]\n n$16=*&j:int [line 149, column 21]\n n$17=*&k:int [line 149, column 25]\n *&v:int=((n$15 + n$16) + n$17) [line 149, column 9]\n EXIT_SCOPE(n$15,n$16,n$17,n$18); [line 149, column 9]\n " shape="box"] +"g7.727bb92f57c3951d11695a52c92c2b0c_26" [label="26: DeclStmt \n n$18=_fun___variable_initialization(&v:int) assign_last [line 149, column 9]\n n$15=*&i:int [line 149, column 17]\n n$16=*&j:int [line 149, column 21]\n n$17=*&k:int [line 149, column 25]\n *&v:int=((n$15 + n$16) + n$17) [line 149, column 9]\n EXIT_SCOPE(n$15,n$16,n$17,n$18); [line 149, column 9]\n " shape="box"] "g7.727bb92f57c3951d11695a52c92c2b0c_26" -> "g7.727bb92f57c3951d11695a52c92c2b0c_22" ; -"g7.727bb92f57c3951d11695a52c92c2b0c_27" [label="27: DeclStmt \n n$22=_fun___variable_initialization(&k:int) [line 145, column 3]\n *&k:int=0 [line 145, column 3]\n EXIT_SCOPE(n$22); [line 145, column 3]\n APPLY_ABSTRACTION; [line 145, column 3]\n " shape="box"] +"g7.727bb92f57c3951d11695a52c92c2b0c_27" [label="27: DeclStmt \n n$22=_fun___variable_initialization(&k:int) assign_last [line 145, column 3]\n *&k:int=0 [line 145, column 3]\n EXIT_SCOPE(n$22); [line 145, column 3]\n APPLY_ABSTRACTION; [line 145, column 3]\n " shape="box"] "g7.727bb92f57c3951d11695a52c92c2b0c_27" -> "g7.727bb92f57c3951d11695a52c92c2b0c_9" ; -"g7.727bb92f57c3951d11695a52c92c2b0c_28" [label="28: DeclStmt \n n$23=_fun___variable_initialization(&j:int) [line 145, column 3]\n *&j:int=0 [line 145, column 3]\n EXIT_SCOPE(n$23); [line 145, column 3]\n " shape="box"] +"g7.727bb92f57c3951d11695a52c92c2b0c_28" [label="28: DeclStmt \n n$23=_fun___variable_initialization(&j:int) assign_last [line 145, column 3]\n *&j:int=0 [line 145, column 3]\n EXIT_SCOPE(n$23); [line 145, column 3]\n " shape="box"] "g7.727bb92f57c3951d11695a52c92c2b0c_28" -> "g7.727bb92f57c3951d11695a52c92c2b0c_27" ; -"g7.727bb92f57c3951d11695a52c92c2b0c_29" [label="29: DeclStmt \n n$24=_fun___variable_initialization(&i:int) [line 145, column 3]\n *&i:int=0 [line 145, column 3]\n EXIT_SCOPE(n$24); [line 145, column 3]\n " shape="box"] +"g7.727bb92f57c3951d11695a52c92c2b0c_29" [label="29: DeclStmt \n n$24=_fun___variable_initialization(&i:int) assign_last [line 145, column 3]\n *&i:int=0 [line 145, column 3]\n EXIT_SCOPE(n$24); [line 145, column 3]\n " shape="box"] "g7.727bb92f57c3951d11695a52c92c2b0c_29" -> "g7.727bb92f57c3951d11695a52c92c2b0c_28" ; @@ -721,7 +721,7 @@ digraph cfg { "g8.c98b82371573afc08575815d90f5eac4_10" -> "g8.c98b82371573afc08575815d90f5eac4_12" ; -"g8.c98b82371573afc08575815d90f5eac4_11" [label="11: Prune (false branch, while) \n PRUNE(!(n$4 < 10), false); [line 171, column 10]\n NULLIFY(&i); [line 171, column 10]\n NULLIFY(&j); [line 171, column 10]\n NULLIFY(&k); [line 171, column 10]\n NULLIFY(&v); [line 171, column 10]\n EXIT_SCOPE(n$4,i,j,k,v); [line 171, column 10]\n " shape="invhouse"] +"g8.c98b82371573afc08575815d90f5eac4_11" [label="11: Prune (false branch, while) \n PRUNE(!(n$4 < 10), false); [line 171, column 10]\n NULLIFY(&i); [line 171, column 10]\n NULLIFY(&j); [line 171, column 10]\n NULLIFY(&k); [line 171, column 10]\n EXIT_SCOPE(n$4,i,j,k); [line 171, column 10]\n " shape="invhouse"] "g8.c98b82371573afc08575815d90f5eac4_11" -> "g8.c98b82371573afc08575815d90f5eac4_7" ; @@ -763,7 +763,7 @@ digraph cfg { "g8.c98b82371573afc08575815d90f5eac4_20" -> "g8.c98b82371573afc08575815d90f5eac4_16" ; -"g8.c98b82371573afc08575815d90f5eac4_21" [label="21: BinaryOperatorStmt: GE \n n$7=*&v:int [line 175, column 13]\n " shape="box"] +"g8.c98b82371573afc08575815d90f5eac4_21" [label="21: BinaryOperatorStmt: GE \n n$7=*&v:int [line 175, column 13]\n NULLIFY(&v); [line 175, column 13]\n EXIT_SCOPE(v); [line 175, column 13]\n " shape="box"] "g8.c98b82371573afc08575815d90f5eac4_21" -> "g8.c98b82371573afc08575815d90f5eac4_22" ; @@ -784,7 +784,7 @@ digraph cfg { "g8.c98b82371573afc08575815d90f5eac4_25" -> "g8.c98b82371573afc08575815d90f5eac4_24" ; -"g8.c98b82371573afc08575815d90f5eac4_26" [label="26: DeclStmt \n n$15=_fun___variable_initialization(&v:int) [line 174, column 9]\n n$12=*&i:int [line 174, column 17]\n n$13=*&j:int [line 174, column 21]\n n$14=*&k:int [line 174, column 25]\n *&v:int=((n$12 + n$13) + n$14) [line 174, column 9]\n EXIT_SCOPE(n$12,n$13,n$14,n$15); [line 174, column 9]\n " shape="box"] +"g8.c98b82371573afc08575815d90f5eac4_26" [label="26: DeclStmt \n n$15=_fun___variable_initialization(&v:int) assign_last [line 174, column 9]\n n$12=*&i:int [line 174, column 17]\n n$13=*&j:int [line 174, column 21]\n n$14=*&k:int [line 174, column 25]\n *&v:int=((n$12 + n$13) + n$14) [line 174, column 9]\n EXIT_SCOPE(n$12,n$13,n$14,n$15); [line 174, column 9]\n " shape="box"] "g8.c98b82371573afc08575815d90f5eac4_26" -> "g8.c98b82371573afc08575815d90f5eac4_21" ; @@ -800,16 +800,16 @@ digraph cfg { "g8.c98b82371573afc08575815d90f5eac4_29" -> "g8.c98b82371573afc08575815d90f5eac4_27" ; -"g8.c98b82371573afc08575815d90f5eac4_30" [label="30: DeclStmt \n n$23=_fun___variable_initialization(&k:int) [line 168, column 3]\n *&k:int=0 [line 168, column 3]\n EXIT_SCOPE(n$23); [line 168, column 3]\n " shape="box"] +"g8.c98b82371573afc08575815d90f5eac4_30" [label="30: DeclStmt \n n$23=_fun___variable_initialization(&k:int) assign_last [line 168, column 3]\n *&k:int=0 [line 168, column 3]\n EXIT_SCOPE(n$23); [line 168, column 3]\n " shape="box"] "g8.c98b82371573afc08575815d90f5eac4_30" -> "g8.c98b82371573afc08575815d90f5eac4_28" ; "g8.c98b82371573afc08575815d90f5eac4_30" -> "g8.c98b82371573afc08575815d90f5eac4_29" ; -"g8.c98b82371573afc08575815d90f5eac4_31" [label="31: DeclStmt \n n$24=_fun___variable_initialization(&j:int) [line 168, column 3]\n *&j:int=0 [line 168, column 3]\n EXIT_SCOPE(n$24); [line 168, column 3]\n " shape="box"] +"g8.c98b82371573afc08575815d90f5eac4_31" [label="31: DeclStmt \n n$24=_fun___variable_initialization(&j:int) assign_last [line 168, column 3]\n *&j:int=0 [line 168, column 3]\n EXIT_SCOPE(n$24); [line 168, column 3]\n " shape="box"] "g8.c98b82371573afc08575815d90f5eac4_31" -> "g8.c98b82371573afc08575815d90f5eac4_30" ; -"g8.c98b82371573afc08575815d90f5eac4_32" [label="32: DeclStmt \n n$25=_fun___variable_initialization(&i:int) [line 168, column 3]\n *&i:int=0 [line 168, column 3]\n EXIT_SCOPE(n$25); [line 168, column 3]\n " shape="box"] +"g8.c98b82371573afc08575815d90f5eac4_32" [label="32: DeclStmt \n n$25=_fun___variable_initialization(&i:int) assign_last [line 168, column 3]\n *&i:int=0 [line 168, column 3]\n EXIT_SCOPE(n$25); [line 168, column 3]\n " shape="box"] "g8.c98b82371573afc08575815d90f5eac4_32" -> "g8.c98b82371573afc08575815d90f5eac4_31" ; diff --git a/infer/tests/codetoanalyze/c/frontend/initialization/array_initlistexpr.c.dot b/infer/tests/codetoanalyze/c/frontend/initialization/array_initlistexpr.c.dot index 89a196a43..193f23f21 100644 --- a/infer/tests/codetoanalyze/c/frontend/initialization/array_initlistexpr.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/initialization/array_initlistexpr.c.dot @@ -7,7 +7,7 @@ digraph cfg { "init_const_array.b1cf412cdbd1beaf15a9f6a3789043b9_2" [label="2: Exit init_const_array \n " color=yellow style=filled] -"init_const_array.b1cf412cdbd1beaf15a9f6a3789043b9_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&a:int[3*4][2*12]) [line 10, column 3]\n n$0=*&z:int [line 10, column 19]\n *&a[0][0]:int=(n$0 + 1) [line 10, column 18]\n *&a[0][1]:int=2 [line 10, column 18]\n *&a[0][2]:int=3 [line 10, column 18]\n *&a[1][0]:int=5 [line 10, column 33]\n *&a[1][1]:int=6 [line 10, column 33]\n *&a[1][2]:int=7 [line 10, column 33]\n NULLIFY(&z); [line 10, column 33]\n NULLIFY(&a); [line 10, column 33]\n EXIT_SCOPE(n$0,n$1,z,a); [line 10, column 33]\n APPLY_ABSTRACTION; [line 10, column 33]\n " shape="box"] +"init_const_array.b1cf412cdbd1beaf15a9f6a3789043b9_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&a:int[3*4][2*12]) assign_last [line 10, column 3]\n n$0=*&z:int [line 10, column 19]\n *&a[0][0]:int=(n$0 + 1) [line 10, column 18]\n *&a[0][1]:int=2 [line 10, column 18]\n *&a[0][2]:int=3 [line 10, column 18]\n *&a[1][0]:int=5 [line 10, column 33]\n *&a[1][1]:int=6 [line 10, column 33]\n *&a[1][2]:int=7 [line 10, column 33]\n NULLIFY(&z); [line 10, column 33]\n NULLIFY(&a); [line 10, column 33]\n EXIT_SCOPE(n$0,n$1,z,a); [line 10, column 33]\n APPLY_ABSTRACTION; [line 10, column 33]\n " shape="box"] "init_const_array.b1cf412cdbd1beaf15a9f6a3789043b9_3" -> "init_const_array.b1cf412cdbd1beaf15a9f6a3789043b9_2" ; @@ -22,7 +22,7 @@ digraph cfg { "init_variable_array.8cdc6857adcb1fd04fb6555d8ce3e4c1_3" -> "init_variable_array.8cdc6857adcb1fd04fb6555d8ce3e4c1_2" ; -"init_variable_array.8cdc6857adcb1fd04fb6555d8ce3e4c1_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:int) [line 14, column 3]\n n$3=*&len:int [line 14, column 15]\n *&x:int=(2 * n$3) [line 14, column 3]\n EXIT_SCOPE(n$3,n$4); [line 14, column 3]\n " shape="box"] +"init_variable_array.8cdc6857adcb1fd04fb6555d8ce3e4c1_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:int) assign_last [line 14, column 3]\n n$3=*&len:int [line 14, column 15]\n *&x:int=(2 * n$3) [line 14, column 3]\n EXIT_SCOPE(n$3,n$4); [line 14, column 3]\n " shape="box"] "init_variable_array.8cdc6857adcb1fd04fb6555d8ce3e4c1_4" -> "init_variable_array.8cdc6857adcb1fd04fb6555d8ce3e4c1_3" ; diff --git a/infer/tests/codetoanalyze/c/frontend/initialization/compound_literal.c.dot b/infer/tests/codetoanalyze/c/frontend/initialization/compound_literal.c.dot index c473a7695..9c66a9176 100644 --- a/infer/tests/codetoanalyze/c/frontend/initialization/compound_literal.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/initialization/compound_literal.c.dot @@ -22,7 +22,7 @@ digraph cfg { "init_with_compound_literal.745ef6cf3c32f7f18974c2c4fc6a8c9c_3" -> "init_with_compound_literal.745ef6cf3c32f7f18974c2c4fc6a8c9c_2" ; -"init_with_compound_literal.745ef6cf3c32f7f18974c2c4fc6a8c9c_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&p:point) [line 16, column 3]\n *&p.x:int=32 [line 16, column 34]\n *&p.y:int=52 [line 16, column 34]\n n$1=*&p:point [line 16, column 20]\n EXIT_SCOPE(n$1,n$2); [line 16, column 20]\n " shape="box"] +"init_with_compound_literal.745ef6cf3c32f7f18974c2c4fc6a8c9c_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&p:point) assign_last [line 16, column 3]\n *&p.x:int=32 [line 16, column 34]\n *&p.y:int=52 [line 16, column 34]\n n$1=*&p:point [line 16, column 20]\n EXIT_SCOPE(n$1,n$2); [line 16, column 20]\n " shape="box"] "init_with_compound_literal.745ef6cf3c32f7f18974c2c4fc6a8c9c_4" -> "init_with_compound_literal.745ef6cf3c32f7f18974c2c4fc6a8c9c_3" ; diff --git a/infer/tests/codetoanalyze/c/frontend/initialization/enum_initlistexpr.c.dot b/infer/tests/codetoanalyze/c/frontend/initialization/enum_initlistexpr.c.dot index 7bb3d2412..dca4f5871 100644 --- a/infer/tests/codetoanalyze/c/frontend/initialization/enum_initlistexpr.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/initialization/enum_initlistexpr.c.dot @@ -7,15 +7,15 @@ digraph cfg { "union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_2" [label="2: Exit union_initialize_FIXME \n " color=yellow style=filled] -"union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&set_f1_implicit:U) [line 15, column 3]\n NULLIFY(&set_f1_implicit); [line 15, column 3]\n EXIT_SCOPE(n$0,set_f1_implicit); [line 15, column 3]\n APPLY_ABSTRACTION; [line 15, column 3]\n " shape="box"] +"union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&set_f1_implicit:U) assign_last [line 15, column 3]\n NULLIFY(&set_f1_implicit); [line 15, column 3]\n EXIT_SCOPE(n$0,set_f1_implicit); [line 15, column 3]\n APPLY_ABSTRACTION; [line 15, column 3]\n " shape="box"] "union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_3" -> "union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_2" ; -"union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&set_f2:U) [line 14, column 3]\n NULLIFY(&set_f2); [line 14, column 3]\n EXIT_SCOPE(n$1,set_f2); [line 14, column 3]\n " shape="box"] +"union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&set_f2:U) assign_last [line 14, column 3]\n NULLIFY(&set_f2); [line 14, column 3]\n EXIT_SCOPE(n$1,set_f2); [line 14, column 3]\n " shape="box"] "union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_4" -> "union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_3" ; -"union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_5" [label="5: DeclStmt \n n$2=_fun___variable_initialization(&set_f1:U) [line 13, column 3]\n NULLIFY(&set_f1); [line 13, column 3]\n EXIT_SCOPE(n$2,set_f1); [line 13, column 3]\n " shape="box"] +"union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_5" [label="5: DeclStmt \n n$2=_fun___variable_initialization(&set_f1:U) assign_last [line 13, column 3]\n NULLIFY(&set_f1); [line 13, column 3]\n EXIT_SCOPE(n$2,set_f1); [line 13, column 3]\n " shape="box"] "union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_5" -> "union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_4" ; diff --git a/infer/tests/codetoanalyze/c/frontend/initialization/struct_initlistexpr.c.dot b/infer/tests/codetoanalyze/c/frontend/initialization/struct_initlistexpr.c.dot index e791682c8..565fb2bf7 100644 --- a/infer/tests/codetoanalyze/c/frontend/initialization/struct_initlistexpr.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/initialization/struct_initlistexpr.c.dot @@ -11,7 +11,7 @@ digraph cfg { "field_set_correctly.b8d9a4294a85d24818c312a099420dce_3" -> "field_set_correctly.b8d9a4294a85d24818c312a099420dce_2" ; -"field_set_correctly.b8d9a4294a85d24818c312a099420dce_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&e:Employee) [line 33, column 3]\n *&e.ssn:int=12 [line 33, column 23]\n *&e.salary:float=3000.5 [line 33, column 23]\n *&e.doj.date:int=12 [line 33, column 37]\n *&e.doj.month:int=12 [line 33, column 37]\n *&e.doj.year:int=2010 [line 33, column 37]\n EXIT_SCOPE(n$1); [line 33, column 37]\n " shape="box"] +"field_set_correctly.b8d9a4294a85d24818c312a099420dce_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&e:Employee) assign_last [line 33, column 3]\n *&e.ssn:int=12 [line 33, column 23]\n *&e.salary:float=3000.5 [line 33, column 23]\n *&e.doj.date:int=12 [line 33, column 37]\n *&e.doj.month:int=12 [line 33, column 37]\n *&e.doj.year:int=2010 [line 33, column 37]\n EXIT_SCOPE(n$1); [line 33, column 37]\n " shape="box"] "field_set_correctly.b8d9a4294a85d24818c312a099420dce_4" -> "field_set_correctly.b8d9a4294a85d24818c312a099420dce_3" ; @@ -48,7 +48,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_2" [label="2: Exit main \n " color=yellow style=filled] -"main.fad58de7366495db4650cfefac2fcd61_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&p:Point) [line 15, column 14]\n *&p.x:int=1 [line 15, column 31]\n n$0=_fun_foo() [line 15, column 35]\n *&p.y:int=(n$0 + 3) [line 15, column 31]\n NULLIFY(&p); [line 15, column 31]\n EXIT_SCOPE(n$0,n$1,p); [line 15, column 31]\n APPLY_ABSTRACTION; [line 15, column 31]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&p:Point) assign_last [line 15, column 14]\n *&p.x:int=1 [line 15, column 31]\n n$0=_fun_foo() [line 15, column 35]\n *&p.y:int=(n$0 + 3) [line 15, column 31]\n NULLIFY(&p); [line 15, column 31]\n EXIT_SCOPE(n$0,n$1,p); [line 15, column 31]\n APPLY_ABSTRACTION; [line 15, column 31]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/do_while.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/do_while.c.dot index 2c56b4f0e..ca9daaadf 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/do_while.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/do_while.c.dot @@ -32,11 +32,11 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_8" -> "main.fad58de7366495db4650cfefac2fcd61_5" ; -"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$2=_fun___variable_initialization(&b:int) [line 10, column 3]\n *&b:int=0 [line 10, column 3]\n EXIT_SCOPE(n$2); [line 10, column 3]\n APPLY_ABSTRACTION; [line 10, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$2=_fun___variable_initialization(&b:int) assign_last [line 10, column 3]\n *&b:int=0 [line 10, column 3]\n EXIT_SCOPE(n$2); [line 10, column 3]\n APPLY_ABSTRACTION; [line 10, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_9" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; -"main.fad58de7366495db4650cfefac2fcd61_10" [label="10: DeclStmt \n n$3=_fun___variable_initialization(&a:int) [line 9, column 3]\n *&a:int=10 [line 9, column 3]\n NULLIFY(&a); [line 9, column 3]\n EXIT_SCOPE(n$3,a); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_10" [label="10: DeclStmt \n n$3=_fun___variable_initialization(&a:int) assign_last [line 9, column 3]\n *&a:int=10 [line 9, column 3]\n NULLIFY(&a); [line 9, column 3]\n EXIT_SCOPE(n$3,a); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_10" -> "main.fad58de7366495db4650cfefac2fcd61_9" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/do_while_condition_side_effects.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/do_while_condition_side_effects.c.dot index f75d5c22e..5cfdd42c1 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/do_while_condition_side_effects.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/do_while_condition_side_effects.c.dot @@ -32,11 +32,11 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_8" -> "main.fad58de7366495db4650cfefac2fcd61_5" ; -"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$2=_fun___variable_initialization(&b:int) [line 10, column 3]\n *&b:int=0 [line 10, column 3]\n NULLIFY(&b); [line 10, column 3]\n EXIT_SCOPE(n$2,b); [line 10, column 3]\n APPLY_ABSTRACTION; [line 10, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$2=_fun___variable_initialization(&b:int) assign_last [line 10, column 3]\n *&b:int=0 [line 10, column 3]\n NULLIFY(&b); [line 10, column 3]\n EXIT_SCOPE(n$2,b); [line 10, column 3]\n APPLY_ABSTRACTION; [line 10, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_9" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; -"main.fad58de7366495db4650cfefac2fcd61_10" [label="10: DeclStmt \n n$3=_fun___variable_initialization(&a:int) [line 9, column 3]\n *&a:int=10 [line 9, column 3]\n NULLIFY(&a); [line 9, column 3]\n EXIT_SCOPE(n$3,a); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_10" [label="10: DeclStmt \n n$3=_fun___variable_initialization(&a:int) assign_last [line 9, column 3]\n *&a:int=10 [line 9, column 3]\n NULLIFY(&a); [line 9, column 3]\n EXIT_SCOPE(n$3,a); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_10" -> "main.fad58de7366495db4650cfefac2fcd61_9" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/do_while_nested.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/do_while_nested.c.dot index 0b61fcf7b..5e4cad25e 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/do_while_nested.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/do_while_nested.c.dot @@ -53,11 +53,11 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_13" -> "main.fad58de7366495db4650cfefac2fcd61_8" ; -"main.fad58de7366495db4650cfefac2fcd61_14" [label="14: DeclStmt \n n$4=_fun___variable_initialization(&b:int) [line 10, column 3]\n *&b:int=0 [line 10, column 3]\n EXIT_SCOPE(n$4); [line 10, column 3]\n APPLY_ABSTRACTION; [line 10, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_14" [label="14: DeclStmt \n n$4=_fun___variable_initialization(&b:int) assign_last [line 10, column 3]\n *&b:int=0 [line 10, column 3]\n EXIT_SCOPE(n$4); [line 10, column 3]\n APPLY_ABSTRACTION; [line 10, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_14" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; -"main.fad58de7366495db4650cfefac2fcd61_15" [label="15: DeclStmt \n n$5=_fun___variable_initialization(&a:int) [line 9, column 3]\n *&a:int=10 [line 9, column 3]\n NULLIFY(&a); [line 9, column 3]\n EXIT_SCOPE(n$5,a); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_15" [label="15: DeclStmt \n n$5=_fun___variable_initialization(&a:int) assign_last [line 9, column 3]\n *&a:int=10 [line 9, column 3]\n NULLIFY(&a); [line 9, column 3]\n EXIT_SCOPE(n$5,a); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_15" -> "main.fad58de7366495db4650cfefac2fcd61_14" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/for_condition_side_effects.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/for_condition_side_effects.c.dot index cf7945a5b..a7067f7f8 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/for_condition_side_effects.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/for_condition_side_effects.c.dot @@ -15,7 +15,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_7" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$0=_fun___variable_initialization(&b:int) [line 11, column 8]\n *&b:int=3 [line 11, column 8]\n NULLIFY(&b); [line 11, column 8]\n EXIT_SCOPE(n$0,b); [line 11, column 8]\n APPLY_ABSTRACTION; [line 11, column 8]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$0=_fun___variable_initialization(&b:int) assign_last [line 11, column 8]\n *&b:int=3 [line 11, column 8]\n NULLIFY(&b); [line 11, column 8]\n EXIT_SCOPE(n$0,b); [line 11, column 8]\n APPLY_ABSTRACTION; [line 11, column 8]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; @@ -40,11 +40,11 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_10" -> "main.fad58de7366495db4650cfefac2fcd61_6" ; -"main.fad58de7366495db4650cfefac2fcd61_11" [label="11: DeclStmt \n n$6=_fun___variable_initialization(&i:int) [line 10, column 3]\n *&i:int=0 [line 10, column 3]\n EXIT_SCOPE(n$6); [line 10, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_11" [label="11: DeclStmt \n n$6=_fun___variable_initialization(&i:int) assign_last [line 10, column 3]\n *&i:int=0 [line 10, column 3]\n EXIT_SCOPE(n$6); [line 10, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_11" -> "main.fad58de7366495db4650cfefac2fcd61_5" ; -"main.fad58de7366495db4650cfefac2fcd61_12" [label="12: DeclStmt \n n$7=_fun___variable_initialization(&j:int) [line 9, column 3]\n *&j:int=0 [line 9, column 3]\n EXIT_SCOPE(n$7); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_12" [label="12: DeclStmt \n n$7=_fun___variable_initialization(&j:int) assign_last [line 9, column 3]\n *&j:int=0 [line 9, column 3]\n EXIT_SCOPE(n$7); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_12" -> "main.fad58de7366495db4650cfefac2fcd61_11" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/for_nested.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/for_nested.c.dot index 119575e8f..a585f4f10 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/for_nested.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/for_nested.c.dot @@ -15,7 +15,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_7" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$1=_fun___variable_initialization(&i:int) [line 10, column 8]\n *&i:int=0 [line 10, column 8]\n EXIT_SCOPE(n$1); [line 10, column 8]\n APPLY_ABSTRACTION; [line 10, column 8]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$1=_fun___variable_initialization(&i:int) assign_last [line 10, column 8]\n *&i:int=0 [line 10, column 8]\n EXIT_SCOPE(n$1); [line 10, column 8]\n APPLY_ABSTRACTION; [line 10, column 8]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; @@ -32,7 +32,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_8" -> "main.fad58de7366495db4650cfefac2fcd61_11" ; -"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: Prune (false branch, for loop) \n PRUNE(!(n$3 < 10), false); [line 10, column 19]\n NULLIFY(&i); [line 10, column 19]\n NULLIFY(&j); [line 10, column 19]\n EXIT_SCOPE(n$3,i,j); [line 10, column 19]\n " shape="invhouse"] +"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: Prune (false branch, for loop) \n PRUNE(!(n$3 < 10), false); [line 10, column 19]\n NULLIFY(&i); [line 10, column 19]\n EXIT_SCOPE(n$3,i); [line 10, column 19]\n " shape="invhouse"] "main.fad58de7366495db4650cfefac2fcd61_9" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; @@ -40,7 +40,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_10" -> "main.fad58de7366495db4650cfefac2fcd61_13" ; -"main.fad58de7366495db4650cfefac2fcd61_11" [label="11: DeclStmt \n n$4=_fun___variable_initialization(&j:int) [line 11, column 10]\n *&j:int=0 [line 11, column 10]\n EXIT_SCOPE(n$4); [line 11, column 10]\n APPLY_ABSTRACTION; [line 11, column 10]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_11" [label="11: DeclStmt \n n$4=_fun___variable_initialization(&j:int) assign_last [line 11, column 10]\n *&j:int=0 [line 11, column 10]\n EXIT_SCOPE(n$4); [line 11, column 10]\n APPLY_ABSTRACTION; [line 11, column 10]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_11" -> "main.fad58de7366495db4650cfefac2fcd61_10" ; @@ -57,7 +57,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_14" -> "main.fad58de7366495db4650cfefac2fcd61_16" ; -"main.fad58de7366495db4650cfefac2fcd61_15" [label="15: Prune (false branch, for loop) \n PRUNE(!(n$6 < 10), false); [line 11, column 21]\n EXIT_SCOPE(n$6); [line 11, column 21]\n " shape="invhouse"] +"main.fad58de7366495db4650cfefac2fcd61_15" [label="15: Prune (false branch, for loop) \n PRUNE(!(n$6 < 10), false); [line 11, column 21]\n NULLIFY(&j); [line 11, column 21]\n EXIT_SCOPE(n$6,j); [line 11, column 21]\n " shape="invhouse"] "main.fad58de7366495db4650cfefac2fcd61_15" -> "main.fad58de7366495db4650cfefac2fcd61_6" ; @@ -65,7 +65,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_16" -> "main.fad58de7366495db4650cfefac2fcd61_12" ; -"main.fad58de7366495db4650cfefac2fcd61_17" [label="17: DeclStmt \n n$11=_fun___variable_initialization(&k:int) [line 9, column 3]\n *&k:int=0 [line 9, column 3]\n EXIT_SCOPE(n$11); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_17" [label="17: DeclStmt \n n$11=_fun___variable_initialization(&k:int) assign_last [line 9, column 3]\n *&k:int=0 [line 9, column 3]\n EXIT_SCOPE(n$11); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_17" -> "main.fad58de7366495db4650cfefac2fcd61_5" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/for_no_condition.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/for_no_condition.c.dot index 0d4c355df..6c0b1876e 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/for_no_condition.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/for_no_condition.c.dot @@ -16,7 +16,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_7" ; "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_8" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$0=_fun___variable_initialization(&b:int) [line 10, column 8]\n *&b:int=0 [line 10, column 8]\n EXIT_SCOPE(n$0); [line 10, column 8]\n APPLY_ABSTRACTION; [line 10, column 8]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$0=_fun___variable_initialization(&b:int) assign_last [line 10, column 8]\n *&b:int=0 [line 10, column 8]\n EXIT_SCOPE(n$0); [line 10, column 8]\n APPLY_ABSTRACTION; [line 10, column 8]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; @@ -36,7 +36,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_9" -> "main.fad58de7366495db4650cfefac2fcd61_6" ; -"main.fad58de7366495db4650cfefac2fcd61_10" [label="10: DeclStmt \n n$5=_fun___variable_initialization(&j:int) [line 9, column 3]\n *&j:int=0 [line 9, column 3]\n EXIT_SCOPE(n$5); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_10" [label="10: DeclStmt \n n$5=_fun___variable_initialization(&j:int) assign_last [line 9, column 3]\n *&j:int=0 [line 9, column 3]\n EXIT_SCOPE(n$5); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_10" -> "main.fad58de7366495db4650cfefac2fcd61_5" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/for_no_condition_incr.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/for_no_condition_incr.c.dot index eb121cb04..537d181a4 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/for_no_condition_incr.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/for_no_condition_incr.c.dot @@ -16,7 +16,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_6" ; "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_7" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$0=_fun___variable_initialization(&b:int) [line 10, column 8]\n *&b:int=0 [line 10, column 8]\n NULLIFY(&b); [line 10, column 8]\n EXIT_SCOPE(n$0,b); [line 10, column 8]\n APPLY_ABSTRACTION; [line 10, column 8]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$0=_fun___variable_initialization(&b:int) assign_last [line 10, column 8]\n *&b:int=0 [line 10, column 8]\n NULLIFY(&b); [line 10, column 8]\n EXIT_SCOPE(n$0,b); [line 10, column 8]\n APPLY_ABSTRACTION; [line 10, column 8]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; @@ -32,7 +32,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_8" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; -"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$5=_fun___variable_initialization(&j:int) [line 9, column 3]\n *&j:int=0 [line 9, column 3]\n EXIT_SCOPE(n$5); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$5=_fun___variable_initialization(&j:int) assign_last [line 9, column 3]\n *&j:int=0 [line 9, column 3]\n EXIT_SCOPE(n$5); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_9" -> "main.fad58de7366495db4650cfefac2fcd61_5" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/for_no_condition_incr_body.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/for_no_condition_incr_body.c.dot index 4515a0a4b..b347b2c49 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/for_no_condition_incr_body.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/for_no_condition_incr_body.c.dot @@ -28,7 +28,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_7" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; -"main.fad58de7366495db4650cfefac2fcd61_8" [label="8: DeclStmt \n n$3=_fun___variable_initialization(&d:int) [line 9, column 3]\n *&d:int=0 [line 9, column 3]\n NULLIFY(&d); [line 9, column 3]\n EXIT_SCOPE(n$3,d); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_8" [label="8: DeclStmt \n n$3=_fun___variable_initialization(&d:int) assign_last [line 9, column 3]\n *&d:int=0 [line 9, column 3]\n NULLIFY(&d); [line 9, column 3]\n EXIT_SCOPE(n$3,d); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_8" -> "main.fad58de7366495db4650cfefac2fcd61_5" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/for_only_body.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/for_only_body.c.dot index a20344b2f..7a06c218a 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/for_only_body.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/for_only_body.c.dot @@ -28,7 +28,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_7" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; -"main.fad58de7366495db4650cfefac2fcd61_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&i:int) [line 9, column 3]\n *&i:int=0 [line 9, column 3]\n EXIT_SCOPE(n$4); [line 9, column 3]\n APPLY_ABSTRACTION; [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&i:int) assign_last [line 9, column 3]\n *&i:int=0 [line 9, column 3]\n EXIT_SCOPE(n$4); [line 9, column 3]\n APPLY_ABSTRACTION; [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_8" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/for_simple.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/for_simple.c.dot index d94c0dc56..d502d9504 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/for_simple.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/for_simple.c.dot @@ -15,7 +15,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_7" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$0=_fun___variable_initialization(&i:int) [line 10, column 8]\n *&i:int=0 [line 10, column 8]\n EXIT_SCOPE(n$0); [line 10, column 8]\n APPLY_ABSTRACTION; [line 10, column 8]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$0=_fun___variable_initialization(&i:int) assign_last [line 10, column 8]\n *&i:int=0 [line 10, column 8]\n EXIT_SCOPE(n$0); [line 10, column 8]\n APPLY_ABSTRACTION; [line 10, column 8]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; @@ -40,7 +40,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_10" -> "main.fad58de7366495db4650cfefac2fcd61_6" ; -"main.fad58de7366495db4650cfefac2fcd61_11" [label="11: DeclStmt \n n$6=_fun___variable_initialization(&j:int) [line 9, column 3]\n *&j:int=0 [line 9, column 3]\n EXIT_SCOPE(n$6); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_11" [label="11: DeclStmt \n n$6=_fun___variable_initialization(&j:int) assign_last [line 9, column 3]\n *&j:int=0 [line 9, column 3]\n EXIT_SCOPE(n$6); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_11" -> "main.fad58de7366495db4650cfefac2fcd61_5" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/for_while_nested.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/for_while_nested.c.dot index dca20b446..a8c670ebf 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/for_while_nested.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/for_while_nested.c.dot @@ -15,7 +15,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_7" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$1=_fun___variable_initialization(&i:int) [line 10, column 8]\n *&i:int=0 [line 10, column 8]\n EXIT_SCOPE(n$1); [line 10, column 8]\n APPLY_ABSTRACTION; [line 10, column 8]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$1=_fun___variable_initialization(&i:int) assign_last [line 10, column 8]\n *&i:int=0 [line 10, column 8]\n EXIT_SCOPE(n$1); [line 10, column 8]\n APPLY_ABSTRACTION; [line 10, column 8]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; @@ -57,7 +57,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_14" -> "main.fad58de7366495db4650cfefac2fcd61_10" ; -"main.fad58de7366495db4650cfefac2fcd61_15" [label="15: DeclStmt \n n$8=_fun___variable_initialization(&k:int) [line 9, column 3]\n *&k:int=0 [line 9, column 3]\n EXIT_SCOPE(n$8); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_15" [label="15: DeclStmt \n n$8=_fun___variable_initialization(&k:int) assign_last [line 9, column 3]\n *&k:int=0 [line 9, column 3]\n EXIT_SCOPE(n$8); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_15" -> "main.fad58de7366495db4650cfefac2fcd61_5" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/while.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/while.c.dot index c72e5b981..6d2e95d2f 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/while.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/while.c.dot @@ -32,7 +32,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_8" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; -"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$3=_fun___variable_initialization(&i:int) [line 9, column 3]\n *&i:int=0 [line 9, column 3]\n EXIT_SCOPE(n$3); [line 9, column 3]\n APPLY_ABSTRACTION; [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$3=_fun___variable_initialization(&i:int) assign_last [line 9, column 3]\n *&i:int=0 [line 9, column 3]\n EXIT_SCOPE(n$3); [line 9, column 3]\n APPLY_ABSTRACTION; [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_9" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/while_condition_side_effects.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/while_condition_side_effects.c.dot index a055eccbb..aaec02476 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/while_condition_side_effects.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/while_condition_side_effects.c.dot @@ -32,7 +32,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_8" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; -"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$3=_fun___variable_initialization(&i:int) [line 9, column 3]\n *&i:int=0 [line 9, column 3]\n NULLIFY(&i); [line 9, column 3]\n EXIT_SCOPE(n$3,i); [line 9, column 3]\n APPLY_ABSTRACTION; [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$3=_fun___variable_initialization(&i:int) assign_last [line 9, column 3]\n *&i:int=0 [line 9, column 3]\n NULLIFY(&i); [line 9, column 3]\n EXIT_SCOPE(n$3,i); [line 9, column 3]\n APPLY_ABSTRACTION; [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_9" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/while_nested.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/while_nested.c.dot index 6b9b48c6c..09d8fb2d1 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/while_nested.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/while_nested.c.dot @@ -53,11 +53,11 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_13" -> "main.fad58de7366495db4650cfefac2fcd61_9" ; -"main.fad58de7366495db4650cfefac2fcd61_14" [label="14: DeclStmt \n n$6=_fun___variable_initialization(&k:int) [line 10, column 3]\n *&k:int=0 [line 10, column 3]\n EXIT_SCOPE(n$6); [line 10, column 3]\n APPLY_ABSTRACTION; [line 10, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_14" [label="14: DeclStmt \n n$6=_fun___variable_initialization(&k:int) assign_last [line 10, column 3]\n *&k:int=0 [line 10, column 3]\n EXIT_SCOPE(n$6); [line 10, column 3]\n APPLY_ABSTRACTION; [line 10, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_14" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; -"main.fad58de7366495db4650cfefac2fcd61_15" [label="15: DeclStmt \n n$7=_fun___variable_initialization(&i:int) [line 9, column 3]\n *&i:int=0 [line 9, column 3]\n EXIT_SCOPE(n$7); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_15" [label="15: DeclStmt \n n$7=_fun___variable_initialization(&i:int) assign_last [line 9, column 3]\n *&i:int=0 [line 9, column 3]\n EXIT_SCOPE(n$7); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_15" -> "main.fad58de7366495db4650cfefac2fcd61_14" ; diff --git a/infer/tests/codetoanalyze/c/frontend/loops/while_with_continue_and_break.c.dot b/infer/tests/codetoanalyze/c/frontend/loops/while_with_continue_and_break.c.dot index 520da38cd..b57d04023 100644 --- a/infer/tests/codetoanalyze/c/frontend/loops/while_with_continue_and_break.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/loops/while_with_continue_and_break.c.dot @@ -75,7 +75,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_18" -> "main.fad58de7366495db4650cfefac2fcd61_15" ; -"main.fad58de7366495db4650cfefac2fcd61_19" [label="19: DeclStmt \n n$11=_fun___variable_initialization(&x:int) [line 9, column 3]\n *&x:int=0 [line 9, column 3]\n EXIT_SCOPE(n$11); [line 9, column 3]\n APPLY_ABSTRACTION; [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_19" [label="19: DeclStmt \n n$11=_fun___variable_initialization(&x:int) assign_last [line 9, column 3]\n *&x:int=0 [line 9, column 3]\n EXIT_SCOPE(n$11); [line 9, column 3]\n APPLY_ABSTRACTION; [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_19" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; diff --git a/infer/tests/codetoanalyze/c/frontend/nestedoperators/assign_with_increment.c.dot b/infer/tests/codetoanalyze/c/frontend/nestedoperators/assign_with_increment.c.dot index 647f483eb..cc8de4931 100644 --- a/infer/tests/codetoanalyze/c/frontend/nestedoperators/assign_with_increment.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/nestedoperators/assign_with_increment.c.dot @@ -7,23 +7,23 @@ digraph cfg { "test.098f6bcd4621d373cade4e832627b4f6_2" [label="2: Exit test \n " color=yellow style=filled] -"test.098f6bcd4621d373cade4e832627b4f6_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&e:int) [line 13, column 3]\n n$0=*&a:int [line 13, column 11]\n *&a:int=(n$0 - 1) [line 13, column 11]\n *&e:int=n$0 [line 13, column 3]\n NULLIFY(&a); [line 13, column 3]\n NULLIFY(&e); [line 13, column 3]\n EXIT_SCOPE(n$0,n$1,a,e); [line 13, column 3]\n APPLY_ABSTRACTION; [line 13, column 3]\n " shape="box"] +"test.098f6bcd4621d373cade4e832627b4f6_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&e:int) assign_last [line 13, column 3]\n n$0=*&a:int [line 13, column 11]\n *&a:int=(n$0 - 1) [line 13, column 11]\n *&e:int=n$0 [line 13, column 3]\n NULLIFY(&a); [line 13, column 3]\n NULLIFY(&e); [line 13, column 3]\n EXIT_SCOPE(n$0,n$1,a,e); [line 13, column 3]\n APPLY_ABSTRACTION; [line 13, column 3]\n " shape="box"] "test.098f6bcd4621d373cade4e832627b4f6_3" -> "test.098f6bcd4621d373cade4e832627b4f6_2" ; -"test.098f6bcd4621d373cade4e832627b4f6_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&d:int) [line 12, column 3]\n n$2=*&a:int [line 12, column 11]\n *&a:int=(n$2 - 1) [line 12, column 11]\n *&d:int=(n$2 - 1) [line 12, column 3]\n NULLIFY(&d); [line 12, column 3]\n EXIT_SCOPE(n$2,n$3,d); [line 12, column 3]\n " shape="box"] +"test.098f6bcd4621d373cade4e832627b4f6_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&d:int) assign_last [line 12, column 3]\n n$2=*&a:int [line 12, column 11]\n *&a:int=(n$2 - 1) [line 12, column 11]\n *&d:int=(n$2 - 1) [line 12, column 3]\n NULLIFY(&d); [line 12, column 3]\n EXIT_SCOPE(n$2,n$3,d); [line 12, column 3]\n " shape="box"] "test.098f6bcd4621d373cade4e832627b4f6_4" -> "test.098f6bcd4621d373cade4e832627b4f6_3" ; -"test.098f6bcd4621d373cade4e832627b4f6_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&c:int) [line 11, column 3]\n n$4=*&a:int [line 11, column 11]\n *&a:int=(n$4 + 1) [line 11, column 11]\n *&c:int=n$4 [line 11, column 3]\n NULLIFY(&c); [line 11, column 3]\n EXIT_SCOPE(n$4,n$5,c); [line 11, column 3]\n " shape="box"] +"test.098f6bcd4621d373cade4e832627b4f6_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&c:int) assign_last [line 11, column 3]\n n$4=*&a:int [line 11, column 11]\n *&a:int=(n$4 + 1) [line 11, column 11]\n *&c:int=n$4 [line 11, column 3]\n NULLIFY(&c); [line 11, column 3]\n EXIT_SCOPE(n$4,n$5,c); [line 11, column 3]\n " shape="box"] "test.098f6bcd4621d373cade4e832627b4f6_5" -> "test.098f6bcd4621d373cade4e832627b4f6_4" ; -"test.098f6bcd4621d373cade4e832627b4f6_6" [label="6: DeclStmt \n n$7=_fun___variable_initialization(&b:int) [line 10, column 3]\n n$6=*&a:int [line 10, column 11]\n *&a:int=(n$6 + 1) [line 10, column 11]\n *&b:int=(n$6 + 1) [line 10, column 3]\n NULLIFY(&b); [line 10, column 3]\n EXIT_SCOPE(n$6,n$7,b); [line 10, column 3]\n " shape="box"] +"test.098f6bcd4621d373cade4e832627b4f6_6" [label="6: DeclStmt \n n$7=_fun___variable_initialization(&b:int) assign_last [line 10, column 3]\n n$6=*&a:int [line 10, column 11]\n *&a:int=(n$6 + 1) [line 10, column 11]\n *&b:int=(n$6 + 1) [line 10, column 3]\n NULLIFY(&b); [line 10, column 3]\n EXIT_SCOPE(n$6,n$7,b); [line 10, column 3]\n " shape="box"] "test.098f6bcd4621d373cade4e832627b4f6_6" -> "test.098f6bcd4621d373cade4e832627b4f6_5" ; -"test.098f6bcd4621d373cade4e832627b4f6_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&a:int) [line 9, column 3]\n *&a:int=3 [line 9, column 3]\n EXIT_SCOPE(n$8); [line 9, column 3]\n " shape="box"] +"test.098f6bcd4621d373cade4e832627b4f6_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&a:int) assign_last [line 9, column 3]\n *&a:int=3 [line 9, column 3]\n EXIT_SCOPE(n$8); [line 9, column 3]\n " shape="box"] "test.098f6bcd4621d373cade4e832627b4f6_7" -> "test.098f6bcd4621d373cade4e832627b4f6_6" ; diff --git a/infer/tests/codetoanalyze/c/frontend/nestedoperators/gnuexpr.c.dot b/infer/tests/codetoanalyze/c/frontend/nestedoperators/gnuexpr.c.dot index b158f13d9..99cf66baf 100644 --- a/infer/tests/codetoanalyze/c/frontend/nestedoperators/gnuexpr.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/nestedoperators/gnuexpr.c.dot @@ -15,7 +15,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_6" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$1=_fun___variable_initialization(&X:int) [line 12, column 5]\n *&X:int=4 [line 12, column 5]\n EXIT_SCOPE(n$1); [line 12, column 5]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$1=_fun___variable_initialization(&X:int) assign_last [line 12, column 5]\n *&X:int=4 [line 12, column 5]\n EXIT_SCOPE(n$1); [line 12, column 5]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; @@ -23,7 +23,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_6" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; -"main.fad58de7366495db4650cfefac2fcd61_7" [label="7: DeclStmt \n n$2=_fun___variable_initialization(&y:int) [line 9, column 3]\n *&y:int=3 [line 9, column 3]\n NULLIFY(&y); [line 9, column 3]\n EXIT_SCOPE(n$2,y); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_7" [label="7: DeclStmt \n n$2=_fun___variable_initialization(&y:int) assign_last [line 9, column 3]\n *&y:int=3 [line 9, column 3]\n NULLIFY(&y); [line 9, column 3]\n EXIT_SCOPE(n$2,y); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_7" -> "main.fad58de7366495db4650cfefac2fcd61_5" ; @@ -38,11 +38,11 @@ digraph cfg { "test.098f6bcd4621d373cade4e832627b4f6_3" -> "test.098f6bcd4621d373cade4e832627b4f6_6" ; -"test.098f6bcd4621d373cade4e832627b4f6_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&y:int) [line 21, column 5]\n *&y:int=1 [line 21, column 5]\n EXIT_SCOPE(n$2); [line 21, column 5]\n " shape="box"] +"test.098f6bcd4621d373cade4e832627b4f6_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&y:int) assign_last [line 21, column 5]\n *&y:int=1 [line 21, column 5]\n EXIT_SCOPE(n$2); [line 21, column 5]\n " shape="box"] "test.098f6bcd4621d373cade4e832627b4f6_4" -> "test.098f6bcd4621d373cade4e832627b4f6_3" ; -"test.098f6bcd4621d373cade4e832627b4f6_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&x:int) [line 20, column 5]\n n$3=*&p:int* [line 20, column 14]\n n$4=*n$3:int [line 20, column 13]\n *&x:int=n$4 [line 20, column 5]\n NULLIFY(&p); [line 20, column 5]\n EXIT_SCOPE(n$3,n$4,n$5,p); [line 20, column 5]\n " shape="box"] +"test.098f6bcd4621d373cade4e832627b4f6_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&x:int) assign_last [line 20, column 5]\n n$3=*&p:int* [line 20, column 14]\n n$4=*n$3:int [line 20, column 13]\n *&x:int=n$4 [line 20, column 5]\n NULLIFY(&p); [line 20, column 5]\n EXIT_SCOPE(n$3,n$4,n$5,p); [line 20, column 5]\n " shape="box"] "test.098f6bcd4621d373cade4e832627b4f6_5" -> "test.098f6bcd4621d373cade4e832627b4f6_4" ; @@ -81,7 +81,7 @@ digraph cfg { "with_conditional.c7f3381cc5bd6cfe19bc60c013ae8f1c_8" -> "with_conditional.c7f3381cc5bd6cfe19bc60c013ae8f1c_10" ; -"with_conditional.c7f3381cc5bd6cfe19bc60c013ae8f1c_9" [label="9: DeclStmt \n n$7=_fun___variable_initialization(&x:int) [line 28, column 5]\n *&x:int=1 [line 28, column 5]\n EXIT_SCOPE(n$7); [line 28, column 5]\n " shape="box"] +"with_conditional.c7f3381cc5bd6cfe19bc60c013ae8f1c_9" [label="9: DeclStmt \n n$7=_fun___variable_initialization(&x:int) assign_last [line 28, column 5]\n *&x:int=1 [line 28, column 5]\n EXIT_SCOPE(n$7); [line 28, column 5]\n " shape="box"] "with_conditional.c7f3381cc5bd6cfe19bc60c013ae8f1c_9" -> "with_conditional.c7f3381cc5bd6cfe19bc60c013ae8f1c_4" ; diff --git a/infer/tests/codetoanalyze/c/frontend/nestedoperators/nestedassignment.c.dot b/infer/tests/codetoanalyze/c/frontend/nestedoperators/nestedassignment.c.dot index 15dab3bbf..9d32c9f7a 100644 --- a/infer/tests/codetoanalyze/c/frontend/nestedoperators/nestedassignment.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/nestedoperators/nestedassignment.c.dot @@ -31,7 +31,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_8" -> "main.fad58de7366495db4650cfefac2fcd61_7" ; -"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$12=_fun___variable_initialization(&x:double) [line 9, column 3]\n *&x:double=1. [line 9, column 3]\n NULLIFY(&x); [line 9, column 3]\n EXIT_SCOPE(n$12,x); [line 9, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$12=_fun___variable_initialization(&x:double) assign_last [line 9, column 3]\n *&x:double=1. [line 9, column 3]\n NULLIFY(&x); [line 9, column 3]\n EXIT_SCOPE(n$12,x); [line 9, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_9" -> "main.fad58de7366495db4650cfefac2fcd61_8" ; diff --git a/infer/tests/codetoanalyze/c/frontend/offsetof_expr/offsetof_expr.c.dot b/infer/tests/codetoanalyze/c/frontend/offsetof_expr/offsetof_expr.c.dot index eb3392221..b2837c5eb 100644 --- a/infer/tests/codetoanalyze/c/frontend/offsetof_expr/offsetof_expr.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/offsetof_expr/offsetof_expr.c.dot @@ -36,7 +36,7 @@ digraph cfg { "test_offsetof_expr.8f3e634fd0f68dff5e4bfedc8f65a55f_9" -> "test_offsetof_expr.8f3e634fd0f68dff5e4bfedc8f65a55f_2" ; -"test_offsetof_expr.8f3e634fd0f68dff5e4bfedc8f65a55f_10" [label="10: DeclStmt \n n$3=_fun___variable_initialization(&i:int) [line 17, column 3]\n *&i:int=n$2 [line 17, column 3]\n EXIT_SCOPE(n$2,n$3); [line 17, column 3]\n " shape="box"] +"test_offsetof_expr.8f3e634fd0f68dff5e4bfedc8f65a55f_10" [label="10: DeclStmt \n n$3=_fun___variable_initialization(&i:int) assign_last [line 17, column 3]\n *&i:int=n$2 [line 17, column 3]\n EXIT_SCOPE(n$2,n$3); [line 17, column 3]\n " shape="box"] "test_offsetof_expr.8f3e634fd0f68dff5e4bfedc8f65a55f_10" -> "test_offsetof_expr.8f3e634fd0f68dff5e4bfedc8f65a55f_5" ; diff --git a/infer/tests/codetoanalyze/c/frontend/switchstmt/switch.c.dot b/infer/tests/codetoanalyze/c/frontend/switchstmt/switch.c.dot index ff15cf9d8..a62288774 100644 --- a/infer/tests/codetoanalyze/c/frontend/switchstmt/switch.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/switchstmt/switch.c.dot @@ -68,7 +68,7 @@ digraph cfg { "test_switch1.7c92c7e14d1a0ee28a9ab29b22df5d3f_14" -> "test_switch1.7c92c7e14d1a0ee28a9ab29b22df5d3f_13" ; -"test_switch1.7c92c7e14d1a0ee28a9ab29b22df5d3f_15" [label="15: DeclStmt \n n$11=_fun___variable_initialization(&x:int) [line 17, column 7]\n *&x:int=1 [line 17, column 7]\n " shape="box"] +"test_switch1.7c92c7e14d1a0ee28a9ab29b22df5d3f_15" [label="15: DeclStmt \n n$11=_fun___variable_initialization(&x:int) assign_last [line 17, column 7]\n *&x:int=1 [line 17, column 7]\n " shape="box"] "test_switch1.7c92c7e14d1a0ee28a9ab29b22df5d3f_15" -> "test_switch1.7c92c7e14d1a0ee28a9ab29b22df5d3f_14" ; @@ -98,7 +98,7 @@ digraph cfg { "test_switch1.7c92c7e14d1a0ee28a9ab29b22df5d3f_21" -> "test_switch1.7c92c7e14d1a0ee28a9ab29b22df5d3f_18" ; "test_switch1.7c92c7e14d1a0ee28a9ab29b22df5d3f_21" -> "test_switch1.7c92c7e14d1a0ee28a9ab29b22df5d3f_19" ; -"test_switch1.7c92c7e14d1a0ee28a9ab29b22df5d3f_22" [label="22: DeclStmt \n n$14=_fun___variable_initialization(&value:int) [line 11, column 3]\n *&value:int=0 [line 11, column 3]\n EXIT_SCOPE(n$14); [line 11, column 3]\n APPLY_ABSTRACTION; [line 11, column 3]\n " shape="box"] +"test_switch1.7c92c7e14d1a0ee28a9ab29b22df5d3f_22" [label="22: DeclStmt \n n$14=_fun___variable_initialization(&value:int) assign_last [line 11, column 3]\n *&value:int=0 [line 11, column 3]\n EXIT_SCOPE(n$14); [line 11, column 3]\n APPLY_ABSTRACTION; [line 11, column 3]\n " shape="box"] "test_switch1.7c92c7e14d1a0ee28a9ab29b22df5d3f_22" -> "test_switch1.7c92c7e14d1a0ee28a9ab29b22df5d3f_4" ; @@ -117,7 +117,7 @@ digraph cfg { "test_switch10.8a4170d3888102a2491712a5ad55ad8d_4" -> "test_switch10.8a4170d3888102a2491712a5ad55ad8d_3" ; -"test_switch10.8a4170d3888102a2491712a5ad55ad8d_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&value:int) [line 183, column 3]\n *&value:int=0 [line 183, column 3]\n NULLIFY(&value); [line 183, column 3]\n EXIT_SCOPE(n$3,value); [line 183, column 3]\n " shape="box"] +"test_switch10.8a4170d3888102a2491712a5ad55ad8d_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&value:int) assign_last [line 183, column 3]\n *&value:int=0 [line 183, column 3]\n NULLIFY(&value); [line 183, column 3]\n EXIT_SCOPE(n$3,value); [line 183, column 3]\n " shape="box"] "test_switch10.8a4170d3888102a2491712a5ad55ad8d_5" -> "test_switch10.8a4170d3888102a2491712a5ad55ad8d_4" ; @@ -174,7 +174,7 @@ digraph cfg { "test_switch11.a1a6d859e414d268a57ed2a2bb6f8a8e_13" -> "test_switch11.a1a6d859e414d268a57ed2a2bb6f8a8e_3" ; -"test_switch11.a1a6d859e414d268a57ed2a2bb6f8a8e_14" [label="14: DeclStmt \n n$6=_fun___variable_initialization(&value:int) [line 189, column 3]\n *&value:int=0 [line 189, column 3]\n EXIT_SCOPE(n$6); [line 189, column 3]\n " shape="box"] +"test_switch11.a1a6d859e414d268a57ed2a2bb6f8a8e_14" [label="14: DeclStmt \n n$6=_fun___variable_initialization(&value:int) assign_last [line 189, column 3]\n *&value:int=0 [line 189, column 3]\n EXIT_SCOPE(n$6); [line 189, column 3]\n " shape="box"] "test_switch11.a1a6d859e414d268a57ed2a2bb6f8a8e_14" -> "test_switch11.a1a6d859e414d268a57ed2a2bb6f8a8e_5" ; @@ -202,11 +202,11 @@ digraph cfg { "test_switch2.0717c55583f10f472ddb2d73d867e556_6" -> "test_switch2.0717c55583f10f472ddb2d73d867e556_5" ; -"test_switch2.0717c55583f10f472ddb2d73d867e556_7" [label="7: DeclStmt \n n$4=_fun___variable_initialization(&something:int) [line 47, column 7]\n *&something:int=1 [line 47, column 7]\n EXIT_SCOPE(n$4); [line 47, column 7]\n " shape="box"] +"test_switch2.0717c55583f10f472ddb2d73d867e556_7" [label="7: DeclStmt \n n$4=_fun___variable_initialization(&something:int) assign_last [line 47, column 7]\n *&something:int=1 [line 47, column 7]\n EXIT_SCOPE(n$4); [line 47, column 7]\n " shape="box"] "test_switch2.0717c55583f10f472ddb2d73d867e556_7" -> "test_switch2.0717c55583f10f472ddb2d73d867e556_6" ; -"test_switch2.0717c55583f10f472ddb2d73d867e556_8" [label="8: DeclStmt \n n$5=_fun___variable_initialization(&z:int) [line 43, column 7]\n *&z:int=9 [line 43, column 7]\n APPLY_ABSTRACTION; [line 43, column 7]\n " shape="box"] +"test_switch2.0717c55583f10f472ddb2d73d867e556_8" [label="8: DeclStmt \n n$5=_fun___variable_initialization(&z:int) assign_last [line 43, column 7]\n *&z:int=9 [line 43, column 7]\n APPLY_ABSTRACTION; [line 43, column 7]\n " shape="box"] "test_switch2.0717c55583f10f472ddb2d73d867e556_8" -> "test_switch2.0717c55583f10f472ddb2d73d867e556_7" ; @@ -248,7 +248,7 @@ digraph cfg { "test_switch2.0717c55583f10f472ddb2d73d867e556_17" -> "test_switch2.0717c55583f10f472ddb2d73d867e556_7" ; -"test_switch2.0717c55583f10f472ddb2d73d867e556_18" [label="18: DeclStmt \n n$9=_fun___variable_initialization(&value:int) [line 37, column 3]\n *&value:int=0 [line 37, column 3]\n EXIT_SCOPE(n$9); [line 37, column 3]\n " shape="box"] +"test_switch2.0717c55583f10f472ddb2d73d867e556_18" [label="18: DeclStmt \n n$9=_fun___variable_initialization(&value:int) assign_last [line 37, column 3]\n *&value:int=0 [line 37, column 3]\n EXIT_SCOPE(n$9); [line 37, column 3]\n " shape="box"] "test_switch2.0717c55583f10f472ddb2d73d867e556_18" -> "test_switch2.0717c55583f10f472ddb2d73d867e556_4" ; @@ -268,7 +268,7 @@ digraph cfg { "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_4" -> "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_15" ; "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_4" -> "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_16" ; -"test_switch3.d602e3f7cc0068667fd33a3e54ff193c_5" [label="5: DeclStmt \n n$2=_fun___variable_initialization(&z:int) [line 69, column 7]\n *&z:int=9 [line 69, column 7]\n APPLY_ABSTRACTION; [line 69, column 7]\n " shape="box"] +"test_switch3.d602e3f7cc0068667fd33a3e54ff193c_5" [label="5: DeclStmt \n n$2=_fun___variable_initialization(&z:int) assign_last [line 69, column 7]\n *&z:int=9 [line 69, column 7]\n APPLY_ABSTRACTION; [line 69, column 7]\n " shape="box"] "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_5" -> "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_3" ; @@ -276,7 +276,7 @@ digraph cfg { "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_6" -> "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_3" ; -"test_switch3.d602e3f7cc0068667fd33a3e54ff193c_7" [label="7: DeclStmt \n n$5=_fun___variable_initialization(&something:int) [line 66, column 7]\n *&something:int=1 [line 66, column 7]\n EXIT_SCOPE(n$5); [line 66, column 7]\n " shape="box"] +"test_switch3.d602e3f7cc0068667fd33a3e54ff193c_7" [label="7: DeclStmt \n n$5=_fun___variable_initialization(&something:int) assign_last [line 66, column 7]\n *&something:int=1 [line 66, column 7]\n EXIT_SCOPE(n$5); [line 66, column 7]\n " shape="box"] "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_7" -> "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_6" ; @@ -319,7 +319,7 @@ digraph cfg { "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_16" -> "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_13" ; "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_16" -> "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_14" ; -"test_switch3.d602e3f7cc0068667fd33a3e54ff193c_17" [label="17: DeclStmt \n n$9=_fun___variable_initialization(&value:int) [line 60, column 3]\n *&value:int=0 [line 60, column 3]\n EXIT_SCOPE(n$9); [line 60, column 3]\n " shape="box"] +"test_switch3.d602e3f7cc0068667fd33a3e54ff193c_17" [label="17: DeclStmt \n n$9=_fun___variable_initialization(&value:int) assign_last [line 60, column 3]\n *&value:int=0 [line 60, column 3]\n EXIT_SCOPE(n$9); [line 60, column 3]\n " shape="box"] "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_17" -> "test_switch3.d602e3f7cc0068667fd33a3e54ff193c_4" ; @@ -347,11 +347,11 @@ digraph cfg { "test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_6" -> "test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_5" ; -"test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_7" [label="7: DeclStmt \n n$4=_fun___variable_initialization(&something:int) [line 88, column 7]\n *&something:int=1 [line 88, column 7]\n EXIT_SCOPE(n$4); [line 88, column 7]\n " shape="box"] +"test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_7" [label="7: DeclStmt \n n$4=_fun___variable_initialization(&something:int) assign_last [line 88, column 7]\n *&something:int=1 [line 88, column 7]\n EXIT_SCOPE(n$4); [line 88, column 7]\n " shape="box"] "test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_7" -> "test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_6" ; -"test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_8" [label="8: DeclStmt \n n$5=_fun___variable_initialization(&z:int) [line 84, column 7]\n *&z:int=9 [line 84, column 7]\n APPLY_ABSTRACTION; [line 84, column 7]\n " shape="box"] +"test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_8" [label="8: DeclStmt \n n$5=_fun___variable_initialization(&z:int) assign_last [line 84, column 7]\n *&z:int=9 [line 84, column 7]\n APPLY_ABSTRACTION; [line 84, column 7]\n " shape="box"] "test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_8" -> "test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_7" ; @@ -393,7 +393,7 @@ digraph cfg { "test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_17" -> "test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_7" ; -"test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_18" [label="18: DeclStmt \n n$9=_fun___variable_initialization(&value:int) [line 78, column 3]\n *&value:int=0 [line 78, column 3]\n EXIT_SCOPE(n$9); [line 78, column 3]\n " shape="box"] +"test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_18" [label="18: DeclStmt \n n$9=_fun___variable_initialization(&value:int) assign_last [line 78, column 3]\n *&value:int=0 [line 78, column 3]\n EXIT_SCOPE(n$9); [line 78, column 3]\n " shape="box"] "test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_18" -> "test_switch4.70d4e6e8539e8d1ee3505d4562bc236d_4" ; @@ -450,7 +450,7 @@ digraph cfg { "test_switch5.1d93fcc376cd01517eabe22cb325bcfd_13" -> "test_switch5.1d93fcc376cd01517eabe22cb325bcfd_4" ; -"test_switch5.1d93fcc376cd01517eabe22cb325bcfd_14" [label="14: DeclStmt \n n$9=_fun___variable_initialization(&value:int) [line 101, column 3]\n *&value:int=0 [line 101, column 3]\n EXIT_SCOPE(n$9); [line 101, column 3]\n APPLY_ABSTRACTION; [line 101, column 3]\n " shape="box"] +"test_switch5.1d93fcc376cd01517eabe22cb325bcfd_14" [label="14: DeclStmt \n n$9=_fun___variable_initialization(&value:int) assign_last [line 101, column 3]\n *&value:int=0 [line 101, column 3]\n EXIT_SCOPE(n$9); [line 101, column 3]\n APPLY_ABSTRACTION; [line 101, column 3]\n " shape="box"] "test_switch5.1d93fcc376cd01517eabe22cb325bcfd_14" -> "test_switch5.1d93fcc376cd01517eabe22cb325bcfd_4" ; @@ -495,7 +495,7 @@ digraph cfg { "test_switch6.a23e54b3840073f4ece330ef3c560915_10" -> "test_switch6.a23e54b3840073f4ece330ef3c560915_21" ; "test_switch6.a23e54b3840073f4ece330ef3c560915_10" -> "test_switch6.a23e54b3840073f4ece330ef3c560915_22" ; -"test_switch6.a23e54b3840073f4ece330ef3c560915_11" [label="11: DeclStmt \n n$4=_fun___variable_initialization(&z:int) [line 126, column 7]\n *&z:int=9 [line 126, column 7]\n APPLY_ABSTRACTION; [line 126, column 7]\n " shape="box"] +"test_switch6.a23e54b3840073f4ece330ef3c560915_11" [label="11: DeclStmt \n n$4=_fun___variable_initialization(&z:int) assign_last [line 126, column 7]\n *&z:int=9 [line 126, column 7]\n APPLY_ABSTRACTION; [line 126, column 7]\n " shape="box"] "test_switch6.a23e54b3840073f4ece330ef3c560915_11" -> "test_switch6.a23e54b3840073f4ece330ef3c560915_3" ; @@ -503,7 +503,7 @@ digraph cfg { "test_switch6.a23e54b3840073f4ece330ef3c560915_12" -> "test_switch6.a23e54b3840073f4ece330ef3c560915_3" ; -"test_switch6.a23e54b3840073f4ece330ef3c560915_13" [label="13: DeclStmt \n n$7=_fun___variable_initialization(&something:int) [line 123, column 7]\n *&something:int=1 [line 123, column 7]\n EXIT_SCOPE(n$7); [line 123, column 7]\n " shape="box"] +"test_switch6.a23e54b3840073f4ece330ef3c560915_13" [label="13: DeclStmt \n n$7=_fun___variable_initialization(&something:int) assign_last [line 123, column 7]\n *&something:int=1 [line 123, column 7]\n EXIT_SCOPE(n$7); [line 123, column 7]\n " shape="box"] "test_switch6.a23e54b3840073f4ece330ef3c560915_13" -> "test_switch6.a23e54b3840073f4ece330ef3c560915_12" ; @@ -546,7 +546,7 @@ digraph cfg { "test_switch6.a23e54b3840073f4ece330ef3c560915_22" -> "test_switch6.a23e54b3840073f4ece330ef3c560915_19" ; "test_switch6.a23e54b3840073f4ece330ef3c560915_22" -> "test_switch6.a23e54b3840073f4ece330ef3c560915_20" ; -"test_switch6.a23e54b3840073f4ece330ef3c560915_23" [label="23: DeclStmt \n n$11=_fun___variable_initialization(&value:int) [line 117, column 3]\n *&value:int=0 [line 117, column 3]\n EXIT_SCOPE(n$11); [line 117, column 3]\n " shape="box"] +"test_switch6.a23e54b3840073f4ece330ef3c560915_23" [label="23: DeclStmt \n n$11=_fun___variable_initialization(&value:int) assign_last [line 117, column 3]\n *&value:int=0 [line 117, column 3]\n EXIT_SCOPE(n$11); [line 117, column 3]\n " shape="box"] "test_switch6.a23e54b3840073f4ece330ef3c560915_23" -> "test_switch6.a23e54b3840073f4ece330ef3c560915_5" ; @@ -566,7 +566,7 @@ digraph cfg { "test_switch7.8298274f5578f21bdddf71ffa79afcb8_4" -> "test_switch7.8298274f5578f21bdddf71ffa79afcb8_15" ; "test_switch7.8298274f5578f21bdddf71ffa79afcb8_4" -> "test_switch7.8298274f5578f21bdddf71ffa79afcb8_16" ; -"test_switch7.8298274f5578f21bdddf71ffa79afcb8_5" [label="5: DeclStmt \n n$2=_fun___variable_initialization(&z:int) [line 146, column 7]\n *&z:int=9 [line 146, column 7]\n APPLY_ABSTRACTION; [line 146, column 7]\n " shape="box"] +"test_switch7.8298274f5578f21bdddf71ffa79afcb8_5" [label="5: DeclStmt \n n$2=_fun___variable_initialization(&z:int) assign_last [line 146, column 7]\n *&z:int=9 [line 146, column 7]\n APPLY_ABSTRACTION; [line 146, column 7]\n " shape="box"] "test_switch7.8298274f5578f21bdddf71ffa79afcb8_5" -> "test_switch7.8298274f5578f21bdddf71ffa79afcb8_3" ; @@ -574,7 +574,7 @@ digraph cfg { "test_switch7.8298274f5578f21bdddf71ffa79afcb8_6" -> "test_switch7.8298274f5578f21bdddf71ffa79afcb8_3" ; -"test_switch7.8298274f5578f21bdddf71ffa79afcb8_7" [label="7: DeclStmt \n n$5=_fun___variable_initialization(&something:int) [line 143, column 7]\n *&something:int=1 [line 143, column 7]\n EXIT_SCOPE(n$5); [line 143, column 7]\n " shape="box"] +"test_switch7.8298274f5578f21bdddf71ffa79afcb8_7" [label="7: DeclStmt \n n$5=_fun___variable_initialization(&something:int) assign_last [line 143, column 7]\n *&something:int=1 [line 143, column 7]\n EXIT_SCOPE(n$5); [line 143, column 7]\n " shape="box"] "test_switch7.8298274f5578f21bdddf71ffa79afcb8_7" -> "test_switch7.8298274f5578f21bdddf71ffa79afcb8_6" ; @@ -617,7 +617,7 @@ digraph cfg { "test_switch7.8298274f5578f21bdddf71ffa79afcb8_16" -> "test_switch7.8298274f5578f21bdddf71ffa79afcb8_13" ; "test_switch7.8298274f5578f21bdddf71ffa79afcb8_16" -> "test_switch7.8298274f5578f21bdddf71ffa79afcb8_14" ; -"test_switch7.8298274f5578f21bdddf71ffa79afcb8_17" [label="17: DeclStmt \n n$9=_fun___variable_initialization(&value:int) [line 137, column 3]\n *&value:int=0 [line 137, column 3]\n NULLIFY(&value); [line 137, column 3]\n EXIT_SCOPE(n$9,value); [line 137, column 3]\n " shape="box"] +"test_switch7.8298274f5578f21bdddf71ffa79afcb8_17" [label="17: DeclStmt \n n$9=_fun___variable_initialization(&value:int) assign_last [line 137, column 3]\n *&value:int=0 [line 137, column 3]\n NULLIFY(&value); [line 137, column 3]\n EXIT_SCOPE(n$9,value); [line 137, column 3]\n " shape="box"] "test_switch7.8298274f5578f21bdddf71ffa79afcb8_17" -> "test_switch7.8298274f5578f21bdddf71ffa79afcb8_4" ; @@ -645,11 +645,11 @@ digraph cfg { "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_6" -> "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_10" ; -"test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_7" [label="7: Prune (false branch, while) \n PRUNE(!(n$0 < 10), false); [line 156, column 10]\n NULLIFY(&value); [line 156, column 10]\n NULLIFY(&a); [line 156, column 10]\n NULLIFY(&something); [line 156, column 10]\n EXIT_SCOPE(n$0,value,a,something); [line 156, column 10]\n " shape="invhouse"] +"test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_7" [label="7: Prune (false branch, while) \n PRUNE(!(n$0 < 10), false); [line 156, column 10]\n NULLIFY(&value); [line 156, column 10]\n EXIT_SCOPE(n$0,value); [line 156, column 10]\n " shape="invhouse"] "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_7" -> "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_3" ; -"test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_8" [label="8: DeclStmt \n n$1=_fun___variable_initialization(&a:int) [line 171, column 5]\n *&a:int=0 [line 171, column 5]\n EXIT_SCOPE(n$1); [line 171, column 5]\n APPLY_ABSTRACTION; [line 171, column 5]\n " shape="box"] +"test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_8" [label="8: DeclStmt \n n$1=_fun___variable_initialization(&a:int) assign_last [line 171, column 5]\n *&a:int=0 [line 171, column 5]\n NULLIFY(&a); [line 171, column 5]\n EXIT_SCOPE(n$1,a); [line 171, column 5]\n APPLY_ABSTRACTION; [line 171, column 5]\n " shape="box"] "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_8" -> "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_4" ; @@ -683,15 +683,15 @@ digraph cfg { "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_15" -> "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_27" ; "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_15" -> "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_28" ; -"test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_16" [label="16: DeclStmt \n n$6=_fun___variable_initialization(&z:int) [line 166, column 9]\n *&z:int=9 [line 166, column 9]\n APPLY_ABSTRACTION; [line 166, column 9]\n " shape="box"] +"test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_16" [label="16: DeclStmt \n n$6=_fun___variable_initialization(&z:int) assign_last [line 166, column 9]\n *&z:int=9 [line 166, column 9]\n APPLY_ABSTRACTION; [line 166, column 9]\n " shape="box"] "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_16" -> "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_8" ; -"test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_17" [label="17: UnaryOperator \n n$9=*&something:int [line 163, column 9]\n *&something:int=(n$9 + 1) [line 163, column 9]\n EXIT_SCOPE(n$9); [line 163, column 9]\n APPLY_ABSTRACTION; [line 163, column 9]\n " shape="box"] +"test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_17" [label="17: UnaryOperator \n n$9=*&something:int [line 163, column 9]\n *&something:int=(n$9 + 1) [line 163, column 9]\n NULLIFY(&something); [line 163, column 9]\n EXIT_SCOPE(n$9,something); [line 163, column 9]\n APPLY_ABSTRACTION; [line 163, column 9]\n " shape="box"] "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_17" -> "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_4" ; -"test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_18" [label="18: DeclStmt \n n$10=_fun___variable_initialization(&something:int) [line 162, column 9]\n *&something:int=1 [line 162, column 9]\n EXIT_SCOPE(n$10); [line 162, column 9]\n " shape="box"] +"test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_18" [label="18: DeclStmt \n n$10=_fun___variable_initialization(&something:int) assign_last [line 162, column 9]\n *&something:int=1 [line 162, column 9]\n EXIT_SCOPE(n$10); [line 162, column 9]\n " shape="box"] "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_18" -> "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_17" ; @@ -729,7 +729,7 @@ digraph cfg { "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_26" -> "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_23" ; "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_26" -> "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_24" ; -"test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_27" [label="27: Prune (true branch, switch) \n PRUNE((n$4 == 0), true); [line 158, column 7]\n NULLIFY(&value); [line 158, column 7]\n NULLIFY(&a); [line 158, column 7]\n NULLIFY(&something); [line 158, column 7]\n EXIT_SCOPE(n$4,value,a,something); [line 158, column 7]\n " shape="invhouse"] +"test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_27" [label="27: Prune (true branch, switch) \n PRUNE((n$4 == 0), true); [line 158, column 7]\n NULLIFY(&value); [line 158, column 7]\n EXIT_SCOPE(n$4,value); [line 158, column 7]\n " shape="invhouse"] "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_27" -> "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_20" ; @@ -738,7 +738,7 @@ digraph cfg { "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_28" -> "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_25" ; "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_28" -> "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_26" ; -"test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_29" [label="29: DeclStmt \n n$14=_fun___variable_initialization(&value:int) [line 155, column 3]\n *&value:int=0 [line 155, column 3]\n EXIT_SCOPE(n$14); [line 155, column 3]\n APPLY_ABSTRACTION; [line 155, column 3]\n " shape="box"] +"test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_29" [label="29: DeclStmt \n n$14=_fun___variable_initialization(&value:int) assign_last [line 155, column 3]\n *&value:int=0 [line 155, column 3]\n EXIT_SCOPE(n$14); [line 155, column 3]\n APPLY_ABSTRACTION; [line 155, column 3]\n " shape="box"] "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_29" -> "test_switch8.6a6653773b94c1bb3f3c90dc1790d1ed_4" ; @@ -757,7 +757,7 @@ digraph cfg { "test_switch9.f4a96f02ca05cf92a483f69cdfe717b1_4" -> "test_switch9.f4a96f02ca05cf92a483f69cdfe717b1_3" ; -"test_switch9.f4a96f02ca05cf92a483f69cdfe717b1_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&value:int) [line 177, column 3]\n *&value:int=0 [line 177, column 3]\n EXIT_SCOPE(n$3); [line 177, column 3]\n " shape="box"] +"test_switch9.f4a96f02ca05cf92a483f69cdfe717b1_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&value:int) assign_last [line 177, column 3]\n *&value:int=0 [line 177, column 3]\n EXIT_SCOPE(n$3); [line 177, column 3]\n " shape="box"] "test_switch9.f4a96f02ca05cf92a483f69cdfe717b1_5" -> "test_switch9.f4a96f02ca05cf92a483f69cdfe717b1_4" ; diff --git a/infer/tests/codetoanalyze/c/frontend/switchstmt/switch_unroll.c.dot b/infer/tests/codetoanalyze/c/frontend/switchstmt/switch_unroll.c.dot index a931e43fc..611f3b067 100644 --- a/infer/tests/codetoanalyze/c/frontend/switchstmt/switch_unroll.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/switchstmt/switch_unroll.c.dot @@ -97,11 +97,11 @@ digraph cfg { "unroll_loop.7d9e50ecf5e5106a8dd5deee005639d6_23" -> "unroll_loop.7d9e50ecf5e5106a8dd5deee005639d6_20" ; "unroll_loop.7d9e50ecf5e5106a8dd5deee005639d6_23" -> "unroll_loop.7d9e50ecf5e5106a8dd5deee005639d6_21" ; -"unroll_loop.7d9e50ecf5e5106a8dd5deee005639d6_24" [label="24: DeclStmt \n n$12=_fun___variable_initialization(&loop:int) [line 9, column 3]\n n$11=*&n:int [line 9, column 14]\n *&loop:int=(n$11 + (3 / 4)) [line 9, column 3]\n EXIT_SCOPE(n$11,n$12); [line 9, column 3]\n " shape="box"] +"unroll_loop.7d9e50ecf5e5106a8dd5deee005639d6_24" [label="24: DeclStmt \n n$12=_fun___variable_initialization(&loop:int) assign_last [line 9, column 3]\n n$11=*&n:int [line 9, column 14]\n *&loop:int=(n$11 + (3 / 4)) [line 9, column 3]\n EXIT_SCOPE(n$11,n$12); [line 9, column 3]\n " shape="box"] "unroll_loop.7d9e50ecf5e5106a8dd5deee005639d6_24" -> "unroll_loop.7d9e50ecf5e5106a8dd5deee005639d6_4" ; -"unroll_loop.7d9e50ecf5e5106a8dd5deee005639d6_25" [label="25: DeclStmt \n n$13=_fun___variable_initialization(&ret:int) [line 8, column 3]\n *&ret:int=0 [line 8, column 3]\n EXIT_SCOPE(n$13); [line 8, column 3]\n " shape="box"] +"unroll_loop.7d9e50ecf5e5106a8dd5deee005639d6_25" [label="25: DeclStmt \n n$13=_fun___variable_initialization(&ret:int) assign_last [line 8, column 3]\n *&ret:int=0 [line 8, column 3]\n EXIT_SCOPE(n$13); [line 8, column 3]\n " shape="box"] "unroll_loop.7d9e50ecf5e5106a8dd5deee005639d6_25" -> "unroll_loop.7d9e50ecf5e5106a8dd5deee005639d6_24" ; diff --git a/infer/tests/codetoanalyze/c/frontend/switchstmt/switch_with_labels.c.dot b/infer/tests/codetoanalyze/c/frontend/switchstmt/switch_with_labels.c.dot index 0b4362b2f..f20a59de3 100644 --- a/infer/tests/codetoanalyze/c/frontend/switchstmt/switch_with_labels.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/switchstmt/switch_with_labels.c.dot @@ -54,7 +54,7 @@ digraph cfg { "label_case.83d07a314df100648248d9156212096b_13" -> "label_case.83d07a314df100648248d9156212096b_10" ; "label_case.83d07a314df100648248d9156212096b_13" -> "label_case.83d07a314df100648248d9156212096b_11" ; -"label_case.83d07a314df100648248d9156212096b_14" [label="14: DeclStmt \n n$8=_fun___variable_initialization(&ret:int) [line 25, column 3]\n *&ret:int=0 [line 25, column 3]\n EXIT_SCOPE(n$8); [line 25, column 3]\n " shape="box"] +"label_case.83d07a314df100648248d9156212096b_14" [label="14: DeclStmt \n n$8=_fun___variable_initialization(&ret:int) assign_last [line 25, column 3]\n *&ret:int=0 [line 25, column 3]\n EXIT_SCOPE(n$8); [line 25, column 3]\n " shape="box"] "label_case.83d07a314df100648248d9156212096b_14" -> "label_case.83d07a314df100648248d9156212096b_4" ; @@ -107,7 +107,7 @@ digraph cfg { "label_default.f30729864b0243c0a794ef0254fe7d23_12" -> "label_default.f30729864b0243c0a794ef0254fe7d23_9" ; "label_default.f30729864b0243c0a794ef0254fe7d23_12" -> "label_default.f30729864b0243c0a794ef0254fe7d23_10" ; -"label_default.f30729864b0243c0a794ef0254fe7d23_13" [label="13: DeclStmt \n n$8=_fun___variable_initialization(&ret:int) [line 9, column 3]\n *&ret:int=0 [line 9, column 3]\n EXIT_SCOPE(n$8); [line 9, column 3]\n " shape="box"] +"label_default.f30729864b0243c0a794ef0254fe7d23_13" [label="13: DeclStmt \n n$8=_fun___variable_initialization(&ret:int) assign_last [line 9, column 3]\n *&ret:int=0 [line 9, column 3]\n EXIT_SCOPE(n$8); [line 9, column 3]\n " shape="box"] "label_default.f30729864b0243c0a794ef0254fe7d23_13" -> "label_default.f30729864b0243c0a794ef0254fe7d23_4" ; diff --git a/infer/tests/codetoanalyze/c/frontend/unusual_exps/generic_exp.c.dot b/infer/tests/codetoanalyze/c/frontend/unusual_exps/generic_exp.c.dot index 48f8f4397..2e76bbe6c 100644 --- a/infer/tests/codetoanalyze/c/frontend/unusual_exps/generic_exp.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/unusual_exps/generic_exp.c.dot @@ -7,11 +7,11 @@ digraph cfg { "test_typename.b2359812ef4a83b4e2638a11e6c522b3_2" [label="2: Exit test_typename \n " color=yellow style=filled] -"test_typename.b2359812ef4a83b4e2638a11e6c522b3_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&z:int) [line 14, column 3]\n *&z:int=3 [line 14, column 3]\n NULLIFY(&z); [line 14, column 3]\n EXIT_SCOPE(n$0,z); [line 14, column 3]\n APPLY_ABSTRACTION; [line 14, column 3]\n " shape="box"] +"test_typename.b2359812ef4a83b4e2638a11e6c522b3_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&z:int) assign_last [line 14, column 3]\n *&z:int=3 [line 14, column 3]\n NULLIFY(&z); [line 14, column 3]\n EXIT_SCOPE(n$0,z); [line 14, column 3]\n APPLY_ABSTRACTION; [line 14, column 3]\n " shape="box"] "test_typename.b2359812ef4a83b4e2638a11e6c522b3_3" -> "test_typename.b2359812ef4a83b4e2638a11e6c522b3_2" ; -"test_typename.b2359812ef4a83b4e2638a11e6c522b3_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&x:int) [line 13, column 3]\n *&x:int=2 [line 13, column 3]\n NULLIFY(&x); [line 13, column 3]\n EXIT_SCOPE(n$1,x); [line 13, column 3]\n " shape="box"] +"test_typename.b2359812ef4a83b4e2638a11e6c522b3_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&x:int) assign_last [line 13, column 3]\n *&x:int=2 [line 13, column 3]\n NULLIFY(&x); [line 13, column 3]\n EXIT_SCOPE(n$1,x); [line 13, column 3]\n " shape="box"] "test_typename.b2359812ef4a83b4e2638a11e6c522b3_4" -> "test_typename.b2359812ef4a83b4e2638a11e6c522b3_3" ; diff --git a/infer/tests/codetoanalyze/c/frontend/unusual_stmts/asm.c.dot b/infer/tests/codetoanalyze/c/frontend/unusual_stmts/asm.c.dot index 063124f9a..f822c5440 100644 --- a/infer/tests/codetoanalyze/c/frontend/unusual_stmts/asm.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/unusual_stmts/asm.c.dot @@ -15,7 +15,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$2=_fun___variable_initialization(&src:int) [line 18, column 3]\n *&src:int=1 [line 18, column 3]\n EXIT_SCOPE(n$2); [line 18, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$2=_fun___variable_initialization(&src:int) assign_last [line 18, column 3]\n *&src:int=1 [line 18, column 3]\n EXIT_SCOPE(n$2); [line 18, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; diff --git a/infer/tests/codetoanalyze/c/frontend/vaarg_expr/vaarg_expr.c.dot b/infer/tests/codetoanalyze/c/frontend/vaarg_expr/vaarg_expr.c.dot index 0455bd52d..3f8cd330e 100644 --- a/infer/tests/codetoanalyze/c/frontend/vaarg_expr/vaarg_expr.c.dot +++ b/infer/tests/codetoanalyze/c/frontend/vaarg_expr/vaarg_expr.c.dot @@ -40,7 +40,7 @@ digraph cfg { "vaarg_foo.73af1e8d32c2d09f7488c5fea173b853_10" -> "vaarg_foo.73af1e8d32c2d09f7488c5fea173b853_5" ; -"vaarg_foo.73af1e8d32c2d09f7488c5fea173b853_11" [label="11: DeclStmt \n n$5=_fun___variable_initialization(&i:int) [line 13, column 3]\n *&i:int=n$4 [line 13, column 3]\n EXIT_SCOPE(n$4,n$5); [line 13, column 3]\n " shape="box"] +"vaarg_foo.73af1e8d32c2d09f7488c5fea173b853_11" [label="11: DeclStmt \n n$5=_fun___variable_initialization(&i:int) assign_last [line 13, column 3]\n *&i:int=n$4 [line 13, column 3]\n EXIT_SCOPE(n$4,n$5); [line 13, column 3]\n " shape="box"] "vaarg_foo.73af1e8d32c2d09f7488c5fea173b853_11" -> "vaarg_foo.73af1e8d32c2d09f7488c5fea173b853_6" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/attributes/clang_fallthrough.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/attributes/clang_fallthrough.cpp.dot index 80c650984..f9d2c6163 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/attributes/clang_fallthrough.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/attributes/clang_fallthrough.cpp.dot @@ -66,7 +66,7 @@ digraph cfg { "switch_with_fallthrough#6355028676793350740.9380c19327ea36a0a69b7e115d031492_13" -> "switch_with_fallthrough#6355028676793350740.9380c19327ea36a0a69b7e115d031492_10" ; "switch_with_fallthrough#6355028676793350740.9380c19327ea36a0a69b7e115d031492_13" -> "switch_with_fallthrough#6355028676793350740.9380c19327ea36a0a69b7e115d031492_11" ; -"switch_with_fallthrough#6355028676793350740.9380c19327ea36a0a69b7e115d031492_14" [label="14: DeclStmt \n n$10=_fun___variable_initialization(&res:int) [line 11, column 3]\n *&res:int=5 [line 11, column 3]\n EXIT_SCOPE(n$10); [line 11, column 3]\n " shape="box"] +"switch_with_fallthrough#6355028676793350740.9380c19327ea36a0a69b7e115d031492_14" [label="14: DeclStmt \n n$10=_fun___variable_initialization(&res:int) assign_last [line 11, column 3]\n *&res:int=5 [line 11, column 3]\n EXIT_SCOPE(n$10); [line 11, column 3]\n " shape="box"] "switch_with_fallthrough#6355028676793350740.9380c19327ea36a0a69b7e115d031492_14" -> "switch_with_fallthrough#6355028676793350740.9380c19327ea36a0a69b7e115d031492_4" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/builtin/new.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/builtin/new.cpp.dot index dbbfd6cfb..3587475e5 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/builtin/new.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/builtin/new.cpp.dot @@ -26,11 +26,11 @@ digraph cfg { "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&i:int*) [line 10, column 3]\n n$4=_fun___new(sizeof(t=int;nbytes=4):unsigned long) [line 10, column 12]\n *&i:int*=n$4 [line 10, column 3]\n EXIT_SCOPE(n$4,n$5); [line 10, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&i:int*) assign_last [line 10, column 3]\n n$4=_fun___new(sizeof(t=int;nbytes=4):unsigned long) [line 10, column 12]\n *&i:int*=n$4 [line 10, column 3]\n EXIT_SCOPE(n$4,n$5); [line 10, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" [label="6: DeclStmt \n n$6=_fun___variable_initialization(&x:int) [line 9, column 3]\n *&x:int=2 [line 9, column 3]\n NULLIFY(&x); [line 9, column 3]\n EXIT_SCOPE(n$6,x); [line 9, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" [label="6: DeclStmt \n n$6=_fun___variable_initialization(&x:int) assign_last [line 9, column 3]\n *&x:int=2 [line 9, column 3]\n NULLIFY(&x); [line 9, column 3]\n EXIT_SCOPE(n$6,x); [line 9, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" ; @@ -41,7 +41,7 @@ digraph cfg { "test_placement#7589029240520377616.7f92d4e10c030674dddd1682731c0ba3_2" [label="2: Exit test_placement \n NULLIFY(&p); [line 24, column 78]\n " color=yellow style=filled] -"test_placement#7589029240520377616.7f92d4e10c030674dddd1682731c0ba3_3" [label="3: DeclStmt \n n$6=_fun___variable_initialization(&p:A*) [line 24, column 45]\n n$3=*&ptr:void* [line 24, column 60]\n n$1=*&ptr2:int* [line 24, column 65]\n *&ptr2:int*=(n$1 + 1) [line 24, column 65]\n n$2=*&ptr2:int* [line 24, column 65]\n n$4=_fun___placement_new(sizeof(t=A):unsigned long,n$3:void*,n$2:void*) [line 24, column 55]\n n$5=_fun_A_A(n$4:A*) [line 24, column 73]\n *&p:A*=n$4 [line 24, column 45]\n NULLIFY(&ptr2); [line 24, column 45]\n NULLIFY(&ptr); [line 24, column 45]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,n$5,n$6,ptr2,ptr,p); [line 24, column 45]\n APPLY_ABSTRACTION; [line 24, column 45]\n " shape="box"] +"test_placement#7589029240520377616.7f92d4e10c030674dddd1682731c0ba3_3" [label="3: DeclStmt \n n$6=_fun___variable_initialization(&p:A*) assign_last [line 24, column 45]\n n$3=*&ptr:void* [line 24, column 60]\n n$1=*&ptr2:int* [line 24, column 65]\n *&ptr2:int*=(n$1 + 1) [line 24, column 65]\n n$2=*&ptr2:int* [line 24, column 65]\n n$4=_fun___placement_new(sizeof(t=A):unsigned long,n$3:void*,n$2:void*) [line 24, column 55]\n n$5=_fun_A_A(n$4:A*) [line 24, column 73]\n *&p:A*=n$4 [line 24, column 45]\n NULLIFY(&ptr2); [line 24, column 45]\n NULLIFY(&ptr); [line 24, column 45]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,n$5,n$6,ptr2,ptr,p); [line 24, column 45]\n APPLY_ABSTRACTION; [line 24, column 45]\n " shape="box"] "test_placement#7589029240520377616.7f92d4e10c030674dddd1682731c0ba3_3" -> "test_placement#7589029240520377616.7f92d4e10c030674dddd1682731c0ba3_2" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/destructors/break_scope.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/destructors/break_scope.cpp.dot index 2b37a1f92..7bfb4c0aa 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/destructors/break_scope.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/destructors/break_scope.cpp.dot @@ -23,7 +23,7 @@ digraph cfg { "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_6" -> "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_3" ; -"test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_7" [label="7: Destruction \n _=*&x2:break_scope::X [line 88, column 3]\n n$5=_fun_break_scope::X_~X(&x2:break_scope::X*) [line 88, column 3]\n EXIT_SCOPE(_,n$5); [line 88, column 3]\n " shape="box"] +"test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_7" [label="7: Destruction \n _=*&x2:break_scope::X [line 88, column 3]\n n$5=_fun_break_scope::X_~X(&x2:break_scope::X*) [line 88, column 3]\n EXIT_SCOPE(_,n$5,x2); [line 88, column 3]\n " shape="box"] "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_7" -> "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_5" ; @@ -48,24 +48,24 @@ digraph cfg { "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_12" -> "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_3" ; -"test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_13" [label="13: DeclStmt \n n$17=_fun___variable_initialization(&x3:break_scope::X) [line 83, column 7]\n n$16=_fun_break_scope::X_X(&x3:break_scope::X*) [line 83, column 9]\n EXIT_SCOPE(n$16,n$17); [line 83, column 9]\n " shape="box"] +"test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_13" [label="13: DeclStmt \n n$17=_fun___variable_initialization(&x3:break_scope::X) assign_last [line 83, column 7]\n n$16=_fun_break_scope::X_X(&x3:break_scope::X*) [line 83, column 9]\n EXIT_SCOPE(n$16,n$17); [line 83, column 9]\n " shape="box"] "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_13" -> "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_12" ; -"test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_14" [label="14: Destruction \n _=*&x4:break_scope::X [line 87, column 5]\n n$19=_fun_break_scope::X_~X(&x4:break_scope::X*) [line 87, column 5]\n EXIT_SCOPE(_,n$19); [line 87, column 5]\n APPLY_ABSTRACTION; [line 87, column 5]\n " shape="box"] +"test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_14" [label="14: Destruction \n _=*&x4:break_scope::X [line 87, column 5]\n n$19=_fun_break_scope::X_~X(&x4:break_scope::X*) [line 87, column 5]\n EXIT_SCOPE(_,n$19,x4); [line 87, column 5]\n APPLY_ABSTRACTION; [line 87, column 5]\n " shape="box"] "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_14" -> "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_8" ; -"test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_15" [label="15: DeclStmt \n n$22=_fun___variable_initialization(&x4:break_scope::X) [line 86, column 7]\n n$21=_fun_break_scope::X_X(&x4:break_scope::X*) [line 86, column 9]\n EXIT_SCOPE(n$21,n$22); [line 86, column 9]\n " shape="box"] +"test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_15" [label="15: DeclStmt \n n$22=_fun___variable_initialization(&x4:break_scope::X) assign_last [line 86, column 7]\n n$21=_fun_break_scope::X_X(&x4:break_scope::X*) [line 86, column 9]\n EXIT_SCOPE(n$21,n$22); [line 86, column 9]\n " shape="box"] "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_15" -> "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_14" ; -"test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_16" [label="16: DeclStmt \n n$25=_fun___variable_initialization(&x2:break_scope::X) [line 81, column 5]\n n$24=_fun_break_scope::X_X(&x2:break_scope::X*) [line 81, column 7]\n EXIT_SCOPE(n$24,n$25); [line 81, column 7]\n " shape="box"] +"test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_16" [label="16: DeclStmt \n n$25=_fun___variable_initialization(&x2:break_scope::X) assign_last [line 81, column 5]\n n$24=_fun_break_scope::X_X(&x2:break_scope::X*) [line 81, column 7]\n EXIT_SCOPE(n$24,n$25); [line 81, column 7]\n " shape="box"] "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_16" -> "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_9" ; "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_16" -> "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_10" ; -"test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_17" [label="17: DeclStmt \n n$28=_fun___variable_initialization(&x1:break_scope::X) [line 79, column 3]\n n$27=_fun_break_scope::X_X(&x1:break_scope::X*) [line 79, column 5]\n EXIT_SCOPE(n$27,n$28); [line 79, column 5]\n APPLY_ABSTRACTION; [line 79, column 5]\n " shape="box"] +"test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_17" [label="17: DeclStmt \n n$28=_fun___variable_initialization(&x1:break_scope::X) assign_last [line 79, column 3]\n n$27=_fun_break_scope::X_X(&x1:break_scope::X*) [line 79, column 5]\n EXIT_SCOPE(n$27,n$28); [line 79, column 5]\n APPLY_ABSTRACTION; [line 79, column 5]\n " shape="box"] "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_17" -> "test_do_while#break_scope#1068194121698893969.72aceeae2a95e32b3efdbdc08d127420_4" ; @@ -80,7 +80,7 @@ digraph cfg { "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_3" -> "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_2" ; -"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x2:break_scope::X) [line 63, column 3]\n n$5=_fun_break_scope::X_X(&x2:break_scope::X*) [line 63, column 5]\n EXIT_SCOPE(n$5,n$6); [line 63, column 5]\n " shape="box"] +"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x2:break_scope::X) assign_last [line 63, column 3]\n n$5=_fun_break_scope::X_X(&x2:break_scope::X*) [line 63, column 5]\n EXIT_SCOPE(n$5,n$6); [line 63, column 5]\n " shape="box"] "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_4" -> "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_3" ; @@ -88,15 +88,15 @@ digraph cfg { "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_5" -> "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_8" ; -"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_6" [label="6: DeclStmt \n n$13=_fun___variable_initialization(&it:break_scope::iterator) [line 57, column 8]\n n$11=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:break_scope::iterator) [line 57, column 22]\n _=*&vector:break_scope::vec [line 57, column 22]\n n$10=_fun_break_scope::vec_begin(&vector:break_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$7:break_scope::iterator*) [line 57, column 22]\n n$12=_fun_break_scope::iterator_iterator(&it:break_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$7:break_scope::iterator&) [line 57, column 22]\n EXIT_SCOPE(_,n$10,n$11,n$12,n$13,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 57, column 22]\n APPLY_ABSTRACTION; [line 57, column 22]\n " shape="box"] +"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_6" [label="6: DeclStmt \n n$13=_fun___variable_initialization(&it:break_scope::iterator) assign_last [line 57, column 8]\n n$11=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:break_scope::iterator) assign_last [line 57, column 22]\n _=*&vector:break_scope::vec [line 57, column 22]\n n$10=_fun_break_scope::vec_begin(&vector:break_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$7:break_scope::iterator*) assign_last [line 57, column 22]\n n$12=_fun_break_scope::iterator_iterator(&it:break_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$7:break_scope::iterator&) [line 57, column 22]\n EXIT_SCOPE(_,n$10,n$11,n$12,n$13,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 57, column 22]\n APPLY_ABSTRACTION; [line 57, column 22]\n " shape="box"] "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_6" -> "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_5" ; -"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_7" [label="7: Call _fun_break_scope::iterator_operator++ \n n$17=_fun_break_scope::iterator_operator++(&it:break_scope::iterator&,&0$?%__sil_tmp__temp_return_n$16:break_scope::iterator*) [line 57, column 58]\n EXIT_SCOPE(n$17); [line 57, column 58]\n APPLY_ABSTRACTION; [line 57, column 58]\n " shape="box"] +"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_7" [label="7: Call _fun_break_scope::iterator_operator++ \n n$17=_fun_break_scope::iterator_operator++(&it:break_scope::iterator&,&0$?%__sil_tmp__temp_return_n$16:break_scope::iterator*) assign_last [line 57, column 58]\n EXIT_SCOPE(n$17,0$?%__sil_tmp__temp_return_n$16); [line 57, column 58]\n APPLY_ABSTRACTION; [line 57, column 58]\n " shape="box"] "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_7" -> "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_5" ; -"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_8" [label="8: Call _fun_break_scope::iterator_operator!= \n n$23=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$19:break_scope::iterator const ) [line 57, column 44]\n _=*&vector:break_scope::vec [line 57, column 44]\n n$22=_fun_break_scope::vec_end(&vector:break_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$19:break_scope::iterator*) [line 57, column 44]\n n$24=_fun_break_scope::iterator_operator!=(&it:break_scope::iterator&,&0$?%__sil_tmpSIL_materialize_temp__n$19:break_scope::iterator const &) [line 57, column 38]\n EXIT_SCOPE(_,n$22,n$23); [line 57, column 38]\n " shape="box"] +"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_8" [label="8: Call _fun_break_scope::iterator_operator!= \n n$23=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$19:break_scope::iterator const ) assign_last [line 57, column 44]\n _=*&vector:break_scope::vec [line 57, column 44]\n n$22=_fun_break_scope::vec_end(&vector:break_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$19:break_scope::iterator*) assign_last [line 57, column 44]\n n$24=_fun_break_scope::iterator_operator!=(&it:break_scope::iterator&,&0$?%__sil_tmpSIL_materialize_temp__n$19:break_scope::iterator const &) [line 57, column 38]\n EXIT_SCOPE(_,n$22,n$23,0$?%__sil_tmpSIL_materialize_temp__n$19); [line 57, column 38]\n " shape="box"] "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_8" -> "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_9" ; @@ -106,7 +106,7 @@ digraph cfg { "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_9" -> "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_12" ; "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_9" -> "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_13" ; -"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_10" [label="10: Prune (false branch, for loop) \n PRUNE(!n$24, false); [line 57, column 38]\n EXIT_SCOPE(n$24); [line 57, column 38]\n APPLY_ABSTRACTION; [line 57, column 38]\n " shape="invhouse"] +"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_10" [label="10: Prune (false branch, for loop) \n PRUNE(!n$24, false); [line 57, column 38]\n EXIT_SCOPE(n$24,it); [line 57, column 38]\n APPLY_ABSTRACTION; [line 57, column 38]\n " shape="invhouse"] "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_10" -> "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_4" ; @@ -114,7 +114,7 @@ digraph cfg { "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_11" -> "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_7" ; -"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_12" [label="12: Prune (true branch, if) \n n$26=*&b:_Bool [line 58, column 9]\n PRUNE(n$26, true); [line 58, column 9]\n NULLIFY(&b); [line 58, column 9]\n EXIT_SCOPE(n$26,b); [line 58, column 9]\n " shape="invhouse"] +"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_12" [label="12: Prune (true branch, if) \n n$26=*&b:_Bool [line 58, column 9]\n PRUNE(n$26, true); [line 58, column 9]\n NULLIFY(&b); [line 58, column 9]\n EXIT_SCOPE(n$26,it,b); [line 58, column 9]\n " shape="invhouse"] "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_12" -> "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_16" ; @@ -130,11 +130,11 @@ digraph cfg { "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_15" -> "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_4" ; -"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_16" [label="16: DeclStmt \n n$34=_fun___variable_initialization(&x1:break_scope::X) [line 59, column 7]\n n$33=_fun_break_scope::X_X(&x1:break_scope::X*) [line 59, column 9]\n EXIT_SCOPE(n$33,n$34); [line 59, column 9]\n " shape="box"] +"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_16" [label="16: DeclStmt \n n$34=_fun___variable_initialization(&x1:break_scope::X) assign_last [line 59, column 7]\n n$33=_fun_break_scope::X_X(&x1:break_scope::X*) [line 59, column 9]\n EXIT_SCOPE(n$33,n$34); [line 59, column 9]\n " shape="box"] "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_16" -> "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_15" ; -"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_17" [label="17: DeclStmt \n n$39=_fun___variable_initialization(&vector:break_scope::vec) [line 56, column 3]\n n$38=_fun_break_scope::vec_vec(&vector:break_scope::vec*) [line 56, column 7]\n EXIT_SCOPE(n$38,n$39); [line 56, column 7]\n " shape="box"] +"test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_17" [label="17: DeclStmt \n n$39=_fun___variable_initialization(&vector:break_scope::vec) assign_last [line 56, column 3]\n n$38=_fun_break_scope::vec_vec(&vector:break_scope::vec*) [line 56, column 7]\n EXIT_SCOPE(n$38,n$39); [line 56, column 7]\n " shape="box"] "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_17" -> "test_for#break_scope#12580813866832058675.4c62e98ea10322d216af5dcd2cfbde37_6" ; @@ -153,15 +153,15 @@ digraph cfg { "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_4" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_8" ; -"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_5" [label="5: DeclStmt \n n$14=_fun___variable_initialization(&__end1:break_scope::iterator) [line 47, column 12]\n n$12=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:break_scope::iterator) [line 47, column 12]\n n$8=*&__range1:break_scope::vec& [line 47, column 12]\n _=*n$8:break_scope::vec [line 47, column 12]\n n$11=_fun_break_scope::vec_end(n$8:break_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$7:break_scope::iterator*) [line 47, column 12]\n n$13=_fun_break_scope::iterator_iterator(&__end1:break_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$7:break_scope::iterator&) [line 47, column 12]\n EXIT_SCOPE(_,n$8,n$11,n$12,n$13,n$14,__range1,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 47, column 12]\n APPLY_ABSTRACTION; [line 47, column 12]\n " shape="box"] +"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_5" [label="5: DeclStmt \n n$14=_fun___variable_initialization(&__end1:break_scope::iterator) assign_last [line 47, column 12]\n n$12=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:break_scope::iterator) assign_last [line 47, column 12]\n n$8=*&__range1:break_scope::vec& [line 47, column 12]\n _=*n$8:break_scope::vec [line 47, column 12]\n n$11=_fun_break_scope::vec_end(n$8:break_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$7:break_scope::iterator*) assign_last [line 47, column 12]\n n$13=_fun_break_scope::iterator_iterator(&__end1:break_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$7:break_scope::iterator&) [line 47, column 12]\n EXIT_SCOPE(_,n$8,n$11,n$12,n$13,n$14,__range1,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 47, column 12]\n APPLY_ABSTRACTION; [line 47, column 12]\n " shape="box"] "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_5" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_4" ; -"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_6" [label="6: DeclStmt \n n$22=_fun___variable_initialization(&__begin1:break_scope::iterator) [line 47, column 12]\n n$20=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$15:break_scope::iterator) [line 47, column 12]\n n$16=*&__range1:break_scope::vec& [line 47, column 12]\n _=*n$16:break_scope::vec [line 47, column 12]\n n$19=_fun_break_scope::vec_begin(n$16:break_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$15:break_scope::iterator*) [line 47, column 12]\n n$21=_fun_break_scope::iterator_iterator(&__begin1:break_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$15:break_scope::iterator&) [line 47, column 12]\n EXIT_SCOPE(_,n$16,n$19,n$20,n$21,n$22,0$?%__sil_tmpSIL_materialize_temp__n$15); [line 47, column 12]\n " shape="box"] +"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_6" [label="6: DeclStmt \n n$22=_fun___variable_initialization(&__begin1:break_scope::iterator) assign_last [line 47, column 12]\n n$20=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$15:break_scope::iterator) assign_last [line 47, column 12]\n n$16=*&__range1:break_scope::vec& [line 47, column 12]\n _=*n$16:break_scope::vec [line 47, column 12]\n n$19=_fun_break_scope::vec_begin(n$16:break_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$15:break_scope::iterator*) assign_last [line 47, column 12]\n n$21=_fun_break_scope::iterator_iterator(&__begin1:break_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$15:break_scope::iterator&) [line 47, column 12]\n EXIT_SCOPE(_,n$16,n$19,n$20,n$21,n$22,0$?%__sil_tmpSIL_materialize_temp__n$15); [line 47, column 12]\n " shape="box"] "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_6" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_5" ; -"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_7" [label="7: Call _fun_break_scope::iterator_operator++ \n n$26=_fun_break_scope::iterator_operator++(&__begin1:break_scope::iterator&,&0$?%__sil_tmp__temp_return_n$25:break_scope::iterator*) [line 47, column 12]\n EXIT_SCOPE(n$26); [line 47, column 12]\n APPLY_ABSTRACTION; [line 47, column 12]\n " shape="box"] +"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_7" [label="7: Call _fun_break_scope::iterator_operator++ \n n$26=_fun_break_scope::iterator_operator++(&__begin1:break_scope::iterator&,&0$?%__sil_tmp__temp_return_n$25:break_scope::iterator*) assign_last [line 47, column 12]\n EXIT_SCOPE(n$26,0$?%__sil_tmp__temp_return_n$25); [line 47, column 12]\n APPLY_ABSTRACTION; [line 47, column 12]\n " shape="box"] "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_7" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_4" ; @@ -174,7 +174,7 @@ digraph cfg { "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_9" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_17" ; -"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_10" [label="10: Prune (false branch, for loop) \n PRUNE(!n$28, false); [line 47, column 12]\n EXIT_SCOPE(n$28); [line 47, column 12]\n APPLY_ABSTRACTION; [line 47, column 12]\n " shape="invhouse"] +"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_10" [label="10: Prune (false branch, for loop) \n PRUNE(!n$28, false); [line 47, column 12]\n EXIT_SCOPE(n$28,__end1,__begin1); [line 47, column 12]\n APPLY_ABSTRACTION; [line 47, column 12]\n " shape="invhouse"] "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_10" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_3" ; @@ -182,11 +182,11 @@ digraph cfg { "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_11" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_7" ; -"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_12" [label="12: Prune (true branch, if) \n n$31=*&b:_Bool [line 48, column 9]\n PRUNE(n$31, true); [line 48, column 9]\n NULLIFY(&b); [line 48, column 9]\n EXIT_SCOPE(n$31,b); [line 48, column 9]\n " shape="invhouse"] +"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_12" [label="12: Prune (true branch, if) \n n$31=*&b:_Bool [line 48, column 9]\n PRUNE(n$31, true); [line 48, column 9]\n NULLIFY(&b); [line 48, column 9]\n EXIT_SCOPE(n$31,b,__end1,__begin1); [line 48, column 9]\n " shape="invhouse"] "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_12" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_16" ; -"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_13" [label="13: Prune (false branch, if) \n n$31=*&b:_Bool [line 48, column 9]\n PRUNE(!n$31, false); [line 48, column 9]\n EXIT_SCOPE(n$31); [line 48, column 9]\n APPLY_ABSTRACTION; [line 48, column 9]\n " shape="invhouse"] +"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_13" [label="13: Prune (false branch, if) \n n$31=*&b:_Bool [line 48, column 9]\n PRUNE(!n$31, false); [line 48, column 9]\n EXIT_SCOPE(n$31,x); [line 48, column 9]\n APPLY_ABSTRACTION; [line 48, column 9]\n " shape="invhouse"] "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_13" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_11" ; @@ -198,24 +198,24 @@ digraph cfg { "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_15" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_3" ; -"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_16" [label="16: DeclStmt \n n$39=_fun___variable_initialization(&x2:break_scope::X) [line 49, column 7]\n n$38=_fun_break_scope::X_X(&x2:break_scope::X*,&x:break_scope::X&) [line 49, column 14]\n EXIT_SCOPE(n$38,n$39,x); [line 49, column 14]\n " shape="box"] +"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_16" [label="16: DeclStmt \n n$39=_fun___variable_initialization(&x2:break_scope::X) assign_last [line 49, column 7]\n n$38=_fun_break_scope::X_X(&x2:break_scope::X*,&x:break_scope::X&) [line 49, column 14]\n EXIT_SCOPE(n$38,n$39,x); [line 49, column 14]\n " shape="box"] "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_16" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_15" ; -"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_17" [label="17: DeclStmt \n n$48=_fun___variable_initialization(&x:break_scope::X) [line 47, column 8]\n n$46=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$42:break_scope::X const ) [line 47, column 12]\n n$45=_fun_break_scope::iterator_operator*(&__begin1:break_scope::iterator&,&0$?%__sil_tmpSIL_materialize_temp__n$42:break_scope::X*) [line 47, column 12]\n n$47=_fun_break_scope::X_X(&x:break_scope::X*,&0$?%__sil_tmpSIL_materialize_temp__n$42:break_scope::X const &) [line 47, column 12]\n EXIT_SCOPE(n$45,n$46,n$47,n$48); [line 47, column 12]\n " shape="box"] +"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_17" [label="17: DeclStmt \n n$48=_fun___variable_initialization(&x:break_scope::X) assign_last [line 47, column 8]\n n$46=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$42:break_scope::X const ) assign_last [line 47, column 12]\n n$45=_fun_break_scope::iterator_operator*(&__begin1:break_scope::iterator&,&0$?%__sil_tmpSIL_materialize_temp__n$42:break_scope::X*) assign_last [line 47, column 12]\n n$47=_fun_break_scope::X_X(&x:break_scope::X*,&0$?%__sil_tmpSIL_materialize_temp__n$42:break_scope::X const &) [line 47, column 12]\n EXIT_SCOPE(n$45,n$46,n$47,n$48,0$?%__sil_tmpSIL_materialize_temp__n$42); [line 47, column 12]\n " shape="box"] "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_17" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_12" ; "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_17" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_13" ; -"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_18" [label="18: DeclStmt \n n$50=_fun___variable_initialization(&__range1:break_scope::vec&) [line 47, column 14]\n *&__range1:break_scope::vec&=&vector [line 47, column 14]\n EXIT_SCOPE(n$50); [line 47, column 14]\n " shape="box"] +"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_18" [label="18: DeclStmt \n n$50=_fun___variable_initialization(&__range1:break_scope::vec&) assign_last [line 47, column 14]\n *&__range1:break_scope::vec&=&vector [line 47, column 14]\n EXIT_SCOPE(n$50); [line 47, column 14]\n " shape="box"] "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_18" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_6" ; -"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_19" [label="19: DeclStmt \n n$52=_fun___variable_initialization(&x1:break_scope::X) [line 46, column 3]\n n$51=_fun_break_scope::X_X(&x1:break_scope::X*) [line 46, column 5]\n EXIT_SCOPE(n$51,n$52); [line 46, column 5]\n " shape="box"] +"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_19" [label="19: DeclStmt \n n$52=_fun___variable_initialization(&x1:break_scope::X) assign_last [line 46, column 3]\n n$51=_fun_break_scope::X_X(&x1:break_scope::X*) [line 46, column 5]\n EXIT_SCOPE(n$51,n$52); [line 46, column 5]\n " shape="box"] "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_19" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_18" ; -"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_20" [label="20: DeclStmt \n n$54=_fun___variable_initialization(&vector:break_scope::vec) [line 45, column 3]\n n$53=_fun_break_scope::vec_vec(&vector:break_scope::vec*) [line 45, column 7]\n EXIT_SCOPE(n$53,n$54); [line 45, column 7]\n " shape="box"] +"test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_20" [label="20: DeclStmt \n n$54=_fun___variable_initialization(&vector:break_scope::vec) assign_last [line 45, column 3]\n n$53=_fun_break_scope::vec_vec(&vector:break_scope::vec*) [line 45, column 7]\n EXIT_SCOPE(n$53,n$54); [line 45, column 7]\n " shape="box"] "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_20" -> "test_for_range#break_scope#2115859683356214080.ad34c277f8d086eb0a22c75fc80fb235_19" ; @@ -230,7 +230,7 @@ digraph cfg { "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_3" -> "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_2" ; -"test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x5:break_scope::X) [line 127, column 3]\n n$5=_fun_break_scope::X_X(&x5:break_scope::X*) [line 127, column 5]\n EXIT_SCOPE(n$5,n$6); [line 127, column 5]\n " shape="box"] +"test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x5:break_scope::X) assign_last [line 127, column 3]\n n$5=_fun_break_scope::X_X(&x5:break_scope::X*) [line 127, column 5]\n EXIT_SCOPE(n$5,n$6); [line 127, column 5]\n " shape="box"] "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_4" -> "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_3" ; @@ -243,7 +243,7 @@ digraph cfg { "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_6" -> "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_4" ; -"test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_7" [label="7: DeclStmt \n n$13=_fun___variable_initialization(&x4:break_scope::X) [line 124, column 7]\n n$12=_fun_break_scope::X_X(&x4:break_scope::X*) [line 124, column 9]\n EXIT_SCOPE(n$12,n$13); [line 124, column 9]\n " shape="box"] +"test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_7" [label="7: DeclStmt \n n$13=_fun___variable_initialization(&x4:break_scope::X) assign_last [line 124, column 7]\n n$12=_fun_break_scope::X_X(&x4:break_scope::X*) [line 124, column 9]\n EXIT_SCOPE(n$12,n$13); [line 124, column 9]\n " shape="box"] "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_7" -> "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_6" ; @@ -255,7 +255,7 @@ digraph cfg { "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_9" -> "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_4" ; -"test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_10" [label="10: DeclStmt \n n$21=_fun___variable_initialization(&x3:break_scope::X) [line 120, column 7]\n n$20=_fun_break_scope::X_X(&x3:break_scope::X*) [line 120, column 9]\n EXIT_SCOPE(n$20,n$21); [line 120, column 9]\n " shape="box"] +"test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_10" [label="10: DeclStmt \n n$21=_fun___variable_initialization(&x3:break_scope::X) assign_last [line 120, column 7]\n n$20=_fun_break_scope::X_X(&x3:break_scope::X*) [line 120, column 9]\n EXIT_SCOPE(n$20,n$21); [line 120, column 9]\n " shape="box"] "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_10" -> "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_9" ; @@ -263,7 +263,7 @@ digraph cfg { "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_11" -> "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_10" ; -"test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_12" [label="12: DeclStmt \n n$26=_fun___variable_initialization(&x2:break_scope::X) [line 117, column 7]\n n$25=_fun_break_scope::X_X(&x2:break_scope::X*) [line 117, column 9]\n EXIT_SCOPE(n$25,n$26); [line 117, column 9]\n " shape="box"] +"test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_12" [label="12: DeclStmt \n n$26=_fun___variable_initialization(&x2:break_scope::X) assign_last [line 117, column 7]\n n$25=_fun_break_scope::X_X(&x2:break_scope::X*) [line 117, column 9]\n EXIT_SCOPE(n$25,n$26); [line 117, column 9]\n " shape="box"] "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_12" -> "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_11" ; @@ -293,7 +293,7 @@ digraph cfg { "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_18" -> "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_15" ; "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_18" -> "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_16" ; -"test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_19" [label="19: DeclStmt \n n$29=_fun___variable_initialization(&x1:break_scope::X) [line 114, column 3]\n n$28=_fun_break_scope::X_X(&x1:break_scope::X*) [line 114, column 5]\n EXIT_SCOPE(n$28,n$29); [line 114, column 5]\n " shape="box"] +"test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_19" [label="19: DeclStmt \n n$29=_fun___variable_initialization(&x1:break_scope::X) assign_last [line 114, column 3]\n n$28=_fun_break_scope::X_X(&x1:break_scope::X*) [line 114, column 5]\n EXIT_SCOPE(n$28,n$29); [line 114, column 5]\n " shape="box"] "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_19" -> "test_switch#break_scope#5012999682930893305.43ca855443a5fa68fa701447a90f7a1f_5" ; @@ -342,19 +342,19 @@ digraph cfg { "test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_11" -> "test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_3" ; -"test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_12" [label="12: DeclStmt \n n$13=_fun___variable_initialization(&x2:break_scope::X) [line 70, column 7]\n n$12=_fun_break_scope::X_X(&x2:break_scope::X*) [line 70, column 9]\n EXIT_SCOPE(n$12,n$13); [line 70, column 9]\n " shape="box"] +"test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_12" [label="12: DeclStmt \n n$13=_fun___variable_initialization(&x2:break_scope::X) assign_last [line 70, column 7]\n n$12=_fun_break_scope::X_X(&x2:break_scope::X*) [line 70, column 9]\n EXIT_SCOPE(n$12,n$13); [line 70, column 9]\n " shape="box"] "test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_12" -> "test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_11" ; -"test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_13" [label="13: Destruction \n _=*&x4:break_scope::X [line 74, column 5]\n n$15=_fun_break_scope::X_~X(&x4:break_scope::X*) [line 74, column 5]\n EXIT_SCOPE(_,n$15); [line 74, column 5]\n APPLY_ABSTRACTION; [line 74, column 5]\n " shape="box"] +"test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_13" [label="13: Destruction \n _=*&x4:break_scope::X [line 74, column 5]\n n$15=_fun_break_scope::X_~X(&x4:break_scope::X*) [line 74, column 5]\n EXIT_SCOPE(_,n$15,x4); [line 74, column 5]\n APPLY_ABSTRACTION; [line 74, column 5]\n " shape="box"] "test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_13" -> "test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_7" ; -"test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_14" [label="14: DeclStmt \n n$18=_fun___variable_initialization(&x4:break_scope::X) [line 73, column 7]\n n$17=_fun_break_scope::X_X(&x4:break_scope::X*) [line 73, column 9]\n EXIT_SCOPE(n$17,n$18); [line 73, column 9]\n " shape="box"] +"test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_14" [label="14: DeclStmt \n n$18=_fun___variable_initialization(&x4:break_scope::X) assign_last [line 73, column 7]\n n$17=_fun_break_scope::X_X(&x4:break_scope::X*) [line 73, column 9]\n EXIT_SCOPE(n$17,n$18); [line 73, column 9]\n " shape="box"] "test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_14" -> "test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_13" ; -"test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_15" [label="15: DeclStmt \n n$22=_fun___variable_initialization(&x1:break_scope::X) [line 67, column 3]\n n$21=_fun_break_scope::X_X(&x1:break_scope::X*) [line 67, column 5]\n EXIT_SCOPE(n$21,n$22); [line 67, column 5]\n APPLY_ABSTRACTION; [line 67, column 5]\n " shape="box"] +"test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_15" [label="15: DeclStmt \n n$22=_fun___variable_initialization(&x1:break_scope::X) assign_last [line 67, column 3]\n n$21=_fun_break_scope::X_X(&x1:break_scope::X*) [line 67, column 5]\n EXIT_SCOPE(n$21,n$22); [line 67, column 5]\n APPLY_ABSTRACTION; [line 67, column 5]\n " shape="box"] "test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_15" -> "test_while1#break_scope#17740518799763849642.b3409b963f3ece06bd5b04dd968e5c61_4" ; @@ -382,7 +382,7 @@ digraph cfg { "test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_6" -> "test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_3" ; -"test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_7" [label="7: Destruction \n _=*&x2:break_scope::X [line 99, column 3]\n n$5=_fun_break_scope::X_~X(&x2:break_scope::X*) [line 99, column 3]\n EXIT_SCOPE(_,n$5); [line 99, column 3]\n APPLY_ABSTRACTION; [line 99, column 3]\n " shape="box"] +"test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_7" [label="7: Destruction \n _=*&x2:break_scope::X [line 99, column 3]\n n$5=_fun_break_scope::X_~X(&x2:break_scope::X*) [line 99, column 3]\n EXIT_SCOPE(_,n$5,x2); [line 99, column 3]\n APPLY_ABSTRACTION; [line 99, column 3]\n " shape="box"] "test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_7" -> "test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_4" ; @@ -403,19 +403,19 @@ digraph cfg { "test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_11" -> "test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_8" ; -"test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_12" [label="12: Destruction \n _=*&x3:break_scope::X [line 97, column 7]\n n$12=_fun_break_scope::X_~X(&x3:break_scope::X*) [line 97, column 7]\n EXIT_SCOPE(_,n$12); [line 97, column 7]\n APPLY_ABSTRACTION; [line 97, column 7]\n " shape="box"] +"test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_12" [label="12: Destruction \n _=*&x3:break_scope::X [line 97, column 7]\n n$12=_fun_break_scope::X_~X(&x3:break_scope::X*) [line 97, column 7]\n EXIT_SCOPE(_,n$12,x3); [line 97, column 7]\n APPLY_ABSTRACTION; [line 97, column 7]\n " shape="box"] "test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_12" -> "test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_7" ; -"test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_13" [label="13: DeclStmt \n n$15=_fun___variable_initialization(&x3:break_scope::X) [line 96, column 7]\n n$14=_fun_break_scope::X_X(&x3:break_scope::X*) [line 96, column 9]\n EXIT_SCOPE(n$14,n$15); [line 96, column 9]\n " shape="box"] +"test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_13" [label="13: DeclStmt \n n$15=_fun___variable_initialization(&x3:break_scope::X) assign_last [line 96, column 7]\n n$14=_fun_break_scope::X_X(&x3:break_scope::X*) [line 96, column 9]\n EXIT_SCOPE(n$14,n$15); [line 96, column 9]\n " shape="box"] "test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_13" -> "test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_12" ; -"test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_14" [label="14: DeclStmt \n n$18=_fun___variable_initialization(&x2:break_scope::X) [line 94, column 5]\n n$17=_fun_break_scope::X_X(&x2:break_scope::X*) [line 94, column 7]\n EXIT_SCOPE(n$17,n$18); [line 94, column 7]\n APPLY_ABSTRACTION; [line 94, column 7]\n " shape="box"] +"test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_14" [label="14: DeclStmt \n n$18=_fun___variable_initialization(&x2:break_scope::X) assign_last [line 94, column 5]\n n$17=_fun_break_scope::X_X(&x2:break_scope::X*) [line 94, column 7]\n EXIT_SCOPE(n$17,n$18); [line 94, column 7]\n APPLY_ABSTRACTION; [line 94, column 7]\n " shape="box"] "test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_14" -> "test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_8" ; -"test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_15" [label="15: DeclStmt \n n$21=_fun___variable_initialization(&x1:break_scope::X) [line 92, column 3]\n n$20=_fun_break_scope::X_X(&x1:break_scope::X*) [line 92, column 5]\n EXIT_SCOPE(n$20,n$21); [line 92, column 5]\n APPLY_ABSTRACTION; [line 92, column 5]\n " shape="box"] +"test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_15" [label="15: DeclStmt \n n$21=_fun___variable_initialization(&x1:break_scope::X) assign_last [line 92, column 3]\n n$20=_fun_break_scope::X_X(&x1:break_scope::X*) [line 92, column 5]\n EXIT_SCOPE(n$20,n$21); [line 92, column 5]\n APPLY_ABSTRACTION; [line 92, column 5]\n " shape="box"] "test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_15" -> "test_while2#break_scope#17250772168162981325.38013d039ed950814e06274bca56c75d_4" ; @@ -430,7 +430,7 @@ digraph cfg { "test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_3" -> "test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_2" ; -"test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x3:break_scope::X) [line 110, column 3]\n n$5=_fun_break_scope::X_X(&x3:break_scope::X*) [line 110, column 5]\n EXIT_SCOPE(n$5,n$6); [line 110, column 5]\n " shape="box"] +"test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x3:break_scope::X) assign_last [line 110, column 3]\n n$5=_fun_break_scope::X_X(&x3:break_scope::X*) [line 110, column 5]\n EXIT_SCOPE(n$5,n$6); [line 110, column 5]\n " shape="box"] "test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_4" -> "test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_3" ; @@ -447,7 +447,7 @@ digraph cfg { "test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_7" -> "test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_4" ; -"test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_8" [label="8: Destruction \n _=*&x2:break_scope::X [line 109, column 3]\n n$9=_fun_break_scope::X_~X(&x2:break_scope::X*) [line 109, column 3]\n EXIT_SCOPE(_,n$9); [line 109, column 3]\n APPLY_ABSTRACTION; [line 109, column 3]\n " shape="box"] +"test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_8" [label="8: Destruction \n _=*&x2:break_scope::X [line 109, column 3]\n n$9=_fun_break_scope::X_~X(&x2:break_scope::X*) [line 109, column 3]\n EXIT_SCOPE(_,n$9,x2); [line 109, column 3]\n APPLY_ABSTRACTION; [line 109, column 3]\n " shape="box"] "test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_8" -> "test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_5" ; @@ -464,11 +464,11 @@ digraph cfg { "test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_11" -> "test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_8" ; -"test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_12" [label="12: DeclStmt \n n$17=_fun___variable_initialization(&x2:break_scope::X) [line 105, column 5]\n n$16=_fun_break_scope::X_X(&x2:break_scope::X*) [line 105, column 7]\n EXIT_SCOPE(n$16,n$17); [line 105, column 7]\n " shape="box"] +"test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_12" [label="12: DeclStmt \n n$17=_fun___variable_initialization(&x2:break_scope::X) assign_last [line 105, column 5]\n n$16=_fun_break_scope::X_X(&x2:break_scope::X*) [line 105, column 7]\n EXIT_SCOPE(n$16,n$17); [line 105, column 7]\n " shape="box"] "test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_12" -> "test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_9" ; -"test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_13" [label="13: DeclStmt \n n$20=_fun___variable_initialization(&x1:break_scope::X) [line 103, column 3]\n n$19=_fun_break_scope::X_X(&x1:break_scope::X*) [line 103, column 5]\n EXIT_SCOPE(n$19,n$20); [line 103, column 5]\n APPLY_ABSTRACTION; [line 103, column 5]\n " shape="box"] +"test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_13" [label="13: DeclStmt \n n$20=_fun___variable_initialization(&x1:break_scope::X) assign_last [line 103, column 3]\n n$19=_fun_break_scope::X_X(&x1:break_scope::X*) [line 103, column 5]\n EXIT_SCOPE(n$19,n$20); [line 103, column 5]\n APPLY_ABSTRACTION; [line 103, column 5]\n " shape="box"] "test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_13" -> "test_while3#break_scope#10134831914750033380.7cab458a264bff5f98e4df48e17e8d7d_5" ; @@ -562,7 +562,7 @@ digraph cfg { "operator*#iterator#break_scope(class break_scope::X)#(4328339407583570703).89adb890a0c29514eda31053987e2050_2" [label="2: Exit break_scope::iterator_operator* \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 42, column 63]\n " color=yellow style=filled] -"operator*#iterator#break_scope(class break_scope::X)#(4328339407583570703).89adb890a0c29514eda31053987e2050_3" [label="3: Return Stmt \n n$0=*&__return_param:break_scope::X* [line 42, column 33]\n n$9=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::X const ) [line 42, column 40]\n n$2=*&this:break_scope::iterator const * [line 42, column 40]\n n$3=*n$2.vector:break_scope::vec const * [line 42, column 40]\n _=*n$3:break_scope::vec const [line 42, column 40]\n n$5=*&this:break_scope::iterator const * [line 42, column 52]\n n$6=*n$5.position:int [line 42, column 52]\n n$8=_fun_break_scope::vec_get(n$3:break_scope::vec const *,n$6:int,&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::X*) [line 42, column 40]\n n$10=_fun_break_scope::X_X(n$0:break_scope::X*,&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::X const &) [line 42, column 40]\n NULLIFY(&__return_param); [line 42, column 40]\n NULLIFY(&this); [line 42, column 40]\n EXIT_SCOPE(_,n$0,n$2,n$3,n$5,n$6,n$8,n$9,n$10,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1,this); [line 42, column 40]\n APPLY_ABSTRACTION; [line 42, column 40]\n " shape="box"] +"operator*#iterator#break_scope(class break_scope::X)#(4328339407583570703).89adb890a0c29514eda31053987e2050_3" [label="3: Return Stmt \n n$0=*&__return_param:break_scope::X* [line 42, column 33]\n n$9=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::X const ) assign_last [line 42, column 40]\n n$2=*&this:break_scope::iterator const * [line 42, column 40]\n n$3=*n$2.vector:break_scope::vec const * [line 42, column 40]\n _=*n$3:break_scope::vec const [line 42, column 40]\n n$5=*&this:break_scope::iterator const * [line 42, column 52]\n n$6=*n$5.position:int [line 42, column 52]\n n$8=_fun_break_scope::vec_get(n$3:break_scope::vec const *,n$6:int,&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::X*) assign_last [line 42, column 40]\n n$10=_fun_break_scope::X_X(n$0:break_scope::X*,&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::X const &) [line 42, column 40]\n NULLIFY(&__return_param); [line 42, column 40]\n NULLIFY(&this); [line 42, column 40]\n EXIT_SCOPE(_,n$0,n$2,n$3,n$5,n$6,n$8,n$9,n$10,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1,this); [line 42, column 40]\n APPLY_ABSTRACTION; [line 42, column 40]\n " shape="box"] "operator*#iterator#break_scope(class break_scope::X)#(4328339407583570703).89adb890a0c29514eda31053987e2050_3" -> "operator*#iterator#break_scope(class break_scope::X)#(4328339407583570703).89adb890a0c29514eda31053987e2050_2" ; @@ -629,7 +629,7 @@ digraph cfg { "end#vec#break_scope(class break_scope::iterator)#(4427317924121915380).28b4ffbb5a64aa367cc424acb2a0de9b_2" [label="2: Exit break_scope::vec_end \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 35, column 47]\n " color=yellow style=filled] -"end#vec#break_scope(class break_scope::iterator)#(4427317924121915380).28b4ffbb5a64aa367cc424acb2a0de9b_3" [label="3: Return Stmt \n n$0=*&__return_param:break_scope::iterator* [line 35, column 20]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::iterator) [line 35, column 27]\n n$2=*&this:break_scope::vec* [line 35, column 36]\n n$3=_fun_break_scope::iterator_iterator(&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::iterator*,n$2:break_scope::vec*,10:int) [line 35, column 27]\n n$5=_fun_break_scope::iterator_iterator(n$0:break_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::iterator&) [line 35, column 27]\n NULLIFY(&__return_param); [line 35, column 27]\n NULLIFY(&this); [line 35, column 27]\n EXIT_SCOPE(n$0,n$2,n$3,n$4,n$5,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1,this); [line 35, column 27]\n APPLY_ABSTRACTION; [line 35, column 27]\n " shape="box"] +"end#vec#break_scope(class break_scope::iterator)#(4427317924121915380).28b4ffbb5a64aa367cc424acb2a0de9b_3" [label="3: Return Stmt \n n$0=*&__return_param:break_scope::iterator* [line 35, column 20]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::iterator) assign_last [line 35, column 27]\n n$2=*&this:break_scope::vec* [line 35, column 36]\n n$3=_fun_break_scope::iterator_iterator(&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::iterator*,n$2:break_scope::vec*,10:int) [line 35, column 27]\n n$5=_fun_break_scope::iterator_iterator(n$0:break_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::iterator&) [line 35, column 27]\n NULLIFY(&__return_param); [line 35, column 27]\n NULLIFY(&this); [line 35, column 27]\n EXIT_SCOPE(n$0,n$2,n$3,n$4,n$5,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1,this); [line 35, column 27]\n APPLY_ABSTRACTION; [line 35, column 27]\n " shape="box"] "end#vec#break_scope(class break_scope::iterator)#(4427317924121915380).28b4ffbb5a64aa367cc424acb2a0de9b_3" -> "end#vec#break_scope(class break_scope::iterator)#(4427317924121915380).28b4ffbb5a64aa367cc424acb2a0de9b_2" ; @@ -640,7 +640,7 @@ digraph cfg { "begin#vec#break_scope(class break_scope::iterator)#(5557509884489875894).5dac1fcfbf012c7c4e9ccd6f67cbd1ce_2" [label="2: Exit break_scope::vec_begin \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 34, column 48]\n " color=yellow style=filled] -"begin#vec#break_scope(class break_scope::iterator)#(5557509884489875894).5dac1fcfbf012c7c4e9ccd6f67cbd1ce_3" [label="3: Return Stmt \n n$0=*&__return_param:break_scope::iterator* [line 34, column 22]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::iterator) [line 34, column 29]\n n$2=*&this:break_scope::vec* [line 34, column 38]\n n$3=_fun_break_scope::iterator_iterator(&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::iterator*,n$2:break_scope::vec*,0:int) [line 34, column 29]\n n$5=_fun_break_scope::iterator_iterator(n$0:break_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::iterator&) [line 34, column 29]\n NULLIFY(&__return_param); [line 34, column 29]\n NULLIFY(&this); [line 34, column 29]\n EXIT_SCOPE(n$0,n$2,n$3,n$4,n$5,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1,this); [line 34, column 29]\n APPLY_ABSTRACTION; [line 34, column 29]\n " shape="box"] +"begin#vec#break_scope(class break_scope::iterator)#(5557509884489875894).5dac1fcfbf012c7c4e9ccd6f67cbd1ce_3" [label="3: Return Stmt \n n$0=*&__return_param:break_scope::iterator* [line 34, column 22]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::iterator) assign_last [line 34, column 29]\n n$2=*&this:break_scope::vec* [line 34, column 38]\n n$3=_fun_break_scope::iterator_iterator(&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::iterator*,n$2:break_scope::vec*,0:int) [line 34, column 29]\n n$5=_fun_break_scope::iterator_iterator(n$0:break_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$1:break_scope::iterator&) [line 34, column 29]\n NULLIFY(&__return_param); [line 34, column 29]\n NULLIFY(&this); [line 34, column 29]\n EXIT_SCOPE(n$0,n$2,n$3,n$4,n$5,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1,this); [line 34, column 29]\n APPLY_ABSTRACTION; [line 34, column 29]\n " shape="box"] "begin#vec#break_scope(class break_scope::iterator)#(5557509884489875894).5dac1fcfbf012c7c4e9ccd6f67cbd1ce_3" -> "begin#vec#break_scope(class break_scope::iterator)#(5557509884489875894).5dac1fcfbf012c7c4e9ccd6f67cbd1ce_2" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/destructors/continue_scope.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/destructors/continue_scope.cpp.dot index 3fa0183e9..dfb0f408a 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/destructors/continue_scope.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/destructors/continue_scope.cpp.dot @@ -23,7 +23,7 @@ digraph cfg { "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_6" -> "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_3" ; -"test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_7" [label="7: Destruction \n _=*&x2:continue_scope::X [line 88, column 3]\n n$5=_fun_continue_scope::X_~X(&x2:continue_scope::X*) [line 88, column 3]\n EXIT_SCOPE(_,n$5); [line 88, column 3]\n " shape="box"] +"test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_7" [label="7: Destruction \n _=*&x2:continue_scope::X [line 88, column 3]\n n$5=_fun_continue_scope::X_~X(&x2:continue_scope::X*) [line 88, column 3]\n EXIT_SCOPE(_,n$5,x2); [line 88, column 3]\n " shape="box"] "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_7" -> "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_5" ; @@ -44,29 +44,29 @@ digraph cfg { "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_11" -> "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_8" ; -"test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_12" [label="12: Destruction \n _=*&x3:continue_scope::X [line 84, column 7]\n n$12=_fun_continue_scope::X_~X(&x3:continue_scope::X*) [line 84, column 7]\n _=*&x2:continue_scope::X [line 84, column 7]\n n$14=_fun_continue_scope::X_~X(&x2:continue_scope::X*) [line 84, column 7]\n EXIT_SCOPE(_,_,n$12,n$14); [line 84, column 7]\n " shape="box"] +"test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_12" [label="12: Destruction \n _=*&x3:continue_scope::X [line 84, column 7]\n n$12=_fun_continue_scope::X_~X(&x3:continue_scope::X*) [line 84, column 7]\n _=*&x2:continue_scope::X [line 84, column 7]\n n$14=_fun_continue_scope::X_~X(&x2:continue_scope::X*) [line 84, column 7]\n EXIT_SCOPE(_,_,n$12,n$14,x2,x3); [line 84, column 7]\n " shape="box"] "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_12" -> "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_5" ; "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_12" -> "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_6" ; -"test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_13" [label="13: DeclStmt \n n$17=_fun___variable_initialization(&x3:continue_scope::X) [line 83, column 7]\n n$16=_fun_continue_scope::X_X(&x3:continue_scope::X*) [line 83, column 9]\n EXIT_SCOPE(n$16,n$17); [line 83, column 9]\n " shape="box"] +"test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_13" [label="13: DeclStmt \n n$17=_fun___variable_initialization(&x3:continue_scope::X) assign_last [line 83, column 7]\n n$16=_fun_continue_scope::X_X(&x3:continue_scope::X*) [line 83, column 9]\n EXIT_SCOPE(n$16,n$17); [line 83, column 9]\n " shape="box"] "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_13" -> "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_12" ; -"test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_14" [label="14: Destruction \n _=*&x4:continue_scope::X [line 87, column 5]\n n$19=_fun_continue_scope::X_~X(&x4:continue_scope::X*) [line 87, column 5]\n EXIT_SCOPE(_,n$19); [line 87, column 5]\n APPLY_ABSTRACTION; [line 87, column 5]\n " shape="box"] +"test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_14" [label="14: Destruction \n _=*&x4:continue_scope::X [line 87, column 5]\n n$19=_fun_continue_scope::X_~X(&x4:continue_scope::X*) [line 87, column 5]\n EXIT_SCOPE(_,n$19,x4); [line 87, column 5]\n APPLY_ABSTRACTION; [line 87, column 5]\n " shape="box"] "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_14" -> "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_8" ; -"test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_15" [label="15: DeclStmt \n n$22=_fun___variable_initialization(&x4:continue_scope::X) [line 86, column 7]\n n$21=_fun_continue_scope::X_X(&x4:continue_scope::X*) [line 86, column 9]\n EXIT_SCOPE(n$21,n$22); [line 86, column 9]\n " shape="box"] +"test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_15" [label="15: DeclStmt \n n$22=_fun___variable_initialization(&x4:continue_scope::X) assign_last [line 86, column 7]\n n$21=_fun_continue_scope::X_X(&x4:continue_scope::X*) [line 86, column 9]\n EXIT_SCOPE(n$21,n$22); [line 86, column 9]\n " shape="box"] "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_15" -> "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_14" ; -"test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_16" [label="16: DeclStmt \n n$25=_fun___variable_initialization(&x2:continue_scope::X) [line 81, column 5]\n n$24=_fun_continue_scope::X_X(&x2:continue_scope::X*) [line 81, column 7]\n EXIT_SCOPE(n$24,n$25); [line 81, column 7]\n " shape="box"] +"test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_16" [label="16: DeclStmt \n n$25=_fun___variable_initialization(&x2:continue_scope::X) assign_last [line 81, column 5]\n n$24=_fun_continue_scope::X_X(&x2:continue_scope::X*) [line 81, column 7]\n EXIT_SCOPE(n$24,n$25); [line 81, column 7]\n " shape="box"] "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_16" -> "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_9" ; "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_16" -> "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_10" ; -"test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_17" [label="17: DeclStmt \n n$28=_fun___variable_initialization(&x1:continue_scope::X) [line 79, column 3]\n n$27=_fun_continue_scope::X_X(&x1:continue_scope::X*) [line 79, column 5]\n EXIT_SCOPE(n$27,n$28); [line 79, column 5]\n APPLY_ABSTRACTION; [line 79, column 5]\n " shape="box"] +"test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_17" [label="17: DeclStmt \n n$28=_fun___variable_initialization(&x1:continue_scope::X) assign_last [line 79, column 3]\n n$27=_fun_continue_scope::X_X(&x1:continue_scope::X*) [line 79, column 5]\n EXIT_SCOPE(n$27,n$28); [line 79, column 5]\n APPLY_ABSTRACTION; [line 79, column 5]\n " shape="box"] "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_17" -> "test_do_while#continue_scope#8999676231552324448.9fe455097ef7e757730530e9e7c09864_4" ; @@ -81,7 +81,7 @@ digraph cfg { "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_3" -> "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_2" ; -"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x2:continue_scope::X) [line 63, column 3]\n n$5=_fun_continue_scope::X_X(&x2:continue_scope::X*) [line 63, column 5]\n EXIT_SCOPE(n$5,n$6); [line 63, column 5]\n " shape="box"] +"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x2:continue_scope::X) assign_last [line 63, column 3]\n n$5=_fun_continue_scope::X_X(&x2:continue_scope::X*) [line 63, column 5]\n EXIT_SCOPE(n$5,n$6); [line 63, column 5]\n " shape="box"] "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_4" -> "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_3" ; @@ -89,15 +89,15 @@ digraph cfg { "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_5" -> "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_8" ; -"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_6" [label="6: DeclStmt \n n$13=_fun___variable_initialization(&it:continue_scope::iterator) [line 57, column 8]\n n$11=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:continue_scope::iterator) [line 57, column 22]\n _=*&vector:continue_scope::vec [line 57, column 22]\n n$10=_fun_continue_scope::vec_begin(&vector:continue_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$7:continue_scope::iterator*) [line 57, column 22]\n n$12=_fun_continue_scope::iterator_iterator(&it:continue_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$7:continue_scope::iterator&) [line 57, column 22]\n EXIT_SCOPE(_,n$10,n$11,n$12,n$13,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 57, column 22]\n APPLY_ABSTRACTION; [line 57, column 22]\n " shape="box"] +"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_6" [label="6: DeclStmt \n n$13=_fun___variable_initialization(&it:continue_scope::iterator) assign_last [line 57, column 8]\n n$11=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:continue_scope::iterator) assign_last [line 57, column 22]\n _=*&vector:continue_scope::vec [line 57, column 22]\n n$10=_fun_continue_scope::vec_begin(&vector:continue_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$7:continue_scope::iterator*) assign_last [line 57, column 22]\n n$12=_fun_continue_scope::iterator_iterator(&it:continue_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$7:continue_scope::iterator&) [line 57, column 22]\n EXIT_SCOPE(_,n$10,n$11,n$12,n$13,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 57, column 22]\n APPLY_ABSTRACTION; [line 57, column 22]\n " shape="box"] "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_6" -> "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_5" ; -"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_7" [label="7: Call _fun_continue_scope::iterator_operator++ \n n$17=_fun_continue_scope::iterator_operator++(&it:continue_scope::iterator&,&0$?%__sil_tmp__temp_return_n$16:continue_scope::iterator*) [line 57, column 58]\n EXIT_SCOPE(n$17); [line 57, column 58]\n APPLY_ABSTRACTION; [line 57, column 58]\n " shape="box"] +"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_7" [label="7: Call _fun_continue_scope::iterator_operator++ \n n$17=_fun_continue_scope::iterator_operator++(&it:continue_scope::iterator&,&0$?%__sil_tmp__temp_return_n$16:continue_scope::iterator*) assign_last [line 57, column 58]\n EXIT_SCOPE(n$17,0$?%__sil_tmp__temp_return_n$16); [line 57, column 58]\n APPLY_ABSTRACTION; [line 57, column 58]\n " shape="box"] "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_7" -> "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_5" ; -"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_8" [label="8: Call _fun_continue_scope::iterator_operator!= \n n$23=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$19:continue_scope::iterator const ) [line 57, column 44]\n _=*&vector:continue_scope::vec [line 57, column 44]\n n$22=_fun_continue_scope::vec_end(&vector:continue_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$19:continue_scope::iterator*) [line 57, column 44]\n n$24=_fun_continue_scope::iterator_operator!=(&it:continue_scope::iterator&,&0$?%__sil_tmpSIL_materialize_temp__n$19:continue_scope::iterator const &) [line 57, column 38]\n EXIT_SCOPE(_,n$22,n$23); [line 57, column 38]\n " shape="box"] +"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_8" [label="8: Call _fun_continue_scope::iterator_operator!= \n n$23=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$19:continue_scope::iterator const ) assign_last [line 57, column 44]\n _=*&vector:continue_scope::vec [line 57, column 44]\n n$22=_fun_continue_scope::vec_end(&vector:continue_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$19:continue_scope::iterator*) assign_last [line 57, column 44]\n n$24=_fun_continue_scope::iterator_operator!=(&it:continue_scope::iterator&,&0$?%__sil_tmpSIL_materialize_temp__n$19:continue_scope::iterator const &) [line 57, column 38]\n EXIT_SCOPE(_,n$22,n$23,0$?%__sil_tmpSIL_materialize_temp__n$19); [line 57, column 38]\n " shape="box"] "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_8" -> "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_9" ; @@ -107,7 +107,7 @@ digraph cfg { "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_9" -> "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_12" ; "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_9" -> "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_13" ; -"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_10" [label="10: Prune (false branch, for loop) \n PRUNE(!n$24, false); [line 57, column 38]\n EXIT_SCOPE(n$24); [line 57, column 38]\n " shape="invhouse"] +"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_10" [label="10: Prune (false branch, for loop) \n PRUNE(!n$24, false); [line 57, column 38]\n EXIT_SCOPE(n$24,it); [line 57, column 38]\n " shape="invhouse"] "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_10" -> "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_4" ; @@ -127,15 +127,15 @@ digraph cfg { "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_14" -> "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_11" ; -"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_15" [label="15: Destruction \n _=*&x1:continue_scope::X [line 60, column 7]\n n$31=_fun_continue_scope::X_~X(&x1:continue_scope::X*) [line 60, column 7]\n EXIT_SCOPE(_,n$31); [line 60, column 7]\n APPLY_ABSTRACTION; [line 60, column 7]\n " shape="box"] +"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_15" [label="15: Destruction \n _=*&x1:continue_scope::X [line 60, column 7]\n n$31=_fun_continue_scope::X_~X(&x1:continue_scope::X*) [line 60, column 7]\n EXIT_SCOPE(_,n$31,x1); [line 60, column 7]\n APPLY_ABSTRACTION; [line 60, column 7]\n " shape="box"] "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_15" -> "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_7" ; -"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_16" [label="16: DeclStmt \n n$34=_fun___variable_initialization(&x1:continue_scope::X) [line 59, column 7]\n n$33=_fun_continue_scope::X_X(&x1:continue_scope::X*) [line 59, column 9]\n EXIT_SCOPE(n$33,n$34); [line 59, column 9]\n " shape="box"] +"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_16" [label="16: DeclStmt \n n$34=_fun___variable_initialization(&x1:continue_scope::X) assign_last [line 59, column 7]\n n$33=_fun_continue_scope::X_X(&x1:continue_scope::X*) [line 59, column 9]\n EXIT_SCOPE(n$33,n$34); [line 59, column 9]\n " shape="box"] "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_16" -> "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_15" ; -"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_17" [label="17: DeclStmt \n n$39=_fun___variable_initialization(&vector:continue_scope::vec) [line 56, column 3]\n n$38=_fun_continue_scope::vec_vec(&vector:continue_scope::vec*) [line 56, column 7]\n EXIT_SCOPE(n$38,n$39); [line 56, column 7]\n " shape="box"] +"test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_17" [label="17: DeclStmt \n n$39=_fun___variable_initialization(&vector:continue_scope::vec) assign_last [line 56, column 3]\n n$38=_fun_continue_scope::vec_vec(&vector:continue_scope::vec*) [line 56, column 7]\n EXIT_SCOPE(n$38,n$39); [line 56, column 7]\n " shape="box"] "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_17" -> "test_for#continue_scope#10203739842900202560.4cb2db668430574619fdf529fdd4af8c_6" ; @@ -154,15 +154,15 @@ digraph cfg { "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_4" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_8" ; -"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_5" [label="5: DeclStmt \n n$14=_fun___variable_initialization(&__end1:continue_scope::iterator) [line 47, column 12]\n n$12=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:continue_scope::iterator) [line 47, column 12]\n n$8=*&__range1:continue_scope::vec& [line 47, column 12]\n _=*n$8:continue_scope::vec [line 47, column 12]\n n$11=_fun_continue_scope::vec_end(n$8:continue_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$7:continue_scope::iterator*) [line 47, column 12]\n n$13=_fun_continue_scope::iterator_iterator(&__end1:continue_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$7:continue_scope::iterator&) [line 47, column 12]\n EXIT_SCOPE(_,n$8,n$11,n$12,n$13,n$14,__range1,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 47, column 12]\n APPLY_ABSTRACTION; [line 47, column 12]\n " shape="box"] +"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_5" [label="5: DeclStmt \n n$14=_fun___variable_initialization(&__end1:continue_scope::iterator) assign_last [line 47, column 12]\n n$12=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:continue_scope::iterator) assign_last [line 47, column 12]\n n$8=*&__range1:continue_scope::vec& [line 47, column 12]\n _=*n$8:continue_scope::vec [line 47, column 12]\n n$11=_fun_continue_scope::vec_end(n$8:continue_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$7:continue_scope::iterator*) assign_last [line 47, column 12]\n n$13=_fun_continue_scope::iterator_iterator(&__end1:continue_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$7:continue_scope::iterator&) [line 47, column 12]\n EXIT_SCOPE(_,n$8,n$11,n$12,n$13,n$14,__range1,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 47, column 12]\n APPLY_ABSTRACTION; [line 47, column 12]\n " shape="box"] "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_5" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_4" ; -"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_6" [label="6: DeclStmt \n n$22=_fun___variable_initialization(&__begin1:continue_scope::iterator) [line 47, column 12]\n n$20=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$15:continue_scope::iterator) [line 47, column 12]\n n$16=*&__range1:continue_scope::vec& [line 47, column 12]\n _=*n$16:continue_scope::vec [line 47, column 12]\n n$19=_fun_continue_scope::vec_begin(n$16:continue_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$15:continue_scope::iterator*) [line 47, column 12]\n n$21=_fun_continue_scope::iterator_iterator(&__begin1:continue_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$15:continue_scope::iterator&) [line 47, column 12]\n EXIT_SCOPE(_,n$16,n$19,n$20,n$21,n$22,0$?%__sil_tmpSIL_materialize_temp__n$15); [line 47, column 12]\n " shape="box"] +"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_6" [label="6: DeclStmt \n n$22=_fun___variable_initialization(&__begin1:continue_scope::iterator) assign_last [line 47, column 12]\n n$20=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$15:continue_scope::iterator) assign_last [line 47, column 12]\n n$16=*&__range1:continue_scope::vec& [line 47, column 12]\n _=*n$16:continue_scope::vec [line 47, column 12]\n n$19=_fun_continue_scope::vec_begin(n$16:continue_scope::vec&,&0$?%__sil_tmpSIL_materialize_temp__n$15:continue_scope::iterator*) assign_last [line 47, column 12]\n n$21=_fun_continue_scope::iterator_iterator(&__begin1:continue_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$15:continue_scope::iterator&) [line 47, column 12]\n EXIT_SCOPE(_,n$16,n$19,n$20,n$21,n$22,0$?%__sil_tmpSIL_materialize_temp__n$15); [line 47, column 12]\n " shape="box"] "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_6" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_5" ; -"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_7" [label="7: Call _fun_continue_scope::iterator_operator++ \n n$26=_fun_continue_scope::iterator_operator++(&__begin1:continue_scope::iterator&,&0$?%__sil_tmp__temp_return_n$25:continue_scope::iterator*) [line 47, column 12]\n EXIT_SCOPE(n$26); [line 47, column 12]\n APPLY_ABSTRACTION; [line 47, column 12]\n " shape="box"] +"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_7" [label="7: Call _fun_continue_scope::iterator_operator++ \n n$26=_fun_continue_scope::iterator_operator++(&__begin1:continue_scope::iterator&,&0$?%__sil_tmp__temp_return_n$25:continue_scope::iterator*) assign_last [line 47, column 12]\n EXIT_SCOPE(n$26,0$?%__sil_tmp__temp_return_n$25); [line 47, column 12]\n APPLY_ABSTRACTION; [line 47, column 12]\n " shape="box"] "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_7" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_4" ; @@ -175,7 +175,7 @@ digraph cfg { "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_9" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_17" ; -"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_10" [label="10: Prune (false branch, for loop) \n PRUNE(!n$28, false); [line 47, column 12]\n EXIT_SCOPE(n$28); [line 47, column 12]\n " shape="invhouse"] +"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_10" [label="10: Prune (false branch, for loop) \n PRUNE(!n$28, false); [line 47, column 12]\n EXIT_SCOPE(n$28,__end1,__begin1); [line 47, column 12]\n " shape="invhouse"] "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_10" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_3" ; @@ -187,7 +187,7 @@ digraph cfg { "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_12" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_16" ; -"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_13" [label="13: Prune (false branch, if) \n n$31=*&b:_Bool [line 48, column 9]\n PRUNE(!n$31, false); [line 48, column 9]\n EXIT_SCOPE(n$31); [line 48, column 9]\n APPLY_ABSTRACTION; [line 48, column 9]\n " shape="invhouse"] +"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_13" [label="13: Prune (false branch, if) \n n$31=*&b:_Bool [line 48, column 9]\n PRUNE(!n$31, false); [line 48, column 9]\n EXIT_SCOPE(n$31,x); [line 48, column 9]\n APPLY_ABSTRACTION; [line 48, column 9]\n " shape="invhouse"] "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_13" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_11" ; @@ -195,28 +195,28 @@ digraph cfg { "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_14" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_11" ; -"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_15" [label="15: Destruction \n _=*&x2:continue_scope::X [line 50, column 7]\n n$36=_fun_continue_scope::X_~X(&x2:continue_scope::X*) [line 50, column 7]\n EXIT_SCOPE(_,n$36); [line 50, column 7]\n APPLY_ABSTRACTION; [line 50, column 7]\n " shape="box"] +"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_15" [label="15: Destruction \n _=*&x2:continue_scope::X [line 50, column 7]\n n$36=_fun_continue_scope::X_~X(&x2:continue_scope::X*) [line 50, column 7]\n EXIT_SCOPE(_,n$36,x2); [line 50, column 7]\n APPLY_ABSTRACTION; [line 50, column 7]\n " shape="box"] "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_15" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_7" ; -"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_16" [label="16: DeclStmt \n n$39=_fun___variable_initialization(&x2:continue_scope::X) [line 49, column 7]\n n$38=_fun_continue_scope::X_X(&x2:continue_scope::X*,&x:continue_scope::X&) [line 49, column 14]\n EXIT_SCOPE(n$38,n$39); [line 49, column 14]\n " shape="box"] +"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_16" [label="16: DeclStmt \n n$39=_fun___variable_initialization(&x2:continue_scope::X) assign_last [line 49, column 7]\n n$38=_fun_continue_scope::X_X(&x2:continue_scope::X*,&x:continue_scope::X&) [line 49, column 14]\n EXIT_SCOPE(n$38,n$39,x); [line 49, column 14]\n " shape="box"] "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_16" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_15" ; -"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_17" [label="17: DeclStmt \n n$48=_fun___variable_initialization(&x:continue_scope::X) [line 47, column 8]\n n$46=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$42:continue_scope::X const ) [line 47, column 12]\n n$45=_fun_continue_scope::iterator_operator*(&__begin1:continue_scope::iterator&,&0$?%__sil_tmpSIL_materialize_temp__n$42:continue_scope::X*) [line 47, column 12]\n n$47=_fun_continue_scope::X_X(&x:continue_scope::X*,&0$?%__sil_tmpSIL_materialize_temp__n$42:continue_scope::X const &) [line 47, column 12]\n EXIT_SCOPE(n$45,n$46,n$47,n$48); [line 47, column 12]\n " shape="box"] +"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_17" [label="17: DeclStmt \n n$48=_fun___variable_initialization(&x:continue_scope::X) assign_last [line 47, column 8]\n n$46=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$42:continue_scope::X const ) assign_last [line 47, column 12]\n n$45=_fun_continue_scope::iterator_operator*(&__begin1:continue_scope::iterator&,&0$?%__sil_tmpSIL_materialize_temp__n$42:continue_scope::X*) assign_last [line 47, column 12]\n n$47=_fun_continue_scope::X_X(&x:continue_scope::X*,&0$?%__sil_tmpSIL_materialize_temp__n$42:continue_scope::X const &) [line 47, column 12]\n EXIT_SCOPE(n$45,n$46,n$47,n$48,0$?%__sil_tmpSIL_materialize_temp__n$42); [line 47, column 12]\n " shape="box"] "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_17" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_12" ; "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_17" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_13" ; -"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_18" [label="18: DeclStmt \n n$50=_fun___variable_initialization(&__range1:continue_scope::vec&) [line 47, column 14]\n *&__range1:continue_scope::vec&=&vector [line 47, column 14]\n EXIT_SCOPE(n$50); [line 47, column 14]\n " shape="box"] +"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_18" [label="18: DeclStmt \n n$50=_fun___variable_initialization(&__range1:continue_scope::vec&) assign_last [line 47, column 14]\n *&__range1:continue_scope::vec&=&vector [line 47, column 14]\n EXIT_SCOPE(n$50); [line 47, column 14]\n " shape="box"] "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_18" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_6" ; -"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_19" [label="19: DeclStmt \n n$52=_fun___variable_initialization(&x1:continue_scope::X) [line 46, column 3]\n n$51=_fun_continue_scope::X_X(&x1:continue_scope::X*) [line 46, column 5]\n EXIT_SCOPE(n$51,n$52); [line 46, column 5]\n " shape="box"] +"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_19" [label="19: DeclStmt \n n$52=_fun___variable_initialization(&x1:continue_scope::X) assign_last [line 46, column 3]\n n$51=_fun_continue_scope::X_X(&x1:continue_scope::X*) [line 46, column 5]\n EXIT_SCOPE(n$51,n$52); [line 46, column 5]\n " shape="box"] "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_19" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_18" ; -"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_20" [label="20: DeclStmt \n n$54=_fun___variable_initialization(&vector:continue_scope::vec) [line 45, column 3]\n n$53=_fun_continue_scope::vec_vec(&vector:continue_scope::vec*) [line 45, column 7]\n EXIT_SCOPE(n$53,n$54); [line 45, column 7]\n " shape="box"] +"test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_20" [label="20: DeclStmt \n n$54=_fun___variable_initialization(&vector:continue_scope::vec) assign_last [line 45, column 3]\n n$53=_fun_continue_scope::vec_vec(&vector:continue_scope::vec*) [line 45, column 7]\n EXIT_SCOPE(n$53,n$54); [line 45, column 7]\n " shape="box"] "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_20" -> "test_for_range#continue_scope#9937708960633325401.fa75d7368d8f711ae7e040a8b2ae1442_19" ; @@ -261,23 +261,23 @@ digraph cfg { "test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_10" -> "test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_7" ; -"test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_11" [label="11: Destruction \n _=*&x2:continue_scope::X [line 71, column 7]\n n$10=_fun_continue_scope::X_~X(&x2:continue_scope::X*) [line 71, column 7]\n EXIT_SCOPE(_,n$10); [line 71, column 7]\n APPLY_ABSTRACTION; [line 71, column 7]\n " shape="box"] +"test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_11" [label="11: Destruction \n _=*&x2:continue_scope::X [line 71, column 7]\n n$10=_fun_continue_scope::X_~X(&x2:continue_scope::X*) [line 71, column 7]\n EXIT_SCOPE(_,n$10,x2); [line 71, column 7]\n APPLY_ABSTRACTION; [line 71, column 7]\n " shape="box"] "test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_11" -> "test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_4" ; -"test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_12" [label="12: DeclStmt \n n$13=_fun___variable_initialization(&x2:continue_scope::X) [line 70, column 7]\n n$12=_fun_continue_scope::X_X(&x2:continue_scope::X*) [line 70, column 9]\n EXIT_SCOPE(n$12,n$13); [line 70, column 9]\n " shape="box"] +"test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_12" [label="12: DeclStmt \n n$13=_fun___variable_initialization(&x2:continue_scope::X) assign_last [line 70, column 7]\n n$12=_fun_continue_scope::X_X(&x2:continue_scope::X*) [line 70, column 9]\n EXIT_SCOPE(n$12,n$13); [line 70, column 9]\n " shape="box"] "test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_12" -> "test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_11" ; -"test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_13" [label="13: Destruction \n _=*&x4:continue_scope::X [line 74, column 5]\n n$15=_fun_continue_scope::X_~X(&x4:continue_scope::X*) [line 74, column 5]\n EXIT_SCOPE(_,n$15); [line 74, column 5]\n APPLY_ABSTRACTION; [line 74, column 5]\n " shape="box"] +"test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_13" [label="13: Destruction \n _=*&x4:continue_scope::X [line 74, column 5]\n n$15=_fun_continue_scope::X_~X(&x4:continue_scope::X*) [line 74, column 5]\n EXIT_SCOPE(_,n$15,x4); [line 74, column 5]\n APPLY_ABSTRACTION; [line 74, column 5]\n " shape="box"] "test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_13" -> "test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_7" ; -"test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_14" [label="14: DeclStmt \n n$18=_fun___variable_initialization(&x4:continue_scope::X) [line 73, column 7]\n n$17=_fun_continue_scope::X_X(&x4:continue_scope::X*) [line 73, column 9]\n EXIT_SCOPE(n$17,n$18); [line 73, column 9]\n " shape="box"] +"test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_14" [label="14: DeclStmt \n n$18=_fun___variable_initialization(&x4:continue_scope::X) assign_last [line 73, column 7]\n n$17=_fun_continue_scope::X_X(&x4:continue_scope::X*) [line 73, column 9]\n EXIT_SCOPE(n$17,n$18); [line 73, column 9]\n " shape="box"] "test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_14" -> "test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_13" ; -"test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_15" [label="15: DeclStmt \n n$22=_fun___variable_initialization(&x1:continue_scope::X) [line 67, column 3]\n n$21=_fun_continue_scope::X_X(&x1:continue_scope::X*) [line 67, column 5]\n EXIT_SCOPE(n$21,n$22); [line 67, column 5]\n APPLY_ABSTRACTION; [line 67, column 5]\n " shape="box"] +"test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_15" [label="15: DeclStmt \n n$22=_fun___variable_initialization(&x1:continue_scope::X) assign_last [line 67, column 3]\n n$21=_fun_continue_scope::X_X(&x1:continue_scope::X*) [line 67, column 5]\n EXIT_SCOPE(n$21,n$22); [line 67, column 5]\n APPLY_ABSTRACTION; [line 67, column 5]\n " shape="box"] "test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_15" -> "test_while1#continue_scope#7540876780991944911.b81085ce953e1cd4f035dc0322ac5331_4" ; @@ -305,7 +305,7 @@ digraph cfg { "test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_6" -> "test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_3" ; -"test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_7" [label="7: Destruction \n _=*&x2:continue_scope::X [line 99, column 3]\n n$5=_fun_continue_scope::X_~X(&x2:continue_scope::X*) [line 99, column 3]\n EXIT_SCOPE(_,n$5); [line 99, column 3]\n APPLY_ABSTRACTION; [line 99, column 3]\n " shape="box"] +"test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_7" [label="7: Destruction \n _=*&x2:continue_scope::X [line 99, column 3]\n n$5=_fun_continue_scope::X_~X(&x2:continue_scope::X*) [line 99, column 3]\n EXIT_SCOPE(_,n$5,x2); [line 99, column 3]\n APPLY_ABSTRACTION; [line 99, column 3]\n " shape="box"] "test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_7" -> "test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_4" ; @@ -326,19 +326,19 @@ digraph cfg { "test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_11" -> "test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_8" ; -"test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_12" [label="12: Destruction \n _=*&x3:continue_scope::X [line 97, column 7]\n n$12=_fun_continue_scope::X_~X(&x3:continue_scope::X*) [line 97, column 7]\n EXIT_SCOPE(_,n$12); [line 97, column 7]\n APPLY_ABSTRACTION; [line 97, column 7]\n " shape="box"] +"test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_12" [label="12: Destruction \n _=*&x3:continue_scope::X [line 97, column 7]\n n$12=_fun_continue_scope::X_~X(&x3:continue_scope::X*) [line 97, column 7]\n EXIT_SCOPE(_,n$12,x3); [line 97, column 7]\n APPLY_ABSTRACTION; [line 97, column 7]\n " shape="box"] "test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_12" -> "test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_8" ; -"test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_13" [label="13: DeclStmt \n n$15=_fun___variable_initialization(&x3:continue_scope::X) [line 96, column 7]\n n$14=_fun_continue_scope::X_X(&x3:continue_scope::X*) [line 96, column 9]\n EXIT_SCOPE(n$14,n$15); [line 96, column 9]\n " shape="box"] +"test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_13" [label="13: DeclStmt \n n$15=_fun___variable_initialization(&x3:continue_scope::X) assign_last [line 96, column 7]\n n$14=_fun_continue_scope::X_X(&x3:continue_scope::X*) [line 96, column 9]\n EXIT_SCOPE(n$14,n$15); [line 96, column 9]\n " shape="box"] "test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_13" -> "test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_12" ; -"test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_14" [label="14: DeclStmt \n n$18=_fun___variable_initialization(&x2:continue_scope::X) [line 94, column 5]\n n$17=_fun_continue_scope::X_X(&x2:continue_scope::X*) [line 94, column 7]\n EXIT_SCOPE(n$17,n$18); [line 94, column 7]\n APPLY_ABSTRACTION; [line 94, column 7]\n " shape="box"] +"test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_14" [label="14: DeclStmt \n n$18=_fun___variable_initialization(&x2:continue_scope::X) assign_last [line 94, column 5]\n n$17=_fun_continue_scope::X_X(&x2:continue_scope::X*) [line 94, column 7]\n EXIT_SCOPE(n$17,n$18); [line 94, column 7]\n APPLY_ABSTRACTION; [line 94, column 7]\n " shape="box"] "test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_14" -> "test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_8" ; -"test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_15" [label="15: DeclStmt \n n$21=_fun___variable_initialization(&x1:continue_scope::X) [line 92, column 3]\n n$20=_fun_continue_scope::X_X(&x1:continue_scope::X*) [line 92, column 5]\n EXIT_SCOPE(n$20,n$21); [line 92, column 5]\n APPLY_ABSTRACTION; [line 92, column 5]\n " shape="box"] +"test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_15" [label="15: DeclStmt \n n$21=_fun___variable_initialization(&x1:continue_scope::X) assign_last [line 92, column 3]\n n$20=_fun_continue_scope::X_X(&x1:continue_scope::X*) [line 92, column 5]\n EXIT_SCOPE(n$20,n$21); [line 92, column 5]\n APPLY_ABSTRACTION; [line 92, column 5]\n " shape="box"] "test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_15" -> "test_while2#continue_scope#4169552136172626704.fb057544ed7a6c8312596f53be6b62dc_4" ; @@ -353,7 +353,7 @@ digraph cfg { "test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_3" -> "test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_2" ; -"test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x3:continue_scope::X) [line 110, column 3]\n n$5=_fun_continue_scope::X_X(&x3:continue_scope::X*) [line 110, column 5]\n EXIT_SCOPE(n$5,n$6); [line 110, column 5]\n " shape="box"] +"test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x3:continue_scope::X) assign_last [line 110, column 3]\n n$5=_fun_continue_scope::X_X(&x3:continue_scope::X*) [line 110, column 5]\n EXIT_SCOPE(n$5,n$6); [line 110, column 5]\n " shape="box"] "test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_4" -> "test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_3" ; @@ -370,7 +370,7 @@ digraph cfg { "test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_7" -> "test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_4" ; -"test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_8" [label="8: Destruction \n _=*&x2:continue_scope::X [line 109, column 3]\n n$9=_fun_continue_scope::X_~X(&x2:continue_scope::X*) [line 109, column 3]\n EXIT_SCOPE(_,n$9); [line 109, column 3]\n APPLY_ABSTRACTION; [line 109, column 3]\n " shape="box"] +"test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_8" [label="8: Destruction \n _=*&x2:continue_scope::X [line 109, column 3]\n n$9=_fun_continue_scope::X_~X(&x2:continue_scope::X*) [line 109, column 3]\n EXIT_SCOPE(_,n$9,x2); [line 109, column 3]\n APPLY_ABSTRACTION; [line 109, column 3]\n " shape="box"] "test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_8" -> "test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_5" ; @@ -387,11 +387,11 @@ digraph cfg { "test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_11" -> "test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_8" ; -"test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_12" [label="12: DeclStmt \n n$17=_fun___variable_initialization(&x2:continue_scope::X) [line 105, column 5]\n n$16=_fun_continue_scope::X_X(&x2:continue_scope::X*) [line 105, column 7]\n EXIT_SCOPE(n$16,n$17); [line 105, column 7]\n APPLY_ABSTRACTION; [line 105, column 7]\n " shape="box"] +"test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_12" [label="12: DeclStmt \n n$17=_fun___variable_initialization(&x2:continue_scope::X) assign_last [line 105, column 5]\n n$16=_fun_continue_scope::X_X(&x2:continue_scope::X*) [line 105, column 7]\n EXIT_SCOPE(n$16,n$17); [line 105, column 7]\n APPLY_ABSTRACTION; [line 105, column 7]\n " shape="box"] "test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_12" -> "test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_9" ; -"test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_13" [label="13: DeclStmt \n n$20=_fun___variable_initialization(&x1:continue_scope::X) [line 103, column 3]\n n$19=_fun_continue_scope::X_X(&x1:continue_scope::X*) [line 103, column 5]\n EXIT_SCOPE(n$19,n$20); [line 103, column 5]\n APPLY_ABSTRACTION; [line 103, column 5]\n " shape="box"] +"test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_13" [label="13: DeclStmt \n n$20=_fun___variable_initialization(&x1:continue_scope::X) assign_last [line 103, column 3]\n n$19=_fun_continue_scope::X_X(&x1:continue_scope::X*) [line 103, column 5]\n EXIT_SCOPE(n$19,n$20); [line 103, column 5]\n APPLY_ABSTRACTION; [line 103, column 5]\n " shape="box"] "test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_13" -> "test_while3#continue_scope#1176125085634537673.a024bcf519539ef1deac237c06a02a78_5" ; @@ -434,7 +434,7 @@ digraph cfg { "operator*#iterator#continue_scope(class continue_scope::X)#(10976315504449545146).6f0a140275409bbf42ae1dbc8842f6af_2" [label="2: Exit continue_scope::iterator_operator* \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 42, column 63]\n " color=yellow style=filled] -"operator*#iterator#continue_scope(class continue_scope::X)#(10976315504449545146).6f0a140275409bbf42ae1dbc8842f6af_3" [label="3: Return Stmt \n n$0=*&__return_param:continue_scope::X* [line 42, column 33]\n n$9=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::X const ) [line 42, column 40]\n n$2=*&this:continue_scope::iterator const * [line 42, column 40]\n n$3=*n$2.vector:continue_scope::vec const * [line 42, column 40]\n _=*n$3:continue_scope::vec const [line 42, column 40]\n n$5=*&this:continue_scope::iterator const * [line 42, column 52]\n n$6=*n$5.position:int [line 42, column 52]\n n$8=_fun_continue_scope::vec_get(n$3:continue_scope::vec const *,n$6:int,&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::X*) [line 42, column 40]\n n$10=_fun_continue_scope::X_X(n$0:continue_scope::X*,&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::X const &) [line 42, column 40]\n NULLIFY(&__return_param); [line 42, column 40]\n NULLIFY(&this); [line 42, column 40]\n EXIT_SCOPE(_,n$0,n$2,n$3,n$5,n$6,n$8,n$9,n$10,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1,this); [line 42, column 40]\n APPLY_ABSTRACTION; [line 42, column 40]\n " shape="box"] +"operator*#iterator#continue_scope(class continue_scope::X)#(10976315504449545146).6f0a140275409bbf42ae1dbc8842f6af_3" [label="3: Return Stmt \n n$0=*&__return_param:continue_scope::X* [line 42, column 33]\n n$9=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::X const ) assign_last [line 42, column 40]\n n$2=*&this:continue_scope::iterator const * [line 42, column 40]\n n$3=*n$2.vector:continue_scope::vec const * [line 42, column 40]\n _=*n$3:continue_scope::vec const [line 42, column 40]\n n$5=*&this:continue_scope::iterator const * [line 42, column 52]\n n$6=*n$5.position:int [line 42, column 52]\n n$8=_fun_continue_scope::vec_get(n$3:continue_scope::vec const *,n$6:int,&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::X*) assign_last [line 42, column 40]\n n$10=_fun_continue_scope::X_X(n$0:continue_scope::X*,&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::X const &) [line 42, column 40]\n NULLIFY(&__return_param); [line 42, column 40]\n NULLIFY(&this); [line 42, column 40]\n EXIT_SCOPE(_,n$0,n$2,n$3,n$5,n$6,n$8,n$9,n$10,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1,this); [line 42, column 40]\n APPLY_ABSTRACTION; [line 42, column 40]\n " shape="box"] "operator*#iterator#continue_scope(class continue_scope::X)#(10976315504449545146).6f0a140275409bbf42ae1dbc8842f6af_3" -> "operator*#iterator#continue_scope(class continue_scope::X)#(10976315504449545146).6f0a140275409bbf42ae1dbc8842f6af_2" ; @@ -541,7 +541,7 @@ digraph cfg { "begin#vec#continue_scope(class continue_scope::iterator)#(10867355481694456603).8c0551e386b9f2c25bf3629672b303c4_2" [label="2: Exit continue_scope::vec_begin \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 34, column 48]\n " color=yellow style=filled] -"begin#vec#continue_scope(class continue_scope::iterator)#(10867355481694456603).8c0551e386b9f2c25bf3629672b303c4_3" [label="3: Return Stmt \n n$0=*&__return_param:continue_scope::iterator* [line 34, column 22]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::iterator) [line 34, column 29]\n n$2=*&this:continue_scope::vec* [line 34, column 38]\n n$3=_fun_continue_scope::iterator_iterator(&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::iterator*,n$2:continue_scope::vec*,0:int) [line 34, column 29]\n n$5=_fun_continue_scope::iterator_iterator(n$0:continue_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::iterator&) [line 34, column 29]\n NULLIFY(&__return_param); [line 34, column 29]\n NULLIFY(&this); [line 34, column 29]\n EXIT_SCOPE(n$0,n$2,n$3,n$4,n$5,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1,this); [line 34, column 29]\n APPLY_ABSTRACTION; [line 34, column 29]\n " shape="box"] +"begin#vec#continue_scope(class continue_scope::iterator)#(10867355481694456603).8c0551e386b9f2c25bf3629672b303c4_3" [label="3: Return Stmt \n n$0=*&__return_param:continue_scope::iterator* [line 34, column 22]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::iterator) assign_last [line 34, column 29]\n n$2=*&this:continue_scope::vec* [line 34, column 38]\n n$3=_fun_continue_scope::iterator_iterator(&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::iterator*,n$2:continue_scope::vec*,0:int) [line 34, column 29]\n n$5=_fun_continue_scope::iterator_iterator(n$0:continue_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::iterator&) [line 34, column 29]\n NULLIFY(&__return_param); [line 34, column 29]\n NULLIFY(&this); [line 34, column 29]\n EXIT_SCOPE(n$0,n$2,n$3,n$4,n$5,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1,this); [line 34, column 29]\n APPLY_ABSTRACTION; [line 34, column 29]\n " shape="box"] "begin#vec#continue_scope(class continue_scope::iterator)#(10867355481694456603).8c0551e386b9f2c25bf3629672b303c4_3" -> "begin#vec#continue_scope(class continue_scope::iterator)#(10867355481694456603).8c0551e386b9f2c25bf3629672b303c4_2" ; @@ -563,7 +563,7 @@ digraph cfg { "end#vec#continue_scope(class continue_scope::iterator)#(4225103001970544933).15b63d21cc3cccf91200fcac42652775_2" [label="2: Exit continue_scope::vec_end \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 35, column 47]\n " color=yellow style=filled] -"end#vec#continue_scope(class continue_scope::iterator)#(4225103001970544933).15b63d21cc3cccf91200fcac42652775_3" [label="3: Return Stmt \n n$0=*&__return_param:continue_scope::iterator* [line 35, column 20]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::iterator) [line 35, column 27]\n n$2=*&this:continue_scope::vec* [line 35, column 36]\n n$3=_fun_continue_scope::iterator_iterator(&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::iterator*,n$2:continue_scope::vec*,10:int) [line 35, column 27]\n n$5=_fun_continue_scope::iterator_iterator(n$0:continue_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::iterator&) [line 35, column 27]\n NULLIFY(&__return_param); [line 35, column 27]\n NULLIFY(&this); [line 35, column 27]\n EXIT_SCOPE(n$0,n$2,n$3,n$4,n$5,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1,this); [line 35, column 27]\n APPLY_ABSTRACTION; [line 35, column 27]\n " shape="box"] +"end#vec#continue_scope(class continue_scope::iterator)#(4225103001970544933).15b63d21cc3cccf91200fcac42652775_3" [label="3: Return Stmt \n n$0=*&__return_param:continue_scope::iterator* [line 35, column 20]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::iterator) assign_last [line 35, column 27]\n n$2=*&this:continue_scope::vec* [line 35, column 36]\n n$3=_fun_continue_scope::iterator_iterator(&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::iterator*,n$2:continue_scope::vec*,10:int) [line 35, column 27]\n n$5=_fun_continue_scope::iterator_iterator(n$0:continue_scope::iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$1:continue_scope::iterator&) [line 35, column 27]\n NULLIFY(&__return_param); [line 35, column 27]\n NULLIFY(&this); [line 35, column 27]\n EXIT_SCOPE(n$0,n$2,n$3,n$4,n$5,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1,this); [line 35, column 27]\n APPLY_ABSTRACTION; [line 35, column 27]\n " shape="box"] "end#vec#continue_scope(class continue_scope::iterator)#(4225103001970544933).15b63d21cc3cccf91200fcac42652775_3" -> "end#vec#continue_scope(class continue_scope::iterator)#(4225103001970544933).15b63d21cc3cccf91200fcac42652775_2" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/destructors/destructor_bases.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/destructors/destructor_bases.cpp.dot index fef341f5e..272b6fad4 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/destructors/destructor_bases.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/destructors/destructor_bases.cpp.dot @@ -125,7 +125,7 @@ digraph cfg { "__infer_inner_destructor_~D#D#(5618221758133596168).bafb8a40b92952d90ec3736fc827de7f_4" -> "__infer_inner_destructor_~D#D#(5618221758133596168).bafb8a40b92952d90ec3736fc827de7f_3" ; -"__infer_inner_destructor_~D#D#(5618221758133596168).bafb8a40b92952d90ec3736fc827de7f_5" [label="5: DeclStmt \n n$12=_fun___variable_initialization(&a:A) [line 31, column 10]\n n$11=_fun_A_A(&a:A*) [line 31, column 12]\n EXIT_SCOPE(n$11,n$12); [line 31, column 12]\n " shape="box"] +"__infer_inner_destructor_~D#D#(5618221758133596168).bafb8a40b92952d90ec3736fc827de7f_5" [label="5: DeclStmt \n n$12=_fun___variable_initialization(&a:A) assign_last [line 31, column 10]\n n$11=_fun_A_A(&a:A*) [line 31, column 12]\n EXIT_SCOPE(n$11,n$12); [line 31, column 12]\n " shape="box"] "__infer_inner_destructor_~D#D#(5618221758133596168).bafb8a40b92952d90ec3736fc827de7f_5" -> "__infer_inner_destructor_~D#D#(5618221758133596168).bafb8a40b92952d90ec3736fc827de7f_4" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/destructors/pseudo_destructor_expr.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/destructors/pseudo_destructor_expr.cpp.dot index dde1be2c7..094e80290 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/destructors/pseudo_destructor_expr.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/destructors/pseudo_destructor_expr.cpp.dot @@ -30,7 +30,7 @@ digraph cfg { "f#10188173399311638112.8cffce40f5525757e791edeba0985326_4" -> "f#10188173399311638112.8cffce40f5525757e791edeba0985326_3" ; -"f#10188173399311638112.8cffce40f5525757e791edeba0985326_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&x:int) [line 10, column 3]\n n$3=*&p:int* [line 10, column 12]\n n$4=*n$3:int [line 10, column 11]\n *&x:int=n$4 [line 10, column 3]\n NULLIFY(&p); [line 10, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,p); [line 10, column 3]\n " shape="box"] +"f#10188173399311638112.8cffce40f5525757e791edeba0985326_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&x:int) assign_last [line 10, column 3]\n n$3=*&p:int* [line 10, column 12]\n n$4=*n$3:int [line 10, column 11]\n *&x:int=n$4 [line 10, column 3]\n NULLIFY(&p); [line 10, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,p); [line 10, column 3]\n " shape="box"] "f#10188173399311638112.8cffce40f5525757e791edeba0985326_5" -> "f#10188173399311638112.8cffce40f5525757e791edeba0985326_4" ; @@ -45,7 +45,7 @@ digraph cfg { "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_2" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&t:int*) [line 22, column 3]\n *&t:int*=null [line 22, column 3]\n EXIT_SCOPE(n$2); [line 22, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&t:int*) assign_last [line 22, column 3]\n *&t:int*=null [line 22, column 3]\n EXIT_SCOPE(n$2); [line 22, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/destructors/scope.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/destructors/scope.cpp.dot index b15ac5c90..cadcaec40 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/destructors/scope.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/destructors/scope.cpp.dot @@ -7,7 +7,7 @@ digraph cfg { "callgetZ#destructor_scope#16418724657639342926.f4c0cbb2a5d892ea82496dd2540a9ead_2" [label="2: Exit destructor_scope::callgetZ \n NULLIFY(&0$?%__sil_tmp__temp_return_n$2); [line 82, column 27]\n " color=yellow style=filled] -"callgetZ#destructor_scope#16418724657639342926.f4c0cbb2a5d892ea82496dd2540a9ead_3" [label="3: Call _fun_destructor_scope::getZ \n n$3=_fun_destructor_scope::getZ(&0$?%__sil_tmp__temp_return_n$2:destructor_scope::Z*) [line 82, column 19]\n EXIT_SCOPE(n$3,0$?%__sil_tmp__temp_return_n$2); [line 82, column 19]\n APPLY_ABSTRACTION; [line 82, column 19]\n " shape="box"] +"callgetZ#destructor_scope#16418724657639342926.f4c0cbb2a5d892ea82496dd2540a9ead_3" [label="3: Call _fun_destructor_scope::getZ \n n$3=_fun_destructor_scope::getZ(&0$?%__sil_tmp__temp_return_n$2:destructor_scope::Z*) assign_last [line 82, column 19]\n EXIT_SCOPE(n$3,0$?%__sil_tmp__temp_return_n$2); [line 82, column 19]\n APPLY_ABSTRACTION; [line 82, column 19]\n " shape="box"] "callgetZ#destructor_scope#16418724657639342926.f4c0cbb2a5d892ea82496dd2540a9ead_3" -> "callgetZ#destructor_scope#16418724657639342926.f4c0cbb2a5d892ea82496dd2540a9ead_2" ; @@ -22,7 +22,7 @@ digraph cfg { "getX#destructor_scope(class destructor_scope::X)#11739464242911605656.956e6b931ba67c14d56b1314b7f2fce7_3" -> "getX#destructor_scope(class destructor_scope::X)#11739464242911605656.956e6b931ba67c14d56b1314b7f2fce7_2" ; -"getX#destructor_scope(class destructor_scope::X)#11739464242911605656.956e6b931ba67c14d56b1314b7f2fce7_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x:destructor_scope::X) [line 69, column 3]\n n$5=_fun_destructor_scope::X_X(&x:destructor_scope::X*) [line 69, column 5]\n EXIT_SCOPE(n$5,n$6); [line 69, column 5]\n " shape="box"] +"getX#destructor_scope(class destructor_scope::X)#11739464242911605656.956e6b931ba67c14d56b1314b7f2fce7_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x:destructor_scope::X) assign_last [line 69, column 3]\n n$5=_fun_destructor_scope::X_X(&x:destructor_scope::X*) [line 69, column 5]\n EXIT_SCOPE(n$5,n$6); [line 69, column 5]\n " shape="box"] "getX#destructor_scope(class destructor_scope::X)#11739464242911605656.956e6b931ba67c14d56b1314b7f2fce7_4" -> "getX#destructor_scope(class destructor_scope::X)#11739464242911605656.956e6b931ba67c14d56b1314b7f2fce7_3" ; @@ -37,7 +37,7 @@ digraph cfg { "getZ#destructor_scope(class destructor_scope::Z)#13110319947448813202.27b8261073c8d26082c5ea18b0194031_3" -> "getZ#destructor_scope(class destructor_scope::Z)#13110319947448813202.27b8261073c8d26082c5ea18b0194031_2" ; -"getZ#destructor_scope(class destructor_scope::Z)#13110319947448813202.27b8261073c8d26082c5ea18b0194031_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&z:destructor_scope::Z) [line 74, column 3]\n n$5=_fun_destructor_scope::Z_Z(&z:destructor_scope::Z*) [line 74, column 5]\n EXIT_SCOPE(n$5,n$6); [line 74, column 5]\n " shape="box"] +"getZ#destructor_scope(class destructor_scope::Z)#13110319947448813202.27b8261073c8d26082c5ea18b0194031_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&z:destructor_scope::Z) assign_last [line 74, column 3]\n n$5=_fun_destructor_scope::Z_Z(&z:destructor_scope::Z*) [line 74, column 5]\n EXIT_SCOPE(n$5,n$6); [line 74, column 5]\n " shape="box"] "getZ#destructor_scope(class destructor_scope::Z)#13110319947448813202.27b8261073c8d26082c5ea18b0194031_4" -> "getZ#destructor_scope(class destructor_scope::Z)#13110319947448813202.27b8261073c8d26082c5ea18b0194031_3" ; @@ -56,11 +56,11 @@ digraph cfg { "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_4" -> "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_3" ; -"test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_5" [label="5: DeclStmt \n n$11=_fun___variable_initialization(&y3:destructor_scope::Y) [line 54, column 5]\n n$10=_fun_destructor_scope::Y_Y(&y3:destructor_scope::Y*) [line 54, column 7]\n EXIT_SCOPE(n$10,n$11); [line 54, column 7]\n " shape="box"] +"test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_5" [label="5: DeclStmt \n n$11=_fun___variable_initialization(&y3:destructor_scope::Y) assign_last [line 54, column 5]\n n$10=_fun_destructor_scope::Y_Y(&y3:destructor_scope::Y*) [line 54, column 7]\n EXIT_SCOPE(n$10,n$11); [line 54, column 7]\n " shape="box"] "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_5" -> "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_4" ; -"test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_6" [label="6: DeclStmt \n n$13=_fun___variable_initialization(&y1:destructor_scope::Y) [line 53, column 3]\n n$12=_fun_destructor_scope::Y_Y(&y1:destructor_scope::Y*) [line 53, column 5]\n EXIT_SCOPE(n$12,n$13); [line 53, column 5]\n " shape="box"] +"test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_6" [label="6: DeclStmt \n n$13=_fun___variable_initialization(&y1:destructor_scope::Y) assign_last [line 53, column 3]\n n$12=_fun_destructor_scope::Y_Y(&y1:destructor_scope::Y*) [line 53, column 5]\n EXIT_SCOPE(n$12,n$13); [line 53, column 5]\n " shape="box"] "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_6" -> "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_5" ; @@ -88,7 +88,7 @@ digraph cfg { "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_12" -> "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_2" ; -"test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_13" [label="13: DeclStmt \n n$38=_fun___variable_initialization(&x3:destructor_scope::X) [line 47, column 7]\n n$37=_fun_destructor_scope::X_X(&x3:destructor_scope::X*) [line 47, column 9]\n EXIT_SCOPE(n$37,n$38); [line 47, column 9]\n " shape="box"] +"test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_13" [label="13: DeclStmt \n n$38=_fun___variable_initialization(&x3:destructor_scope::X) assign_last [line 47, column 7]\n n$37=_fun_destructor_scope::X_X(&x3:destructor_scope::X*) [line 47, column 9]\n EXIT_SCOPE(n$37,n$38); [line 47, column 9]\n " shape="box"] "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_13" -> "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_10" ; @@ -109,20 +109,20 @@ digraph cfg { "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_17" -> "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_2" ; -"test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_18" [label="18: DeclStmt \n n$53=_fun___variable_initialization(&y2:destructor_scope::Y) [line 42, column 5]\n n$52=_fun_destructor_scope::Y_Y(&y2:destructor_scope::Y*) [line 42, column 7]\n EXIT_SCOPE(n$52,n$53); [line 42, column 7]\n " shape="box"] +"test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_18" [label="18: DeclStmt \n n$53=_fun___variable_initialization(&y2:destructor_scope::Y) assign_last [line 42, column 5]\n n$52=_fun_destructor_scope::Y_Y(&y2:destructor_scope::Y*) [line 42, column 7]\n EXIT_SCOPE(n$52,n$53); [line 42, column 7]\n " shape="box"] "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_18" -> "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_15" ; "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_18" -> "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_16" ; -"test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_19" [label="19: DeclStmt \n n$55=_fun___variable_initialization(&x2:destructor_scope::X) [line 41, column 5]\n n$54=_fun_destructor_scope::X_X(&x2:destructor_scope::X*) [line 41, column 7]\n EXIT_SCOPE(n$54,n$55); [line 41, column 7]\n " shape="box"] +"test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_19" [label="19: DeclStmt \n n$55=_fun___variable_initialization(&x2:destructor_scope::X) assign_last [line 41, column 5]\n n$54=_fun_destructor_scope::X_X(&x2:destructor_scope::X*) [line 41, column 7]\n EXIT_SCOPE(n$54,n$55); [line 41, column 7]\n " shape="box"] "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_19" -> "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_18" ; -"test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_20" [label="20: DeclStmt \n n$57=_fun___variable_initialization(&s:destructor_scope::S) [line 39, column 3]\n n$56=_fun_destructor_scope::S_S(&s:destructor_scope::S*) [line 39, column 5]\n EXIT_SCOPE(n$56,n$57); [line 39, column 5]\n " shape="box"] +"test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_20" [label="20: DeclStmt \n n$57=_fun___variable_initialization(&s:destructor_scope::S) assign_last [line 39, column 3]\n n$56=_fun_destructor_scope::S_S(&s:destructor_scope::S*) [line 39, column 5]\n EXIT_SCOPE(n$56,n$57); [line 39, column 5]\n " shape="box"] "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_20" -> "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_19" ; -"test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_21" [label="21: DeclStmt \n n$59=_fun___variable_initialization(&x1:destructor_scope::X) [line 38, column 3]\n n$58=_fun_destructor_scope::X_X(&x1:destructor_scope::X*) [line 38, column 5]\n EXIT_SCOPE(n$58,n$59); [line 38, column 5]\n " shape="box"] +"test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_21" [label="21: DeclStmt \n n$59=_fun___variable_initialization(&x1:destructor_scope::X) assign_last [line 38, column 3]\n n$58=_fun_destructor_scope::X_X(&x1:destructor_scope::X*) [line 38, column 5]\n EXIT_SCOPE(n$58,n$59); [line 38, column 5]\n " shape="box"] "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_21" -> "test1#destructor_scope#3167061604758065234.d3af82d2ddb9b80d2c9930cb62bbbffa_20" ; @@ -153,7 +153,7 @@ digraph cfg { "test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_7" -> "test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_2" ; -"test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_8" [label="8: DeclStmt \n n$10=_fun___variable_initialization(&x2:destructor_scope::X) [line 60, column 5]\n n$9=_fun_destructor_scope::X_X(&x2:destructor_scope::X*) [line 60, column 7]\n EXIT_SCOPE(n$9,n$10); [line 60, column 7]\n " shape="box"] +"test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_8" [label="8: DeclStmt \n n$10=_fun___variable_initialization(&x2:destructor_scope::X) assign_last [line 60, column 5]\n n$9=_fun_destructor_scope::X_X(&x2:destructor_scope::X*) [line 60, column 7]\n EXIT_SCOPE(n$9,n$10); [line 60, column 7]\n " shape="box"] "test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_8" -> "test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_7" ; @@ -161,11 +161,11 @@ digraph cfg { "test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_9" -> "test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_2" ; -"test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_10" [label="10: DeclStmt \n n$17=_fun___variable_initialization(&x3:destructor_scope::X) [line 63, column 5]\n n$16=_fun_destructor_scope::X_X(&x3:destructor_scope::X*) [line 63, column 7]\n EXIT_SCOPE(n$16,n$17); [line 63, column 7]\n " shape="box"] +"test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_10" [label="10: DeclStmt \n n$17=_fun___variable_initialization(&x3:destructor_scope::X) assign_last [line 63, column 5]\n n$16=_fun_destructor_scope::X_X(&x3:destructor_scope::X*) [line 63, column 7]\n EXIT_SCOPE(n$16,n$17); [line 63, column 7]\n " shape="box"] "test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_10" -> "test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_9" ; -"test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_11" [label="11: DeclStmt \n n$20=_fun___variable_initialization(&x1:destructor_scope::X) [line 58, column 3]\n n$19=_fun_destructor_scope::X_X(&x1:destructor_scope::X*) [line 58, column 5]\n EXIT_SCOPE(n$19,n$20); [line 58, column 5]\n " shape="box"] +"test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_11" [label="11: DeclStmt \n n$20=_fun___variable_initialization(&x1:destructor_scope::X) assign_last [line 58, column 3]\n n$19=_fun_destructor_scope::X_X(&x1:destructor_scope::X*) [line 58, column 5]\n EXIT_SCOPE(n$19,n$20); [line 58, column 5]\n " shape="box"] "test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_11" -> "test2#destructor_scope#2993434300384255445.24bf3f4c27c1719ee94d608a0df996b1_5" ; @@ -218,7 +218,7 @@ digraph cfg { "__infer_inner_destructor_~W#W#destructor_scope#(7330614824551855498).609202c747c70b122a8a5785422f4f26_4" -> "__infer_inner_destructor_~W#W#destructor_scope#(7330614824551855498).609202c747c70b122a8a5785422f4f26_3" ; -"__infer_inner_destructor_~W#W#destructor_scope#(7330614824551855498).609202c747c70b122a8a5785422f4f26_5" [label="5: DeclStmt \n n$14=_fun___variable_initialization(&y:destructor_scope::Y) [line 33, column 5]\n n$13=_fun_destructor_scope::Y_Y(&y:destructor_scope::Y*) [line 33, column 7]\n EXIT_SCOPE(n$13,n$14); [line 33, column 7]\n " shape="box"] +"__infer_inner_destructor_~W#W#destructor_scope#(7330614824551855498).609202c747c70b122a8a5785422f4f26_5" [label="5: DeclStmt \n n$14=_fun___variable_initialization(&y:destructor_scope::Y) assign_last [line 33, column 5]\n n$13=_fun_destructor_scope::Y_Y(&y:destructor_scope::Y*) [line 33, column 7]\n EXIT_SCOPE(n$13,n$14); [line 33, column 7]\n " shape="box"] "__infer_inner_destructor_~W#W#destructor_scope#(7330614824551855498).609202c747c70b122a8a5785422f4f26_5" -> "__infer_inner_destructor_~W#W#destructor_scope#(7330614824551855498).609202c747c70b122a8a5785422f4f26_4" ; @@ -238,7 +238,7 @@ digraph cfg { "__infer_inner_destructor_~W#W#destructor_scope#(7330614824551855498).609202c747c70b122a8a5785422f4f26_9" -> "__infer_inner_destructor_~W#W#destructor_scope#(7330614824551855498).609202c747c70b122a8a5785422f4f26_2" ; -"__infer_inner_destructor_~W#W#destructor_scope#(7330614824551855498).609202c747c70b122a8a5785422f4f26_10" [label="10: DeclStmt \n n$32=_fun___variable_initialization(&x:destructor_scope::X) [line 30, column 5]\n n$31=_fun_destructor_scope::X_X(&x:destructor_scope::X*) [line 30, column 7]\n EXIT_SCOPE(n$31,n$32); [line 30, column 7]\n " shape="box"] +"__infer_inner_destructor_~W#W#destructor_scope#(7330614824551855498).609202c747c70b122a8a5785422f4f26_10" [label="10: DeclStmt \n n$32=_fun___variable_initialization(&x:destructor_scope::X) assign_last [line 30, column 5]\n n$31=_fun_destructor_scope::X_X(&x:destructor_scope::X*) [line 30, column 7]\n EXIT_SCOPE(n$31,n$32); [line 30, column 7]\n " shape="box"] "__infer_inner_destructor_~W#W#destructor_scope#(7330614824551855498).609202c747c70b122a8a5785422f4f26_10" -> "__infer_inner_destructor_~W#W#destructor_scope#(7330614824551855498).609202c747c70b122a8a5785422f4f26_7" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/globals/global_const1.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/globals/global_const1.cpp.dot index 0b9448445..752c73960 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/globals/global_const1.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/globals/global_const1.cpp.dot @@ -7,7 +7,7 @@ digraph cfg { "__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_2" [label="2: Exit __infer_globals_initializer_global \n " color=yellow style=filled] -"__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&#GB$global:X const ) [line 11, column 1]\n n$0=_fun_X_X(&#GB$global:X const *) [line 11, column 9]\n EXIT_SCOPE(n$0,n$1); [line 11, column 9]\n APPLY_ABSTRACTION; [line 11, column 9]\n " shape="box"] +"__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&#GB$global:X const ) assign_last [line 11, column 1]\n n$0=_fun_X_X(&#GB$global:X const *) [line 11, column 9]\n EXIT_SCOPE(n$0,n$1); [line 11, column 9]\n APPLY_ABSTRACTION; [line 11, column 9]\n " shape="box"] "__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_3" -> "__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_2" ; @@ -18,7 +18,7 @@ digraph cfg { "__infer_globals_initializer_v#708fabe5dc8ff523caaa5f44184921e8.588095fa475e4a9e8c83f50f26a48ea9_2" [label="2: Exit __infer_globals_initializer_v \n " color=yellow style=filled] -"__infer_globals_initializer_v#708fabe5dc8ff523caaa5f44184921e8.588095fa475e4a9e8c83f50f26a48ea9_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&#GB$v:int const ) [line 15, column 1]\n *&#GB$v:int=2 [line 15, column 1]\n EXIT_SCOPE(n$0); [line 15, column 1]\n APPLY_ABSTRACTION; [line 15, column 1]\n " shape="box"] +"__infer_globals_initializer_v#708fabe5dc8ff523caaa5f44184921e8.588095fa475e4a9e8c83f50f26a48ea9_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&#GB$v:int const ) assign_last [line 15, column 1]\n *&#GB$v:int=2 [line 15, column 1]\n EXIT_SCOPE(n$0); [line 15, column 1]\n APPLY_ABSTRACTION; [line 15, column 1]\n " shape="box"] "__infer_globals_initializer_v#708fabe5dc8ff523caaa5f44184921e8.588095fa475e4a9e8c83f50f26a48ea9_3" -> "__infer_globals_initializer_v#708fabe5dc8ff523caaa5f44184921e8.588095fa475e4a9e8c83f50f26a48ea9_2" ; @@ -44,7 +44,7 @@ digraph cfg { "test2#3587805488049044947.69e45cfdc4e36a6f741ce3985858724b_3" -> "test2#3587805488049044947.69e45cfdc4e36a6f741ce3985858724b_2" ; -"test2#3587805488049044947.69e45cfdc4e36a6f741ce3985858724b_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&local:int) [line 18, column 3]\n n$2=*&#GB$v:int [line 18, column 15]\n *&local:int=n$2 [line 18, column 3]\n NULLIFY(&local); [line 18, column 3]\n EXIT_SCOPE(n$2,n$3,local); [line 18, column 3]\n " shape="box"] +"test2#3587805488049044947.69e45cfdc4e36a6f741ce3985858724b_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&local:int) assign_last [line 18, column 3]\n n$2=*&#GB$v:int [line 18, column 15]\n *&local:int=n$2 [line 18, column 3]\n NULLIFY(&local); [line 18, column 3]\n EXIT_SCOPE(n$2,n$3,local); [line 18, column 3]\n " shape="box"] "test2#3587805488049044947.69e45cfdc4e36a6f741ce3985858724b_4" -> "test2#3587805488049044947.69e45cfdc4e36a6f741ce3985858724b_3" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/globals/global_const2.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/globals/global_const2.cpp.dot index 73a4d204f..200cc45fa 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/globals/global_const2.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/globals/global_const2.cpp.dot @@ -28,7 +28,7 @@ digraph cfg { "__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_7" -> "__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_3" ; -"__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_8" [label="8: DeclStmt \n n$2=_fun___variable_initialization(&#GB$global:int const ) [line 8, column 1]\n n$1=*&0$?%__sil_tmpSIL_temp_conditional___n$0:int [line 8, column 20]\n *&#GB$global:int=n$1 [line 8, column 1]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$0); [line 8, column 1]\n EXIT_SCOPE(n$1,n$2,0$?%__sil_tmpSIL_temp_conditional___n$0); [line 8, column 1]\n APPLY_ABSTRACTION; [line 8, column 1]\n " shape="box"] +"__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_8" [label="8: DeclStmt \n n$2=_fun___variable_initialization(&#GB$global:int const ) assign_last [line 8, column 1]\n n$1=*&0$?%__sil_tmpSIL_temp_conditional___n$0:int [line 8, column 20]\n *&#GB$global:int=n$1 [line 8, column 1]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$0); [line 8, column 1]\n EXIT_SCOPE(n$1,n$2,0$?%__sil_tmpSIL_temp_conditional___n$0); [line 8, column 1]\n APPLY_ABSTRACTION; [line 8, column 1]\n " shape="box"] "__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_8" -> "__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_2" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/globals/initializer.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/globals/initializer.cpp.dot index a2ae237e0..b0222abe2 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/globals/initializer.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/globals/initializer.cpp.dot @@ -7,7 +7,7 @@ digraph cfg { "__infer_globals_initializer_x#346c89dda90b0be6289346ddbf0528bc.83245b9f254e67fb6f879cc1e35a1bb1_2" [label="2: Exit __infer_globals_initializer_x \n " color=yellow style=filled] -"__infer_globals_initializer_x#346c89dda90b0be6289346ddbf0528bc.83245b9f254e67fb6f879cc1e35a1bb1_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&#GB$x:int) [line 12, column 1]\n n$0=_fun_foo() [line 12, column 16]\n *&#GB$x:int=(n$0 + 5) [line 12, column 1]\n EXIT_SCOPE(n$0,n$1); [line 12, column 1]\n APPLY_ABSTRACTION; [line 12, column 1]\n " shape="box"] +"__infer_globals_initializer_x#346c89dda90b0be6289346ddbf0528bc.83245b9f254e67fb6f879cc1e35a1bb1_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&#GB$x:int) assign_last [line 12, column 1]\n n$0=_fun_foo() [line 12, column 16]\n *&#GB$x:int=(n$0 + 5) [line 12, column 1]\n EXIT_SCOPE(n$0,n$1); [line 12, column 1]\n APPLY_ABSTRACTION; [line 12, column 1]\n " shape="box"] "__infer_globals_initializer_x#346c89dda90b0be6289346ddbf0528bc.83245b9f254e67fb6f879cc1e35a1bb1_3" -> "__infer_globals_initializer_x#346c89dda90b0be6289346ddbf0528bc.83245b9f254e67fb6f879cc1e35a1bb1_2" ; @@ -18,7 +18,7 @@ digraph cfg { "__infer_globals_initializer_y#346c89dda90b0be6289346ddbf0528bc.e7d659d11156f551397be6d5db27f31c_2" [label="2: Exit __infer_globals_initializer_y \n " color=yellow style=filled] -"__infer_globals_initializer_y#346c89dda90b0be6289346ddbf0528bc.e7d659d11156f551397be6d5db27f31c_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&#GB$y:int) [line 13, column 1]\n n$0=*&#GB$x:int [line 13, column 16]\n n$1=*&#GB$z:int [line 13, column 20]\n *&#GB$y:int=((n$0 + n$1) + 1) [line 13, column 1]\n EXIT_SCOPE(n$0,n$1,n$2); [line 13, column 1]\n APPLY_ABSTRACTION; [line 13, column 1]\n " shape="box"] +"__infer_globals_initializer_y#346c89dda90b0be6289346ddbf0528bc.e7d659d11156f551397be6d5db27f31c_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&#GB$y:int) assign_last [line 13, column 1]\n n$0=*&#GB$x:int [line 13, column 16]\n n$1=*&#GB$z:int [line 13, column 20]\n *&#GB$y:int=((n$0 + n$1) + 1) [line 13, column 1]\n EXIT_SCOPE(n$0,n$1,n$2); [line 13, column 1]\n APPLY_ABSTRACTION; [line 13, column 1]\n " shape="box"] "__infer_globals_initializer_y#346c89dda90b0be6289346ddbf0528bc.e7d659d11156f551397be6d5db27f31c_3" -> "__infer_globals_initializer_y#346c89dda90b0be6289346ddbf0528bc.e7d659d11156f551397be6d5db27f31c_2" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/include_header/include_templ.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/include_header/include_templ.cpp.dot index 9dbff937a..cd51d9b1f 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/include_header/include_templ.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/include_header/include_templ.cpp.dot @@ -11,7 +11,7 @@ digraph cfg { "div0_B_A#16868528730428357658.9b8f4e2ce0bf464a2adbe53fb7a34f64_3" -> "div0_B_A#16868528730428357658.9b8f4e2ce0bf464a2adbe53fb7a34f64_2" ; -"div0_B_A#16868528730428357658.9b8f4e2ce0bf464a2adbe53fb7a34f64_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&b:B) [line 17, column 3]\n n$3=_fun_B_B(&b:B*) [line 17, column 8]\n EXIT_SCOPE(n$3,n$4); [line 17, column 8]\n " shape="box"] +"div0_B_A#16868528730428357658.9b8f4e2ce0bf464a2adbe53fb7a34f64_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&b:B) assign_last [line 17, column 3]\n n$3=_fun_B_B(&b:B*) [line 17, column 8]\n EXIT_SCOPE(n$3,n$4); [line 17, column 8]\n " shape="box"] "div0_B_A#16868528730428357658.9b8f4e2ce0bf464a2adbe53fb7a34f64_4" -> "div0_B_A#16868528730428357658.9b8f4e2ce0bf464a2adbe53fb7a34f64_3" ; @@ -26,7 +26,7 @@ digraph cfg { "div0_B_int#1022620961131326491.1d61c8d3035b9223f336f2b0e83b1cd8_3" -> "div0_B_int#1022620961131326491.1d61c8d3035b9223f336f2b0e83b1cd8_2" ; -"div0_B_int#1022620961131326491.1d61c8d3035b9223f336f2b0e83b1cd8_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&b:B) [line 12, column 3]\n n$3=_fun_B_B(&b:B*) [line 12, column 10]\n EXIT_SCOPE(n$3,n$4); [line 12, column 10]\n " shape="box"] +"div0_B_int#1022620961131326491.1d61c8d3035b9223f336f2b0e83b1cd8_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&b:B) assign_last [line 12, column 3]\n n$3=_fun_B_B(&b:B*) [line 12, column 10]\n EXIT_SCOPE(n$3,n$4); [line 12, column 10]\n " shape="box"] "div0_B_int#1022620961131326491.1d61c8d3035b9223f336f2b0e83b1cd8_4" -> "div0_B_int#1022620961131326491.1d61c8d3035b9223f336f2b0e83b1cd8_3" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/initialization/inheriting_constructor.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/initialization/inheriting_constructor.cpp.dot index a77ebb2b7..82b7ae205 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/initialization/inheriting_constructor.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/initialization/inheriting_constructor.cpp.dot @@ -7,7 +7,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_2" [label="2: Exit main \n NULLIFY(&b); [line 16, column 22]\n " color=yellow style=filled] -"main.fad58de7366495db4650cfefac2fcd61_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&b:B) [line 16, column 14]\n n$1=_fun_B_A(&b:B*,5:int) [line 16, column 16]\n EXIT_SCOPE(n$1,n$2,b); [line 16, column 16]\n APPLY_ABSTRACTION; [line 16, column 16]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&b:B) assign_last [line 16, column 14]\n n$1=_fun_B_A(&b:B*,5:int) [line 16, column 16]\n EXIT_SCOPE(n$1,n$2,b); [line 16, column 16]\n APPLY_ABSTRACTION; [line 16, column 16]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/initialization/init_list.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/initialization/init_list.cpp.dot index a63cd6bfe..eb6940092 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/initialization/init_list.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/initialization/init_list.cpp.dot @@ -7,7 +7,7 @@ digraph cfg { "init_in_binop#init_list#8348250075128359911.7adaa67964536570064366a92056cf46_2" [label="2: Exit init_list::init_in_binop \n " color=yellow style=filled] -"init_in_binop#init_list#8348250075128359911.7adaa67964536570064366a92056cf46_3" [label="3: BinaryOperatorStmt: Assign \n n$1=*&x:int [line 51, column 34]\n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_init_list__n$2:int) [line 51, column 42]\n *&0$?%__sil_tmpSIL_init_list__n$2:int=0 [line 51, column 42]\n *&x:int=(-n$1 & ~&0$?%__sil_tmpSIL_init_list__n$2) [line 51, column 29]\n NULLIFY(&0$?%__sil_tmpSIL_init_list__n$2); [line 51, column 29]\n NULLIFY(&x); [line 51, column 29]\n EXIT_SCOPE(n$1,n$3,0$?%__sil_tmpSIL_init_list__n$2,x); [line 51, column 29]\n APPLY_ABSTRACTION; [line 51, column 29]\n " shape="box"] +"init_in_binop#init_list#8348250075128359911.7adaa67964536570064366a92056cf46_3" [label="3: BinaryOperatorStmt: Assign \n n$1=*&x:int [line 51, column 34]\n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_init_list__n$2:int) assign_last [line 51, column 42]\n *&0$?%__sil_tmpSIL_init_list__n$2:int=0 [line 51, column 42]\n *&x:int=(-n$1 & ~&0$?%__sil_tmpSIL_init_list__n$2) [line 51, column 29]\n NULLIFY(&0$?%__sil_tmpSIL_init_list__n$2); [line 51, column 29]\n NULLIFY(&x); [line 51, column 29]\n EXIT_SCOPE(n$1,n$3,0$?%__sil_tmpSIL_init_list__n$2,x); [line 51, column 29]\n APPLY_ABSTRACTION; [line 51, column 29]\n " shape="box"] "init_in_binop#init_list#8348250075128359911.7adaa67964536570064366a92056cf46_3" -> "init_in_binop#init_list#8348250075128359911.7adaa67964536570064366a92056cf46_2" ; @@ -18,19 +18,19 @@ digraph cfg { "list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_2" [label="2: Exit init_list::list_init \n NULLIFY(&yref); [line 49, column 1]\n NULLIFY(&y); [line 49, column 1]\n NULLIFY(&ty); [line 49, column 1]\n " color=yellow style=filled] -"list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_3" [label="3: DeclStmt \n n$4=_fun___variable_initialization(&ty:init_list::Y[3*24]) [line 48, column 3]\n *&ty[0].z:int=1 [line 48, column 14]\n *&ty[0].x.a:int=2 [line 48, column 18]\n *&ty[0].x.p:int*=null [line 48, column 18]\n n$1=_fun_init_list::Y_Y(&ty[1]:init_list::Y*,&y:init_list::Y&) [line 48, column 33]\n n$2=*&yref:init_list::Y& [line 48, column 36]\n n$3=_fun_init_list::Y_Y(&ty[2]:init_list::Y*,n$2:init_list::Y&) [line 48, column 36]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,ty,y,yref); [line 48, column 36]\n APPLY_ABSTRACTION; [line 48, column 36]\n " shape="box"] +"list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_3" [label="3: DeclStmt \n n$4=_fun___variable_initialization(&ty:init_list::Y[3*24]) assign_last [line 48, column 3]\n *&ty[0].z:int=1 [line 48, column 14]\n *&ty[0].x.a:int=2 [line 48, column 18]\n *&ty[0].x.p:int*=null [line 48, column 18]\n n$1=_fun_init_list::Y_Y(&ty[1]:init_list::Y*,&y:init_list::Y&) [line 48, column 33]\n n$2=*&yref:init_list::Y& [line 48, column 36]\n n$3=_fun_init_list::Y_Y(&ty[2]:init_list::Y*,n$2:init_list::Y&) [line 48, column 36]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,ty,y,yref); [line 48, column 36]\n APPLY_ABSTRACTION; [line 48, column 36]\n " shape="box"] "list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_3" -> "list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_2" ; -"list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&yref:init_list::Y&) [line 47, column 3]\n *&yref:init_list::Y&=&y [line 47, column 3]\n EXIT_SCOPE(n$5); [line 47, column 3]\n " shape="box"] +"list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&yref:init_list::Y&) assign_last [line 47, column 3]\n *&yref:init_list::Y&=&y [line 47, column 3]\n EXIT_SCOPE(n$5); [line 47, column 3]\n " shape="box"] "list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_4" -> "list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_3" ; -"list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&y:init_list::Y) [line 46, column 3]\n n$6=_fun_init_list::Y_Y(&y:init_list::Y*) [line 46, column 5]\n EXIT_SCOPE(n$6,n$7); [line 46, column 5]\n " shape="box"] +"list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&y:init_list::Y) assign_last [line 46, column 3]\n n$6=_fun_init_list::Y_Y(&y:init_list::Y*) [line 46, column 5]\n EXIT_SCOPE(n$6,n$7); [line 46, column 5]\n " shape="box"] "list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_5" -> "list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_4" ; -"list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&ti:int[4*4]) [line 45, column 3]\n *&ti[0]:int=1 [line 45, column 15]\n *&ti[1]:int=2 [line 45, column 15]\n NULLIFY(&ti); [line 45, column 15]\n EXIT_SCOPE(n$8,ti); [line 45, column 15]\n " shape="box"] +"list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&ti:int[4*4]) assign_last [line 45, column 3]\n *&ti[0]:int=1 [line 45, column 15]\n *&ti[1]:int=2 [line 45, column 15]\n NULLIFY(&ti); [line 45, column 15]\n EXIT_SCOPE(n$8,ti); [line 45, column 15]\n " shape="box"] "list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_6" -> "list_init#init_list#18348854466346904105.0126b9f1f80f91b73d5fbdbf2bc60754_5" ; @@ -45,19 +45,19 @@ digraph cfg { "record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_3" -> "record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_2" ; -"record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&c:init_list::C) [line 41, column 3]\n n$5=_fun_init_list::C_C(&c:init_list::C*,1:int,2:int,&x:init_list::X&) [line 41, column 5]\n EXIT_SCOPE(n$5,n$6); [line 41, column 5]\n " shape="box"] +"record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&c:init_list::C) assign_last [line 41, column 3]\n n$5=_fun_init_list::C_C(&c:init_list::C*,1:int,2:int,&x:init_list::X&) [line 41, column 5]\n EXIT_SCOPE(n$5,n$6); [line 41, column 5]\n " shape="box"] "record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_4" -> "record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_3" ; -"record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&y2:init_list::Y) [line 39, column 3]\n *&y2.z:int=1 [line 39, column 7]\n *&y2.x.a:int=2 [line 39, column 11]\n *&y2.x.p:int*=null [line 39, column 11]\n NULLIFY(&y2); [line 39, column 11]\n EXIT_SCOPE(n$7,y2); [line 39, column 11]\n " shape="box"] +"record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&y2:init_list::Y) assign_last [line 39, column 3]\n *&y2.z:int=1 [line 39, column 7]\n *&y2.x.a:int=2 [line 39, column 11]\n *&y2.x.p:int*=null [line 39, column 11]\n NULLIFY(&y2); [line 39, column 11]\n EXIT_SCOPE(n$7,y2); [line 39, column 11]\n " shape="box"] "record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_5" -> "record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_4" ; -"record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&y1:init_list::Y) [line 38, column 3]\n *&y1.z:int=1 [line 38, column 7]\n n$8=_fun_init_list::X_X(&y1.x:init_list::X*,&x:init_list::X&) [line 38, column 11]\n EXIT_SCOPE(n$8,n$9,y1); [line 38, column 11]\n " shape="box"] +"record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&y1:init_list::Y) assign_last [line 38, column 3]\n *&y1.z:int=1 [line 38, column 7]\n n$8=_fun_init_list::X_X(&y1.x:init_list::X*,&x:init_list::X&) [line 38, column 11]\n EXIT_SCOPE(n$8,n$9,y1); [line 38, column 11]\n " shape="box"] "record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_6" -> "record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_5" ; -"record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_7" [label="7: DeclStmt \n n$10=_fun___variable_initialization(&x:init_list::X) [line 37, column 3]\n *&x.a:int=1 [line 37, column 6]\n *&x.p:int*=null [line 37, column 6]\n EXIT_SCOPE(n$10); [line 37, column 6]\n " shape="box"] +"record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_7" [label="7: DeclStmt \n n$10=_fun___variable_initialization(&x:init_list::X) assign_last [line 37, column 3]\n *&x.a:int=1 [line 37, column 6]\n *&x.p:int*=null [line 37, column 6]\n EXIT_SCOPE(n$10); [line 37, column 6]\n " shape="box"] "record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_7" -> "record_init#init_list#9390182661430352809.a0bac2a3cf71c0b7c450ce49d030845f_6" ; @@ -68,15 +68,15 @@ digraph cfg { "zero_init_primitive#init_list#3465759276925732066.1d03db1e38d38f4b345f33049176e92c_2" [label="2: Exit init_list::zero_init_primitive \n NULLIFY(&p); [line 29, column 1]\n " color=yellow style=filled] -"zero_init_primitive#init_list#3465759276925732066.1d03db1e38d38f4b345f33049176e92c_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&f:float) [line 28, column 3]\n *&f:float=0. [line 28, column 3]\n NULLIFY(&f); [line 28, column 3]\n EXIT_SCOPE(n$1,f); [line 28, column 3]\n APPLY_ABSTRACTION; [line 28, column 3]\n " shape="box"] +"zero_init_primitive#init_list#3465759276925732066.1d03db1e38d38f4b345f33049176e92c_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&f:float) assign_last [line 28, column 3]\n *&f:float=0. [line 28, column 3]\n NULLIFY(&f); [line 28, column 3]\n EXIT_SCOPE(n$1,f); [line 28, column 3]\n APPLY_ABSTRACTION; [line 28, column 3]\n " shape="box"] "zero_init_primitive#init_list#3465759276925732066.1d03db1e38d38f4b345f33049176e92c_3" -> "zero_init_primitive#init_list#3465759276925732066.1d03db1e38d38f4b345f33049176e92c_2" ; -"zero_init_primitive#init_list#3465759276925732066.1d03db1e38d38f4b345f33049176e92c_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&p:int*) [line 27, column 3]\n *&p:int*=null [line 27, column 3]\n EXIT_SCOPE(n$2,p); [line 27, column 3]\n " shape="box"] +"zero_init_primitive#init_list#3465759276925732066.1d03db1e38d38f4b345f33049176e92c_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&p:int*) assign_last [line 27, column 3]\n *&p:int*=null [line 27, column 3]\n EXIT_SCOPE(n$2,p); [line 27, column 3]\n " shape="box"] "zero_init_primitive#init_list#3465759276925732066.1d03db1e38d38f4b345f33049176e92c_4" -> "zero_init_primitive#init_list#3465759276925732066.1d03db1e38d38f4b345f33049176e92c_3" ; -"zero_init_primitive#init_list#3465759276925732066.1d03db1e38d38f4b345f33049176e92c_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&i:int) [line 26, column 3]\n *&i:int=0 [line 26, column 3]\n NULLIFY(&i); [line 26, column 3]\n EXIT_SCOPE(n$3,i); [line 26, column 3]\n " shape="box"] +"zero_init_primitive#init_list#3465759276925732066.1d03db1e38d38f4b345f33049176e92c_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&i:int) assign_last [line 26, column 3]\n *&i:int=0 [line 26, column 3]\n NULLIFY(&i); [line 26, column 3]\n EXIT_SCOPE(n$3,i); [line 26, column 3]\n " shape="box"] "zero_init_primitive#init_list#3465759276925732066.1d03db1e38d38f4b345f33049176e92c_5" -> "zero_init_primitive#init_list#3465759276925732066.1d03db1e38d38f4b345f33049176e92c_4" ; @@ -91,11 +91,11 @@ digraph cfg { "zero_init_record#init_list#7364160241041626579.8baaea62666796dca7b4a7b11bf4f2bb_3" -> "zero_init_record#init_list#7364160241041626579.8baaea62666796dca7b4a7b11bf4f2bb_2" ; -"zero_init_record#init_list#7364160241041626579.8baaea62666796dca7b4a7b11bf4f2bb_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&c:init_list::C) [line 33, column 3]\n n$3=_fun_init_list::C_C(&c:init_list::C*) [line 33, column 5]\n EXIT_SCOPE(n$3,n$4); [line 33, column 5]\n " shape="box"] +"zero_init_record#init_list#7364160241041626579.8baaea62666796dca7b4a7b11bf4f2bb_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&c:init_list::C) assign_last [line 33, column 3]\n n$3=_fun_init_list::C_C(&c:init_list::C*) [line 33, column 5]\n EXIT_SCOPE(n$3,n$4); [line 33, column 5]\n " shape="box"] "zero_init_record#init_list#7364160241041626579.8baaea62666796dca7b4a7b11bf4f2bb_4" -> "zero_init_record#init_list#7364160241041626579.8baaea62666796dca7b4a7b11bf4f2bb_3" ; -"zero_init_record#init_list#7364160241041626579.8baaea62666796dca7b4a7b11bf4f2bb_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&y:init_list::Y) [line 32, column 3]\n *&y.z:int=0 [line 32, column 7]\n *&y.x.a:int=0 [line 32, column 7]\n *&y.x.p:int*=null [line 32, column 7]\n NULLIFY(&y); [line 32, column 7]\n EXIT_SCOPE(n$5,y); [line 32, column 7]\n " shape="box"] +"zero_init_record#init_list#7364160241041626579.8baaea62666796dca7b4a7b11bf4f2bb_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&y:init_list::Y) assign_last [line 32, column 3]\n *&y.z:int=0 [line 32, column 7]\n *&y.x.a:int=0 [line 32, column 7]\n *&y.x.p:int*=null [line 32, column 7]\n NULLIFY(&y); [line 32, column 7]\n EXIT_SCOPE(n$5,y); [line 32, column 7]\n " shape="box"] "zero_init_record#init_list#7364160241041626579.8baaea62666796dca7b4a7b11bf4f2bb_5" -> "zero_init_record#init_list#7364160241041626579.8baaea62666796dca7b4a7b11bf4f2bb_4" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/literals/scalar_value_init.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/literals/scalar_value_init.cpp.dot index c72904965..f1ed21116 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/literals/scalar_value_init.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/literals/scalar_value_init.cpp.dot @@ -62,11 +62,11 @@ digraph cfg { "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_2" [label="2: Exit test \n NULLIFY(&fp); [line 22, column 1]\n " color=yellow style=filled] -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&f2:float) [line 21, column 3]\n *&f2:float=0. [line 21, column 3]\n NULLIFY(&f2); [line 21, column 3]\n EXIT_SCOPE(n$1,f2); [line 21, column 3]\n APPLY_ABSTRACTION; [line 21, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&f2:float) assign_last [line 21, column 3]\n *&f2:float=0. [line 21, column 3]\n NULLIFY(&f2); [line 21, column 3]\n EXIT_SCOPE(n$1,f2); [line 21, column 3]\n APPLY_ABSTRACTION; [line 21, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_2" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&x:int) [line 20, column 3]\n n$2=_fun_get() [line 20, column 12]\n *&x:int=n$2 [line 20, column 3]\n NULLIFY(&x); [line 20, column 3]\n EXIT_SCOPE(n$2,n$3,x); [line 20, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&x:int) assign_last [line 20, column 3]\n n$2=_fun_get() [line 20, column 12]\n *&x:int=n$2 [line 20, column 3]\n NULLIFY(&x); [line 20, column 3]\n EXIT_SCOPE(n$2,n$3,x); [line 20, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" ; @@ -74,15 +74,15 @@ digraph cfg { "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" [label="6: DeclStmt \n n$6=_fun___variable_initialization(&fp:float*) [line 18, column 3]\n n$5=_fun_get() [line 18, column 15]\n *&fp:float*=n$5 [line 18, column 3]\n EXIT_SCOPE(n$5,n$6,fp); [line 18, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" [label="6: DeclStmt \n n$6=_fun___variable_initialization(&fp:float*) assign_last [line 18, column 3]\n n$5=_fun_get() [line 18, column 15]\n *&fp:float*=n$5 [line 18, column 3]\n EXIT_SCOPE(n$5,n$6,fp); [line 18, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&f:float) [line 17, column 3]\n n$7=_fun_get() [line 17, column 13]\n *&f:float=n$7 [line 17, column 3]\n NULLIFY(&f); [line 17, column 3]\n EXIT_SCOPE(n$7,n$8,f); [line 17, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&f:float) assign_last [line 17, column 3]\n n$7=_fun_get() [line 17, column 13]\n *&f:float=n$7 [line 17, column 3]\n NULLIFY(&f); [line 17, column 3]\n EXIT_SCOPE(n$7,n$8,f); [line 17, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_7" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_8" [label="8: DeclStmt \n n$10=_fun___variable_initialization(&i:int) [line 16, column 3]\n n$9=_fun_get() [line 16, column 11]\n *&i:int=n$9 [line 16, column 3]\n NULLIFY(&i); [line 16, column 3]\n EXIT_SCOPE(n$9,n$10,i); [line 16, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_8" [label="8: DeclStmt \n n$10=_fun___variable_initialization(&i:int) assign_last [line 16, column 3]\n n$9=_fun_get() [line 16, column 11]\n *&i:int=n$9 [line 16, column 3]\n NULLIFY(&i); [line 16, column 3]\n EXIT_SCOPE(n$9,n$10,i); [line 16, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_8" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_7" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/loops/do_while.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/loops/do_while.cpp.dot index 5e0107404..0a46dea9e 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/loops/do_while.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/loops/do_while.cpp.dot @@ -54,7 +54,7 @@ digraph cfg { "test1#18336337528475129646.aabe036d545fef7e4b4a130ea21a585c_13" -> "test1#18336337528475129646.aabe036d545fef7e4b4a130ea21a585c_9" ; "test1#18336337528475129646.aabe036d545fef7e4b4a130ea21a585c_13" -> "test1#18336337528475129646.aabe036d545fef7e4b4a130ea21a585c_10" ; -"test1#18336337528475129646.aabe036d545fef7e4b4a130ea21a585c_14" [label="14: DeclStmt \n n$15=_fun___variable_initialization(&x:int) [line 9, column 3]\n *&x:int=0 [line 9, column 3]\n EXIT_SCOPE(n$15); [line 9, column 3]\n APPLY_ABSTRACTION; [line 9, column 3]\n " shape="box"] +"test1#18336337528475129646.aabe036d545fef7e4b4a130ea21a585c_14" [label="14: DeclStmt \n n$15=_fun___variable_initialization(&x:int) assign_last [line 9, column 3]\n *&x:int=0 [line 9, column 3]\n EXIT_SCOPE(n$15); [line 9, column 3]\n APPLY_ABSTRACTION; [line 9, column 3]\n " shape="box"] "test1#18336337528475129646.aabe036d545fef7e4b4a130ea21a585c_14" -> "test1#18336337528475129646.aabe036d545fef7e4b4a130ea21a585c_4" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/loops/foreach1.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/loops/foreach1.cpp.dot index b1a065ab8..8f5ce5218 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/loops/foreach1.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/loops/foreach1.cpp.dot @@ -47,15 +47,15 @@ digraph cfg { "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_7" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" [label="4: DeclStmt \n n$10=_fun___variable_initialization(&__end1:iterator) [line 35, column 18]\n n$8=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:iterator) [line 35, column 18]\n n$4=*&__range1:vec& [line 35, column 18]\n _=*n$4:vec [line 35, column 18]\n n$7=_fun_vec_end(n$4:vec&,&0$?%__sil_tmpSIL_materialize_temp__n$3:iterator*) [line 35, column 18]\n n$9=_fun_iterator_iterator(&__end1:iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$3:iterator&) [line 35, column 18]\n EXIT_SCOPE(_,n$4,n$7,n$8,n$9,n$10,0$?%__sil_tmpSIL_materialize_temp__n$3,__range1); [line 35, column 18]\n APPLY_ABSTRACTION; [line 35, column 18]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" [label="4: DeclStmt \n n$10=_fun___variable_initialization(&__end1:iterator) assign_last [line 35, column 18]\n n$8=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:iterator) assign_last [line 35, column 18]\n n$4=*&__range1:vec& [line 35, column 18]\n _=*n$4:vec [line 35, column 18]\n n$7=_fun_vec_end(n$4:vec&,&0$?%__sil_tmpSIL_materialize_temp__n$3:iterator*) assign_last [line 35, column 18]\n n$9=_fun_iterator_iterator(&__end1:iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$3:iterator&) [line 35, column 18]\n EXIT_SCOPE(_,n$4,n$7,n$8,n$9,n$10,0$?%__sil_tmpSIL_materialize_temp__n$3,__range1); [line 35, column 18]\n APPLY_ABSTRACTION; [line 35, column 18]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" [label="5: DeclStmt \n n$18=_fun___variable_initialization(&__begin1:iterator) [line 35, column 18]\n n$16=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$11:iterator) [line 35, column 18]\n n$12=*&__range1:vec& [line 35, column 18]\n _=*n$12:vec [line 35, column 18]\n n$15=_fun_vec_begin(n$12:vec&,&0$?%__sil_tmpSIL_materialize_temp__n$11:iterator*) [line 35, column 18]\n n$17=_fun_iterator_iterator(&__begin1:iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$11:iterator&) [line 35, column 18]\n EXIT_SCOPE(_,n$12,n$15,n$16,n$17,n$18,0$?%__sil_tmpSIL_materialize_temp__n$11); [line 35, column 18]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" [label="5: DeclStmt \n n$18=_fun___variable_initialization(&__begin1:iterator) assign_last [line 35, column 18]\n n$16=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$11:iterator) assign_last [line 35, column 18]\n n$12=*&__range1:vec& [line 35, column 18]\n _=*n$12:vec [line 35, column 18]\n n$15=_fun_vec_begin(n$12:vec&,&0$?%__sil_tmpSIL_materialize_temp__n$11:iterator*) assign_last [line 35, column 18]\n n$17=_fun_iterator_iterator(&__begin1:iterator*,&0$?%__sil_tmpSIL_materialize_temp__n$11:iterator&) [line 35, column 18]\n EXIT_SCOPE(_,n$12,n$15,n$16,n$17,n$18,0$?%__sil_tmpSIL_materialize_temp__n$11); [line 35, column 18]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" [label="6: Call _fun_iterator_operator++ \n n$22=_fun_iterator_operator++(&__begin1:iterator&,&0$?%__sil_tmp__temp_return_n$21:iterator*) [line 35, column 18]\n EXIT_SCOPE(n$22); [line 35, column 18]\n APPLY_ABSTRACTION; [line 35, column 18]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" [label="6: Call _fun_iterator_operator++ \n n$22=_fun_iterator_operator++(&__begin1:iterator&,&0$?%__sil_tmp__temp_return_n$21:iterator*) assign_last [line 35, column 18]\n EXIT_SCOPE(n$22,0$?%__sil_tmp__temp_return_n$21); [line 35, column 18]\n APPLY_ABSTRACTION; [line 35, column 18]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" ; @@ -68,23 +68,23 @@ digraph cfg { "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_8" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_11" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_9" [label="9: Prune (false branch, for loop) \n PRUNE(!n$27, false); [line 35, column 18]\n NULLIFY(&value); [line 35, column 18]\n NULLIFY(&temp); [line 35, column 18]\n EXIT_SCOPE(n$27,value,temp); [line 35, column 18]\n APPLY_ABSTRACTION; [line 35, column 18]\n " shape="invhouse"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_9" [label="9: Prune (false branch, for loop) \n PRUNE(!n$27, false); [line 35, column 18]\n EXIT_SCOPE(n$27,__begin1,__end1); [line 35, column 18]\n APPLY_ABSTRACTION; [line 35, column 18]\n " shape="invhouse"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_9" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_2" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_10" [label="10: DeclStmt \n n$32=_fun___variable_initialization(&temp:int) [line 36, column 5]\n n$30=*&value:int [line 36, column 16]\n n$31=*&value:int [line 36, column 24]\n *&temp:int=((n$30 * n$31) + 10) [line 36, column 5]\n EXIT_SCOPE(n$30,n$31,n$32); [line 36, column 5]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_10" [label="10: DeclStmt \n n$32=_fun___variable_initialization(&temp:int) assign_last [line 36, column 5]\n n$30=*&value:int [line 36, column 16]\n n$31=*&value:int [line 36, column 24]\n *&temp:int=((n$30 * n$31) + 10) [line 36, column 5]\n NULLIFY(&value); [line 36, column 5]\n NULLIFY(&temp); [line 36, column 5]\n EXIT_SCOPE(n$30,n$31,n$32,value,temp); [line 36, column 5]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_10" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_11" [label="11: DeclStmt \n n$35=_fun___variable_initialization(&value:int) [line 35, column 8]\n n$34=_fun_iterator_operator*(&__begin1:iterator&) [line 35, column 18]\n *&value:int=n$34 [line 35, column 8]\n EXIT_SCOPE(n$34,n$35); [line 35, column 8]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_11" [label="11: DeclStmt \n n$35=_fun___variable_initialization(&value:int) assign_last [line 35, column 8]\n n$34=_fun_iterator_operator*(&__begin1:iterator&) [line 35, column 18]\n *&value:int=n$34 [line 35, column 8]\n EXIT_SCOPE(n$34,n$35); [line 35, column 8]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_11" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_10" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_12" [label="12: DeclStmt \n n$37=_fun___variable_initialization(&__range1:vec&) [line 35, column 20]\n *&__range1:vec&=&vector [line 35, column 20]\n EXIT_SCOPE(n$37,vector); [line 35, column 20]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_12" [label="12: DeclStmt \n n$37=_fun___variable_initialization(&__range1:vec&) assign_last [line 35, column 20]\n *&__range1:vec&=&vector [line 35, column 20]\n EXIT_SCOPE(n$37,vector); [line 35, column 20]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_12" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_13" [label="13: DeclStmt \n n$39=_fun___variable_initialization(&vector:vec) [line 34, column 3]\n n$38=_fun_vec_vec(&vector:vec*,10:int) [line 34, column 7]\n EXIT_SCOPE(n$38,n$39); [line 34, column 7]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_13" [label="13: DeclStmt \n n$39=_fun___variable_initialization(&vector:vec) assign_last [line 34, column 3]\n n$38=_fun_vec_vec(&vector:vec*,10:int) [line 34, column 7]\n EXIT_SCOPE(n$38,n$39); [line 34, column 7]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_13" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_12" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/nestedoperators/assign_with_increment.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/nestedoperators/assign_with_increment.cpp.dot index bef7e5acc..bd1bf03ef 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/nestedoperators/assign_with_increment.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/nestedoperators/assign_with_increment.cpp.dot @@ -7,23 +7,23 @@ digraph cfg { "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_2" [label="2: Exit test \n " color=yellow style=filled] -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&e:int) [line 13, column 3]\n n$1=*&a:int [line 13, column 11]\n *&a:int=(n$1 - 1) [line 13, column 11]\n *&e:int=n$1 [line 13, column 3]\n NULLIFY(&a); [line 13, column 3]\n NULLIFY(&e); [line 13, column 3]\n EXIT_SCOPE(n$1,n$2,a,e); [line 13, column 3]\n APPLY_ABSTRACTION; [line 13, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&e:int) assign_last [line 13, column 3]\n n$1=*&a:int [line 13, column 11]\n *&a:int=(n$1 - 1) [line 13, column 11]\n *&e:int=n$1 [line 13, column 3]\n NULLIFY(&a); [line 13, column 3]\n NULLIFY(&e); [line 13, column 3]\n EXIT_SCOPE(n$1,n$2,a,e); [line 13, column 3]\n APPLY_ABSTRACTION; [line 13, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_2" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&d:int) [line 12, column 3]\n n$3=*&a:int [line 12, column 11]\n *&a:int=(n$3 - 1) [line 12, column 11]\n n$4=*&a:int [line 12, column 11]\n *&d:int=n$4 [line 12, column 3]\n NULLIFY(&d); [line 12, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,d); [line 12, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&d:int) assign_last [line 12, column 3]\n n$3=*&a:int [line 12, column 11]\n *&a:int=(n$3 - 1) [line 12, column 11]\n n$4=*&a:int [line 12, column 11]\n *&d:int=n$4 [line 12, column 3]\n NULLIFY(&d); [line 12, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,d); [line 12, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&c:int) [line 11, column 3]\n n$6=*&a:int [line 11, column 11]\n *&a:int=(n$6 + 1) [line 11, column 11]\n *&c:int=n$6 [line 11, column 3]\n NULLIFY(&c); [line 11, column 3]\n EXIT_SCOPE(n$6,n$7,c); [line 11, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&c:int) assign_last [line 11, column 3]\n n$6=*&a:int [line 11, column 11]\n *&a:int=(n$6 + 1) [line 11, column 11]\n *&c:int=n$6 [line 11, column 3]\n NULLIFY(&c); [line 11, column 3]\n EXIT_SCOPE(n$6,n$7,c); [line 11, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" [label="6: DeclStmt \n n$10=_fun___variable_initialization(&b:int) [line 10, column 3]\n n$8=*&a:int [line 10, column 11]\n *&a:int=(n$8 + 1) [line 10, column 11]\n n$9=*&a:int [line 10, column 11]\n *&b:int=n$9 [line 10, column 3]\n NULLIFY(&b); [line 10, column 3]\n EXIT_SCOPE(n$8,n$9,n$10,b); [line 10, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" [label="6: DeclStmt \n n$10=_fun___variable_initialization(&b:int) assign_last [line 10, column 3]\n n$8=*&a:int [line 10, column 11]\n *&a:int=(n$8 + 1) [line 10, column 11]\n n$9=*&a:int [line 10, column 11]\n *&b:int=n$9 [line 10, column 3]\n NULLIFY(&b); [line 10, column 3]\n EXIT_SCOPE(n$8,n$9,n$10,b); [line 10, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_7" [label="7: DeclStmt \n n$11=_fun___variable_initialization(&a:int) [line 9, column 3]\n *&a:int=3 [line 9, column 3]\n EXIT_SCOPE(n$11); [line 9, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_7" [label="7: DeclStmt \n n$11=_fun___variable_initialization(&a:int) assign_last [line 9, column 3]\n *&a:int=3 [line 9, column 3]\n EXIT_SCOPE(n$11); [line 9, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_7" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_6" ; diff --git a/infer/tests/codetoanalyze/cpp/frontend/nestedoperators/union.cpp.dot b/infer/tests/codetoanalyze/cpp/frontend/nestedoperators/union.cpp.dot index 1aea376f2..af10d2f53 100644 --- a/infer/tests/codetoanalyze/cpp/frontend/nestedoperators/union.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/frontend/nestedoperators/union.cpp.dot @@ -7,7 +7,7 @@ digraph cfg { "__infer_globals_initializer_y.0ea250be2dd991733c9131c53abc3c54_2" [label="2: Exit __infer_globals_initializer_y \n " color=yellow style=filled] -"__infer_globals_initializer_y.0ea250be2dd991733c9131c53abc3c54_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&#GB$y:anonymous_union_nestedoperators_union.cpp:13:1) [line 13, column 1]\n n$0=_fun_anonymous_union_nestedoperators_union.cpp:13:1_(&#GB$y:anonymous_union_nestedoperators_union.cpp:13:1*) [line 23, column 3]\n EXIT_SCOPE(n$0,n$1); [line 23, column 3]\n APPLY_ABSTRACTION; [line 23, column 3]\n " shape="box"] +"__infer_globals_initializer_y.0ea250be2dd991733c9131c53abc3c54_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&#GB$y:anonymous_union_nestedoperators_union.cpp:13:1) assign_last [line 13, column 1]\n n$0=_fun_anonymous_union_nestedoperators_union.cpp:13:1_(&#GB$y:anonymous_union_nestedoperators_union.cpp:13:1*) [line 23, column 3]\n EXIT_SCOPE(n$0,n$1); [line 23, column 3]\n APPLY_ABSTRACTION; [line 23, column 3]\n " shape="box"] "__infer_globals_initializer_y.0ea250be2dd991733c9131c53abc3c54_3" -> "__infer_globals_initializer_y.0ea250be2dd991733c9131c53abc3c54_2" ; diff --git a/infer/tests/codetoanalyze/cpp/liveness/dead_stores.cpp b/infer/tests/codetoanalyze/cpp/liveness/dead_stores.cpp index 1863db099..6b269e993 100644 --- a/infer/tests/codetoanalyze/cpp/liveness/dead_stores.cpp +++ b/infer/tests/codetoanalyze/cpp/liveness/dead_stores.cpp @@ -496,4 +496,13 @@ void unused_attribute_ok() { UNUSED(x); } +struct ChainedCalls { + ChainedCalls chained(int i); +}; + +ChainedCalls chain_method_calls_ok() { + ChainedCalls x; + return x.chained(5).chained(6); +} + } // namespace dead_stores diff --git a/infer/tests/codetoanalyze/cpp/pulse/issues.exp b/infer/tests/codetoanalyze/cpp/pulse/issues.exp index 0424cdad1..65d65c005 100644 --- a/infer/tests/codetoanalyze/cpp/pulse/issues.exp +++ b/infer/tests/codetoanalyze/cpp/pulse/issues.exp @@ -1,7 +1,5 @@ codetoanalyze/cpp/pulse/basics.cpp, multiple_invalidations_branch_bad, 6, USE_AFTER_DELETE, no_bucket, ERROR, [invalidated by call to `delete ptr` at line 58, column 5 here,accessed `*(ptr)` here] codetoanalyze/cpp/pulse/basics.cpp, multiple_invalidations_loop_bad, 3, USE_AFTER_DELETE, no_bucket, ERROR, [invalidated by call to `delete ptr` at line 68, column 7 here,accessed `ptr` here] -codetoanalyze/cpp/pulse/join.cpp, FP_cond_inside_loop_ok, 7, USE_AFTER_DESTRUCTOR, no_bucket, ERROR, [invalidated by destructor call `BasicStruct_~BasicStruct(x)` at line 74, column 3 here,accessed `&(x)` here] -codetoanalyze/cpp/pulse/join.cpp, FP_list_delete_ok, 6, USE_AFTER_FREE, no_bucket, ERROR, [invalidated by call to `free(tmp->foo)` at line 42, column 7 here,accessed `tmp->foo` here] codetoanalyze/cpp/pulse/join.cpp, invalidate_node_alias_bad, 12, USE_AFTER_DELETE, no_bucket, ERROR, [invalidated by call to `delete result` at line 25, column 5 here,accessed `*(result)` here] codetoanalyze/cpp/pulse/returns.cpp, returns::return_deleted_bad, 4, USE_AFTER_DELETE, no_bucket, ERROR, [invalidated by call to `delete x` at line 112, column 3 here,accessed `x` here] codetoanalyze/cpp/pulse/use_after_delete.cpp, delete_in_branch_bad, 5, USE_AFTER_DELETE, no_bucket, ERROR, [invalidated by call to `delete s` at line 57, column 5 here,accessed `s` here] diff --git a/infer/tests/codetoanalyze/cpp/pulse/join.cpp b/infer/tests/codetoanalyze/cpp/pulse/join.cpp index 4d5a26235..a25dff9dd 100644 --- a/infer/tests/codetoanalyze/cpp/pulse/join.cpp +++ b/infer/tests/codetoanalyze/cpp/pulse/join.cpp @@ -32,7 +32,7 @@ int invalidate_node_alias_bad(struct list* head, int cond) { return *result; } -void FP_list_delete_ok(struct list** l) { +void list_delete_ok(struct list** l) { auto head = *l; *l = nullptr; while (head) { @@ -63,7 +63,7 @@ int nested_loops_ok() { extern bool some_bool(); extern BasicStruct mk_basic_struct(); -void FP_cond_inside_loop_ok() { +void cond_inside_loop_ok() { while (true) { BasicStruct x; if (some_bool()) { diff --git a/infer/tests/codetoanalyze/cpp/shared/attributes/annotate.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/attributes/annotate.cpp.dot index 3fd4c8024..fac3f89e5 100644 --- a/infer/tests/codetoanalyze/cpp/shared/attributes/annotate.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/attributes/annotate.cpp.dot @@ -29,7 +29,7 @@ digraph cfg { "derefFirstArg2_null_deref#13631548499595216278.23fca23ff6728e4b72a2548ecb3b1ba0_3" -> "derefFirstArg2_null_deref#13631548499595216278.23fca23ff6728e4b72a2548ecb3b1ba0_2" ; -"derefFirstArg2_null_deref#13631548499595216278.23fca23ff6728e4b72a2548ecb3b1ba0_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) [line 46, column 3]\n *&a:int=0 [line 46, column 3]\n NULLIFY(&a); [line 46, column 3]\n EXIT_SCOPE(n$2,a); [line 46, column 3]\n " shape="box"] +"derefFirstArg2_null_deref#13631548499595216278.23fca23ff6728e4b72a2548ecb3b1ba0_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) assign_last [line 46, column 3]\n *&a:int=0 [line 46, column 3]\n NULLIFY(&a); [line 46, column 3]\n EXIT_SCOPE(n$2,a); [line 46, column 3]\n " shape="box"] "derefFirstArg2_null_deref#13631548499595216278.23fca23ff6728e4b72a2548ecb3b1ba0_4" -> "derefFirstArg2_null_deref#13631548499595216278.23fca23ff6728e4b72a2548ecb3b1ba0_3" ; @@ -44,7 +44,7 @@ digraph cfg { "derefFirstArg2_ok_deref#6873109919028202465.d57ab0b62c0ba18894b8b08d5a8f8e8a_3" -> "derefFirstArg2_ok_deref#6873109919028202465.d57ab0b62c0ba18894b8b08d5a8f8e8a_2" ; -"derefFirstArg2_ok_deref#6873109919028202465.d57ab0b62c0ba18894b8b08d5a8f8e8a_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) [line 51, column 3]\n *&a:int=0 [line 51, column 3]\n EXIT_SCOPE(n$2); [line 51, column 3]\n " shape="box"] +"derefFirstArg2_ok_deref#6873109919028202465.d57ab0b62c0ba18894b8b08d5a8f8e8a_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) assign_last [line 51, column 3]\n *&a:int=0 [line 51, column 3]\n EXIT_SCOPE(n$2); [line 51, column 3]\n " shape="box"] "derefFirstArg2_ok_deref#6873109919028202465.d57ab0b62c0ba18894b8b08d5a8f8e8a_4" -> "derefFirstArg2_ok_deref#6873109919028202465.d57ab0b62c0ba18894b8b08d5a8f8e8a_3" ; @@ -70,7 +70,7 @@ digraph cfg { "derefFirstArg3_null_deref#3036141491555788229.605788dbf5e3c5625520098d1b5d320e_3" -> "derefFirstArg3_null_deref#3036141491555788229.605788dbf5e3c5625520098d1b5d320e_2" ; -"derefFirstArg3_null_deref#3036141491555788229.605788dbf5e3c5625520098d1b5d320e_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) [line 61, column 3]\n *&a:int=0 [line 61, column 3]\n EXIT_SCOPE(n$2); [line 61, column 3]\n " shape="box"] +"derefFirstArg3_null_deref#3036141491555788229.605788dbf5e3c5625520098d1b5d320e_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) assign_last [line 61, column 3]\n *&a:int=0 [line 61, column 3]\n EXIT_SCOPE(n$2); [line 61, column 3]\n " shape="box"] "derefFirstArg3_null_deref#3036141491555788229.605788dbf5e3c5625520098d1b5d320e_4" -> "derefFirstArg3_null_deref#3036141491555788229.605788dbf5e3c5625520098d1b5d320e_3" ; @@ -85,7 +85,7 @@ digraph cfg { "derefFirstArg3_ok_deref#12266654054137171150.c58c85ea4ba2ebfd89d0336e51301e7a_3" -> "derefFirstArg3_ok_deref#12266654054137171150.c58c85ea4ba2ebfd89d0336e51301e7a_2" ; -"derefFirstArg3_ok_deref#12266654054137171150.c58c85ea4ba2ebfd89d0336e51301e7a_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) [line 56, column 3]\n *&a:int=0 [line 56, column 3]\n EXIT_SCOPE(n$2); [line 56, column 3]\n " shape="box"] +"derefFirstArg3_ok_deref#12266654054137171150.c58c85ea4ba2ebfd89d0336e51301e7a_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) assign_last [line 56, column 3]\n *&a:int=0 [line 56, column 3]\n EXIT_SCOPE(n$2); [line 56, column 3]\n " shape="box"] "derefFirstArg3_ok_deref#12266654054137171150.c58c85ea4ba2ebfd89d0336e51301e7a_4" -> "derefFirstArg3_ok_deref#12266654054137171150.c58c85ea4ba2ebfd89d0336e51301e7a_3" ; @@ -100,7 +100,7 @@ digraph cfg { "derefFirstArg_null_deref#14830687999166111591.325df3347d8f75d0292cfd33a485d28a_3" -> "derefFirstArg_null_deref#14830687999166111591.325df3347d8f75d0292cfd33a485d28a_2" ; -"derefFirstArg_null_deref#14830687999166111591.325df3347d8f75d0292cfd33a485d28a_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) [line 36, column 3]\n *&a:int=0 [line 36, column 3]\n NULLIFY(&a); [line 36, column 3]\n EXIT_SCOPE(n$2,a); [line 36, column 3]\n " shape="box"] +"derefFirstArg_null_deref#14830687999166111591.325df3347d8f75d0292cfd33a485d28a_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) assign_last [line 36, column 3]\n *&a:int=0 [line 36, column 3]\n NULLIFY(&a); [line 36, column 3]\n EXIT_SCOPE(n$2,a); [line 36, column 3]\n " shape="box"] "derefFirstArg_null_deref#14830687999166111591.325df3347d8f75d0292cfd33a485d28a_4" -> "derefFirstArg_null_deref#14830687999166111591.325df3347d8f75d0292cfd33a485d28a_3" ; @@ -115,7 +115,7 @@ digraph cfg { "derefFirstArg_ok_deref#70986049112502156.78efafe2cdade07d4257a7cd671e75f5_3" -> "derefFirstArg_ok_deref#70986049112502156.78efafe2cdade07d4257a7cd671e75f5_2" ; -"derefFirstArg_ok_deref#70986049112502156.78efafe2cdade07d4257a7cd671e75f5_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) [line 41, column 3]\n *&a:int=0 [line 41, column 3]\n EXIT_SCOPE(n$2); [line 41, column 3]\n " shape="box"] +"derefFirstArg_ok_deref#70986049112502156.78efafe2cdade07d4257a7cd671e75f5_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) assign_last [line 41, column 3]\n *&a:int=0 [line 41, column 3]\n EXIT_SCOPE(n$2); [line 41, column 3]\n " shape="box"] "derefFirstArg_ok_deref#70986049112502156.78efafe2cdade07d4257a7cd671e75f5_4" -> "derefFirstArg_ok_deref#70986049112502156.78efafe2cdade07d4257a7cd671e75f5_3" ; @@ -134,7 +134,7 @@ digraph cfg { "getPtr_null_deref1#10685326586135592861.d05a7735c36f759fec001951cdc51035_4" -> "getPtr_null_deref1#10685326586135592861.d05a7735c36f759fec001951cdc51035_3" ; -"getPtr_null_deref1#10685326586135592861.d05a7735c36f759fec001951cdc51035_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) [line 88, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 88, column 23]\n n$6=*&t:int* [line 88, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 88, column 23]\n " shape="box"] +"getPtr_null_deref1#10685326586135592861.d05a7735c36f759fec001951cdc51035_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) assign_last [line 88, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 88, column 23]\n n$6=*&t:int* [line 88, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 88, column 23]\n " shape="box"] "getPtr_null_deref1#10685326586135592861.d05a7735c36f759fec001951cdc51035_5" -> "getPtr_null_deref1#10685326586135592861.d05a7735c36f759fec001951cdc51035_4" ; @@ -153,7 +153,7 @@ digraph cfg { "getPtr_null_deref2#10682492045158632578.de31216813faa493761802feb6f997f2_4" -> "getPtr_null_deref2#10682492045158632578.de31216813faa493761802feb6f997f2_3" ; -"getPtr_null_deref2#10682492045158632578.de31216813faa493761802feb6f997f2_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) [line 94, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 94, column 23]\n n$6=*&t:int* [line 94, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 94, column 23]\n " shape="box"] +"getPtr_null_deref2#10682492045158632578.de31216813faa493761802feb6f997f2_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) assign_last [line 94, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 94, column 23]\n n$6=*&t:int* [line 94, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 94, column 23]\n " shape="box"] "getPtr_null_deref2#10682492045158632578.de31216813faa493761802feb6f997f2_5" -> "getPtr_null_deref2#10682492045158632578.de31216813faa493761802feb6f997f2_4" ; @@ -172,11 +172,11 @@ digraph cfg { "getPtr_ok_deref#15608473391071478730.49e56fac5bd82269c2093a9c1e438200_4" -> "getPtr_ok_deref#15608473391071478730.49e56fac5bd82269c2093a9c1e438200_3" ; -"getPtr_ok_deref#15608473391071478730.49e56fac5bd82269c2093a9c1e438200_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) [line 101, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 101, column 23]\n n$6=*&t:int* [line 101, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 101, column 23]\n " shape="box"] +"getPtr_ok_deref#15608473391071478730.49e56fac5bd82269c2093a9c1e438200_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) assign_last [line 101, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 101, column 23]\n n$6=*&t:int* [line 101, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 101, column 23]\n " shape="box"] "getPtr_ok_deref#15608473391071478730.49e56fac5bd82269c2093a9c1e438200_5" -> "getPtr_ok_deref#15608473391071478730.49e56fac5bd82269c2093a9c1e438200_4" ; -"getPtr_ok_deref#15608473391071478730.49e56fac5bd82269c2093a9c1e438200_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&a:int) [line 100, column 3]\n *&a:int=0 [line 100, column 3]\n EXIT_SCOPE(n$9); [line 100, column 3]\n " shape="box"] +"getPtr_ok_deref#15608473391071478730.49e56fac5bd82269c2093a9c1e438200_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&a:int) assign_last [line 100, column 3]\n *&a:int=0 [line 100, column 3]\n EXIT_SCOPE(n$9); [line 100, column 3]\n " shape="box"] "getPtr_ok_deref#15608473391071478730.49e56fac5bd82269c2093a9c1e438200_6" -> "getPtr_ok_deref#15608473391071478730.49e56fac5bd82269c2093a9c1e438200_5" ; @@ -195,7 +195,7 @@ digraph cfg { "getRef_null_deref1#4264296374417396044.654d24b6c4af017d90a5ceff83c121c2_4" -> "getRef_null_deref1#4264296374417396044.654d24b6c4af017d90a5ceff83c121c2_3" ; -"getRef_null_deref1#4264296374417396044.654d24b6c4af017d90a5ceff83c121c2_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) [line 126, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 126, column 23]\n n$6=*&t:int* [line 126, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 126, column 23]\n " shape="box"] +"getRef_null_deref1#4264296374417396044.654d24b6c4af017d90a5ceff83c121c2_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) assign_last [line 126, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 126, column 23]\n n$6=*&t:int* [line 126, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 126, column 23]\n " shape="box"] "getRef_null_deref1#4264296374417396044.654d24b6c4af017d90a5ceff83c121c2_5" -> "getRef_null_deref1#4264296374417396044.654d24b6c4af017d90a5ceff83c121c2_4" ; @@ -214,7 +214,7 @@ digraph cfg { "getRef_null_deref2#4263471740696427019.45bed1239309132cabf29f4cdd81f3cc_4" -> "getRef_null_deref2#4263471740696427019.45bed1239309132cabf29f4cdd81f3cc_3" ; -"getRef_null_deref2#4263471740696427019.45bed1239309132cabf29f4cdd81f3cc_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) [line 132, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 132, column 23]\n n$6=*&t:int* [line 132, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 132, column 23]\n " shape="box"] +"getRef_null_deref2#4263471740696427019.45bed1239309132cabf29f4cdd81f3cc_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) assign_last [line 132, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 132, column 23]\n n$6=*&t:int* [line 132, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 132, column 23]\n " shape="box"] "getRef_null_deref2#4263471740696427019.45bed1239309132cabf29f4cdd81f3cc_5" -> "getRef_null_deref2#4263471740696427019.45bed1239309132cabf29f4cdd81f3cc_4" ; @@ -233,11 +233,11 @@ digraph cfg { "getRef_ok_deref#10111201054364386601.e514c65ac6978a31376e6032d81b3d16_4" -> "getRef_ok_deref#10111201054364386601.e514c65ac6978a31376e6032d81b3d16_3" ; -"getRef_ok_deref#10111201054364386601.e514c65ac6978a31376e6032d81b3d16_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) [line 139, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 139, column 23]\n n$6=*&t:int* [line 139, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 139, column 23]\n " shape="box"] +"getRef_ok_deref#10111201054364386601.e514c65ac6978a31376e6032d81b3d16_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) assign_last [line 139, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 139, column 23]\n n$6=*&t:int* [line 139, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 139, column 23]\n " shape="box"] "getRef_ok_deref#10111201054364386601.e514c65ac6978a31376e6032d81b3d16_5" -> "getRef_ok_deref#10111201054364386601.e514c65ac6978a31376e6032d81b3d16_4" ; -"getRef_ok_deref#10111201054364386601.e514c65ac6978a31376e6032d81b3d16_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&a:int) [line 138, column 3]\n *&a:int=0 [line 138, column 3]\n EXIT_SCOPE(n$9); [line 138, column 3]\n " shape="box"] +"getRef_ok_deref#10111201054364386601.e514c65ac6978a31376e6032d81b3d16_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&a:int) assign_last [line 138, column 3]\n *&a:int=0 [line 138, column 3]\n EXIT_SCOPE(n$9); [line 138, column 3]\n " shape="box"] "getRef_ok_deref#10111201054364386601.e514c65ac6978a31376e6032d81b3d16_6" -> "getRef_ok_deref#10111201054364386601.e514c65ac6978a31376e6032d81b3d16_5" ; @@ -256,7 +256,7 @@ digraph cfg { "operator_star_null_deref1#14187169119337849630.74372e24230903d2d4cacecae74f498d_4" -> "operator_star_null_deref1#14187169119337849630.74372e24230903d2d4cacecae74f498d_3" ; -"operator_star_null_deref1#14187169119337849630.74372e24230903d2d4cacecae74f498d_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) [line 107, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 107, column 23]\n n$6=*&t:int* [line 107, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 107, column 23]\n " shape="box"] +"operator_star_null_deref1#14187169119337849630.74372e24230903d2d4cacecae74f498d_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) assign_last [line 107, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 107, column 23]\n n$6=*&t:int* [line 107, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 107, column 23]\n " shape="box"] "operator_star_null_deref1#14187169119337849630.74372e24230903d2d4cacecae74f498d_5" -> "operator_star_null_deref1#14187169119337849630.74372e24230903d2d4cacecae74f498d_4" ; @@ -275,7 +275,7 @@ digraph cfg { "operator_star_null_deref2#14189968475942707161.6f6b808f2059b0f1bd8edd63f3e0c27b_4" -> "operator_star_null_deref2#14189968475942707161.6f6b808f2059b0f1bd8edd63f3e0c27b_3" ; -"operator_star_null_deref2#14189968475942707161.6f6b808f2059b0f1bd8edd63f3e0c27b_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) [line 113, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 113, column 23]\n n$6=*&t:int* [line 113, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 113, column 23]\n " shape="box"] +"operator_star_null_deref2#14189968475942707161.6f6b808f2059b0f1bd8edd63f3e0c27b_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) assign_last [line 113, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 113, column 23]\n n$6=*&t:int* [line 113, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 113, column 23]\n " shape="box"] "operator_star_null_deref2#14189968475942707161.6f6b808f2059b0f1bd8edd63f3e0c27b_5" -> "operator_star_null_deref2#14189968475942707161.6f6b808f2059b0f1bd8edd63f3e0c27b_4" ; @@ -294,7 +294,7 @@ digraph cfg { "operator_star_ok_deref#11345277927099423171.138b78e88dab5887cd2f20f2590c779f_4" -> "operator_star_ok_deref#11345277927099423171.138b78e88dab5887cd2f20f2590c779f_3" ; -"operator_star_ok_deref#11345277927099423171.138b78e88dab5887cd2f20f2590c779f_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) [line 120, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 120, column 23]\n n$6=*&t:int* [line 120, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 120, column 23]\n " shape="box"] +"operator_star_ok_deref#11345277927099423171.138b78e88dab5887cd2f20f2590c779f_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&t:int*) assign_last [line 120, column 3]\n n$7=_fun_TranslateAsPtr_TranslateAsPtr(&t:int**,null:int*) [line 120, column 23]\n n$6=*&t:int* [line 120, column 23]\n EXIT_SCOPE(n$6,n$7,n$8); [line 120, column 23]\n " shape="box"] "operator_star_ok_deref#11345277927099423171.138b78e88dab5887cd2f20f2590c779f_5" -> "operator_star_ok_deref#11345277927099423171.138b78e88dab5887cd2f20f2590c779f_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/conditional/binary_conditional.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/conditional/binary_conditional.cpp.dot index ee150b477..91c59d661 100644 --- a/infer/tests/codetoanalyze/cpp/shared/conditional/binary_conditional.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/conditional/binary_conditional.cpp.dot @@ -24,7 +24,7 @@ digraph cfg { "binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_6" -> "binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_8" ; -"binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_7" [label="7: Prune (false branch, boolean exp) \n PRUNE(!n$12, false); [line 22, column 9]\n EXIT_SCOPE(n$12); [line 22, column 9]\n " shape="invhouse"] +"binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_7" [label="7: Prune (false branch, boolean exp) \n PRUNE(!n$12, false); [line 22, column 9]\n EXIT_SCOPE(n$12,0$?%__sil_tmpSIL_materialize_temp__n$6); [line 22, column 9]\n " shape="invhouse"] "binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_7" -> "binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_9" ; @@ -36,15 +36,15 @@ digraph cfg { "binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_9" -> "binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_4" ; -"binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_10" [label="10: BinaryConditionalStmt Init \n n$9=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$6:binary_conditional::X) [line 22, column 9]\n n$8=_fun_binary_conditional::getX(&0$?%__sil_tmpSIL_materialize_temp__n$6:binary_conditional::X*) [line 22, column 9]\n EXIT_SCOPE(n$8,n$9); [line 22, column 9]\n " shape="box"] +"binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_10" [label="10: BinaryConditionalStmt Init \n n$9=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$6:binary_conditional::X) assign_last [line 22, column 9]\n n$8=_fun_binary_conditional::getX(&0$?%__sil_tmpSIL_materialize_temp__n$6:binary_conditional::X*) assign_last [line 22, column 9]\n EXIT_SCOPE(n$8,n$9); [line 22, column 9]\n " shape="box"] "binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_10" -> "binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_5" ; -"binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_11" [label="11: DeclStmt \n n$18=_fun___variable_initialization(&x:binary_conditional::X) [line 22, column 3]\n n$16=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$5:binary_conditional::X) [line 22, column 9]\n n$15=*&0$?%__sil_tmpSIL_temp_conditional___n$10:binary_conditional::X [line 22, column 9]\n *&0$?%__sil_tmpSIL_materialize_temp__n$5:binary_conditional::X=n$15 [line 22, column 9]\n n$17=_fun_binary_conditional::X_X(&x:binary_conditional::X*,&0$?%__sil_tmpSIL_materialize_temp__n$5:binary_conditional::X&) [line 22, column 9]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$10); [line 22, column 9]\n EXIT_SCOPE(n$15,n$16,n$17,n$18,0$?%__sil_tmpSIL_materialize_temp__n$5,0$?%__sil_tmpSIL_temp_conditional___n$10); [line 22, column 9]\n " shape="box"] +"binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_11" [label="11: DeclStmt \n n$18=_fun___variable_initialization(&x:binary_conditional::X) assign_last [line 22, column 3]\n n$16=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$5:binary_conditional::X) assign_last [line 22, column 9]\n n$15=*&0$?%__sil_tmpSIL_temp_conditional___n$10:binary_conditional::X [line 22, column 9]\n *&0$?%__sil_tmpSIL_materialize_temp__n$5:binary_conditional::X=n$15 [line 22, column 9]\n n$17=_fun_binary_conditional::X_X(&x:binary_conditional::X*,&0$?%__sil_tmpSIL_materialize_temp__n$5:binary_conditional::X&) [line 22, column 9]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$10); [line 22, column 9]\n EXIT_SCOPE(n$15,n$16,n$17,n$18,0$?%__sil_tmpSIL_materialize_temp__n$5,0$?%__sil_tmpSIL_temp_conditional___n$10); [line 22, column 9]\n " shape="box"] "binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_11" -> "binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_3" ; -"binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_12" [label="12: DeclStmt \n n$20=_fun___variable_initialization(&a:binary_conditional::X) [line 21, column 3]\n n$19=_fun_binary_conditional::X_X(&a:binary_conditional::X*) [line 21, column 5]\n EXIT_SCOPE(n$19,n$20); [line 21, column 5]\n " shape="box"] +"binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_12" [label="12: DeclStmt \n n$20=_fun___variable_initialization(&a:binary_conditional::X) assign_last [line 21, column 3]\n n$19=_fun_binary_conditional::X_X(&a:binary_conditional::X*) [line 21, column 5]\n EXIT_SCOPE(n$19,n$20); [line 21, column 5]\n " shape="box"] "binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_12" -> "binaryConditional#binary_conditional#15641211300815748363.a0f7e256e24b7117cb94c66e5aa27a30_10" ; @@ -63,7 +63,7 @@ digraph cfg { "conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_4" -> "conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_10" ; -"conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_5" [label="5: Call _fun_binary_conditional::X_operator_bool \n n$10=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:binary_conditional::X) [line 27, column 9]\n n$9=_fun_binary_conditional::getX(&0$?%__sil_tmpSIL_materialize_temp__n$7:binary_conditional::X*) [line 27, column 9]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$7:binary_conditional::X [line 27, column 9]\n n$12=_fun_binary_conditional::X_operator_bool(&0$?%__sil_tmpSIL_materialize_temp__n$7:binary_conditional::X&) [line 27, column 9]\n EXIT_SCOPE(_,n$9,n$10,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 27, column 9]\n " shape="box"] +"conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_5" [label="5: Call _fun_binary_conditional::X_operator_bool \n n$10=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:binary_conditional::X) assign_last [line 27, column 9]\n n$9=_fun_binary_conditional::getX(&0$?%__sil_tmpSIL_materialize_temp__n$7:binary_conditional::X*) assign_last [line 27, column 9]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$7:binary_conditional::X [line 27, column 9]\n n$12=_fun_binary_conditional::X_operator_bool(&0$?%__sil_tmpSIL_materialize_temp__n$7:binary_conditional::X&) [line 27, column 9]\n EXIT_SCOPE(_,n$9,n$10,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 27, column 9]\n " shape="box"] "conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_5" -> "conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_6" ; @@ -76,7 +76,7 @@ digraph cfg { "conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_7" -> "conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_9" ; -"conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_8" [label="8: ConditionalStmt Branch \n n$16=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$13:binary_conditional::X) [line 27, column 18]\n n$15=_fun_binary_conditional::getX(&0$?%__sil_tmpSIL_materialize_temp__n$13:binary_conditional::X*) [line 27, column 18]\n n$17=_fun_binary_conditional::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$5:binary_conditional::X*,&0$?%__sil_tmpSIL_materialize_temp__n$13:binary_conditional::X&) [line 27, column 18]\n *&0$?%__sil_tmpSIL_temp_conditional___n$6:binary_conditional::X=&0$?%__sil_tmpSIL_materialize_temp__n$5 [line 27, column 9]\n EXIT_SCOPE(n$15,n$16,n$17,0$?%__sil_tmpSIL_materialize_temp__n$13); [line 27, column 9]\n APPLY_ABSTRACTION; [line 27, column 9]\n " shape="box"] +"conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_8" [label="8: ConditionalStmt Branch \n n$16=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$13:binary_conditional::X) assign_last [line 27, column 18]\n n$15=_fun_binary_conditional::getX(&0$?%__sil_tmpSIL_materialize_temp__n$13:binary_conditional::X*) assign_last [line 27, column 18]\n n$17=_fun_binary_conditional::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$5:binary_conditional::X*,&0$?%__sil_tmpSIL_materialize_temp__n$13:binary_conditional::X&) [line 27, column 18]\n *&0$?%__sil_tmpSIL_temp_conditional___n$6:binary_conditional::X=&0$?%__sil_tmpSIL_materialize_temp__n$5 [line 27, column 9]\n EXIT_SCOPE(n$15,n$16,n$17,0$?%__sil_tmpSIL_materialize_temp__n$13); [line 27, column 9]\n APPLY_ABSTRACTION; [line 27, column 9]\n " shape="box"] "conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_8" -> "conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_4" ; @@ -84,11 +84,11 @@ digraph cfg { "conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_9" -> "conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_4" ; -"conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_10" [label="10: DeclStmt \n n$22=_fun___variable_initialization(&x:binary_conditional::X) [line 27, column 3]\n n$20=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$5:binary_conditional::X) [line 27, column 9]\n n$19=*&0$?%__sil_tmpSIL_temp_conditional___n$6:binary_conditional::X [line 27, column 9]\n *&0$?%__sil_tmpSIL_materialize_temp__n$5:binary_conditional::X=n$19 [line 27, column 9]\n n$21=_fun_binary_conditional::X_X(&x:binary_conditional::X*,&0$?%__sil_tmpSIL_materialize_temp__n$5:binary_conditional::X&) [line 27, column 9]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$6); [line 27, column 9]\n EXIT_SCOPE(n$19,n$20,n$21,n$22,0$?%__sil_tmpSIL_temp_conditional___n$6,0$?%__sil_tmpSIL_materialize_temp__n$5); [line 27, column 9]\n " shape="box"] +"conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_10" [label="10: DeclStmt \n n$22=_fun___variable_initialization(&x:binary_conditional::X) assign_last [line 27, column 3]\n n$20=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$5:binary_conditional::X) assign_last [line 27, column 9]\n n$19=*&0$?%__sil_tmpSIL_temp_conditional___n$6:binary_conditional::X [line 27, column 9]\n *&0$?%__sil_tmpSIL_materialize_temp__n$5:binary_conditional::X=n$19 [line 27, column 9]\n n$21=_fun_binary_conditional::X_X(&x:binary_conditional::X*,&0$?%__sil_tmpSIL_materialize_temp__n$5:binary_conditional::X&) [line 27, column 9]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$6); [line 27, column 9]\n EXIT_SCOPE(n$19,n$20,n$21,n$22,0$?%__sil_tmpSIL_temp_conditional___n$6,0$?%__sil_tmpSIL_materialize_temp__n$5); [line 27, column 9]\n " shape="box"] "conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_10" -> "conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_3" ; -"conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_11" [label="11: DeclStmt \n n$24=_fun___variable_initialization(&a:binary_conditional::X) [line 26, column 3]\n n$23=_fun_binary_conditional::X_X(&a:binary_conditional::X*) [line 26, column 5]\n EXIT_SCOPE(n$23,n$24); [line 26, column 5]\n " shape="box"] +"conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_11" [label="11: DeclStmt \n n$24=_fun___variable_initialization(&a:binary_conditional::X) assign_last [line 26, column 3]\n n$23=_fun_binary_conditional::X_X(&a:binary_conditional::X*) [line 26, column 5]\n EXIT_SCOPE(n$23,n$24); [line 26, column 5]\n " shape="box"] "conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_11" -> "conditional#binary_conditional#4777209206611953450.41decaebdce6325bd31c1d47d4647c45_5" ; @@ -103,7 +103,7 @@ digraph cfg { "getX#binary_conditional(class binary_conditional::X)#7708042186122353096.8825a5a3afa327848f6dcf77ec0e3f60_3" -> "getX#binary_conditional(class binary_conditional::X)#7708042186122353096.8825a5a3afa327848f6dcf77ec0e3f60_2" ; -"getX#binary_conditional(class binary_conditional::X)#7708042186122353096.8825a5a3afa327848f6dcf77ec0e3f60_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x:binary_conditional::X) [line 15, column 3]\n n$5=_fun_binary_conditional::X_X(&x:binary_conditional::X*) [line 15, column 5]\n EXIT_SCOPE(n$5,n$6); [line 15, column 5]\n " shape="box"] +"getX#binary_conditional(class binary_conditional::X)#7708042186122353096.8825a5a3afa327848f6dcf77ec0e3f60_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x:binary_conditional::X) assign_last [line 15, column 3]\n n$5=_fun_binary_conditional::X_X(&x:binary_conditional::X*) [line 15, column 5]\n EXIT_SCOPE(n$5,n$6); [line 15, column 5]\n " shape="box"] "getX#binary_conditional(class binary_conditional::X)#7708042186122353096.8825a5a3afa327848f6dcf77ec0e3f60_4" -> "getX#binary_conditional(class binary_conditional::X)#7708042186122353096.8825a5a3afa327848f6dcf77ec0e3f60_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/conditional/lvalue_conditional.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/conditional/lvalue_conditional.cpp.dot index 531948050..53c717462 100644 --- a/infer/tests/codetoanalyze/cpp/shared/conditional/lvalue_conditional.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/conditional/lvalue_conditional.cpp.dot @@ -35,12 +35,12 @@ digraph cfg { "assign_conditional#6602154438630029026.d4adbdaf8d08f61e93de4faf3d45d8ab_9" -> "assign_conditional#6602154438630029026.d4adbdaf8d08f61e93de4faf3d45d8ab_3" ; -"assign_conditional#6602154438630029026.d4adbdaf8d08f61e93de4faf3d45d8ab_10" [label="10: DeclStmt \n n$5=_fun___variable_initialization(&v2:int) [line 21, column 3]\n *&v2:int=0 [line 21, column 3]\n EXIT_SCOPE(n$5); [line 21, column 3]\n " shape="box"] +"assign_conditional#6602154438630029026.d4adbdaf8d08f61e93de4faf3d45d8ab_10" [label="10: DeclStmt \n n$5=_fun___variable_initialization(&v2:int) assign_last [line 21, column 3]\n *&v2:int=0 [line 21, column 3]\n EXIT_SCOPE(n$5); [line 21, column 3]\n " shape="box"] "assign_conditional#6602154438630029026.d4adbdaf8d08f61e93de4faf3d45d8ab_10" -> "assign_conditional#6602154438630029026.d4adbdaf8d08f61e93de4faf3d45d8ab_5" ; "assign_conditional#6602154438630029026.d4adbdaf8d08f61e93de4faf3d45d8ab_10" -> "assign_conditional#6602154438630029026.d4adbdaf8d08f61e93de4faf3d45d8ab_6" ; -"assign_conditional#6602154438630029026.d4adbdaf8d08f61e93de4faf3d45d8ab_11" [label="11: DeclStmt \n n$6=_fun___variable_initialization(&v1:int) [line 21, column 3]\n *&v1:int=0 [line 21, column 3]\n EXIT_SCOPE(n$6); [line 21, column 3]\n " shape="box"] +"assign_conditional#6602154438630029026.d4adbdaf8d08f61e93de4faf3d45d8ab_11" [label="11: DeclStmt \n n$6=_fun___variable_initialization(&v1:int) assign_last [line 21, column 3]\n *&v1:int=0 [line 21, column 3]\n EXIT_SCOPE(n$6); [line 21, column 3]\n " shape="box"] "assign_conditional#6602154438630029026.d4adbdaf8d08f61e93de4faf3d45d8ab_11" -> "assign_conditional#6602154438630029026.d4adbdaf8d08f61e93de4faf3d45d8ab_10" ; @@ -75,16 +75,16 @@ digraph cfg { "choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_8" -> "choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_4" ; -"choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_9" [label="9: DeclStmt \n n$6=_fun___variable_initialization(&v3:int) [line 10, column 3]\n n$4=*&0$?%__sil_tmpSIL_temp_conditional___n$2:int& [line 10, column 12]\n n$5=*n$4:int [line 10, column 12]\n *&v3:int=n$5 [line 10, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$2); [line 10, column 3]\n EXIT_SCOPE(n$4,n$5,n$6,0$?%__sil_tmpSIL_temp_conditional___n$2); [line 10, column 3]\n " shape="box"] +"choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_9" [label="9: DeclStmt \n n$6=_fun___variable_initialization(&v3:int) assign_last [line 10, column 3]\n n$4=*&0$?%__sil_tmpSIL_temp_conditional___n$2:int& [line 10, column 12]\n n$5=*n$4:int [line 10, column 12]\n *&v3:int=n$5 [line 10, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$2); [line 10, column 3]\n EXIT_SCOPE(n$4,n$5,n$6,0$?%__sil_tmpSIL_temp_conditional___n$2); [line 10, column 3]\n " shape="box"] "choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_9" -> "choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_3" ; -"choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_10" [label="10: DeclStmt \n n$7=_fun___variable_initialization(&v2:int) [line 9, column 3]\n *&v2:int=1 [line 9, column 3]\n EXIT_SCOPE(n$7); [line 9, column 3]\n " shape="box"] +"choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_10" [label="10: DeclStmt \n n$7=_fun___variable_initialization(&v2:int) assign_last [line 9, column 3]\n *&v2:int=1 [line 9, column 3]\n EXIT_SCOPE(n$7); [line 9, column 3]\n " shape="box"] "choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_10" -> "choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_5" ; "choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_10" -> "choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_6" ; -"choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_11" [label="11: DeclStmt \n n$8=_fun___variable_initialization(&v1:int) [line 9, column 3]\n *&v1:int=0 [line 9, column 3]\n EXIT_SCOPE(n$8); [line 9, column 3]\n " shape="box"] +"choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_11" [label="11: DeclStmt \n n$8=_fun___variable_initialization(&v1:int) assign_last [line 9, column 3]\n *&v1:int=0 [line 9, column 3]\n EXIT_SCOPE(n$8); [line 9, column 3]\n " shape="box"] "choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_11" -> "choose_lvalue#6868643882447178722.7e0e06006a6e1baaef3aab18bce2b8d2_10" ; @@ -119,11 +119,11 @@ digraph cfg { "choose_rvalue#5692558402038768020.7de6e1902b5c331a5715ba3f0f51e47e_8" -> "choose_rvalue#5692558402038768020.7de6e1902b5c331a5715ba3f0f51e47e_4" ; -"choose_rvalue#5692558402038768020.7de6e1902b5c331a5715ba3f0f51e47e_9" [label="9: DeclStmt \n n$6=_fun___variable_initialization(&v3:int) [line 16, column 3]\n n$5=*&0$?%__sil_tmpSIL_temp_conditional___n$2:int [line 16, column 12]\n *&v3:int=n$5 [line 16, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$2); [line 16, column 3]\n EXIT_SCOPE(n$5,n$6,0$?%__sil_tmpSIL_temp_conditional___n$2); [line 16, column 3]\n " shape="box"] +"choose_rvalue#5692558402038768020.7de6e1902b5c331a5715ba3f0f51e47e_9" [label="9: DeclStmt \n n$6=_fun___variable_initialization(&v3:int) assign_last [line 16, column 3]\n n$5=*&0$?%__sil_tmpSIL_temp_conditional___n$2:int [line 16, column 12]\n *&v3:int=n$5 [line 16, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$2); [line 16, column 3]\n EXIT_SCOPE(n$5,n$6,0$?%__sil_tmpSIL_temp_conditional___n$2); [line 16, column 3]\n " shape="box"] "choose_rvalue#5692558402038768020.7de6e1902b5c331a5715ba3f0f51e47e_9" -> "choose_rvalue#5692558402038768020.7de6e1902b5c331a5715ba3f0f51e47e_3" ; -"choose_rvalue#5692558402038768020.7de6e1902b5c331a5715ba3f0f51e47e_10" [label="10: DeclStmt \n n$7=_fun___variable_initialization(&v1:int) [line 15, column 3]\n *&v1:int=0 [line 15, column 3]\n EXIT_SCOPE(n$7); [line 15, column 3]\n " shape="box"] +"choose_rvalue#5692558402038768020.7de6e1902b5c331a5715ba3f0f51e47e_10" [label="10: DeclStmt \n n$7=_fun___variable_initialization(&v1:int) assign_last [line 15, column 3]\n *&v1:int=0 [line 15, column 3]\n EXIT_SCOPE(n$7); [line 15, column 3]\n " shape="box"] "choose_rvalue#5692558402038768020.7de6e1902b5c331a5715ba3f0f51e47e_10" -> "choose_rvalue#5692558402038768020.7de6e1902b5c331a5715ba3f0f51e47e_5" ; @@ -248,7 +248,7 @@ digraph cfg { "div_temp_lvalue#2433393879580018854.ddda47c9e217adc2189e8c150a553f53_8" -> "div_temp_lvalue#2433393879580018854.ddda47c9e217adc2189e8c150a553f53_4" ; -"div_temp_lvalue#2433393879580018854.ddda47c9e217adc2189e8c150a553f53_9" [label="9: DeclStmt \n n$9=_fun___variable_initialization(&r:int const &) [line 27, column 3]\n n$8=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:int const ) [line 27, column 18]\n n$7=*&0$?%__sil_tmpSIL_temp_conditional___n$4:int [line 27, column 18]\n *&0$?%__sil_tmpSIL_materialize_temp__n$3:int=n$7 [line 27, column 18]\n *&r:int const &=&0$?%__sil_tmpSIL_materialize_temp__n$3 [line 27, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$4); [line 27, column 3]\n EXIT_SCOPE(n$7,n$8,n$9,0$?%__sil_tmpSIL_materialize_temp__n$3,0$?%__sil_tmpSIL_temp_conditional___n$4); [line 27, column 3]\n " shape="box"] +"div_temp_lvalue#2433393879580018854.ddda47c9e217adc2189e8c150a553f53_9" [label="9: DeclStmt \n n$9=_fun___variable_initialization(&r:int const &) assign_last [line 27, column 3]\n n$8=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:int const ) assign_last [line 27, column 18]\n n$7=*&0$?%__sil_tmpSIL_temp_conditional___n$4:int [line 27, column 18]\n *&0$?%__sil_tmpSIL_materialize_temp__n$3:int=n$7 [line 27, column 18]\n *&r:int const &=&0$?%__sil_tmpSIL_materialize_temp__n$3 [line 27, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$4); [line 27, column 3]\n EXIT_SCOPE(n$7,n$8,n$9,0$?%__sil_tmpSIL_materialize_temp__n$3,0$?%__sil_tmpSIL_temp_conditional___n$4); [line 27, column 3]\n " shape="box"] "div_temp_lvalue#2433393879580018854.ddda47c9e217adc2189e8c150a553f53_9" -> "div_temp_lvalue#2433393879580018854.ddda47c9e217adc2189e8c150a553f53_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_array.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_array.cpp.dot index 0445c5e3e..d36de7df2 100644 --- a/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_array.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_array.cpp.dot @@ -11,7 +11,7 @@ digraph cfg { "array_of_person#7945672701495610995.0fecf6778237d47d15191cac7fab514c_3" -> "array_of_person#7945672701495610995.0fecf6778237d47d15191cac7fab514c_2" ; -"array_of_person#7945672701495610995.0fecf6778237d47d15191cac7fab514c_4" [label="4: DeclStmt \n n$14=_fun___variable_initialization(&arr:Person[10*4]) [line 16, column 3]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$2:Person) [line 16, column 21]\n n$3=_fun_Person_Person(&0$?%__sil_tmpSIL_materialize_temp__n$2:Person*) [line 16, column 21]\n n$5=_fun_Person_Person(&arr[0]:Person*,&0$?%__sil_tmpSIL_materialize_temp__n$2:Person&) [line 16, column 21]\n n$8=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$6:Person) [line 16, column 31]\n n$7=_fun_Person_Person(&0$?%__sil_tmpSIL_materialize_temp__n$6:Person*) [line 16, column 31]\n n$9=_fun_Person_Person(&arr[1]:Person*,&0$?%__sil_tmpSIL_materialize_temp__n$6:Person&) [line 16, column 31]\n n$12=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$10:Person) [line 16, column 41]\n n$11=_fun_Person_Person(&0$?%__sil_tmpSIL_materialize_temp__n$10:Person*) [line 16, column 41]\n n$13=_fun_Person_Person(&arr[2]:Person*,&0$?%__sil_tmpSIL_materialize_temp__n$10:Person&) [line 16, column 41]\n EXIT_SCOPE(n$3,n$4,n$5,n$7,n$8,n$9,n$11,n$12,n$13,n$14,0$?%__sil_tmpSIL_materialize_temp__n$10,0$?%__sil_tmpSIL_materialize_temp__n$6,0$?%__sil_tmpSIL_materialize_temp__n$2); [line 16, column 41]\n " shape="box"] +"array_of_person#7945672701495610995.0fecf6778237d47d15191cac7fab514c_4" [label="4: DeclStmt \n n$14=_fun___variable_initialization(&arr:Person[10*4]) assign_last [line 16, column 3]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$2:Person) assign_last [line 16, column 21]\n n$3=_fun_Person_Person(&0$?%__sil_tmpSIL_materialize_temp__n$2:Person*) [line 16, column 21]\n n$5=_fun_Person_Person(&arr[0]:Person*,&0$?%__sil_tmpSIL_materialize_temp__n$2:Person&) [line 16, column 21]\n n$8=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$6:Person) assign_last [line 16, column 31]\n n$7=_fun_Person_Person(&0$?%__sil_tmpSIL_materialize_temp__n$6:Person*) [line 16, column 31]\n n$9=_fun_Person_Person(&arr[1]:Person*,&0$?%__sil_tmpSIL_materialize_temp__n$6:Person&) [line 16, column 31]\n n$12=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$10:Person) assign_last [line 16, column 41]\n n$11=_fun_Person_Person(&0$?%__sil_tmpSIL_materialize_temp__n$10:Person*) [line 16, column 41]\n n$13=_fun_Person_Person(&arr[2]:Person*,&0$?%__sil_tmpSIL_materialize_temp__n$10:Person&) [line 16, column 41]\n EXIT_SCOPE(n$3,n$4,n$5,n$7,n$8,n$9,n$11,n$12,n$13,n$14,0$?%__sil_tmpSIL_materialize_temp__n$10,0$?%__sil_tmpSIL_materialize_temp__n$6,0$?%__sil_tmpSIL_materialize_temp__n$2); [line 16, column 41]\n " shape="box"] "array_of_person#7945672701495610995.0fecf6778237d47d15191cac7fab514c_4" -> "array_of_person#7945672701495610995.0fecf6778237d47d15191cac7fab514c_3" ; @@ -22,11 +22,11 @@ digraph cfg { "initialization_c_style#16495589501342328206.0d90448020e72c05f693b9221dac03f8_2" [label="2: Exit initialization_c_style \n NULLIFY(&z2); [line 33, column 1]\n " color=yellow style=filled] -"initialization_c_style#16495589501342328206.0d90448020e72c05f693b9221dac03f8_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&z2:Z) [line 32, column 3]\n n$1=_fun_Z_Z(&z2:Z*) [line 32, column 12]\n EXIT_SCOPE(n$1,n$2,z2); [line 32, column 12]\n APPLY_ABSTRACTION; [line 32, column 12]\n " shape="box"] +"initialization_c_style#16495589501342328206.0d90448020e72c05f693b9221dac03f8_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&z2:Z) assign_last [line 32, column 3]\n n$1=_fun_Z_Z(&z2:Z*) [line 32, column 12]\n EXIT_SCOPE(n$1,n$2,z2); [line 32, column 12]\n APPLY_ABSTRACTION; [line 32, column 12]\n " shape="box"] "initialization_c_style#16495589501342328206.0d90448020e72c05f693b9221dac03f8_3" -> "initialization_c_style#16495589501342328206.0d90448020e72c05f693b9221dac03f8_2" ; -"initialization_c_style#16495589501342328206.0d90448020e72c05f693b9221dac03f8_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&z:Z[2*8]) [line 31, column 3]\n *&z[0].a:int=1 [line 31, column 20]\n *&z[0].b:int=2 [line 31, column 20]\n *&z[1].a:int=2 [line 31, column 28]\n *&z[1].b:int=3 [line 31, column 28]\n NULLIFY(&z); [line 31, column 28]\n EXIT_SCOPE(n$3,z); [line 31, column 28]\n " shape="box"] +"initialization_c_style#16495589501342328206.0d90448020e72c05f693b9221dac03f8_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&z:Z[2*8]) assign_last [line 31, column 3]\n *&z[0].a:int=1 [line 31, column 20]\n *&z[0].b:int=2 [line 31, column 20]\n *&z[1].a:int=2 [line 31, column 28]\n *&z[1].b:int=3 [line 31, column 28]\n NULLIFY(&z); [line 31, column 28]\n EXIT_SCOPE(n$3,z); [line 31, column 28]\n " shape="box"] "initialization_c_style#16495589501342328206.0d90448020e72c05f693b9221dac03f8_4" -> "initialization_c_style#16495589501342328206.0d90448020e72c05f693b9221dac03f8_3" ; @@ -37,15 +37,15 @@ digraph cfg { "initialization_mixed_styles_not_handled_correctly#5603413470418470631.422782850043f1b48105fbbb47efe379_2" [label="2: Exit initialization_mixed_styles_not_handled_correctly \n NULLIFY(&old); [line 41, column 1]\n NULLIFY(&z); [line 41, column 1]\n NULLIFY(&z2); [line 41, column 1]\n " color=yellow style=filled] -"initialization_mixed_styles_not_handled_correctly#5603413470418470631.422782850043f1b48105fbbb47efe379_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&z2:Z) [line 40, column 3]\n n$1=_fun_Z_Z(&z2:Z*) [line 40, column 12]\n EXIT_SCOPE(n$1,n$2,z2); [line 40, column 12]\n APPLY_ABSTRACTION; [line 40, column 12]\n " shape="box"] +"initialization_mixed_styles_not_handled_correctly#5603413470418470631.422782850043f1b48105fbbb47efe379_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&z2:Z) assign_last [line 40, column 3]\n n$1=_fun_Z_Z(&z2:Z*) [line 40, column 12]\n EXIT_SCOPE(n$1,n$2,z2); [line 40, column 12]\n APPLY_ABSTRACTION; [line 40, column 12]\n " shape="box"] "initialization_mixed_styles_not_handled_correctly#5603413470418470631.422782850043f1b48105fbbb47efe379_3" -> "initialization_mixed_styles_not_handled_correctly#5603413470418470631.422782850043f1b48105fbbb47efe379_2" ; -"initialization_mixed_styles_not_handled_correctly#5603413470418470631.422782850043f1b48105fbbb47efe379_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&z:Z[2*8]) [line 39, column 3]\n *&z[0].a:int=1 [line 39, column 20]\n *&z[0].b:int=2 [line 39, column 20]\n n$3=_fun_Z_Z(&z[1]:Z*,&old:Z&) [line 39, column 28]\n EXIT_SCOPE(n$3,n$4,z,old); [line 39, column 28]\n " shape="box"] +"initialization_mixed_styles_not_handled_correctly#5603413470418470631.422782850043f1b48105fbbb47efe379_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&z:Z[2*8]) assign_last [line 39, column 3]\n *&z[0].a:int=1 [line 39, column 20]\n *&z[0].b:int=2 [line 39, column 20]\n n$3=_fun_Z_Z(&z[1]:Z*,&old:Z&) [line 39, column 28]\n EXIT_SCOPE(n$3,n$4,z,old); [line 39, column 28]\n " shape="box"] "initialization_mixed_styles_not_handled_correctly#5603413470418470631.422782850043f1b48105fbbb47efe379_4" -> "initialization_mixed_styles_not_handled_correctly#5603413470418470631.422782850043f1b48105fbbb47efe379_3" ; -"initialization_mixed_styles_not_handled_correctly#5603413470418470631.422782850043f1b48105fbbb47efe379_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&old:Z) [line 38, column 3]\n n$5=_fun_Z_Z(&old:Z*) [line 38, column 12]\n EXIT_SCOPE(n$5,n$6); [line 38, column 12]\n " shape="box"] +"initialization_mixed_styles_not_handled_correctly#5603413470418470631.422782850043f1b48105fbbb47efe379_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&old:Z) assign_last [line 38, column 3]\n n$5=_fun_Z_Z(&old:Z*) [line 38, column 12]\n EXIT_SCOPE(n$5,n$6); [line 38, column 12]\n " shape="box"] "initialization_mixed_styles_not_handled_correctly#5603413470418470631.422782850043f1b48105fbbb47efe379_5" -> "initialization_mixed_styles_not_handled_correctly#5603413470418470631.422782850043f1b48105fbbb47efe379_4" ; @@ -60,7 +60,7 @@ digraph cfg { "matrix_of_person#2881910427017022824.27f7f148c4911c13b3061cef6fe2673d_3" -> "matrix_of_person#2881910427017022824.27f7f148c4911c13b3061cef6fe2673d_2" ; -"matrix_of_person#2881910427017022824.27f7f148c4911c13b3061cef6fe2673d_4" [label="4: DeclStmt \n n$18=_fun___variable_initialization(&arr:Person[2*4][2*8]) [line 21, column 3]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$2:Person) [line 21, column 23]\n n$3=_fun_Person_Person(&0$?%__sil_tmpSIL_materialize_temp__n$2:Person*) [line 21, column 23]\n n$5=_fun_Person_Person(&arr[0][0]:Person*,&0$?%__sil_tmpSIL_materialize_temp__n$2:Person&) [line 21, column 23]\n n$8=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$6:Person) [line 21, column 33]\n n$7=_fun_Person_Person(&0$?%__sil_tmpSIL_materialize_temp__n$6:Person*) [line 21, column 33]\n n$9=_fun_Person_Person(&arr[0][1]:Person*,&0$?%__sil_tmpSIL_materialize_temp__n$6:Person&) [line 21, column 33]\n n$12=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$10:Person) [line 21, column 43]\n n$11=_fun_Person_Person(&0$?%__sil_tmpSIL_materialize_temp__n$10:Person*) [line 21, column 43]\n n$13=_fun_Person_Person(&arr[1][0]:Person*,&0$?%__sil_tmpSIL_materialize_temp__n$10:Person&) [line 21, column 43]\n n$16=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$14:Person) [line 21, column 53]\n n$15=_fun_Person_Person(&0$?%__sil_tmpSIL_materialize_temp__n$14:Person*) [line 21, column 53]\n n$17=_fun_Person_Person(&arr[1][1]:Person*,&0$?%__sil_tmpSIL_materialize_temp__n$14:Person&) [line 21, column 53]\n EXIT_SCOPE(n$3,n$4,n$5,n$7,n$8,n$9,n$11,n$12,n$13,n$15,n$16,n$17,n$18,0$?%__sil_tmpSIL_materialize_temp__n$10,0$?%__sil_tmpSIL_materialize_temp__n$6,0$?%__sil_tmpSIL_materialize_temp__n$2,0$?%__sil_tmpSIL_materialize_temp__n$14); [line 21, column 53]\n " shape="box"] +"matrix_of_person#2881910427017022824.27f7f148c4911c13b3061cef6fe2673d_4" [label="4: DeclStmt \n n$18=_fun___variable_initialization(&arr:Person[2*4][2*8]) assign_last [line 21, column 3]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$2:Person) assign_last [line 21, column 23]\n n$3=_fun_Person_Person(&0$?%__sil_tmpSIL_materialize_temp__n$2:Person*) [line 21, column 23]\n n$5=_fun_Person_Person(&arr[0][0]:Person*,&0$?%__sil_tmpSIL_materialize_temp__n$2:Person&) [line 21, column 23]\n n$8=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$6:Person) assign_last [line 21, column 33]\n n$7=_fun_Person_Person(&0$?%__sil_tmpSIL_materialize_temp__n$6:Person*) [line 21, column 33]\n n$9=_fun_Person_Person(&arr[0][1]:Person*,&0$?%__sil_tmpSIL_materialize_temp__n$6:Person&) [line 21, column 33]\n n$12=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$10:Person) assign_last [line 21, column 43]\n n$11=_fun_Person_Person(&0$?%__sil_tmpSIL_materialize_temp__n$10:Person*) [line 21, column 43]\n n$13=_fun_Person_Person(&arr[1][0]:Person*,&0$?%__sil_tmpSIL_materialize_temp__n$10:Person&) [line 21, column 43]\n n$16=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$14:Person) assign_last [line 21, column 53]\n n$15=_fun_Person_Person(&0$?%__sil_tmpSIL_materialize_temp__n$14:Person*) [line 21, column 53]\n n$17=_fun_Person_Person(&arr[1][1]:Person*,&0$?%__sil_tmpSIL_materialize_temp__n$14:Person&) [line 21, column 53]\n EXIT_SCOPE(n$3,n$4,n$5,n$7,n$8,n$9,n$11,n$12,n$13,n$15,n$16,n$17,n$18,0$?%__sil_tmpSIL_materialize_temp__n$10,0$?%__sil_tmpSIL_materialize_temp__n$6,0$?%__sil_tmpSIL_materialize_temp__n$2,0$?%__sil_tmpSIL_materialize_temp__n$14); [line 21, column 53]\n " shape="box"] "matrix_of_person#2881910427017022824.27f7f148c4911c13b3061cef6fe2673d_4" -> "matrix_of_person#2881910427017022824.27f7f148c4911c13b3061cef6fe2673d_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_default_arg.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_default_arg.cpp.dot index 7dfd6c96b..2255d4a5a 100644 --- a/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_default_arg.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_default_arg.cpp.dot @@ -7,15 +7,15 @@ digraph cfg { "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_2" [label="2: Exit test \n NULLIFY(&x3); [line 22, column 1]\n NULLIFY(&x1); [line 22, column 1]\n NULLIFY(&x2); [line 22, column 1]\n " color=yellow style=filled] -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&x3:X) [line 21, column 3]\n n$1=_fun_X_X(&x3:X*,0:int,1:int) [line 21, column 5]\n EXIT_SCOPE(n$1,n$2,x3); [line 21, column 5]\n APPLY_ABSTRACTION; [line 21, column 5]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&x3:X) assign_last [line 21, column 3]\n n$1=_fun_X_X(&x3:X*,0:int,1:int) [line 21, column 5]\n EXIT_SCOPE(n$1,n$2,x3); [line 21, column 5]\n APPLY_ABSTRACTION; [line 21, column 5]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_2" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x2:X) [line 20, column 3]\n n$3=_fun_X_X(&x2:X*,1:int,0:int) [line 20, column 5]\n EXIT_SCOPE(n$3,n$4,x2); [line 20, column 5]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x2:X) assign_last [line 20, column 3]\n n$3=_fun_X_X(&x2:X*,1:int,0:int) [line 20, column 5]\n EXIT_SCOPE(n$3,n$4,x2); [line 20, column 5]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x1:X) [line 19, column 3]\n n$5=_fun_X_X(&x1:X*,0:int,0:int) [line 19, column 5]\n EXIT_SCOPE(n$5,n$6,x1); [line 19, column 5]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x1:X) assign_last [line 19, column 3]\n n$5=_fun_X_X(&x1:X*,0:int,0:int) [line 19, column 5]\n EXIT_SCOPE(n$5,n$6,x1); [line 19, column 5]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_init.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_init.cpp.dot index b3ca8aa92..0299290c8 100644 --- a/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_init.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_init.cpp.dot @@ -11,11 +11,11 @@ digraph cfg { "delegate_constr_f2_div0#13553474688240246893.0ce7e6b119d9277f847a079378cf30a1_3" -> "delegate_constr_f2_div0#13553474688240246893.0ce7e6b119d9277f847a079378cf30a1_2" ; -"delegate_constr_f2_div0#13553474688240246893.0ce7e6b119d9277f847a079378cf30a1_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&v:int) [line 48, column 3]\n n$4=*&b.f:int [line 48, column 15]\n *&v:int=(1 / n$4) [line 48, column 3]\n NULLIFY(&v); [line 48, column 3]\n EXIT_SCOPE(n$4,n$5,v); [line 48, column 3]\n " shape="box"] +"delegate_constr_f2_div0#13553474688240246893.0ce7e6b119d9277f847a079378cf30a1_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&v:int) assign_last [line 48, column 3]\n n$4=*&b.f:int [line 48, column 15]\n *&v:int=(1 / n$4) [line 48, column 3]\n NULLIFY(&v); [line 48, column 3]\n EXIT_SCOPE(n$4,n$5,v); [line 48, column 3]\n " shape="box"] "delegate_constr_f2_div0#13553474688240246893.0ce7e6b119d9277f847a079378cf30a1_4" -> "delegate_constr_f2_div0#13553474688240246893.0ce7e6b119d9277f847a079378cf30a1_3" ; -"delegate_constr_f2_div0#13553474688240246893.0ce7e6b119d9277f847a079378cf30a1_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&b:B) [line 47, column 3]\n n$6=_fun_B_B(&b:B*,-1:int,0:int) [line 47, column 5]\n EXIT_SCOPE(n$6,n$7); [line 47, column 5]\n " shape="box"] +"delegate_constr_f2_div0#13553474688240246893.0ce7e6b119d9277f847a079378cf30a1_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&b:B) assign_last [line 47, column 3]\n n$6=_fun_B_B(&b:B*,-1:int,0:int) [line 47, column 5]\n EXIT_SCOPE(n$6,n$7); [line 47, column 5]\n " shape="box"] "delegate_constr_f2_div0#13553474688240246893.0ce7e6b119d9277f847a079378cf30a1_5" -> "delegate_constr_f2_div0#13553474688240246893.0ce7e6b119d9277f847a079378cf30a1_4" ; @@ -30,11 +30,11 @@ digraph cfg { "delegate_constr_f_div0#5612932889167727636.f7eff0d7a58a3e6a6faddf562531b7f4_3" -> "delegate_constr_f_div0#5612932889167727636.f7eff0d7a58a3e6a6faddf562531b7f4_2" ; -"delegate_constr_f_div0#5612932889167727636.f7eff0d7a58a3e6a6faddf562531b7f4_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&v:int) [line 42, column 3]\n n$4=*&b.f2:int [line 42, column 15]\n *&v:int=(1 / n$4) [line 42, column 3]\n NULLIFY(&v); [line 42, column 3]\n EXIT_SCOPE(n$4,n$5,v); [line 42, column 3]\n " shape="box"] +"delegate_constr_f_div0#5612932889167727636.f7eff0d7a58a3e6a6faddf562531b7f4_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&v:int) assign_last [line 42, column 3]\n n$4=*&b.f2:int [line 42, column 15]\n *&v:int=(1 / n$4) [line 42, column 3]\n NULLIFY(&v); [line 42, column 3]\n EXIT_SCOPE(n$4,n$5,v); [line 42, column 3]\n " shape="box"] "delegate_constr_f_div0#5612932889167727636.f7eff0d7a58a3e6a6faddf562531b7f4_4" -> "delegate_constr_f_div0#5612932889167727636.f7eff0d7a58a3e6a6faddf562531b7f4_3" ; -"delegate_constr_f_div0#5612932889167727636.f7eff0d7a58a3e6a6faddf562531b7f4_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&b:B) [line 41, column 3]\n n$6=_fun_B_B(&b:B*,-1:int,1:int) [line 41, column 5]\n EXIT_SCOPE(n$6,n$7); [line 41, column 5]\n " shape="box"] +"delegate_constr_f_div0#5612932889167727636.f7eff0d7a58a3e6a6faddf562531b7f4_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&b:B) assign_last [line 41, column 3]\n n$6=_fun_B_B(&b:B*,-1:int,1:int) [line 41, column 5]\n EXIT_SCOPE(n$6,n$7); [line 41, column 5]\n " shape="box"] "delegate_constr_f_div0#5612932889167727636.f7eff0d7a58a3e6a6faddf562531b7f4_5" -> "delegate_constr_f_div0#5612932889167727636.f7eff0d7a58a3e6a6faddf562531b7f4_4" ; @@ -49,7 +49,7 @@ digraph cfg { "f2_div0#7534053771484990951.dd0b0233a011b5600e68aef2c840bcef_3" -> "f2_div0#7534053771484990951.dd0b0233a011b5600e68aef2c840bcef_2" ; -"f2_div0#7534053771484990951.dd0b0233a011b5600e68aef2c840bcef_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&b:B) [line 26, column 3]\n n$4=_fun_B_B(&b:B*,0:int) [line 26, column 5]\n EXIT_SCOPE(n$4,n$5); [line 26, column 5]\n " shape="box"] +"f2_div0#7534053771484990951.dd0b0233a011b5600e68aef2c840bcef_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&b:B) assign_last [line 26, column 3]\n n$4=_fun_B_B(&b:B*,0:int) [line 26, column 5]\n EXIT_SCOPE(n$4,n$5); [line 26, column 5]\n " shape="box"] "f2_div0#7534053771484990951.dd0b0233a011b5600e68aef2c840bcef_4" -> "f2_div0#7534053771484990951.dd0b0233a011b5600e68aef2c840bcef_3" ; @@ -64,7 +64,7 @@ digraph cfg { "f_div0#425664895438337450.ac4424ba5cea731e26a9fe2fb1b0b687_3" -> "f_div0#425664895438337450.ac4424ba5cea731e26a9fe2fb1b0b687_2" ; -"f_div0#425664895438337450.ac4424ba5cea731e26a9fe2fb1b0b687_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&b:B) [line 31, column 3]\n n$4=_fun_B_B(&b:B*,0:int) [line 31, column 5]\n EXIT_SCOPE(n$4,n$5); [line 31, column 5]\n " shape="box"] +"f_div0#425664895438337450.ac4424ba5cea731e26a9fe2fb1b0b687_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&b:B) assign_last [line 31, column 3]\n n$4=_fun_B_B(&b:B*,0:int) [line 31, column 5]\n EXIT_SCOPE(n$4,n$5); [line 31, column 5]\n " shape="box"] "f_div0#425664895438337450.ac4424ba5cea731e26a9fe2fb1b0b687_4" -> "f_div0#425664895438337450.ac4424ba5cea731e26a9fe2fb1b0b687_3" ; @@ -79,19 +79,19 @@ digraph cfg { "f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_3" -> "f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_2" ; -"f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&v3:int) [line 56, column 3]\n n$5=*&b.t.v:int [line 56, column 16]\n *&v3:int=(1 / n$5) [line 56, column 3]\n NULLIFY(&v3); [line 56, column 3]\n EXIT_SCOPE(n$5,n$6,v3); [line 56, column 3]\n " shape="box"] +"f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&v3:int) assign_last [line 56, column 3]\n n$5=*&b.t.v:int [line 56, column 16]\n *&v3:int=(1 / n$5) [line 56, column 3]\n NULLIFY(&v3); [line 56, column 3]\n EXIT_SCOPE(n$5,n$6,v3); [line 56, column 3]\n " shape="box"] "f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_4" -> "f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_3" ; -"f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&v2:int) [line 55, column 3]\n n$7=*&b.f2:int [line 55, column 16]\n *&v2:int=(1 / n$7) [line 55, column 3]\n EXIT_SCOPE(n$7,n$8); [line 55, column 3]\n " shape="box"] +"f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&v2:int) assign_last [line 55, column 3]\n n$7=*&b.f2:int [line 55, column 16]\n *&v2:int=(1 / n$7) [line 55, column 3]\n EXIT_SCOPE(n$7,n$8); [line 55, column 3]\n " shape="box"] "f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_5" -> "f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_4" ; -"f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_6" [label="6: DeclStmt \n n$10=_fun___variable_initialization(&v:int) [line 54, column 3]\n n$9=*&b.f:int [line 54, column 15]\n *&v:int=(1 / n$9) [line 54, column 3]\n EXIT_SCOPE(n$9,n$10); [line 54, column 3]\n " shape="box"] +"f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_6" [label="6: DeclStmt \n n$10=_fun___variable_initialization(&v:int) assign_last [line 54, column 3]\n n$9=*&b.f:int [line 54, column 15]\n *&v:int=(1 / n$9) [line 54, column 3]\n EXIT_SCOPE(n$9,n$10); [line 54, column 3]\n " shape="box"] "f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_6" -> "f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_5" ; -"f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_7" [label="7: DeclStmt \n n$12=_fun___variable_initialization(&b:B) [line 53, column 3]\n n$11=_fun_B_B(&b:B*,1:int) [line 53, column 5]\n EXIT_SCOPE(n$11,n$12); [line 53, column 5]\n " shape="box"] +"f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_7" [label="7: DeclStmt \n n$12=_fun___variable_initialization(&b:B) assign_last [line 53, column 3]\n n$11=_fun_B_B(&b:B*,1:int) [line 53, column 5]\n EXIT_SCOPE(n$11,n$12); [line 53, column 5]\n " shape="box"] "f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_7" -> "f_f2_div1#1916649103065485619.7e2fb5eeaa415affd6bdd86573d188de_6" ; @@ -106,7 +106,7 @@ digraph cfg { "t_div0#3531430030893775324.a762c245df414e083e61674c93898055_3" -> "t_div0#3531430030893775324.a762c245df414e083e61674c93898055_2" ; -"t_div0#3531430030893775324.a762c245df414e083e61674c93898055_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&b:B) [line 36, column 3]\n n$4=_fun_B_B(&b:B*,0:int) [line 36, column 5]\n EXIT_SCOPE(n$4,n$5); [line 36, column 5]\n " shape="box"] +"t_div0#3531430030893775324.a762c245df414e083e61674c93898055_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&b:B) assign_last [line 36, column 3]\n n$4=_fun_B_B(&b:B*,0:int) [line 36, column 5]\n EXIT_SCOPE(n$4,n$5); [line 36, column 5]\n " shape="box"] "t_div0#3531430030893775324.a762c245df414e083e61674c93898055_4" -> "t_div0#3531430030893775324.a762c245df414e083e61674c93898055_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_new.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_new.cpp.dot index 3e5ca8c5f..bd550c537 100644 --- a/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_new.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_new.cpp.dot @@ -32,7 +32,7 @@ digraph cfg { "array_of_class_with_not_constant_size#constructor_new#9810665286379016302.453a7058d5d4d9a1fa36084713fcfc7d_8" -> "array_of_class_with_not_constant_size#constructor_new#9810665286379016302.453a7058d5d4d9a1fa36084713fcfc7d_3" ; -"array_of_class_with_not_constant_size#constructor_new#9810665286379016302.453a7058d5d4d9a1fa36084713fcfc7d_9" [label="9: DeclStmt \n n$5=_fun___variable_initialization(&tarray:constructor_new::Person*) [line 89, column 3]\n n$3=*&0$?%__sil_tmpSIL_temp_conditional___n$1:int [line 89, column 31]\n n$4=_fun___new_array((sizeof(t=constructor_new::Person) * n$3):unsigned long) [line 89, column 20]\n *&tarray:constructor_new::Person*=n$4 [line 89, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$1); [line 89, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,0$?%__sil_tmpSIL_temp_conditional___n$1,tarray); [line 89, column 3]\n APPLY_ABSTRACTION; [line 89, column 3]\n " shape="box"] +"array_of_class_with_not_constant_size#constructor_new#9810665286379016302.453a7058d5d4d9a1fa36084713fcfc7d_9" [label="9: DeclStmt \n n$5=_fun___variable_initialization(&tarray:constructor_new::Person*) assign_last [line 89, column 3]\n n$3=*&0$?%__sil_tmpSIL_temp_conditional___n$1:int [line 89, column 31]\n n$4=_fun___new_array((sizeof(t=constructor_new::Person) * n$3):unsigned long) [line 89, column 20]\n *&tarray:constructor_new::Person*=n$4 [line 89, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$1); [line 89, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,0$?%__sil_tmpSIL_temp_conditional___n$1,tarray); [line 89, column 3]\n APPLY_ABSTRACTION; [line 89, column 3]\n " shape="box"] "array_of_class_with_not_constant_size#constructor_new#9810665286379016302.453a7058d5d4d9a1fa36084713fcfc7d_9" -> "array_of_class_with_not_constant_size#constructor_new#9810665286379016302.453a7058d5d4d9a1fa36084713fcfc7d_2" ; @@ -43,7 +43,7 @@ digraph cfg { "array_of_person_with_constant_size#constructor_new#10198805942353567956.2cf0ba8d0780ec60bbcca4089ec2aee6_2" [label="2: Exit constructor_new::array_of_person_with_constant_size \n NULLIFY(&tarray); [line 93, column 78]\n " color=yellow style=filled] -"array_of_person_with_constant_size#constructor_new#10198805942353567956.2cf0ba8d0780ec60bbcca4089ec2aee6_3" [label="3: DeclStmt \n n$12=_fun___variable_initialization(&tarray:constructor_new::Person*) [line 93, column 45]\n n$1=_fun___new_array((sizeof(t=constructor_new::Person) * 10):unsigned long) [line 93, column 62]\n n$2=_fun_constructor_new::Person_Person(n$1[0]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$3=_fun_constructor_new::Person_Person(n$1[1]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$4=_fun_constructor_new::Person_Person(n$1[2]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$5=_fun_constructor_new::Person_Person(n$1[3]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$6=_fun_constructor_new::Person_Person(n$1[4]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$7=_fun_constructor_new::Person_Person(n$1[5]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$8=_fun_constructor_new::Person_Person(n$1[6]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$9=_fun_constructor_new::Person_Person(n$1[7]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$10=_fun_constructor_new::Person_Person(n$1[8]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$11=_fun_constructor_new::Person_Person(n$1[9]:constructor_new::Person[_*_](*)) [line 93, column 66]\n *&tarray:constructor_new::Person*=n$1 [line 93, column 45]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,n$5,n$6,n$7,n$8,n$9,n$10,n$11,n$12,tarray); [line 93, column 45]\n APPLY_ABSTRACTION; [line 93, column 45]\n " shape="box"] +"array_of_person_with_constant_size#constructor_new#10198805942353567956.2cf0ba8d0780ec60bbcca4089ec2aee6_3" [label="3: DeclStmt \n n$12=_fun___variable_initialization(&tarray:constructor_new::Person*) assign_last [line 93, column 45]\n n$1=_fun___new_array((sizeof(t=constructor_new::Person) * 10):unsigned long) [line 93, column 62]\n n$2=_fun_constructor_new::Person_Person(n$1[0]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$3=_fun_constructor_new::Person_Person(n$1[1]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$4=_fun_constructor_new::Person_Person(n$1[2]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$5=_fun_constructor_new::Person_Person(n$1[3]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$6=_fun_constructor_new::Person_Person(n$1[4]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$7=_fun_constructor_new::Person_Person(n$1[5]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$8=_fun_constructor_new::Person_Person(n$1[6]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$9=_fun_constructor_new::Person_Person(n$1[7]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$10=_fun_constructor_new::Person_Person(n$1[8]:constructor_new::Person[_*_](*)) [line 93, column 66]\n n$11=_fun_constructor_new::Person_Person(n$1[9]:constructor_new::Person[_*_](*)) [line 93, column 66]\n *&tarray:constructor_new::Person*=n$1 [line 93, column 45]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,n$5,n$6,n$7,n$8,n$9,n$10,n$11,n$12,tarray); [line 93, column 45]\n APPLY_ABSTRACTION; [line 93, column 45]\n " shape="box"] "array_of_person_with_constant_size#constructor_new#10198805942353567956.2cf0ba8d0780ec60bbcca4089ec2aee6_3" -> "array_of_person_with_constant_size#constructor_new#10198805942353567956.2cf0ba8d0780ec60bbcca4089ec2aee6_2" ; @@ -58,7 +58,7 @@ digraph cfg { "constructor_1_arg_new_div0#constructor_new#798841234716809588.2c010a7c7293e961b9ed8149c3f3debe_3" -> "constructor_1_arg_new_div0#constructor_new#798841234716809588.2c010a7c7293e961b9ed8149c3f3debe_2" ; -"constructor_1_arg_new_div0#constructor_new#798841234716809588.2c010a7c7293e961b9ed8149c3f3debe_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&p:constructor_new::Person*) [line 28, column 3]\n n$3=_fun___new(sizeof(t=constructor_new::Person):unsigned long) [line 28, column 15]\n n$4=_fun_constructor_new::Person_Person(n$3:constructor_new::Person*,5:int) [line 28, column 19]\n *&p:constructor_new::Person*=n$3 [line 28, column 3]\n EXIT_SCOPE(n$3,n$4,n$5); [line 28, column 3]\n " shape="box"] +"constructor_1_arg_new_div0#constructor_new#798841234716809588.2c010a7c7293e961b9ed8149c3f3debe_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&p:constructor_new::Person*) assign_last [line 28, column 3]\n n$3=_fun___new(sizeof(t=constructor_new::Person):unsigned long) [line 28, column 15]\n n$4=_fun_constructor_new::Person_Person(n$3:constructor_new::Person*,5:int) [line 28, column 19]\n *&p:constructor_new::Person*=n$3 [line 28, column 3]\n EXIT_SCOPE(n$3,n$4,n$5); [line 28, column 3]\n " shape="box"] "constructor_1_arg_new_div0#constructor_new#798841234716809588.2c010a7c7293e961b9ed8149c3f3debe_4" -> "constructor_1_arg_new_div0#constructor_new#798841234716809588.2c010a7c7293e961b9ed8149c3f3debe_3" ; @@ -73,7 +73,7 @@ digraph cfg { "constructor_3_args_new_div0#constructor_new#13438839859480315932.2122014ebac449e6fb981ba75ba0617e_3" -> "constructor_3_args_new_div0#constructor_new#13438839859480315932.2122014ebac449e6fb981ba75ba0617e_2" ; -"constructor_3_args_new_div0#constructor_new#13438839859480315932.2122014ebac449e6fb981ba75ba0617e_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&p:constructor_new::Person*) [line 33, column 3]\n n$3=_fun___new(sizeof(t=constructor_new::Person):unsigned long) [line 33, column 15]\n n$4=_fun_constructor_new::Person_Person(n$3:constructor_new::Person*,5:int,6:int,7:int) [line 33, column 19]\n *&p:constructor_new::Person*=n$3 [line 33, column 3]\n EXIT_SCOPE(n$3,n$4,n$5); [line 33, column 3]\n " shape="box"] +"constructor_3_args_new_div0#constructor_new#13438839859480315932.2122014ebac449e6fb981ba75ba0617e_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&p:constructor_new::Person*) assign_last [line 33, column 3]\n n$3=_fun___new(sizeof(t=constructor_new::Person):unsigned long) [line 33, column 15]\n n$4=_fun_constructor_new::Person_Person(n$3:constructor_new::Person*,5:int,6:int,7:int) [line 33, column 19]\n *&p:constructor_new::Person*=n$3 [line 33, column 3]\n EXIT_SCOPE(n$3,n$4,n$5); [line 33, column 3]\n " shape="box"] "constructor_3_args_new_div0#constructor_new#13438839859480315932.2122014ebac449e6fb981ba75ba0617e_4" -> "constructor_3_args_new_div0#constructor_new#13438839859480315932.2122014ebac449e6fb981ba75ba0617e_3" ; @@ -113,11 +113,11 @@ digraph cfg { "constructor_nodes#constructor_new#2199504594298711726.73e416487288cbd4adea79b64a17dbe2_9" -> "constructor_nodes#constructor_new#2199504594298711726.73e416487288cbd4adea79b64a17dbe2_4" ; -"constructor_nodes#constructor_new#2199504594298711726.73e416487288cbd4adea79b64a17dbe2_10" [label="10: DeclStmt \n n$10=_fun___variable_initialization(&p:constructor_new::Person*) [line 71, column 3]\n n$3=_fun___new(sizeof(t=constructor_new::Person):unsigned long) [line 71, column 15]\n n$8=*&0$?%__sil_tmpSIL_temp_conditional___n$4:int [line 71, column 26]\n n$9=_fun_constructor_new::Person_Person(n$3:constructor_new::Person*,n$8:int) [line 71, column 19]\n *&p:constructor_new::Person*=n$3 [line 71, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$4); [line 71, column 3]\n EXIT_SCOPE(n$3,n$8,n$9,n$10,0$?%__sil_tmpSIL_temp_conditional___n$4); [line 71, column 3]\n " shape="box"] +"constructor_nodes#constructor_new#2199504594298711726.73e416487288cbd4adea79b64a17dbe2_10" [label="10: DeclStmt \n n$10=_fun___variable_initialization(&p:constructor_new::Person*) assign_last [line 71, column 3]\n n$3=_fun___new(sizeof(t=constructor_new::Person):unsigned long) [line 71, column 15]\n n$8=*&0$?%__sil_tmpSIL_temp_conditional___n$4:int [line 71, column 26]\n n$9=_fun_constructor_new::Person_Person(n$3:constructor_new::Person*,n$8:int) [line 71, column 19]\n *&p:constructor_new::Person*=n$3 [line 71, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$4); [line 71, column 3]\n EXIT_SCOPE(n$3,n$8,n$9,n$10,0$?%__sil_tmpSIL_temp_conditional___n$4); [line 71, column 3]\n " shape="box"] "constructor_nodes#constructor_new#2199504594298711726.73e416487288cbd4adea79b64a17dbe2_10" -> "constructor_nodes#constructor_new#2199504594298711726.73e416487288cbd4adea79b64a17dbe2_3" ; -"constructor_nodes#constructor_new#2199504594298711726.73e416487288cbd4adea79b64a17dbe2_11" [label="11: DeclStmt \n n$11=_fun___variable_initialization(&z:int) [line 70, column 3]\n *&z:int=6 [line 70, column 3]\n EXIT_SCOPE(n$11); [line 70, column 3]\n " shape="box"] +"constructor_nodes#constructor_new#2199504594298711726.73e416487288cbd4adea79b64a17dbe2_11" [label="11: DeclStmt \n n$11=_fun___variable_initialization(&z:int) assign_last [line 70, column 3]\n *&z:int=6 [line 70, column 3]\n EXIT_SCOPE(n$11); [line 70, column 3]\n " shape="box"] "constructor_nodes#constructor_new#2199504594298711726.73e416487288cbd4adea79b64a17dbe2_11" -> "constructor_nodes#constructor_new#2199504594298711726.73e416487288cbd4adea79b64a17dbe2_5" ; @@ -132,7 +132,7 @@ digraph cfg { "float_init_number#constructor_new#3988440966025503299.b1d13528d0a983c1943c8fdd13e58be6_3" -> "float_init_number#constructor_new#3988440966025503299.b1d13528d0a983c1943c8fdd13e58be6_2" ; -"float_init_number#constructor_new#3988440966025503299.b1d13528d0a983c1943c8fdd13e58be6_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x1:float*) [line 43, column 3]\n n$3=_fun___new(sizeof(t=float):unsigned long) [line 43, column 15]\n *n$3:float=5.4 [line 43, column 15]\n *&x1:float*=n$3 [line 43, column 3]\n EXIT_SCOPE(n$3,n$4); [line 43, column 3]\n " shape="box"] +"float_init_number#constructor_new#3988440966025503299.b1d13528d0a983c1943c8fdd13e58be6_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x1:float*) assign_last [line 43, column 3]\n n$3=_fun___new(sizeof(t=float):unsigned long) [line 43, column 15]\n *n$3:float=5.4 [line 43, column 15]\n *&x1:float*=n$3 [line 43, column 3]\n EXIT_SCOPE(n$3,n$4); [line 43, column 3]\n " shape="box"] "float_init_number#constructor_new#3988440966025503299.b1d13528d0a983c1943c8fdd13e58be6_4" -> "float_init_number#constructor_new#3988440966025503299.b1d13528d0a983c1943c8fdd13e58be6_3" ; @@ -191,7 +191,7 @@ digraph cfg { "int_array#constructor_new#17288301834361373856.f0e67f3600c928968ac2559eafa09ba2_11" -> "int_array#constructor_new#17288301834361373856.f0e67f3600c928968ac2559eafa09ba2_6" ; -"int_array#constructor_new#17288301834361373856.f0e67f3600c928968ac2559eafa09ba2_12" [label="12: DeclStmt \n n$12=_fun___variable_initialization(&x2:int*) [line 76, column 3]\n n$10=*&0$?%__sil_tmpSIL_temp_conditional___n$7:int [line 76, column 21]\n n$11=_fun___new_array((sizeof(t=int;nbytes=4) * n$10):unsigned long) [line 76, column 13]\n *&x2:int*=n$11 [line 76, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$7); [line 76, column 3]\n EXIT_SCOPE(n$10,n$11,n$12,0$?%__sil_tmpSIL_temp_conditional___n$7); [line 76, column 3]\n " shape="box"] +"int_array#constructor_new#17288301834361373856.f0e67f3600c928968ac2559eafa09ba2_12" [label="12: DeclStmt \n n$12=_fun___variable_initialization(&x2:int*) assign_last [line 76, column 3]\n n$10=*&0$?%__sil_tmpSIL_temp_conditional___n$7:int [line 76, column 21]\n n$11=_fun___new_array((sizeof(t=int;nbytes=4) * n$10):unsigned long) [line 76, column 13]\n *&x2:int*=n$11 [line 76, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$7); [line 76, column 3]\n EXIT_SCOPE(n$10,n$11,n$12,0$?%__sil_tmpSIL_temp_conditional___n$7); [line 76, column 3]\n " shape="box"] "int_array#constructor_new#17288301834361373856.f0e67f3600c928968ac2559eafa09ba2_12" -> "int_array#constructor_new#17288301834361373856.f0e67f3600c928968ac2559eafa09ba2_5" ; @@ -206,7 +206,7 @@ digraph cfg { "int_array_init#constructor_new#14099932616230884357.69a63438c3aee293029f068d373c29c3_3" -> "int_array_init#constructor_new#14099932616230884357.69a63438c3aee293029f068d373c29c3_2" ; -"int_array_init#constructor_new#14099932616230884357.69a63438c3aee293029f068d373c29c3_4" [label="4: DeclStmt \n n$12=_fun___variable_initialization(&arr:int*) [line 83, column 3]\n n$11=_fun___new_array((sizeof(t=int;nbytes=4) * 100):unsigned long) [line 83, column 14]\n *n$11[0]:int=1 [line 83, column 26]\n *n$11[1]:int=2 [line 83, column 26]\n *n$11[2]:int=3 [line 83, column 26]\n *n$11[3]:int=4 [line 83, column 26]\n *n$11[4]:int=5 [line 83, column 26]\n *n$11[5]:int=6 [line 83, column 26]\n *n$11[6]:int=7 [line 83, column 26]\n *n$11[7]:int=8 [line 83, column 26]\n *n$11[8]:int=9 [line 83, column 26]\n *n$11[9]:int=10 [line 83, column 26]\n *&arr:int*=n$11 [line 83, column 3]\n EXIT_SCOPE(n$11,n$12); [line 83, column 3]\n " shape="box"] +"int_array_init#constructor_new#14099932616230884357.69a63438c3aee293029f068d373c29c3_4" [label="4: DeclStmt \n n$12=_fun___variable_initialization(&arr:int*) assign_last [line 83, column 3]\n n$11=_fun___new_array((sizeof(t=int;nbytes=4) * 100):unsigned long) [line 83, column 14]\n *n$11[0]:int=1 [line 83, column 26]\n *n$11[1]:int=2 [line 83, column 26]\n *n$11[2]:int=3 [line 83, column 26]\n *n$11[3]:int=4 [line 83, column 26]\n *n$11[4]:int=5 [line 83, column 26]\n *n$11[5]:int=6 [line 83, column 26]\n *n$11[6]:int=7 [line 83, column 26]\n *n$11[7]:int=8 [line 83, column 26]\n *n$11[8]:int=9 [line 83, column 26]\n *n$11[9]:int=10 [line 83, column 26]\n *&arr:int*=n$11 [line 83, column 3]\n EXIT_SCOPE(n$11,n$12); [line 83, column 3]\n " shape="box"] "int_array_init#constructor_new#14099932616230884357.69a63438c3aee293029f068d373c29c3_4" -> "int_array_init#constructor_new#14099932616230884357.69a63438c3aee293029f068d373c29c3_3" ; @@ -221,7 +221,7 @@ digraph cfg { "int_init_empty#constructor_new#15413029864213743197.d5b807871fe4ea10e898a381f0edef4d_3" -> "int_init_empty#constructor_new#15413029864213743197.d5b807871fe4ea10e898a381f0edef4d_2" ; -"int_init_empty#constructor_new#15413029864213743197.d5b807871fe4ea10e898a381f0edef4d_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x1:int*) [line 48, column 3]\n n$3=_fun___new(sizeof(t=int;nbytes=4):unsigned long) [line 48, column 13]\n *n$3:int=0 [line 48, column 21]\n *&x1:int*=n$3 [line 48, column 3]\n EXIT_SCOPE(n$3,n$4); [line 48, column 3]\n " shape="box"] +"int_init_empty#constructor_new#15413029864213743197.d5b807871fe4ea10e898a381f0edef4d_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x1:int*) assign_last [line 48, column 3]\n n$3=_fun___new(sizeof(t=int;nbytes=4):unsigned long) [line 48, column 13]\n *n$3:int=0 [line 48, column 21]\n *&x1:int*=n$3 [line 48, column 3]\n EXIT_SCOPE(n$3,n$4); [line 48, column 3]\n " shape="box"] "int_init_empty#constructor_new#15413029864213743197.d5b807871fe4ea10e898a381f0edef4d_4" -> "int_init_empty#constructor_new#15413029864213743197.d5b807871fe4ea10e898a381f0edef4d_3" ; @@ -236,7 +236,7 @@ digraph cfg { "int_init_empty_list#constructor_new#3613770932207490177.2b4662eed1a13d3237e163f39bc6397c_3" -> "int_init_empty_list#constructor_new#3613770932207490177.2b4662eed1a13d3237e163f39bc6397c_2" ; -"int_init_empty_list#constructor_new#3613770932207490177.2b4662eed1a13d3237e163f39bc6397c_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&x1:int) [line 53, column 3]\n *&x1:int=0 [line 53, column 3]\n EXIT_SCOPE(n$2); [line 53, column 3]\n " shape="box"] +"int_init_empty_list#constructor_new#3613770932207490177.2b4662eed1a13d3237e163f39bc6397c_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&x1:int) assign_last [line 53, column 3]\n *&x1:int=0 [line 53, column 3]\n EXIT_SCOPE(n$2); [line 53, column 3]\n " shape="box"] "int_init_empty_list#constructor_new#3613770932207490177.2b4662eed1a13d3237e163f39bc6397c_4" -> "int_init_empty_list#constructor_new#3613770932207490177.2b4662eed1a13d3237e163f39bc6397c_3" ; @@ -251,7 +251,7 @@ digraph cfg { "int_init_empty_list_new#constructor_new#18093274870234850959.e77c2840901e6e789e52d55ac81db88f_3" -> "int_init_empty_list_new#constructor_new#18093274870234850959.e77c2840901e6e789e52d55ac81db88f_2" ; -"int_init_empty_list_new#constructor_new#18093274870234850959.e77c2840901e6e789e52d55ac81db88f_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x1:int*) [line 58, column 3]\n n$3=_fun___new(sizeof(t=int;nbytes=4):unsigned long) [line 58, column 13]\n *n$3:int=0 [line 58, column 13]\n *&x1:int*=n$3 [line 58, column 3]\n EXIT_SCOPE(n$3,n$4); [line 58, column 3]\n " shape="box"] +"int_init_empty_list_new#constructor_new#18093274870234850959.e77c2840901e6e789e52d55ac81db88f_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x1:int*) assign_last [line 58, column 3]\n n$3=_fun___new(sizeof(t=int;nbytes=4):unsigned long) [line 58, column 13]\n *n$3:int=0 [line 58, column 13]\n *&x1:int*=n$3 [line 58, column 3]\n EXIT_SCOPE(n$3,n$4); [line 58, column 3]\n " shape="box"] "int_init_empty_list_new#constructor_new#18093274870234850959.e77c2840901e6e789e52d55ac81db88f_4" -> "int_init_empty_list_new#constructor_new#18093274870234850959.e77c2840901e6e789e52d55ac81db88f_3" ; @@ -291,15 +291,15 @@ digraph cfg { "int_init_nodes#constructor_new#3816193909145311065.e18f1e2417086b4c8d20246eeee5dd01_9" -> "int_init_nodes#constructor_new#3816193909145311065.e18f1e2417086b4c8d20246eeee5dd01_4" ; -"int_init_nodes#constructor_new#3816193909145311065.e18f1e2417086b4c8d20246eeee5dd01_10" [label="10: DeclStmt \n n$10=_fun___variable_initialization(&x:int*) [line 65, column 3]\n n$3=_fun___new(sizeof(t=int;nbytes=4):unsigned long) [line 65, column 12]\n n$9=*&0$?%__sil_tmpSIL_temp_conditional___n$4:int [line 65, column 20]\n *n$3:int=n$9 [line 65, column 12]\n *&x:int*=n$3 [line 65, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$4); [line 65, column 3]\n EXIT_SCOPE(n$3,n$9,n$10,0$?%__sil_tmpSIL_temp_conditional___n$4); [line 65, column 3]\n " shape="box"] +"int_init_nodes#constructor_new#3816193909145311065.e18f1e2417086b4c8d20246eeee5dd01_10" [label="10: DeclStmt \n n$10=_fun___variable_initialization(&x:int*) assign_last [line 65, column 3]\n n$3=_fun___new(sizeof(t=int;nbytes=4):unsigned long) [line 65, column 12]\n n$9=*&0$?%__sil_tmpSIL_temp_conditional___n$4:int [line 65, column 20]\n *n$3:int=n$9 [line 65, column 12]\n *&x:int*=n$3 [line 65, column 3]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$4); [line 65, column 3]\n EXIT_SCOPE(n$3,n$9,n$10,0$?%__sil_tmpSIL_temp_conditional___n$4); [line 65, column 3]\n " shape="box"] "int_init_nodes#constructor_new#3816193909145311065.e18f1e2417086b4c8d20246eeee5dd01_10" -> "int_init_nodes#constructor_new#3816193909145311065.e18f1e2417086b4c8d20246eeee5dd01_3" ; -"int_init_nodes#constructor_new#3816193909145311065.e18f1e2417086b4c8d20246eeee5dd01_11" [label="11: DeclStmt \n n$13=_fun___variable_initialization(&y:int*) [line 64, column 3]\n n$11=_fun___new(sizeof(t=int;nbytes=4):unsigned long) [line 64, column 12]\n n$12=_fun_constructor_new::getValue(4:int) [line 64, column 20]\n *n$11:int=n$12 [line 64, column 12]\n *&y:int*=n$11 [line 64, column 3]\n EXIT_SCOPE(n$11,n$12,n$13); [line 64, column 3]\n " shape="box"] +"int_init_nodes#constructor_new#3816193909145311065.e18f1e2417086b4c8d20246eeee5dd01_11" [label="11: DeclStmt \n n$13=_fun___variable_initialization(&y:int*) assign_last [line 64, column 3]\n n$11=_fun___new(sizeof(t=int;nbytes=4):unsigned long) [line 64, column 12]\n n$12=_fun_constructor_new::getValue(4:int) [line 64, column 20]\n *n$11:int=n$12 [line 64, column 12]\n *&y:int*=n$11 [line 64, column 3]\n EXIT_SCOPE(n$11,n$12,n$13); [line 64, column 3]\n " shape="box"] "int_init_nodes#constructor_new#3816193909145311065.e18f1e2417086b4c8d20246eeee5dd01_11" -> "int_init_nodes#constructor_new#3816193909145311065.e18f1e2417086b4c8d20246eeee5dd01_5" ; -"int_init_nodes#constructor_new#3816193909145311065.e18f1e2417086b4c8d20246eeee5dd01_12" [label="12: DeclStmt \n n$14=_fun___variable_initialization(&z:int) [line 63, column 3]\n *&z:int=6 [line 63, column 3]\n NULLIFY(&z); [line 63, column 3]\n EXIT_SCOPE(n$14,z); [line 63, column 3]\n " shape="box"] +"int_init_nodes#constructor_new#3816193909145311065.e18f1e2417086b4c8d20246eeee5dd01_12" [label="12: DeclStmt \n n$14=_fun___variable_initialization(&z:int) assign_last [line 63, column 3]\n *&z:int=6 [line 63, column 3]\n NULLIFY(&z); [line 63, column 3]\n EXIT_SCOPE(n$14,z); [line 63, column 3]\n " shape="box"] "int_init_nodes#constructor_new#3816193909145311065.e18f1e2417086b4c8d20246eeee5dd01_12" -> "int_init_nodes#constructor_new#3816193909145311065.e18f1e2417086b4c8d20246eeee5dd01_11" ; @@ -314,7 +314,7 @@ digraph cfg { "int_init_number#constructor_new#16564762083428359974.2a1c04c2e924068dd02b097712efe518_3" -> "int_init_number#constructor_new#16564762083428359974.2a1c04c2e924068dd02b097712efe518_2" ; -"int_init_number#constructor_new#16564762083428359974.2a1c04c2e924068dd02b097712efe518_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x1:int*) [line 38, column 3]\n n$3=_fun___new(sizeof(t=int;nbytes=4):unsigned long) [line 38, column 13]\n *n$3:int=5 [line 38, column 13]\n *&x1:int*=n$3 [line 38, column 3]\n EXIT_SCOPE(n$3,n$4); [line 38, column 3]\n " shape="box"] +"int_init_number#constructor_new#16564762083428359974.2a1c04c2e924068dd02b097712efe518_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x1:int*) assign_last [line 38, column 3]\n n$3=_fun___new(sizeof(t=int;nbytes=4):unsigned long) [line 38, column 13]\n *n$3:int=5 [line 38, column 13]\n *&x1:int*=n$3 [line 38, column 3]\n EXIT_SCOPE(n$3,n$4); [line 38, column 3]\n " shape="box"] "int_init_number#constructor_new#16564762083428359974.2a1c04c2e924068dd02b097712efe518_4" -> "int_init_number#constructor_new#16564762083428359974.2a1c04c2e924068dd02b097712efe518_3" ; @@ -329,7 +329,7 @@ digraph cfg { "matrix_of_person#constructor_new#930045482638918044.730172056e08027af32de0bd9a490291_3" -> "matrix_of_person#constructor_new#930045482638918044.730172056e08027af32de0bd9a490291_2" ; -"matrix_of_person#constructor_new#930045482638918044.730172056e08027af32de0bd9a490291_4" [label="4: DeclStmt \n n$14=_fun___variable_initialization(&tarray:constructor_new::Person**) [line 97, column 3]\n n$13=_fun___new_array((sizeof(t=constructor_new::Person*) * 10):unsigned long) [line 97, column 21]\n *&tarray:constructor_new::Person**=n$13 [line 97, column 3]\n EXIT_SCOPE(n$13,n$14); [line 97, column 3]\n " shape="box"] +"matrix_of_person#constructor_new#930045482638918044.730172056e08027af32de0bd9a490291_4" [label="4: DeclStmt \n n$14=_fun___variable_initialization(&tarray:constructor_new::Person**) assign_last [line 97, column 3]\n n$13=_fun___new_array((sizeof(t=constructor_new::Person*) * 10):unsigned long) [line 97, column 21]\n *&tarray:constructor_new::Person**=n$13 [line 97, column 3]\n EXIT_SCOPE(n$13,n$14); [line 97, column 3]\n " shape="box"] "matrix_of_person#constructor_new#930045482638918044.730172056e08027af32de0bd9a490291_4" -> "matrix_of_person#constructor_new#930045482638918044.730172056e08027af32de0bd9a490291_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_struct_init_list.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_struct_init_list.cpp.dot index 6b7f72f04..d77cb7075 100644 --- a/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_struct_init_list.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_struct_init_list.cpp.dot @@ -7,7 +7,7 @@ digraph cfg { "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_2" [label="2: Exit test \n NULLIFY(&p); [line 17, column 29]\n " color=yellow style=filled] -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" [label="3: DeclStmt \n n$3=_fun___variable_initialization(&p:Person) [line 17, column 15]\n *&0$?%__sil_tmpSIL_init_list__n$1.top:int=0 [line 17, column 25]\n *&0$?%__sil_tmpSIL_init_list__n$1.left:int=0 [line 17, column 25]\n *&0$?%__sil_tmpSIL_init_list__n$1.bottom:int=0 [line 17, column 25]\n *&0$?%__sil_tmpSIL_init_list__n$1.right:int=0 [line 17, column 25]\n n$2=_fun_Person_Person(&p:Person*,&0$?%__sil_tmpSIL_init_list__n$1:Insets) [line 17, column 22]\n NULLIFY(&0$?%__sil_tmpSIL_init_list__n$1); [line 17, column 22]\n EXIT_SCOPE(n$2,n$3,p,0$?%__sil_tmpSIL_init_list__n$1); [line 17, column 22]\n APPLY_ABSTRACTION; [line 17, column 22]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" [label="3: DeclStmt \n n$3=_fun___variable_initialization(&p:Person) assign_last [line 17, column 15]\n *&0$?%__sil_tmpSIL_init_list__n$1.top:int=0 [line 17, column 25]\n *&0$?%__sil_tmpSIL_init_list__n$1.left:int=0 [line 17, column 25]\n *&0$?%__sil_tmpSIL_init_list__n$1.bottom:int=0 [line 17, column 25]\n *&0$?%__sil_tmpSIL_init_list__n$1.right:int=0 [line 17, column 25]\n n$2=_fun_Person_Person(&p:Person*,&0$?%__sil_tmpSIL_init_list__n$1:Insets) [line 17, column 22]\n NULLIFY(&0$?%__sil_tmpSIL_init_list__n$1); [line 17, column 22]\n EXIT_SCOPE(n$2,n$3,p,0$?%__sil_tmpSIL_init_list__n$1); [line 17, column 22]\n APPLY_ABSTRACTION; [line 17, column 22]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_2" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_with_body.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_with_body.cpp.dot index 96a308c91..2c0505d50 100644 --- a/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_with_body.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/constructors/constructor_with_body.cpp.dot @@ -11,7 +11,7 @@ digraph cfg { "test_div0#constructor_with_body#14177342253516869661.07f5b28b5e0b5cf0bd1b639da4232d5e_3" -> "test_div0#constructor_with_body#14177342253516869661.07f5b28b5e0b5cf0bd1b639da4232d5e_2" ; -"test_div0#constructor_with_body#14177342253516869661.07f5b28b5e0b5cf0bd1b639da4232d5e_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:constructor_with_body::X) [line 29, column 3]\n n$3=_fun_constructor_with_body::X_X(&x:constructor_with_body::X*,-2:int,2:int) [line 29, column 5]\n EXIT_SCOPE(n$3,n$4); [line 29, column 5]\n " shape="box"] +"test_div0#constructor_with_body#14177342253516869661.07f5b28b5e0b5cf0bd1b639da4232d5e_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:constructor_with_body::X) assign_last [line 29, column 3]\n n$3=_fun_constructor_with_body::X_X(&x:constructor_with_body::X*,-2:int,2:int) [line 29, column 5]\n EXIT_SCOPE(n$3,n$4); [line 29, column 5]\n " shape="box"] "test_div0#constructor_with_body#14177342253516869661.07f5b28b5e0b5cf0bd1b639da4232d5e_4" -> "test_div0#constructor_with_body#14177342253516869661.07f5b28b5e0b5cf0bd1b639da4232d5e_3" ; @@ -26,7 +26,7 @@ digraph cfg { "test_div0_default_constructor#constructor_with_body#13388399293672727772.2d6a8a159f30a2a66b86eb8aec3b9543_3" -> "test_div0_default_constructor#constructor_with_body#13388399293672727772.2d6a8a159f30a2a66b86eb8aec3b9543_2" ; -"test_div0_default_constructor#constructor_with_body#13388399293672727772.2d6a8a159f30a2a66b86eb8aec3b9543_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:constructor_with_body::X) [line 34, column 3]\n n$3=_fun_constructor_with_body::X_X(&x:constructor_with_body::X*) [line 34, column 5]\n EXIT_SCOPE(n$3,n$4); [line 34, column 5]\n " shape="box"] +"test_div0_default_constructor#constructor_with_body#13388399293672727772.2d6a8a159f30a2a66b86eb8aec3b9543_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:constructor_with_body::X) assign_last [line 34, column 3]\n n$3=_fun_constructor_with_body::X_X(&x:constructor_with_body::X*) [line 34, column 5]\n EXIT_SCOPE(n$3,n$4); [line 34, column 5]\n " shape="box"] "test_div0_default_constructor#constructor_with_body#13388399293672727772.2d6a8a159f30a2a66b86eb8aec3b9543_4" -> "test_div0_default_constructor#constructor_with_body#13388399293672727772.2d6a8a159f30a2a66b86eb8aec3b9543_3" ; @@ -41,7 +41,7 @@ digraph cfg { "test_div1#constructor_with_body#14807027065269407206.e5673561e7edf9eb35b296211ab8d37d_3" -> "test_div1#constructor_with_body#14807027065269407206.e5673561e7edf9eb35b296211ab8d37d_2" ; -"test_div1#constructor_with_body#14807027065269407206.e5673561e7edf9eb35b296211ab8d37d_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:constructor_with_body::X) [line 39, column 3]\n n$3=_fun_constructor_with_body::X_X(&x:constructor_with_body::X*,0:int,1:int) [line 39, column 5]\n EXIT_SCOPE(n$3,n$4); [line 39, column 5]\n " shape="box"] +"test_div1#constructor_with_body#14807027065269407206.e5673561e7edf9eb35b296211ab8d37d_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:constructor_with_body::X) assign_last [line 39, column 3]\n n$3=_fun_constructor_with_body::X_X(&x:constructor_with_body::X*,0:int,1:int) [line 39, column 5]\n EXIT_SCOPE(n$3,n$4); [line 39, column 5]\n " shape="box"] "test_div1#constructor_with_body#14807027065269407206.e5673561e7edf9eb35b296211ab8d37d_4" -> "test_div1#constructor_with_body#14807027065269407206.e5673561e7edf9eb35b296211ab8d37d_3" ; @@ -93,7 +93,7 @@ digraph cfg { "X#X#constructor_with_body#{7540788797581315247}.c8826e9323020557160f8002c0b802f2_4" -> "X#X#constructor_with_body#{7540788797581315247}.c8826e9323020557160f8002c0b802f2_3" ; -"X#X#constructor_with_body#{7540788797581315247}.c8826e9323020557160f8002c0b802f2_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&c:int) [line 23, column 3]\n n$6=*&a:int [line 23, column 11]\n n$7=*&b:int [line 23, column 15]\n *&c:int=(n$6 + n$7) [line 23, column 3]\n NULLIFY(&a); [line 23, column 3]\n NULLIFY(&b); [line 23, column 3]\n EXIT_SCOPE(n$6,n$7,n$8,a,b); [line 23, column 3]\n " shape="box"] +"X#X#constructor_with_body#{7540788797581315247}.c8826e9323020557160f8002c0b802f2_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&c:int) assign_last [line 23, column 3]\n n$6=*&a:int [line 23, column 11]\n n$7=*&b:int [line 23, column 15]\n *&c:int=(n$6 + n$7) [line 23, column 3]\n NULLIFY(&a); [line 23, column 3]\n NULLIFY(&b); [line 23, column 3]\n EXIT_SCOPE(n$6,n$7,n$8,a,b); [line 23, column 3]\n " shape="box"] "X#X#constructor_with_body#{7540788797581315247}.c8826e9323020557160f8002c0b802f2_5" -> "X#X#constructor_with_body#{7540788797581315247}.c8826e9323020557160f8002c0b802f2_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/constructors/copy_array_field.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/constructors/copy_array_field.cpp.dot index 6d8421d3a..0c323093a 100644 --- a/infer/tests/codetoanalyze/cpp/shared/constructors/copy_array_field.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/constructors/copy_array_field.cpp.dot @@ -11,7 +11,7 @@ digraph cfg { "no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_3" -> "no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_2" ; -"no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x2:copy_array_field::X) [line 24, column 3]\n n$3=_fun_copy_array_field::X_X(&x2:copy_array_field::X*,&x1:copy_array_field::X&) [line 24, column 10]\n EXIT_SCOPE(n$3,n$4,x1); [line 24, column 10]\n " shape="box"] +"no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x2:copy_array_field::X) assign_last [line 24, column 3]\n n$3=_fun_copy_array_field::X_X(&x2:copy_array_field::X*,&x1:copy_array_field::X&) [line 24, column 10]\n EXIT_SCOPE(n$3,n$4,x1); [line 24, column 10]\n " shape="box"] "no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_4" -> "no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_3" ; @@ -19,11 +19,11 @@ digraph cfg { "no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_5" -> "no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_4" ; -"no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_6" [label="6: DeclStmt \n n$6=_fun___variable_initialization(&x1:copy_array_field::X) [line 22, column 3]\n n$5=_fun_copy_array_field::X_X(&x1:copy_array_field::X*) [line 22, column 5]\n EXIT_SCOPE(n$5,n$6); [line 22, column 5]\n " shape="box"] +"no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_6" [label="6: DeclStmt \n n$6=_fun___variable_initialization(&x1:copy_array_field::X) assign_last [line 22, column 3]\n n$5=_fun_copy_array_field::X_X(&x1:copy_array_field::X*) [line 22, column 5]\n EXIT_SCOPE(n$5,n$6); [line 22, column 5]\n " shape="box"] "no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_6" -> "no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_5" ; -"no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_7" [label="7: DeclStmt \n n$7=_fun___variable_initialization(&a:int) [line 21, column 3]\n *&a:int=0 [line 21, column 3]\n EXIT_SCOPE(n$7); [line 21, column 3]\n " shape="box"] +"no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_7" [label="7: DeclStmt \n n$7=_fun___variable_initialization(&a:int) assign_last [line 21, column 3]\n *&a:int=0 [line 21, column 3]\n EXIT_SCOPE(n$7); [line 21, column 3]\n " shape="box"] "no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_7" -> "no_npe#copy_array_field#15879390968573954131.8ea76552f08038187f112d283020a67e_6" ; @@ -38,7 +38,7 @@ digraph cfg { "npe#copy_array_field#77301322902488828.946ed5a43ad43585633fa030996f9ad5_3" -> "npe#copy_array_field#77301322902488828.946ed5a43ad43585633fa030996f9ad5_2" ; -"npe#copy_array_field#77301322902488828.946ed5a43ad43585633fa030996f9ad5_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x2:copy_array_field::X) [line 16, column 3]\n n$3=_fun_copy_array_field::X_X(&x2:copy_array_field::X*,&x1:copy_array_field::X&) [line 16, column 10]\n EXIT_SCOPE(n$3,n$4,x1); [line 16, column 10]\n " shape="box"] +"npe#copy_array_field#77301322902488828.946ed5a43ad43585633fa030996f9ad5_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x2:copy_array_field::X) assign_last [line 16, column 3]\n n$3=_fun_copy_array_field::X_X(&x2:copy_array_field::X*,&x1:copy_array_field::X&) [line 16, column 10]\n EXIT_SCOPE(n$3,n$4,x1); [line 16, column 10]\n " shape="box"] "npe#copy_array_field#77301322902488828.946ed5a43ad43585633fa030996f9ad5_4" -> "npe#copy_array_field#77301322902488828.946ed5a43ad43585633fa030996f9ad5_3" ; @@ -46,7 +46,7 @@ digraph cfg { "npe#copy_array_field#77301322902488828.946ed5a43ad43585633fa030996f9ad5_5" -> "npe#copy_array_field#77301322902488828.946ed5a43ad43585633fa030996f9ad5_4" ; -"npe#copy_array_field#77301322902488828.946ed5a43ad43585633fa030996f9ad5_6" [label="6: DeclStmt \n n$6=_fun___variable_initialization(&x1:copy_array_field::X) [line 14, column 3]\n n$5=_fun_copy_array_field::X_X(&x1:copy_array_field::X*) [line 14, column 5]\n EXIT_SCOPE(n$5,n$6); [line 14, column 5]\n " shape="box"] +"npe#copy_array_field#77301322902488828.946ed5a43ad43585633fa030996f9ad5_6" [label="6: DeclStmt \n n$6=_fun___variable_initialization(&x1:copy_array_field::X) assign_last [line 14, column 3]\n n$5=_fun_copy_array_field::X_X(&x1:copy_array_field::X*) [line 14, column 5]\n EXIT_SCOPE(n$5,n$6); [line 14, column 5]\n " shape="box"] "npe#copy_array_field#77301322902488828.946ed5a43ad43585633fa030996f9ad5_6" -> "npe#copy_array_field#77301322902488828.946ed5a43ad43585633fa030996f9ad5_5" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/constructors/copy_move_constructor.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/constructors/copy_move_constructor.cpp.dot index 9c2ffa484..31d07a597 100644 --- a/infer/tests/codetoanalyze/cpp/shared/constructors/copy_move_constructor.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/constructors/copy_move_constructor.cpp.dot @@ -11,7 +11,7 @@ digraph cfg { "copyX_div0#copy_move_constructor#7555826423954612298.1fd45599e2fc3ce471d7d474aa615bcb_3" -> "copyX_div0#copy_move_constructor#7555826423954612298.1fd45599e2fc3ce471d7d474aa615bcb_2" ; -"copyX_div0#copy_move_constructor#7555826423954612298.1fd45599e2fc3ce471d7d474aa615bcb_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&x2:copy_move_constructor::X) [line 42, column 3]\n n$6=_fun_copy_move_constructor::X_X(&x2:copy_move_constructor::X*,&x1:copy_move_constructor::X&) [line 42, column 10]\n EXIT_SCOPE(n$6,n$7); [line 42, column 10]\n " shape="box"] +"copyX_div0#copy_move_constructor#7555826423954612298.1fd45599e2fc3ce471d7d474aa615bcb_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&x2:copy_move_constructor::X) assign_last [line 42, column 3]\n n$6=_fun_copy_move_constructor::X_X(&x2:copy_move_constructor::X*,&x1:copy_move_constructor::X&) [line 42, column 10]\n EXIT_SCOPE(n$6,n$7); [line 42, column 10]\n " shape="box"] "copyX_div0#copy_move_constructor#7555826423954612298.1fd45599e2fc3ce471d7d474aa615bcb_4" -> "copyX_div0#copy_move_constructor#7555826423954612298.1fd45599e2fc3ce471d7d474aa615bcb_3" ; @@ -19,7 +19,7 @@ digraph cfg { "copyX_div0#copy_move_constructor#7555826423954612298.1fd45599e2fc3ce471d7d474aa615bcb_5" -> "copyX_div0#copy_move_constructor#7555826423954612298.1fd45599e2fc3ce471d7d474aa615bcb_4" ; -"copyX_div0#copy_move_constructor#7555826423954612298.1fd45599e2fc3ce471d7d474aa615bcb_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&x1:copy_move_constructor::X) [line 40, column 3]\n n$8=_fun_copy_move_constructor::X_X(&x1:copy_move_constructor::X*) [line 40, column 5]\n EXIT_SCOPE(n$8,n$9); [line 40, column 5]\n " shape="box"] +"copyX_div0#copy_move_constructor#7555826423954612298.1fd45599e2fc3ce471d7d474aa615bcb_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&x1:copy_move_constructor::X) assign_last [line 40, column 3]\n n$8=_fun_copy_move_constructor::X_X(&x1:copy_move_constructor::X*) [line 40, column 5]\n EXIT_SCOPE(n$8,n$9); [line 40, column 5]\n " shape="box"] "copyX_div0#copy_move_constructor#7555826423954612298.1fd45599e2fc3ce471d7d474aa615bcb_6" -> "copyX_div0#copy_move_constructor#7555826423954612298.1fd45599e2fc3ce471d7d474aa615bcb_5" ; @@ -34,15 +34,15 @@ digraph cfg { "copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_3" -> "copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_2" ; -"copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_4" [label="4: DeclStmt \n n$12=_fun___variable_initialization(&d2:int) [line 68, column 3]\n n$10=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:copy_move_constructor::X) [line 68, column 16]\n n$9=_fun_copy_move_constructor::getX(1:int,&0$?%__sil_tmpSIL_materialize_temp__n$7:copy_move_constructor::X*) [line 68, column 16]\n n$11=*&0$?%__sil_tmpSIL_materialize_temp__n$7.f:int [line 68, column 16]\n *&d2:int=(1 / n$11) [line 68, column 3]\n EXIT_SCOPE(n$9,n$10,n$11,n$12,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 68, column 3]\n " shape="box"] +"copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_4" [label="4: DeclStmt \n n$12=_fun___variable_initialization(&d2:int) assign_last [line 68, column 3]\n n$10=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:copy_move_constructor::X) assign_last [line 68, column 16]\n n$9=_fun_copy_move_constructor::getX(1:int,&0$?%__sil_tmpSIL_materialize_temp__n$7:copy_move_constructor::X*) assign_last [line 68, column 16]\n n$11=*&0$?%__sil_tmpSIL_materialize_temp__n$7.f:int [line 68, column 16]\n *&d2:int=(1 / n$11) [line 68, column 3]\n EXIT_SCOPE(n$9,n$10,n$11,n$12,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 68, column 3]\n " shape="box"] "copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_4" -> "copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_3" ; -"copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_5" [label="5: DeclStmt \n n$14=_fun___variable_initialization(&d1:int) [line 67, column 3]\n n$13=*&x2.f:int [line 67, column 16]\n *&d1:int=(1 / n$13) [line 67, column 3]\n EXIT_SCOPE(n$13,n$14); [line 67, column 3]\n " shape="box"] +"copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_5" [label="5: DeclStmt \n n$14=_fun___variable_initialization(&d1:int) assign_last [line 67, column 3]\n n$13=*&x2.f:int [line 67, column 16]\n *&d1:int=(1 / n$13) [line 67, column 3]\n EXIT_SCOPE(n$13,n$14); [line 67, column 3]\n " shape="box"] "copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_5" -> "copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_4" ; -"copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_6" [label="6: DeclStmt \n n$16=_fun___variable_initialization(&x2:copy_move_constructor::X) [line 66, column 3]\n n$15=_fun_copy_move_constructor::X_X(&x2:copy_move_constructor::X*,&x1:copy_move_constructor::X&) [line 66, column 10]\n EXIT_SCOPE(n$15,n$16); [line 66, column 10]\n " shape="box"] +"copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_6" [label="6: DeclStmt \n n$16=_fun___variable_initialization(&x2:copy_move_constructor::X) assign_last [line 66, column 3]\n n$15=_fun_copy_move_constructor::X_X(&x2:copy_move_constructor::X*,&x1:copy_move_constructor::X&) [line 66, column 10]\n EXIT_SCOPE(n$15,n$16); [line 66, column 10]\n " shape="box"] "copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_6" -> "copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_5" ; @@ -50,7 +50,7 @@ digraph cfg { "copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_7" -> "copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_6" ; -"copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_8" [label="8: DeclStmt \n n$18=_fun___variable_initialization(&x1:copy_move_constructor::X) [line 64, column 3]\n n$17=_fun_copy_move_constructor::X_X(&x1:copy_move_constructor::X*) [line 64, column 5]\n EXIT_SCOPE(n$17,n$18); [line 64, column 5]\n " shape="box"] +"copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_8" [label="8: DeclStmt \n n$18=_fun___variable_initialization(&x1:copy_move_constructor::X) assign_last [line 64, column 3]\n n$17=_fun_copy_move_constructor::X_X(&x1:copy_move_constructor::X*) [line 64, column 5]\n EXIT_SCOPE(n$17,n$18); [line 64, column 5]\n " shape="box"] "copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_8" -> "copyX_moveX_div1#copy_move_constructor#6853813819184662211.00e91897e7d9fcfa93de911bba9a1399_7" ; @@ -65,7 +65,7 @@ digraph cfg { "copyY_div0#copy_move_constructor#17079397845524781987.61211209ec1f961073f3adafcd080bfb_3" -> "copyY_div0#copy_move_constructor#17079397845524781987.61211209ec1f961073f3adafcd080bfb_2" ; -"copyY_div0#copy_move_constructor#17079397845524781987.61211209ec1f961073f3adafcd080bfb_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&y2:copy_move_constructor::Y) [line 51, column 3]\n n$6=_fun_copy_move_constructor::Y_Y(&y2:copy_move_constructor::Y*,&y1:copy_move_constructor::Y&) [line 51, column 10]\n EXIT_SCOPE(n$6,n$7); [line 51, column 10]\n " shape="box"] +"copyY_div0#copy_move_constructor#17079397845524781987.61211209ec1f961073f3adafcd080bfb_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&y2:copy_move_constructor::Y) assign_last [line 51, column 3]\n n$6=_fun_copy_move_constructor::Y_Y(&y2:copy_move_constructor::Y*,&y1:copy_move_constructor::Y&) [line 51, column 10]\n EXIT_SCOPE(n$6,n$7); [line 51, column 10]\n " shape="box"] "copyY_div0#copy_move_constructor#17079397845524781987.61211209ec1f961073f3adafcd080bfb_4" -> "copyY_div0#copy_move_constructor#17079397845524781987.61211209ec1f961073f3adafcd080bfb_3" ; @@ -73,7 +73,7 @@ digraph cfg { "copyY_div0#copy_move_constructor#17079397845524781987.61211209ec1f961073f3adafcd080bfb_5" -> "copyY_div0#copy_move_constructor#17079397845524781987.61211209ec1f961073f3adafcd080bfb_4" ; -"copyY_div0#copy_move_constructor#17079397845524781987.61211209ec1f961073f3adafcd080bfb_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&y1:copy_move_constructor::Y) [line 49, column 3]\n n$8=_fun_copy_move_constructor::Y_Y(&y1:copy_move_constructor::Y*) [line 49, column 5]\n EXIT_SCOPE(n$8,n$9); [line 49, column 5]\n " shape="box"] +"copyY_div0#copy_move_constructor#17079397845524781987.61211209ec1f961073f3adafcd080bfb_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&y1:copy_move_constructor::Y) assign_last [line 49, column 3]\n n$8=_fun_copy_move_constructor::Y_Y(&y1:copy_move_constructor::Y*) [line 49, column 5]\n EXIT_SCOPE(n$8,n$9); [line 49, column 5]\n " shape="box"] "copyY_div0#copy_move_constructor#17079397845524781987.61211209ec1f961073f3adafcd080bfb_6" -> "copyY_div0#copy_move_constructor#17079397845524781987.61211209ec1f961073f3adafcd080bfb_5" ; @@ -88,15 +88,15 @@ digraph cfg { "copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_3" -> "copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_2" ; -"copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_4" [label="4: DeclStmt \n n$12=_fun___variable_initialization(&d2:int) [line 77, column 3]\n n$10=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:copy_move_constructor::Y) [line 77, column 16]\n n$9=_fun_copy_move_constructor::getY(2:int,&0$?%__sil_tmpSIL_materialize_temp__n$7:copy_move_constructor::Y*) [line 77, column 16]\n n$11=*&0$?%__sil_tmpSIL_materialize_temp__n$7.f:int [line 77, column 16]\n *&d2:int=(1 / n$11) [line 77, column 3]\n EXIT_SCOPE(n$9,n$10,n$11,n$12,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 77, column 3]\n " shape="box"] +"copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_4" [label="4: DeclStmt \n n$12=_fun___variable_initialization(&d2:int) assign_last [line 77, column 3]\n n$10=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:copy_move_constructor::Y) assign_last [line 77, column 16]\n n$9=_fun_copy_move_constructor::getY(2:int,&0$?%__sil_tmpSIL_materialize_temp__n$7:copy_move_constructor::Y*) assign_last [line 77, column 16]\n n$11=*&0$?%__sil_tmpSIL_materialize_temp__n$7.f:int [line 77, column 16]\n *&d2:int=(1 / n$11) [line 77, column 3]\n EXIT_SCOPE(n$9,n$10,n$11,n$12,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 77, column 3]\n " shape="box"] "copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_4" -> "copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_3" ; -"copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_5" [label="5: DeclStmt \n n$14=_fun___variable_initialization(&d1:int) [line 76, column 3]\n n$13=*&y2.f:int [line 76, column 16]\n *&d1:int=(1 / n$13) [line 76, column 3]\n EXIT_SCOPE(n$13,n$14); [line 76, column 3]\n " shape="box"] +"copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_5" [label="5: DeclStmt \n n$14=_fun___variable_initialization(&d1:int) assign_last [line 76, column 3]\n n$13=*&y2.f:int [line 76, column 16]\n *&d1:int=(1 / n$13) [line 76, column 3]\n EXIT_SCOPE(n$13,n$14); [line 76, column 3]\n " shape="box"] "copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_5" -> "copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_4" ; -"copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_6" [label="6: DeclStmt \n n$16=_fun___variable_initialization(&y2:copy_move_constructor::Y) [line 75, column 3]\n n$15=_fun_copy_move_constructor::Y_Y(&y2:copy_move_constructor::Y*,&y1:copy_move_constructor::Y&) [line 75, column 10]\n EXIT_SCOPE(n$15,n$16); [line 75, column 10]\n " shape="box"] +"copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_6" [label="6: DeclStmt \n n$16=_fun___variable_initialization(&y2:copy_move_constructor::Y) assign_last [line 75, column 3]\n n$15=_fun_copy_move_constructor::Y_Y(&y2:copy_move_constructor::Y*,&y1:copy_move_constructor::Y&) [line 75, column 10]\n EXIT_SCOPE(n$15,n$16); [line 75, column 10]\n " shape="box"] "copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_6" -> "copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_5" ; @@ -104,7 +104,7 @@ digraph cfg { "copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_7" -> "copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_6" ; -"copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_8" [label="8: DeclStmt \n n$18=_fun___variable_initialization(&y1:copy_move_constructor::Y) [line 73, column 3]\n n$17=_fun_copy_move_constructor::Y_Y(&y1:copy_move_constructor::Y*) [line 73, column 5]\n EXIT_SCOPE(n$17,n$18); [line 73, column 5]\n " shape="box"] +"copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_8" [label="8: DeclStmt \n n$18=_fun___variable_initialization(&y1:copy_move_constructor::Y) assign_last [line 73, column 3]\n n$17=_fun_copy_move_constructor::Y_Y(&y1:copy_move_constructor::Y*) [line 73, column 5]\n EXIT_SCOPE(n$17,n$18); [line 73, column 5]\n " shape="box"] "copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_8" -> "copyY_moveY_div1#copy_move_constructor#5827233588222911615.5716e8b7acbd3ff43f18c7c5954c6565_7" ; @@ -123,7 +123,7 @@ digraph cfg { "getX#copy_move_constructor(class copy_move_constructor::X)#2211685783611424509.3ed1bf77442fb4e47b3afdd1dd669b7a_4" -> "getX#copy_move_constructor(class copy_move_constructor::X)#2211685783611424509.3ed1bf77442fb4e47b3afdd1dd669b7a_3" ; -"getX#copy_move_constructor(class copy_move_constructor::X)#2211685783611424509.3ed1bf77442fb4e47b3afdd1dd669b7a_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&x:copy_move_constructor::X) [line 28, column 3]\n n$6=_fun_copy_move_constructor::X_X(&x:copy_move_constructor::X*) [line 28, column 5]\n EXIT_SCOPE(n$6,n$7); [line 28, column 5]\n " shape="box"] +"getX#copy_move_constructor(class copy_move_constructor::X)#2211685783611424509.3ed1bf77442fb4e47b3afdd1dd669b7a_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&x:copy_move_constructor::X) assign_last [line 28, column 3]\n n$6=_fun_copy_move_constructor::X_X(&x:copy_move_constructor::X*) [line 28, column 5]\n EXIT_SCOPE(n$6,n$7); [line 28, column 5]\n " shape="box"] "getX#copy_move_constructor(class copy_move_constructor::X)#2211685783611424509.3ed1bf77442fb4e47b3afdd1dd669b7a_5" -> "getX#copy_move_constructor(class copy_move_constructor::X)#2211685783611424509.3ed1bf77442fb4e47b3afdd1dd669b7a_4" ; @@ -142,7 +142,7 @@ digraph cfg { "getY#copy_move_constructor(class copy_move_constructor::Y)#1712013823822590270.ad9dd85c67bb69fcd76f4c34bc426f28_4" -> "getY#copy_move_constructor(class copy_move_constructor::Y)#1712013823822590270.ad9dd85c67bb69fcd76f4c34bc426f28_3" ; -"getY#copy_move_constructor(class copy_move_constructor::Y)#1712013823822590270.ad9dd85c67bb69fcd76f4c34bc426f28_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&y:copy_move_constructor::Y) [line 34, column 3]\n n$6=_fun_copy_move_constructor::Y_Y(&y:copy_move_constructor::Y*) [line 34, column 5]\n EXIT_SCOPE(n$6,n$7); [line 34, column 5]\n " shape="box"] +"getY#copy_move_constructor(class copy_move_constructor::Y)#1712013823822590270.ad9dd85c67bb69fcd76f4c34bc426f28_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&y:copy_move_constructor::Y) assign_last [line 34, column 3]\n n$6=_fun_copy_move_constructor::Y_Y(&y:copy_move_constructor::Y*) [line 34, column 5]\n EXIT_SCOPE(n$6,n$7); [line 34, column 5]\n " shape="box"] "getY#copy_move_constructor(class copy_move_constructor::Y)#1712013823822590270.ad9dd85c67bb69fcd76f4c34bc426f28_5" -> "getY#copy_move_constructor(class copy_move_constructor::Y)#1712013823822590270.ad9dd85c67bb69fcd76f4c34bc426f28_4" ; @@ -153,7 +153,7 @@ digraph cfg { "moveX_div0#copy_move_constructor#2229557375196326562.f23c95e594ab41ba50090dccb989c3e3_2" [label="2: Exit copy_move_constructor::moveX_div0 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 46, column 42]\n " color=yellow style=filled] -"moveX_div0#copy_move_constructor#2229557375196326562.f23c95e594ab41ba50090dccb989c3e3_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:copy_move_constructor::X) [line 46, column 31]\n n$2=_fun_copy_move_constructor::getX(0:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:copy_move_constructor::X*) [line 46, column 31]\n n$4=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 46, column 31]\n *&return:int=(1 / n$4) [line 46, column 20]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 46, column 20]\n APPLY_ABSTRACTION; [line 46, column 20]\n " shape="box"] +"moveX_div0#copy_move_constructor#2229557375196326562.f23c95e594ab41ba50090dccb989c3e3_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:copy_move_constructor::X) assign_last [line 46, column 31]\n n$2=_fun_copy_move_constructor::getX(0:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:copy_move_constructor::X*) assign_last [line 46, column 31]\n n$4=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 46, column 31]\n *&return:int=(1 / n$4) [line 46, column 20]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 46, column 20]\n APPLY_ABSTRACTION; [line 46, column 20]\n " shape="box"] "moveX_div0#copy_move_constructor#2229557375196326562.f23c95e594ab41ba50090dccb989c3e3_3" -> "moveX_div0#copy_move_constructor#2229557375196326562.f23c95e594ab41ba50090dccb989c3e3_2" ; @@ -164,7 +164,7 @@ digraph cfg { "moveY_div0#copy_move_constructor#15307842160732522395.eee7693240d3ce27d5c30f34d771cb57_2" [label="2: Exit copy_move_constructor::moveY_div0 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 55, column 42]\n " color=yellow style=filled] -"moveY_div0#copy_move_constructor#15307842160732522395.eee7693240d3ce27d5c30f34d771cb57_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:copy_move_constructor::Y) [line 55, column 31]\n n$2=_fun_copy_move_constructor::getY(1:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:copy_move_constructor::Y*) [line 55, column 31]\n n$4=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 55, column 31]\n *&return:int=(1 / n$4) [line 55, column 20]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 55, column 20]\n APPLY_ABSTRACTION; [line 55, column 20]\n " shape="box"] +"moveY_div0#copy_move_constructor#15307842160732522395.eee7693240d3ce27d5c30f34d771cb57_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:copy_move_constructor::Y) assign_last [line 55, column 31]\n n$2=_fun_copy_move_constructor::getY(1:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:copy_move_constructor::Y*) assign_last [line 55, column 31]\n n$4=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 55, column 31]\n *&return:int=(1 / n$4) [line 55, column 20]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 55, column 20]\n APPLY_ABSTRACTION; [line 55, column 20]\n " shape="box"] "moveY_div0#copy_move_constructor#15307842160732522395.eee7693240d3ce27d5c30f34d771cb57_3" -> "moveY_div0#copy_move_constructor#15307842160732522395.eee7693240d3ce27d5c30f34d771cb57_2" ; @@ -179,11 +179,11 @@ digraph cfg { "moveY_moveY_copyY_div0#copy_move_constructor#11319351724516006746.d5d5d96d98dcf1c634b647be30001d2e_3" -> "moveY_moveY_copyY_div0#copy_move_constructor#11319351724516006746.d5d5d96d98dcf1c634b647be30001d2e_2" ; -"moveY_moveY_copyY_div0#copy_move_constructor#11319351724516006746.d5d5d96d98dcf1c634b647be30001d2e_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&y2:copy_move_constructor::Y) [line 59, column 3]\n n$6=_fun_copy_move_constructor::Y_Y(&y2:copy_move_constructor::Y*,&y1:copy_move_constructor::Y&) [line 59, column 10]\n EXIT_SCOPE(n$6,n$7); [line 59, column 10]\n " shape="box"] +"moveY_moveY_copyY_div0#copy_move_constructor#11319351724516006746.d5d5d96d98dcf1c634b647be30001d2e_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&y2:copy_move_constructor::Y) assign_last [line 59, column 3]\n n$6=_fun_copy_move_constructor::Y_Y(&y2:copy_move_constructor::Y*,&y1:copy_move_constructor::Y&) [line 59, column 10]\n EXIT_SCOPE(n$6,n$7); [line 59, column 10]\n " shape="box"] "moveY_moveY_copyY_div0#copy_move_constructor#11319351724516006746.d5d5d96d98dcf1c634b647be30001d2e_4" -> "moveY_moveY_copyY_div0#copy_move_constructor#11319351724516006746.d5d5d96d98dcf1c634b647be30001d2e_3" ; -"moveY_moveY_copyY_div0#copy_move_constructor#11319351724516006746.d5d5d96d98dcf1c634b647be30001d2e_5" [label="5: DeclStmt \n n$13=_fun___variable_initialization(&y1:copy_move_constructor::Y) [line 58, column 3]\n n$11=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$8:copy_move_constructor::Y const ) [line 58, column 10]\n n$10=_fun_copy_move_constructor::getY(2:int,&0$?%__sil_tmpSIL_materialize_temp__n$8:copy_move_constructor::Y*) [line 58, column 10]\n n$12=_fun_copy_move_constructor::Y_Y(&y1:copy_move_constructor::Y*,&0$?%__sil_tmpSIL_materialize_temp__n$8:copy_move_constructor::Y const &) [line 58, column 10]\n EXIT_SCOPE(n$10,n$11,n$12,n$13,0$?%__sil_tmpSIL_materialize_temp__n$8); [line 58, column 10]\n " shape="box"] +"moveY_moveY_copyY_div0#copy_move_constructor#11319351724516006746.d5d5d96d98dcf1c634b647be30001d2e_5" [label="5: DeclStmt \n n$13=_fun___variable_initialization(&y1:copy_move_constructor::Y) assign_last [line 58, column 3]\n n$11=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$8:copy_move_constructor::Y const ) assign_last [line 58, column 10]\n n$10=_fun_copy_move_constructor::getY(2:int,&0$?%__sil_tmpSIL_materialize_temp__n$8:copy_move_constructor::Y*) assign_last [line 58, column 10]\n n$12=_fun_copy_move_constructor::Y_Y(&y1:copy_move_constructor::Y*,&0$?%__sil_tmpSIL_materialize_temp__n$8:copy_move_constructor::Y const &) [line 58, column 10]\n EXIT_SCOPE(n$10,n$11,n$12,n$13,0$?%__sil_tmpSIL_materialize_temp__n$8); [line 58, column 10]\n " shape="box"] "moveY_moveY_copyY_div0#copy_move_constructor#11319351724516006746.d5d5d96d98dcf1c634b647be30001d2e_5" -> "moveY_moveY_copyY_div0#copy_move_constructor#11319351724516006746.d5d5d96d98dcf1c634b647be30001d2e_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/constructors/default_field_init.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/constructors/default_field_init.cpp.dot index 77a40248f..d4d3e0ac8 100644 --- a/infer/tests/codetoanalyze/cpp/shared/constructors/default_field_init.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/constructors/default_field_init.cpp.dot @@ -7,7 +7,7 @@ digraph cfg { "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_2" [label="2: Exit test \n NULLIFY(&y); [line 23, column 20]\n " color=yellow style=filled] -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&y:Y) [line 23, column 15]\n n$1=_fun_Y_Y(&y:Y*) [line 23, column 17]\n EXIT_SCOPE(n$1,n$2,y); [line 23, column 17]\n APPLY_ABSTRACTION; [line 23, column 17]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&y:Y) assign_last [line 23, column 15]\n n$1=_fun_Y_Y(&y:Y*) [line 23, column 17]\n EXIT_SCOPE(n$1,n$2,y); [line 23, column 17]\n APPLY_ABSTRACTION; [line 23, column 17]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_2" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/constructors/std_init_list.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/constructors/std_init_list.cpp.dot index 267484b7c..a27114f8b 100644 --- a/infer/tests/codetoanalyze/cpp/shared/constructors/std_init_list.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/constructors/std_init_list.cpp.dot @@ -7,7 +7,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_2" [label="2: Exit main \n NULLIFY(&x); [line 22, column 37]\n " color=yellow style=filled] -"main.fad58de7366495db4650cfefac2fcd61_3" [label="3: DeclStmt \n n$5=_fun___variable_initialization(&x:X) [line 22, column 14]\n n$2=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:int const [5*4] const ) [line 22, column 20]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1[0]:int=1 [line 22, column 20]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1[1]:int=2 [line 22, column 20]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1[2]:int=3 [line 22, column 20]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1[3]:int=4 [line 22, column 20]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1[4]:int=5 [line 22, column 20]\n n$3=_fun___infer_skip_function(&0$?%__sil_tmpSIL_materialize_temp__n$1:int const [5*4] const ) [line 22, column 20]\n n$4=_fun_X_X(&x:X*,n$3:std::initializer_list) [line 22, column 20]\n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 22, column 20]\n EXIT_SCOPE(n$2,n$3,n$4,n$5,x,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 22, column 20]\n APPLY_ABSTRACTION; [line 22, column 20]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_3" [label="3: DeclStmt \n n$5=_fun___variable_initialization(&x:X) assign_last [line 22, column 14]\n n$2=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:int const [5*4] const ) assign_last [line 22, column 20]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1[0]:int=1 [line 22, column 20]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1[1]:int=2 [line 22, column 20]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1[2]:int=3 [line 22, column 20]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1[3]:int=4 [line 22, column 20]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1[4]:int=5 [line 22, column 20]\n n$3=_fun___infer_skip_function(&0$?%__sil_tmpSIL_materialize_temp__n$1:int const [5*4] const ) [line 22, column 20]\n n$4=_fun_X_X(&x:X*,n$3:std::initializer_list) [line 22, column 20]\n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 22, column 20]\n EXIT_SCOPE(n$2,n$3,n$4,n$5,x,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 22, column 20]\n APPLY_ABSTRACTION; [line 22, column 20]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; @@ -22,7 +22,7 @@ digraph cfg { "X#X#{15236476731743367432}.ce83f097b510e48ce3d42aa5df1bb3be_3" -> "X#X#{15236476731743367432}.ce83f097b510e48ce3d42aa5df1bb3be_6" ; -"X#X#{15236476731743367432}.ce83f097b510e48ce3d42aa5df1bb3be_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&i:int const *) [line 13, column 10]\n n$1=*&list:std::initializer_list& [line 13, column 19]\n _=*n$1:std::initializer_list [line 13, column 19]\n n$3=_fun_std::initializer_list_begin(n$1:std::initializer_list&) [line 13, column 19]\n *&i:int const *=n$3 [line 13, column 10]\n EXIT_SCOPE(_,n$1,n$3,n$4); [line 13, column 10]\n APPLY_ABSTRACTION; [line 13, column 10]\n " shape="box"] +"X#X#{15236476731743367432}.ce83f097b510e48ce3d42aa5df1bb3be_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&i:int const *) assign_last [line 13, column 10]\n n$1=*&list:std::initializer_list& [line 13, column 19]\n _=*n$1:std::initializer_list [line 13, column 19]\n n$3=_fun_std::initializer_list_begin(n$1:std::initializer_list&) [line 13, column 19]\n *&i:int const *=n$3 [line 13, column 10]\n EXIT_SCOPE(_,n$1,n$3,n$4); [line 13, column 10]\n APPLY_ABSTRACTION; [line 13, column 10]\n " shape="box"] "X#X#{15236476731743367432}.ce83f097b510e48ce3d42aa5df1bb3be_4" -> "X#X#{15236476731743367432}.ce83f097b510e48ce3d42aa5df1bb3be_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/constructors/temp_object.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/constructors/temp_object.cpp.dot index ffa8625ec..01d3b64e7 100644 --- a/infer/tests/codetoanalyze/cpp/shared/constructors/temp_object.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/constructors/temp_object.cpp.dot @@ -11,7 +11,7 @@ digraph cfg { "assign_temp_div0#temp_object#6618523570396537240.fa2055065ca23850cee50c855993cd3a_3" -> "assign_temp_div0#temp_object#6618523570396537240.fa2055065ca23850cee50c855993cd3a_2" ; -"assign_temp_div0#temp_object#6618523570396537240.fa2055065ca23850cee50c855993cd3a_4" [label="4: DeclStmt \n n$9=_fun___variable_initialization(&x:temp_object::X) [line 27, column 3]\n n$7=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$5:temp_object::X const ) [line 27, column 9]\n n$6=_fun_temp_object::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$5:temp_object::X const *,0:int,1:int) [line 27, column 9]\n n$8=_fun_temp_object::X_X(&x:temp_object::X*,&0$?%__sil_tmpSIL_materialize_temp__n$5:temp_object::X const &) [line 27, column 9]\n EXIT_SCOPE(n$6,n$7,n$8,n$9,0$?%__sil_tmpSIL_materialize_temp__n$5); [line 27, column 9]\n " shape="box"] +"assign_temp_div0#temp_object#6618523570396537240.fa2055065ca23850cee50c855993cd3a_4" [label="4: DeclStmt \n n$9=_fun___variable_initialization(&x:temp_object::X) assign_last [line 27, column 3]\n n$7=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$5:temp_object::X const ) assign_last [line 27, column 9]\n n$6=_fun_temp_object::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$5:temp_object::X const *,0:int,1:int) [line 27, column 9]\n n$8=_fun_temp_object::X_X(&x:temp_object::X*,&0$?%__sil_tmpSIL_materialize_temp__n$5:temp_object::X const &) [line 27, column 9]\n EXIT_SCOPE(n$6,n$7,n$8,n$9,0$?%__sil_tmpSIL_materialize_temp__n$5); [line 27, column 9]\n " shape="box"] "assign_temp_div0#temp_object#6618523570396537240.fa2055065ca23850cee50c855993cd3a_4" -> "assign_temp_div0#temp_object#6618523570396537240.fa2055065ca23850cee50c855993cd3a_3" ; @@ -33,7 +33,7 @@ digraph cfg { "getX#temp_object(class temp_object::X)#4720444219866178245.c6d7bacbd2aa751dffef569ff17890e7_2" [label="2: Exit temp_object::getX \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 24, column 40]\n " color=yellow style=filled] -"getX#temp_object(class temp_object::X)#4720444219866178245.c6d7bacbd2aa751dffef569ff17890e7_3" [label="3: Return Stmt \n n$0=*&__return_param:temp_object::X* [line 24, column 24]\n n$5=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:temp_object::X const ) [line 24, column 31]\n n$2=*&a:int [line 24, column 33]\n n$3=*&b:int [line 24, column 36]\n n$4=_fun_temp_object::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$1:temp_object::X const *,n$2:int,n$3:int) [line 24, column 31]\n n$6=_fun_temp_object::X_X(n$0:temp_object::X*,&0$?%__sil_tmpSIL_materialize_temp__n$1:temp_object::X const &) [line 24, column 31]\n NULLIFY(&a); [line 24, column 31]\n NULLIFY(&b); [line 24, column 31]\n NULLIFY(&__return_param); [line 24, column 31]\n EXIT_SCOPE(n$0,n$2,n$3,n$4,n$5,n$6,a,b,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 24, column 31]\n APPLY_ABSTRACTION; [line 24, column 31]\n " shape="box"] +"getX#temp_object(class temp_object::X)#4720444219866178245.c6d7bacbd2aa751dffef569ff17890e7_3" [label="3: Return Stmt \n n$0=*&__return_param:temp_object::X* [line 24, column 24]\n n$5=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:temp_object::X const ) assign_last [line 24, column 31]\n n$2=*&a:int [line 24, column 33]\n n$3=*&b:int [line 24, column 36]\n n$4=_fun_temp_object::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$1:temp_object::X const *,n$2:int,n$3:int) [line 24, column 31]\n n$6=_fun_temp_object::X_X(n$0:temp_object::X*,&0$?%__sil_tmpSIL_materialize_temp__n$1:temp_object::X const &) [line 24, column 31]\n NULLIFY(&a); [line 24, column 31]\n NULLIFY(&b); [line 24, column 31]\n NULLIFY(&__return_param); [line 24, column 31]\n EXIT_SCOPE(n$0,n$2,n$3,n$4,n$5,n$6,a,b,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 24, column 31]\n APPLY_ABSTRACTION; [line 24, column 31]\n " shape="box"] "getX#temp_object(class temp_object::X)#4720444219866178245.c6d7bacbd2aa751dffef569ff17890e7_3" -> "getX#temp_object(class temp_object::X)#4720444219866178245.c6d7bacbd2aa751dffef569ff17890e7_2" ; @@ -44,7 +44,7 @@ digraph cfg { "getX_field_div0#temp_object#12698122843139253036.854c4a3940ca05110785248e1303db49_2" [label="2: Exit temp_object::getX_field_div0 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 37, column 51]\n " color=yellow style=filled] -"getX_field_div0#temp_object#12698122843139253036.854c4a3940ca05110785248e1303db49_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X) [line 37, column 36]\n n$2=_fun_temp_object::getX(0:int,1:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X*) [line 37, column 36]\n n$4=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 37, column 36]\n n$5=_fun_temp_object::div(n$4:int) [line 37, column 32]\n *&return:int=n$5 [line 37, column 25]\n EXIT_SCOPE(n$2,n$3,n$4,n$5,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 37, column 25]\n APPLY_ABSTRACTION; [line 37, column 25]\n " shape="box"] +"getX_field_div0#temp_object#12698122843139253036.854c4a3940ca05110785248e1303db49_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X) assign_last [line 37, column 36]\n n$2=_fun_temp_object::getX(0:int,1:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X*) assign_last [line 37, column 36]\n n$4=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 37, column 36]\n n$5=_fun_temp_object::div(n$4:int) [line 37, column 32]\n *&return:int=n$5 [line 37, column 25]\n EXIT_SCOPE(n$2,n$3,n$4,n$5,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 37, column 25]\n APPLY_ABSTRACTION; [line 37, column 25]\n " shape="box"] "getX_field_div0#temp_object#12698122843139253036.854c4a3940ca05110785248e1303db49_3" -> "getX_field_div0#temp_object#12698122843139253036.854c4a3940ca05110785248e1303db49_2" ; @@ -55,7 +55,7 @@ digraph cfg { "getX_field_div1#temp_object#11953596240866039963.ee557e5aaabf95f2c8b1284adfc7249e_2" [label="2: Exit temp_object::getX_field_div1 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 43, column 51]\n " color=yellow style=filled] -"getX_field_div1#temp_object#11953596240866039963.ee557e5aaabf95f2c8b1284adfc7249e_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X) [line 43, column 36]\n n$2=_fun_temp_object::getX(1:int,0:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X*) [line 43, column 36]\n n$4=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 43, column 36]\n n$5=_fun_temp_object::div(n$4:int) [line 43, column 32]\n *&return:int=n$5 [line 43, column 25]\n EXIT_SCOPE(n$2,n$3,n$4,n$5,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 43, column 25]\n APPLY_ABSTRACTION; [line 43, column 25]\n " shape="box"] +"getX_field_div1#temp_object#11953596240866039963.ee557e5aaabf95f2c8b1284adfc7249e_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X) assign_last [line 43, column 36]\n n$2=_fun_temp_object::getX(1:int,0:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X*) assign_last [line 43, column 36]\n n$4=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 43, column 36]\n n$5=_fun_temp_object::div(n$4:int) [line 43, column 32]\n *&return:int=n$5 [line 43, column 25]\n EXIT_SCOPE(n$2,n$3,n$4,n$5,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 43, column 25]\n APPLY_ABSTRACTION; [line 43, column 25]\n " shape="box"] "getX_field_div1#temp_object#11953596240866039963.ee557e5aaabf95f2c8b1284adfc7249e_3" -> "getX_field_div1#temp_object#11953596240866039963.ee557e5aaabf95f2c8b1284adfc7249e_2" ; @@ -66,7 +66,7 @@ digraph cfg { "getX_method_div0#temp_object#10654710522454889600.9c743f651914acdd07ad2c70becfd89c_2" [label="2: Exit temp_object::getX_method_div0 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 39, column 51]\n " color=yellow style=filled] -"getX_method_div0#temp_object#10654710522454889600.9c743f651914acdd07ad2c70becfd89c_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X) [line 39, column 33]\n n$2=_fun_temp_object::getX(0:int,1:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X*) [line 39, column 33]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X [line 39, column 33]\n n$5=_fun_temp_object::X_div(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X&) [line 39, column 33]\n *&return:int=n$5 [line 39, column 26]\n EXIT_SCOPE(_,n$2,n$3,n$5,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 39, column 26]\n APPLY_ABSTRACTION; [line 39, column 26]\n " shape="box"] +"getX_method_div0#temp_object#10654710522454889600.9c743f651914acdd07ad2c70becfd89c_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X) assign_last [line 39, column 33]\n n$2=_fun_temp_object::getX(0:int,1:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X*) assign_last [line 39, column 33]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X [line 39, column 33]\n n$5=_fun_temp_object::X_div(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X&) [line 39, column 33]\n *&return:int=n$5 [line 39, column 26]\n EXIT_SCOPE(_,n$2,n$3,n$5,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 39, column 26]\n APPLY_ABSTRACTION; [line 39, column 26]\n " shape="box"] "getX_method_div0#temp_object#10654710522454889600.9c743f651914acdd07ad2c70becfd89c_3" -> "getX_method_div0#temp_object#10654710522454889600.9c743f651914acdd07ad2c70becfd89c_2" ; @@ -77,7 +77,7 @@ digraph cfg { "temp_field2_div0#temp_object#17763200808338657027.dd874be310bbf8e78129b073d73ad49f_2" [label="2: Exit temp_object::temp_field2_div0 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 33, column 46]\n " color=yellow style=filled] -"temp_field2_div0#temp_object#17763200808338657027.dd874be310bbf8e78129b073d73ad49f_3" [label="3: Return Stmt \n n$2=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X) [line 33, column 37]\n n$1=_fun_temp_object::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X*,0:int) [line 33, column 37]\n n$3=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 33, column 37]\n n$4=_fun_temp_object::div(n$3:int) [line 33, column 33]\n *&return:int=n$4 [line 33, column 26]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 33, column 26]\n APPLY_ABSTRACTION; [line 33, column 26]\n " shape="box"] +"temp_field2_div0#temp_object#17763200808338657027.dd874be310bbf8e78129b073d73ad49f_3" [label="3: Return Stmt \n n$2=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X) assign_last [line 33, column 37]\n n$1=_fun_temp_object::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X*,0:int) [line 33, column 37]\n n$3=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 33, column 37]\n n$4=_fun_temp_object::div(n$3:int) [line 33, column 33]\n *&return:int=n$4 [line 33, column 26]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 33, column 26]\n APPLY_ABSTRACTION; [line 33, column 26]\n " shape="box"] "temp_field2_div0#temp_object#17763200808338657027.dd874be310bbf8e78129b073d73ad49f_3" -> "temp_field2_div0#temp_object#17763200808338657027.dd874be310bbf8e78129b073d73ad49f_2" ; @@ -88,7 +88,7 @@ digraph cfg { "temp_field_div0#temp_object#15412040659245592666.f5d0fb2d0c8f868e114b6379ad654aef_2" [label="2: Exit temp_object::temp_field_div0 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 31, column 48]\n " color=yellow style=filled] -"temp_field_div0#temp_object#15412040659245592666.f5d0fb2d0c8f868e114b6379ad654aef_3" [label="3: Return Stmt \n n$2=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X) [line 31, column 36]\n n$1=_fun_temp_object::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X*,0:int,1:int) [line 31, column 36]\n n$3=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 31, column 36]\n n$4=_fun_temp_object::div(n$3:int) [line 31, column 32]\n *&return:int=n$4 [line 31, column 25]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 31, column 25]\n APPLY_ABSTRACTION; [line 31, column 25]\n " shape="box"] +"temp_field_div0#temp_object#15412040659245592666.f5d0fb2d0c8f868e114b6379ad654aef_3" [label="3: Return Stmt \n n$2=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X) assign_last [line 31, column 36]\n n$1=_fun_temp_object::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X*,0:int,1:int) [line 31, column 36]\n n$3=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 31, column 36]\n n$4=_fun_temp_object::div(n$3:int) [line 31, column 32]\n *&return:int=n$4 [line 31, column 25]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 31, column 25]\n APPLY_ABSTRACTION; [line 31, column 25]\n " shape="box"] "temp_field_div0#temp_object#15412040659245592666.f5d0fb2d0c8f868e114b6379ad654aef_3" -> "temp_field_div0#temp_object#15412040659245592666.f5d0fb2d0c8f868e114b6379ad654aef_2" ; @@ -99,7 +99,7 @@ digraph cfg { "temp_field_div1#temp_object#14919979518945721169.463c8bf1b85b2fefc9473e70e135e02d_2" [label="2: Exit temp_object::temp_field_div1 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 41, column 48]\n " color=yellow style=filled] -"temp_field_div1#temp_object#14919979518945721169.463c8bf1b85b2fefc9473e70e135e02d_3" [label="3: Return Stmt \n n$2=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X) [line 41, column 36]\n n$1=_fun_temp_object::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X*,1:int,0:int) [line 41, column 36]\n n$3=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 41, column 36]\n n$4=_fun_temp_object::div(n$3:int) [line 41, column 32]\n *&return:int=n$4 [line 41, column 25]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 41, column 25]\n APPLY_ABSTRACTION; [line 41, column 25]\n " shape="box"] +"temp_field_div1#temp_object#14919979518945721169.463c8bf1b85b2fefc9473e70e135e02d_3" [label="3: Return Stmt \n n$2=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X) assign_last [line 41, column 36]\n n$1=_fun_temp_object::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X*,1:int,0:int) [line 41, column 36]\n n$3=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 41, column 36]\n n$4=_fun_temp_object::div(n$3:int) [line 41, column 32]\n *&return:int=n$4 [line 41, column 25]\n EXIT_SCOPE(n$1,n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 41, column 25]\n APPLY_ABSTRACTION; [line 41, column 25]\n " shape="box"] "temp_field_div1#temp_object#14919979518945721169.463c8bf1b85b2fefc9473e70e135e02d_3" -> "temp_field_div1#temp_object#14919979518945721169.463c8bf1b85b2fefc9473e70e135e02d_2" ; @@ -110,7 +110,7 @@ digraph cfg { "temp_method_div0#temp_object#17009651611825801298.b27a48cdb872e8bc72f1181813e5d666_2" [label="2: Exit temp_object::temp_method_div0 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 35, column 48]\n " color=yellow style=filled] -"temp_method_div0#temp_object#17009651611825801298.b27a48cdb872e8bc72f1181813e5d666_3" [label="3: Return Stmt \n n$2=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X) [line 35, column 33]\n n$1=_fun_temp_object::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X*,0:int,1:int) [line 35, column 33]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X [line 35, column 33]\n n$4=_fun_temp_object::X_div(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X&) [line 35, column 33]\n *&return:int=n$4 [line 35, column 26]\n EXIT_SCOPE(_,n$1,n$2,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 35, column 26]\n APPLY_ABSTRACTION; [line 35, column 26]\n " shape="box"] +"temp_method_div0#temp_object#17009651611825801298.b27a48cdb872e8bc72f1181813e5d666_3" [label="3: Return Stmt \n n$2=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X) assign_last [line 35, column 33]\n n$1=_fun_temp_object::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X*,0:int,1:int) [line 35, column 33]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X [line 35, column 33]\n n$4=_fun_temp_object::X_div(&0$?%__sil_tmpSIL_materialize_temp__n$0:temp_object::X&) [line 35, column 33]\n *&return:int=n$4 [line 35, column 26]\n EXIT_SCOPE(_,n$1,n$2,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 35, column 26]\n APPLY_ABSTRACTION; [line 35, column 26]\n " shape="box"] "temp_method_div0#temp_object#17009651611825801298.b27a48cdb872e8bc72f1181813e5d666_3" -> "temp_method_div0#temp_object#17009651611825801298.b27a48cdb872e8bc72f1181813e5d666_2" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/exceptions/Exceptions.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/exceptions/Exceptions.cpp.dot index 574432510..0090dc5b8 100644 --- a/infer/tests/codetoanalyze/cpp/shared/exceptions/Exceptions.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/exceptions/Exceptions.cpp.dot @@ -11,7 +11,7 @@ digraph cfg { "FN_deref_null_after_catch_bad#4627123003703707696.43441e3badf1bb571cbe770f9d51a51c_3" -> "FN_deref_null_after_catch_bad#4627123003703707696.43441e3badf1bb571cbe770f9d51a51c_2" ; -"FN_deref_null_after_catch_bad#4627123003703707696.43441e3badf1bb571cbe770f9d51a51c_4" [label="4: ObjCCPPThrow \n n$7=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$5:std::runtime_error const ) [line 48, column 11]\n n$6=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmpSIL_materialize_temp__n$5:std::runtime_error const *,\"error\":char const *) [line 48, column 11]\n n$8=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmp__temp_construct_n$4:std::runtime_error*,&0$?%__sil_tmpSIL_materialize_temp__n$5:std::runtime_error const &) [line 48, column 11]\n n$9=_fun___infer_objc_cpp_throw(&0$?%__sil_tmp__temp_construct_n$4:std::runtime_error) [line 48, column 5]\n EXIT_SCOPE(n$6,n$7,n$8,n$9,0$?%__sil_tmpSIL_materialize_temp__n$5); [line 48, column 5]\n APPLY_ABSTRACTION; [line 48, column 5]\n " shape="box"] +"FN_deref_null_after_catch_bad#4627123003703707696.43441e3badf1bb571cbe770f9d51a51c_4" [label="4: ObjCCPPThrow \n n$7=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$5:std::runtime_error const ) assign_last [line 48, column 11]\n n$6=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmpSIL_materialize_temp__n$5:std::runtime_error const *,\"error\":char const *) [line 48, column 11]\n n$8=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmp__temp_construct_n$4:std::runtime_error*,&0$?%__sil_tmpSIL_materialize_temp__n$5:std::runtime_error const &) [line 48, column 11]\n n$9=_fun___infer_objc_cpp_throw(&0$?%__sil_tmp__temp_construct_n$4:std::runtime_error) [line 48, column 5]\n EXIT_SCOPE(n$6,n$7,n$8,n$9,0$?%__sil_tmpSIL_materialize_temp__n$5); [line 48, column 5]\n APPLY_ABSTRACTION; [line 48, column 5]\n " shape="box"] "FN_deref_null_after_catch_bad#4627123003703707696.43441e3badf1bb571cbe770f9d51a51c_4" -> "FN_deref_null_after_catch_bad#4627123003703707696.43441e3badf1bb571cbe770f9d51a51c_3" ; @@ -35,7 +35,7 @@ digraph cfg { "FN_deref_null_in_catch_bad#9297890526029657977.c83eec7c9ab8ce2e38ddbc08f8c3dfeb_3" -> "FN_deref_null_in_catch_bad#9297890526029657977.c83eec7c9ab8ce2e38ddbc08f8c3dfeb_2" ; -"FN_deref_null_in_catch_bad#9297890526029657977.c83eec7c9ab8ce2e38ddbc08f8c3dfeb_4" [label="4: ObjCCPPThrow \n n$5=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:std::runtime_error const ) [line 38, column 11]\n n$4=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmpSIL_materialize_temp__n$3:std::runtime_error const *,\"error\":char const *) [line 38, column 11]\n n$6=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmp__temp_construct_n$2:std::runtime_error*,&0$?%__sil_tmpSIL_materialize_temp__n$3:std::runtime_error const &) [line 38, column 11]\n n$7=_fun___infer_objc_cpp_throw(&0$?%__sil_tmp__temp_construct_n$2:std::runtime_error) [line 38, column 5]\n EXIT_SCOPE(n$4,n$5,n$6,n$7,0$?%__sil_tmpSIL_materialize_temp__n$3); [line 38, column 5]\n " shape="box"] +"FN_deref_null_in_catch_bad#9297890526029657977.c83eec7c9ab8ce2e38ddbc08f8c3dfeb_4" [label="4: ObjCCPPThrow \n n$5=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:std::runtime_error const ) assign_last [line 38, column 11]\n n$4=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmpSIL_materialize_temp__n$3:std::runtime_error const *,\"error\":char const *) [line 38, column 11]\n n$6=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmp__temp_construct_n$2:std::runtime_error*,&0$?%__sil_tmpSIL_materialize_temp__n$3:std::runtime_error const &) [line 38, column 11]\n n$7=_fun___infer_objc_cpp_throw(&0$?%__sil_tmp__temp_construct_n$2:std::runtime_error) [line 38, column 5]\n EXIT_SCOPE(n$4,n$5,n$6,n$7,0$?%__sil_tmpSIL_materialize_temp__n$3); [line 38, column 5]\n " shape="box"] "FN_deref_null_in_catch_bad#9297890526029657977.c83eec7c9ab8ce2e38ddbc08f8c3dfeb_4" -> "FN_deref_null_in_catch_bad#9297890526029657977.c83eec7c9ab8ce2e38ddbc08f8c3dfeb_3" ; @@ -44,7 +44,7 @@ digraph cfg { "FN_deref_null_in_catch_bad#9297890526029657977.c83eec7c9ab8ce2e38ddbc08f8c3dfeb_5" -> "FN_deref_null_in_catch_bad#9297890526029657977.c83eec7c9ab8ce2e38ddbc08f8c3dfeb_2" ; -"FN_deref_null_in_catch_bad#9297890526029657977.c83eec7c9ab8ce2e38ddbc08f8c3dfeb_6" [label="6: DeclStmt \n n$12=_fun___variable_initialization(&i:int*) [line 36, column 3]\n *&i:int*=null [line 36, column 3]\n EXIT_SCOPE(n$12); [line 36, column 3]\n " shape="box"] +"FN_deref_null_in_catch_bad#9297890526029657977.c83eec7c9ab8ce2e38ddbc08f8c3dfeb_6" [label="6: DeclStmt \n n$12=_fun___variable_initialization(&i:int*) assign_last [line 36, column 3]\n *&i:int*=null [line 36, column 3]\n EXIT_SCOPE(n$12); [line 36, column 3]\n " shape="box"] "FN_deref_null_in_catch_bad#9297890526029657977.c83eec7c9ab8ce2e38ddbc08f8c3dfeb_6" -> "FN_deref_null_in_catch_bad#9297890526029657977.c83eec7c9ab8ce2e38ddbc08f8c3dfeb_4" ; @@ -73,11 +73,11 @@ digraph cfg { "FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_6" -> "FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_8" ; -"FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_7" [label="7: ObjCCPPThrow \n n$7=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$5:std::length_error const ) [line 60, column 13]\n n$6=_fun_std::length_error_length_error(&0$?%__sil_tmpSIL_materialize_temp__n$5:std::length_error const *,\"error\":char const *) [line 60, column 13]\n n$8=_fun_std::length_error_length_error(&0$?%__sil_tmp__temp_construct_n$4:std::length_error*,&0$?%__sil_tmpSIL_materialize_temp__n$5:std::length_error const &) [line 60, column 13]\n n$9=_fun___infer_objc_cpp_throw(&0$?%__sil_tmp__temp_construct_n$4:std::length_error) [line 60, column 7]\n EXIT_SCOPE(n$6,n$7,n$8,n$9,0$?%__sil_tmpSIL_materialize_temp__n$5); [line 60, column 7]\n APPLY_ABSTRACTION; [line 60, column 7]\n " shape="box"] +"FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_7" [label="7: ObjCCPPThrow \n n$7=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$5:std::length_error const ) assign_last [line 60, column 13]\n n$6=_fun_std::length_error_length_error(&0$?%__sil_tmpSIL_materialize_temp__n$5:std::length_error const *,\"error\":char const *) [line 60, column 13]\n n$8=_fun_std::length_error_length_error(&0$?%__sil_tmp__temp_construct_n$4:std::length_error*,&0$?%__sil_tmpSIL_materialize_temp__n$5:std::length_error const &) [line 60, column 13]\n n$9=_fun___infer_objc_cpp_throw(&0$?%__sil_tmp__temp_construct_n$4:std::length_error) [line 60, column 7]\n EXIT_SCOPE(n$6,n$7,n$8,n$9,0$?%__sil_tmpSIL_materialize_temp__n$5); [line 60, column 7]\n APPLY_ABSTRACTION; [line 60, column 7]\n " shape="box"] "FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_7" -> "FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_4" ; -"FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_8" [label="8: ObjCCPPThrow \n n$14=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$12:std::range_error const ) [line 62, column 13]\n n$13=_fun_std::range_error_range_error(&0$?%__sil_tmpSIL_materialize_temp__n$12:std::range_error const *,\"error\":char const *) [line 62, column 13]\n n$15=_fun_std::range_error_range_error(&0$?%__sil_tmp__temp_construct_n$11:std::range_error*,&0$?%__sil_tmpSIL_materialize_temp__n$12:std::range_error const &) [line 62, column 13]\n n$16=_fun___infer_objc_cpp_throw(&0$?%__sil_tmp__temp_construct_n$11:std::range_error) [line 62, column 7]\n EXIT_SCOPE(n$13,n$14,n$15,n$16,0$?%__sil_tmpSIL_materialize_temp__n$12); [line 62, column 7]\n APPLY_ABSTRACTION; [line 62, column 7]\n " shape="box"] +"FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_8" [label="8: ObjCCPPThrow \n n$14=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$12:std::range_error const ) assign_last [line 62, column 13]\n n$13=_fun_std::range_error_range_error(&0$?%__sil_tmpSIL_materialize_temp__n$12:std::range_error const *,\"error\":char const *) [line 62, column 13]\n n$15=_fun_std::range_error_range_error(&0$?%__sil_tmp__temp_construct_n$11:std::range_error*,&0$?%__sil_tmpSIL_materialize_temp__n$12:std::range_error const &) [line 62, column 13]\n n$16=_fun___infer_objc_cpp_throw(&0$?%__sil_tmp__temp_construct_n$11:std::range_error) [line 62, column 7]\n EXIT_SCOPE(n$13,n$14,n$15,n$16,0$?%__sil_tmpSIL_materialize_temp__n$12); [line 62, column 7]\n APPLY_ABSTRACTION; [line 62, column 7]\n " shape="box"] "FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_8" -> "FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_4" ; @@ -89,12 +89,12 @@ digraph cfg { "FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_10" -> "FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_2" ; -"FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_11" [label="11: DeclStmt \n n$26=_fun___variable_initialization(&j:int*) [line 57, column 3]\n *&j:int*=null [line 57, column 3]\n EXIT_SCOPE(n$26); [line 57, column 3]\n " shape="box"] +"FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_11" [label="11: DeclStmt \n n$26=_fun___variable_initialization(&j:int*) assign_last [line 57, column 3]\n *&j:int*=null [line 57, column 3]\n EXIT_SCOPE(n$26); [line 57, column 3]\n " shape="box"] "FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_11" -> "FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_5" ; "FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_11" -> "FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_6" ; -"FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_12" [label="12: DeclStmt \n n$27=_fun___variable_initialization(&i:int*) [line 56, column 3]\n *&i:int*=null [line 56, column 3]\n EXIT_SCOPE(n$27); [line 56, column 3]\n " shape="box"] +"FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_12" [label="12: DeclStmt \n n$27=_fun___variable_initialization(&i:int*) assign_last [line 56, column 3]\n *&i:int*=null [line 56, column 3]\n EXIT_SCOPE(n$27); [line 56, column 3]\n " shape="box"] "FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_12" -> "FN_multiple_catches_bad#4595182522053295670.680a793e449c2d7439ff6441ca69fa98_11" ; @@ -105,7 +105,7 @@ digraph cfg { "basic_throw_ok#10529188890980782893.c9e1b8dd080b2621cfca65612331859d_2" [label="2: Exit basic_throw_ok \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$2); [line 27, column 64]\n NULLIFY(&0$?%__sil_tmp__temp_construct_n$1); [line 27, column 64]\n " color=yellow style=filled] -"basic_throw_ok#10529188890980782893.c9e1b8dd080b2621cfca65612331859d_3" [label="3: ObjCCPPThrow \n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$2:std::runtime_error const ) [line 27, column 31]\n n$3=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmpSIL_materialize_temp__n$2:std::runtime_error const *,\"throwing!\":char const *) [line 27, column 31]\n n$5=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmp__temp_construct_n$1:std::runtime_error*,&0$?%__sil_tmpSIL_materialize_temp__n$2:std::runtime_error const &) [line 27, column 31]\n n$6=_fun___infer_objc_cpp_throw(&0$?%__sil_tmp__temp_construct_n$1:std::runtime_error) [line 27, column 25]\n EXIT_SCOPE(n$3,n$4,n$5,n$6,0$?%__sil_tmpSIL_materialize_temp__n$2); [line 27, column 25]\n APPLY_ABSTRACTION; [line 27, column 25]\n " shape="box"] +"basic_throw_ok#10529188890980782893.c9e1b8dd080b2621cfca65612331859d_3" [label="3: ObjCCPPThrow \n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$2:std::runtime_error const ) assign_last [line 27, column 31]\n n$3=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmpSIL_materialize_temp__n$2:std::runtime_error const *,\"throwing!\":char const *) [line 27, column 31]\n n$5=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmp__temp_construct_n$1:std::runtime_error*,&0$?%__sil_tmpSIL_materialize_temp__n$2:std::runtime_error const &) [line 27, column 31]\n n$6=_fun___infer_objc_cpp_throw(&0$?%__sil_tmp__temp_construct_n$1:std::runtime_error) [line 27, column 25]\n EXIT_SCOPE(n$3,n$4,n$5,n$6,0$?%__sil_tmpSIL_materialize_temp__n$2); [line 27, column 25]\n APPLY_ABSTRACTION; [line 27, column 25]\n " shape="box"] "basic_throw_ok#10529188890980782893.c9e1b8dd080b2621cfca65612331859d_3" -> "basic_throw_ok#10529188890980782893.c9e1b8dd080b2621cfca65612331859d_2" ; @@ -131,11 +131,11 @@ digraph cfg { "dead_deref_null_after_throw_ok#12025371096822526715.42d41c040f3a321bb94f60bf7b55d001_3" -> "dead_deref_null_after_throw_ok#12025371096822526715.42d41c040f3a321bb94f60bf7b55d001_2" ; -"dead_deref_null_after_throw_ok#12025371096822526715.42d41c040f3a321bb94f60bf7b55d001_4" [label="4: ObjCCPPThrow \n n$6=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$4:std::runtime_error const ) [line 31, column 9]\n n$5=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmpSIL_materialize_temp__n$4:std::runtime_error const *,\"throwing!\":char const *) [line 31, column 9]\n n$7=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmp__temp_construct_n$3:std::runtime_error*,&0$?%__sil_tmpSIL_materialize_temp__n$4:std::runtime_error const &) [line 31, column 9]\n n$8=_fun___infer_objc_cpp_throw(&0$?%__sil_tmp__temp_construct_n$3:std::runtime_error) [line 31, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,n$8,0$?%__sil_tmpSIL_materialize_temp__n$4); [line 31, column 3]\n " shape="box"] +"dead_deref_null_after_throw_ok#12025371096822526715.42d41c040f3a321bb94f60bf7b55d001_4" [label="4: ObjCCPPThrow \n n$6=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$4:std::runtime_error const ) assign_last [line 31, column 9]\n n$5=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmpSIL_materialize_temp__n$4:std::runtime_error const *,\"throwing!\":char const *) [line 31, column 9]\n n$7=_fun_std::runtime_error_runtime_error(&0$?%__sil_tmp__temp_construct_n$3:std::runtime_error*,&0$?%__sil_tmpSIL_materialize_temp__n$4:std::runtime_error const &) [line 31, column 9]\n n$8=_fun___infer_objc_cpp_throw(&0$?%__sil_tmp__temp_construct_n$3:std::runtime_error) [line 31, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,n$8,0$?%__sil_tmpSIL_materialize_temp__n$4); [line 31, column 3]\n " shape="box"] "dead_deref_null_after_throw_ok#12025371096822526715.42d41c040f3a321bb94f60bf7b55d001_4" -> "dead_deref_null_after_throw_ok#12025371096822526715.42d41c040f3a321bb94f60bf7b55d001_3" ; -"dead_deref_null_after_throw_ok#12025371096822526715.42d41c040f3a321bb94f60bf7b55d001_5" [label="5: DeclStmt \n n$9=_fun___variable_initialization(&i:int*) [line 30, column 3]\n *&i:int*=null [line 30, column 3]\n EXIT_SCOPE(n$9); [line 30, column 3]\n " shape="box"] +"dead_deref_null_after_throw_ok#12025371096822526715.42d41c040f3a321bb94f60bf7b55d001_5" [label="5: DeclStmt \n n$9=_fun___variable_initialization(&i:int*) assign_last [line 30, column 3]\n *&i:int*=null [line 30, column 3]\n EXIT_SCOPE(n$9); [line 30, column 3]\n " shape="box"] "dead_deref_null_after_throw_ok#12025371096822526715.42d41c040f3a321bb94f60bf7b55d001_5" -> "dead_deref_null_after_throw_ok#12025371096822526715.42d41c040f3a321bb94f60bf7b55d001_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/lambda/lambda1.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/lambda/lambda1.cpp.dot index 542c580ec..b3b66e0f3 100644 --- a/infer/tests/codetoanalyze/cpp/shared/lambda/lambda1.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/lambda/lambda1.cpp.dot @@ -11,7 +11,7 @@ digraph cfg { "bar#13629960763458822780.27859d4aca4c920a20241f1b78082005_3" -> "bar#13629960763458822780.27859d4aca4c920a20241f1b78082005_2" ; -"bar#13629960763458822780.27859d4aca4c920a20241f1b78082005_4" [label="4: DeclStmt \n n$8=_fun___variable_initialization(&func:bar::lambda_shared_lambda_lambda1.cpp:9:15) [line 9, column 3]\n n$6=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$5:bar::lambda_shared_lambda_lambda1.cpp:9:15) [line 9, column 15]\n *&0$?%__sil_tmpSIL_materialize_temp__n$5:bar::lambda_shared_lambda_lambda1.cpp:9:15=(_fun_bar::lambda_shared_lambda_lambda1.cpp:9:15_operator()) [line 9, column 15]\n n$7=_fun_bar::lambda_shared_lambda_lambda1.cpp:9:15_(&func:bar::lambda_shared_lambda_lambda1.cpp:9:15*,&0$?%__sil_tmpSIL_materialize_temp__n$5:bar::lambda_shared_lambda_lambda1.cpp:9:15&) [line 9, column 15]\n EXIT_SCOPE(n$6,n$7,n$8,0$?%__sil_tmpSIL_materialize_temp__n$5); [line 9, column 15]\n " shape="box"] +"bar#13629960763458822780.27859d4aca4c920a20241f1b78082005_4" [label="4: DeclStmt \n n$8=_fun___variable_initialization(&func:bar::lambda_shared_lambda_lambda1.cpp:9:15) assign_last [line 9, column 3]\n n$6=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$5:bar::lambda_shared_lambda_lambda1.cpp:9:15) assign_last [line 9, column 15]\n *&0$?%__sil_tmpSIL_materialize_temp__n$5:bar::lambda_shared_lambda_lambda1.cpp:9:15=(_fun_bar::lambda_shared_lambda_lambda1.cpp:9:15_operator()) [line 9, column 15]\n n$7=_fun_bar::lambda_shared_lambda_lambda1.cpp:9:15_(&func:bar::lambda_shared_lambda_lambda1.cpp:9:15*,&0$?%__sil_tmpSIL_materialize_temp__n$5:bar::lambda_shared_lambda_lambda1.cpp:9:15&) [line 9, column 15]\n EXIT_SCOPE(n$6,n$7,n$8,0$?%__sil_tmpSIL_materialize_temp__n$5); [line 9, column 15]\n " shape="box"] "bar#13629960763458822780.27859d4aca4c920a20241f1b78082005_4" -> "bar#13629960763458822780.27859d4aca4c920a20241f1b78082005_3" ; @@ -26,11 +26,11 @@ digraph cfg { "capture_by_ref#4375601249296069049.1d794578c048d96b25fb1e90dbaa8225_3" -> "capture_by_ref#4375601249296069049.1d794578c048d96b25fb1e90dbaa8225_2" ; -"capture_by_ref#4375601249296069049.1d794578c048d96b25fb1e90dbaa8225_4" [label="4: Call _fun_capture_by_ref::lambda_shared_lambda_lambda1.cpp:36:3_operator() \n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:capture_by_ref::lambda_shared_lambda_lambda1.cpp:36:3) [line 36, column 3]\n *&0$?%__sil_tmpSIL_materialize_temp__n$3:capture_by_ref::lambda_shared_lambda_lambda1.cpp:36:3=(_fun_capture_by_ref::lambda_shared_lambda_lambda1.cpp:36:3_operator(),&x) [line 36, column 3]\n n$5=_fun_capture_by_ref::lambda_shared_lambda_lambda1.cpp:36:3_operator()(&0$?%__sil_tmpSIL_materialize_temp__n$3:capture_by_ref::lambda_shared_lambda_lambda1.cpp:36:3&) [line 36, column 3]\n EXIT_SCOPE(n$4,n$5,0$?%__sil_tmpSIL_materialize_temp__n$3); [line 36, column 3]\n " shape="box"] +"capture_by_ref#4375601249296069049.1d794578c048d96b25fb1e90dbaa8225_4" [label="4: Call _fun_capture_by_ref::lambda_shared_lambda_lambda1.cpp:36:3_operator() \n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:capture_by_ref::lambda_shared_lambda_lambda1.cpp:36:3) assign_last [line 36, column 3]\n *&0$?%__sil_tmpSIL_materialize_temp__n$3:capture_by_ref::lambda_shared_lambda_lambda1.cpp:36:3=(_fun_capture_by_ref::lambda_shared_lambda_lambda1.cpp:36:3_operator(),&x) [line 36, column 3]\n n$5=_fun_capture_by_ref::lambda_shared_lambda_lambda1.cpp:36:3_operator()(&0$?%__sil_tmpSIL_materialize_temp__n$3:capture_by_ref::lambda_shared_lambda_lambda1.cpp:36:3&) [line 36, column 3]\n EXIT_SCOPE(n$4,n$5,0$?%__sil_tmpSIL_materialize_temp__n$3); [line 36, column 3]\n " shape="box"] "capture_by_ref#4375601249296069049.1d794578c048d96b25fb1e90dbaa8225_4" -> "capture_by_ref#4375601249296069049.1d794578c048d96b25fb1e90dbaa8225_3" ; -"capture_by_ref#4375601249296069049.1d794578c048d96b25fb1e90dbaa8225_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x:int) [line 35, column 3]\n *&x:int=0 [line 35, column 3]\n EXIT_SCOPE(n$6); [line 35, column 3]\n " shape="box"] +"capture_by_ref#4375601249296069049.1d794578c048d96b25fb1e90dbaa8225_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x:int) assign_last [line 35, column 3]\n *&x:int=0 [line 35, column 3]\n EXIT_SCOPE(n$6); [line 35, column 3]\n " shape="box"] "capture_by_ref#4375601249296069049.1d794578c048d96b25fb1e90dbaa8225_5" -> "capture_by_ref#4375601249296069049.1d794578c048d96b25fb1e90dbaa8225_4" ; @@ -45,11 +45,11 @@ digraph cfg { "foo#972162870672026475.86d7db357d6a36081d09067fb38ce85e_3" -> "foo#972162870672026475.86d7db357d6a36081d09067fb38ce85e_2" ; -"foo#972162870672026475.86d7db357d6a36081d09067fb38ce85e_4" [label="4: DeclStmt \n n$10=_fun___variable_initialization(&y:foo::lambda_shared_lambda_lambda1.cpp:18:12) [line 18, column 3]\n n$8=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:foo::lambda_shared_lambda_lambda1.cpp:18:12) [line 18, column 12]\n *&0$?%__sil_tmpSIL_materialize_temp__n$7:foo::lambda_shared_lambda_lambda1.cpp:18:12=(_fun_foo::lambda_shared_lambda_lambda1.cpp:18:12_operator()) [line 18, column 12]\n n$9=_fun_foo::lambda_shared_lambda_lambda1.cpp:18:12_(&y:foo::lambda_shared_lambda_lambda1.cpp:18:12*,&0$?%__sil_tmpSIL_materialize_temp__n$7:foo::lambda_shared_lambda_lambda1.cpp:18:12&) [line 18, column 12]\n EXIT_SCOPE(n$8,n$9,n$10,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 18, column 12]\n " shape="box"] +"foo#972162870672026475.86d7db357d6a36081d09067fb38ce85e_4" [label="4: DeclStmt \n n$10=_fun___variable_initialization(&y:foo::lambda_shared_lambda_lambda1.cpp:18:12) assign_last [line 18, column 3]\n n$8=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$7:foo::lambda_shared_lambda_lambda1.cpp:18:12) assign_last [line 18, column 12]\n *&0$?%__sil_tmpSIL_materialize_temp__n$7:foo::lambda_shared_lambda_lambda1.cpp:18:12=(_fun_foo::lambda_shared_lambda_lambda1.cpp:18:12_operator()) [line 18, column 12]\n n$9=_fun_foo::lambda_shared_lambda_lambda1.cpp:18:12_(&y:foo::lambda_shared_lambda_lambda1.cpp:18:12*,&0$?%__sil_tmpSIL_materialize_temp__n$7:foo::lambda_shared_lambda_lambda1.cpp:18:12&) [line 18, column 12]\n EXIT_SCOPE(n$8,n$9,n$10,0$?%__sil_tmpSIL_materialize_temp__n$7); [line 18, column 12]\n " shape="box"] "foo#972162870672026475.86d7db357d6a36081d09067fb38ce85e_4" -> "foo#972162870672026475.86d7db357d6a36081d09067fb38ce85e_3" ; -"foo#972162870672026475.86d7db357d6a36081d09067fb38ce85e_5" [label="5: DeclStmt \n n$14=_fun___variable_initialization(&unused:foo::lambda_shared_lambda_lambda1.cpp:17:17) [line 17, column 3]\n n$12=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$11:foo::lambda_shared_lambda_lambda1.cpp:17:17) [line 17, column 17]\n *&0$?%__sil_tmpSIL_materialize_temp__n$11:foo::lambda_shared_lambda_lambda1.cpp:17:17=(_fun_foo::lambda_shared_lambda_lambda1.cpp:17:17_operator()) [line 17, column 17]\n n$13=_fun_foo::lambda_shared_lambda_lambda1.cpp:17:17_(&unused:foo::lambda_shared_lambda_lambda1.cpp:17:17*,&0$?%__sil_tmpSIL_materialize_temp__n$11:foo::lambda_shared_lambda_lambda1.cpp:17:17&) [line 17, column 17]\n EXIT_SCOPE(n$12,n$13,n$14,0$?%__sil_tmpSIL_materialize_temp__n$11); [line 17, column 17]\n " shape="box"] +"foo#972162870672026475.86d7db357d6a36081d09067fb38ce85e_5" [label="5: DeclStmt \n n$14=_fun___variable_initialization(&unused:foo::lambda_shared_lambda_lambda1.cpp:17:17) assign_last [line 17, column 3]\n n$12=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$11:foo::lambda_shared_lambda_lambda1.cpp:17:17) assign_last [line 17, column 17]\n *&0$?%__sil_tmpSIL_materialize_temp__n$11:foo::lambda_shared_lambda_lambda1.cpp:17:17=(_fun_foo::lambda_shared_lambda_lambda1.cpp:17:17_operator()) [line 17, column 17]\n n$13=_fun_foo::lambda_shared_lambda_lambda1.cpp:17:17_(&unused:foo::lambda_shared_lambda_lambda1.cpp:17:17*,&0$?%__sil_tmpSIL_materialize_temp__n$11:foo::lambda_shared_lambda_lambda1.cpp:17:17&) [line 17, column 17]\n EXIT_SCOPE(n$12,n$13,n$14,0$?%__sil_tmpSIL_materialize_temp__n$11); [line 17, column 17]\n " shape="box"] "foo#972162870672026475.86d7db357d6a36081d09067fb38ce85e_5" -> "foo#972162870672026475.86d7db357d6a36081d09067fb38ce85e_4" ; @@ -64,7 +64,7 @@ digraph cfg { "fooOK#5521302935427608539.9c36ec052efdd50972817d895666852a_3" -> "fooOK#5521302935427608539.9c36ec052efdd50972817d895666852a_2" ; -"fooOK#5521302935427608539.9c36ec052efdd50972817d895666852a_4" [label="4: DeclStmt \n n$8=_fun___variable_initialization(&y:fooOK::lambda_shared_lambda_lambda1.cpp:24:12) [line 24, column 3]\n n$6=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$5:fooOK::lambda_shared_lambda_lambda1.cpp:24:12) [line 24, column 12]\n *&0$?%__sil_tmpSIL_materialize_temp__n$5:fooOK::lambda_shared_lambda_lambda1.cpp:24:12=(_fun_fooOK::lambda_shared_lambda_lambda1.cpp:24:12_operator()) [line 24, column 12]\n n$7=_fun_fooOK::lambda_shared_lambda_lambda1.cpp:24:12_(&y:fooOK::lambda_shared_lambda_lambda1.cpp:24:12*,&0$?%__sil_tmpSIL_materialize_temp__n$5:fooOK::lambda_shared_lambda_lambda1.cpp:24:12&) [line 24, column 12]\n EXIT_SCOPE(n$6,n$7,n$8,0$?%__sil_tmpSIL_materialize_temp__n$5); [line 24, column 12]\n " shape="box"] +"fooOK#5521302935427608539.9c36ec052efdd50972817d895666852a_4" [label="4: DeclStmt \n n$8=_fun___variable_initialization(&y:fooOK::lambda_shared_lambda_lambda1.cpp:24:12) assign_last [line 24, column 3]\n n$6=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$5:fooOK::lambda_shared_lambda_lambda1.cpp:24:12) assign_last [line 24, column 12]\n *&0$?%__sil_tmpSIL_materialize_temp__n$5:fooOK::lambda_shared_lambda_lambda1.cpp:24:12=(_fun_fooOK::lambda_shared_lambda_lambda1.cpp:24:12_operator()) [line 24, column 12]\n n$7=_fun_fooOK::lambda_shared_lambda_lambda1.cpp:24:12_(&y:fooOK::lambda_shared_lambda_lambda1.cpp:24:12*,&0$?%__sil_tmpSIL_materialize_temp__n$5:fooOK::lambda_shared_lambda_lambda1.cpp:24:12&) [line 24, column 12]\n EXIT_SCOPE(n$6,n$7,n$8,0$?%__sil_tmpSIL_materialize_temp__n$5); [line 24, column 12]\n " shape="box"] "fooOK#5521302935427608539.9c36ec052efdd50972817d895666852a_4" -> "fooOK#5521302935427608539.9c36ec052efdd50972817d895666852a_3" ; @@ -75,11 +75,11 @@ digraph cfg { "init_capture1#11582985675627962568.58b9ce334267f411dc5e1c70bd53eb81_2" [label="2: Exit init_capture1 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 42, column 1]\n " color=yellow style=filled] -"init_capture1#11582985675627962568.58b9ce334267f411dc5e1c70bd53eb81_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&i:int) [line 41, column 10]\n *&i:int=0 [line 41, column 10]\n EXIT_SCOPE(n$2); [line 41, column 10]\n " shape="box"] +"init_capture1#11582985675627962568.58b9ce334267f411dc5e1c70bd53eb81_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&i:int) assign_last [line 41, column 10]\n *&i:int=0 [line 41, column 10]\n EXIT_SCOPE(n$2); [line 41, column 10]\n " shape="box"] "init_capture1#11582985675627962568.58b9ce334267f411dc5e1c70bd53eb81_3" -> "init_capture1#11582985675627962568.58b9ce334267f411dc5e1c70bd53eb81_4" ; -"init_capture1#11582985675627962568.58b9ce334267f411dc5e1c70bd53eb81_4" [label="4: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:init_capture1::lambda_shared_lambda_lambda1.cpp:41:10) [line 41, column 10]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1:init_capture1::lambda_shared_lambda_lambda1.cpp:41:10=(_fun_init_capture1::lambda_shared_lambda_lambda1.cpp:41:10_operator(),&i) [line 41, column 10]\n n$4=_fun_init_capture1::lambda_shared_lambda_lambda1.cpp:41:10_operator()(&0$?%__sil_tmpSIL_materialize_temp__n$1:init_capture1::lambda_shared_lambda_lambda1.cpp:41:10&) [line 41, column 10]\n *&return:int=n$4 [line 41, column 3]\n NULLIFY(&i); [line 41, column 3]\n EXIT_SCOPE(n$3,n$4,i,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 41, column 3]\n APPLY_ABSTRACTION; [line 41, column 3]\n " shape="box"] +"init_capture1#11582985675627962568.58b9ce334267f411dc5e1c70bd53eb81_4" [label="4: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:init_capture1::lambda_shared_lambda_lambda1.cpp:41:10) assign_last [line 41, column 10]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1:init_capture1::lambda_shared_lambda_lambda1.cpp:41:10=(_fun_init_capture1::lambda_shared_lambda_lambda1.cpp:41:10_operator(),&i) [line 41, column 10]\n n$4=_fun_init_capture1::lambda_shared_lambda_lambda1.cpp:41:10_operator()(&0$?%__sil_tmpSIL_materialize_temp__n$1:init_capture1::lambda_shared_lambda_lambda1.cpp:41:10&) [line 41, column 10]\n *&return:int=n$4 [line 41, column 3]\n NULLIFY(&i); [line 41, column 3]\n EXIT_SCOPE(n$3,n$4,i,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 41, column 3]\n APPLY_ABSTRACTION; [line 41, column 3]\n " shape="box"] "init_capture1#11582985675627962568.58b9ce334267f411dc5e1c70bd53eb81_4" -> "init_capture1#11582985675627962568.58b9ce334267f411dc5e1c70bd53eb81_2" ; @@ -90,23 +90,23 @@ digraph cfg { "init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_2" [label="2: Exit init_capture2 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 47, column 1]\n " color=yellow style=filled] -"init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&c:int) [line 46, column 10]\n *&c:int=3 [line 46, column 10]\n EXIT_SCOPE(n$2); [line 46, column 10]\n " shape="box"] +"init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&c:int) assign_last [line 46, column 10]\n *&c:int=3 [line 46, column 10]\n EXIT_SCOPE(n$2); [line 46, column 10]\n " shape="box"] "init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_3" -> "init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_6" ; -"init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&b:int) [line 46, column 10]\n *&b:int=0 [line 46, column 10]\n EXIT_SCOPE(n$3); [line 46, column 10]\n " shape="box"] +"init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&b:int) assign_last [line 46, column 10]\n *&b:int=0 [line 46, column 10]\n EXIT_SCOPE(n$3); [line 46, column 10]\n " shape="box"] "init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_4" -> "init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_3" ; -"init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&a:int) [line 46, column 10]\n n$4=*&i:int [line 46, column 15]\n *&a:int=n$4 [line 46, column 10]\n NULLIFY(&i); [line 46, column 10]\n EXIT_SCOPE(n$4,n$5,i); [line 46, column 10]\n " shape="box"] +"init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&a:int) assign_last [line 46, column 10]\n n$4=*&i:int [line 46, column 15]\n *&a:int=n$4 [line 46, column 10]\n NULLIFY(&i); [line 46, column 10]\n EXIT_SCOPE(n$4,n$5,i); [line 46, column 10]\n " shape="box"] "init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_5" -> "init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_4" ; -"init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_6" [label="6: Return Stmt \n n$6=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:init_capture2::lambda_shared_lambda_lambda1.cpp:46:10) [line 46, column 10]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1:init_capture2::lambda_shared_lambda_lambda1.cpp:46:10=(_fun_init_capture2::lambda_shared_lambda_lambda1.cpp:46:10_operator(),&a,&b,&c) [line 46, column 10]\n n$7=_fun_init_capture2::lambda_shared_lambda_lambda1.cpp:46:10_operator()(&0$?%__sil_tmpSIL_materialize_temp__n$1:init_capture2::lambda_shared_lambda_lambda1.cpp:46:10&) [line 46, column 10]\n *&return:int=n$7 [line 46, column 3]\n NULLIFY(&a); [line 46, column 3]\n NULLIFY(&b); [line 46, column 3]\n NULLIFY(&c); [line 46, column 3]\n EXIT_SCOPE(n$6,n$7,a,b,c,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 46, column 3]\n APPLY_ABSTRACTION; [line 46, column 3]\n " shape="box"] +"init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_6" [label="6: Return Stmt \n n$6=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:init_capture2::lambda_shared_lambda_lambda1.cpp:46:10) assign_last [line 46, column 10]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1:init_capture2::lambda_shared_lambda_lambda1.cpp:46:10=(_fun_init_capture2::lambda_shared_lambda_lambda1.cpp:46:10_operator(),&a,&b,&c) [line 46, column 10]\n n$7=_fun_init_capture2::lambda_shared_lambda_lambda1.cpp:46:10_operator()(&0$?%__sil_tmpSIL_materialize_temp__n$1:init_capture2::lambda_shared_lambda_lambda1.cpp:46:10&) [line 46, column 10]\n *&return:int=n$7 [line 46, column 3]\n NULLIFY(&a); [line 46, column 3]\n NULLIFY(&b); [line 46, column 3]\n NULLIFY(&c); [line 46, column 3]\n EXIT_SCOPE(n$6,n$7,a,b,c,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 46, column 3]\n APPLY_ABSTRACTION; [line 46, column 3]\n " shape="box"] "init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_6" -> "init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_2" ; -"init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_7" [label="7: DeclStmt \n n$9=_fun___variable_initialization(&i:int) [line 45, column 3]\n *&i:int=0 [line 45, column 3]\n EXIT_SCOPE(n$9); [line 45, column 3]\n " shape="box"] +"init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_7" [label="7: DeclStmt \n n$9=_fun___variable_initialization(&i:int) assign_last [line 45, column 3]\n *&i:int=0 [line 45, column 3]\n EXIT_SCOPE(n$9); [line 45, column 3]\n " shape="box"] "init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_7" -> "init_capture2#11582143449720942167.039b5039af3b7807e4b00950523a9f3a_5" ; @@ -117,15 +117,15 @@ digraph cfg { "normal_capture#5533029764254319855.11493b249dddd657790695e287170b84_2" [label="2: Exit normal_capture \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 32, column 1]\n " color=yellow style=filled] -"normal_capture#5533029764254319855.11493b249dddd657790695e287170b84_3" [label="3: Return Stmt \n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:normal_capture::lambda_shared_lambda_lambda1.cpp:31:10) [line 31, column 10]\n n$3=*&x:int [line 31, column 10]\n n$2=*&y:int [line 31, column 10]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1:normal_capture::lambda_shared_lambda_lambda1.cpp:31:10=(_fun_normal_capture::lambda_shared_lambda_lambda1.cpp:31:10_operator(),(n$3 &x:int),(n$2 &y:int)) [line 31, column 10]\n n$5=_fun_normal_capture::lambda_shared_lambda_lambda1.cpp:31:10_operator()(&0$?%__sil_tmpSIL_materialize_temp__n$1:normal_capture::lambda_shared_lambda_lambda1.cpp:31:10&) [line 31, column 10]\n *&return:int=n$5 [line 31, column 3]\n NULLIFY(&y); [line 31, column 3]\n NULLIFY(&x); [line 31, column 3]\n EXIT_SCOPE(n$2,n$3,n$4,n$5,y,0$?%__sil_tmpSIL_materialize_temp__n$1,x); [line 31, column 3]\n APPLY_ABSTRACTION; [line 31, column 3]\n " shape="box"] +"normal_capture#5533029764254319855.11493b249dddd657790695e287170b84_3" [label="3: Return Stmt \n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:normal_capture::lambda_shared_lambda_lambda1.cpp:31:10) assign_last [line 31, column 10]\n n$3=*&x:int [line 31, column 10]\n n$2=*&y:int [line 31, column 10]\n *&0$?%__sil_tmpSIL_materialize_temp__n$1:normal_capture::lambda_shared_lambda_lambda1.cpp:31:10=(_fun_normal_capture::lambda_shared_lambda_lambda1.cpp:31:10_operator(),(n$3 &x:int),(n$2 &y:int)) [line 31, column 10]\n n$5=_fun_normal_capture::lambda_shared_lambda_lambda1.cpp:31:10_operator()(&0$?%__sil_tmpSIL_materialize_temp__n$1:normal_capture::lambda_shared_lambda_lambda1.cpp:31:10&) [line 31, column 10]\n *&return:int=n$5 [line 31, column 3]\n NULLIFY(&y); [line 31, column 3]\n NULLIFY(&x); [line 31, column 3]\n EXIT_SCOPE(n$2,n$3,n$4,n$5,y,0$?%__sil_tmpSIL_materialize_temp__n$1,x); [line 31, column 3]\n APPLY_ABSTRACTION; [line 31, column 3]\n " shape="box"] "normal_capture#5533029764254319855.11493b249dddd657790695e287170b84_3" -> "normal_capture#5533029764254319855.11493b249dddd657790695e287170b84_2" ; -"normal_capture#5533029764254319855.11493b249dddd657790695e287170b84_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&y:int) [line 30, column 3]\n *&y:int=2 [line 30, column 3]\n EXIT_SCOPE(n$7); [line 30, column 3]\n " shape="box"] +"normal_capture#5533029764254319855.11493b249dddd657790695e287170b84_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&y:int) assign_last [line 30, column 3]\n *&y:int=2 [line 30, column 3]\n EXIT_SCOPE(n$7); [line 30, column 3]\n " shape="box"] "normal_capture#5533029764254319855.11493b249dddd657790695e287170b84_4" -> "normal_capture#5533029764254319855.11493b249dddd657790695e287170b84_3" ; -"normal_capture#5533029764254319855.11493b249dddd657790695e287170b84_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&x:int) [line 29, column 3]\n *&x:int=1 [line 29, column 3]\n EXIT_SCOPE(n$8); [line 29, column 3]\n " shape="box"] +"normal_capture#5533029764254319855.11493b249dddd657790695e287170b84_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&x:int) assign_last [line 29, column 3]\n *&x:int=1 [line 29, column 3]\n EXIT_SCOPE(n$8); [line 29, column 3]\n " shape="box"] "normal_capture#5533029764254319855.11493b249dddd657790695e287170b84_5" -> "normal_capture#5533029764254319855.11493b249dddd657790695e287170b84_4" ; @@ -140,15 +140,15 @@ digraph cfg { "struct_capture#7773507847510274281.f3db763dc0b20b24ec397f7802254c90_3" -> "struct_capture#7773507847510274281.f3db763dc0b20b24ec397f7802254c90_2" ; -"struct_capture#7773507847510274281.f3db763dc0b20b24ec397f7802254c90_4" [label="4: DeclStmt \n n$14=_fun___variable_initialization(&f:struct_capture::lambda_shared_lambda_lambda1.cpp:77:12) [line 77, column 3]\n n$12=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$9:struct_capture::lambda_shared_lambda_lambda1.cpp:77:12) [line 77, column 12]\n n$11=*&x:SomeStruct [line 77, column 12]\n n$10=*&y:SomeStruct [line 77, column 12]\n *&0$?%__sil_tmpSIL_materialize_temp__n$9:struct_capture::lambda_shared_lambda_lambda1.cpp:77:12=(_fun_struct_capture::lambda_shared_lambda_lambda1.cpp:77:12_operator(),(n$11 &x:SomeStruct),(n$10 &y:SomeStruct)) [line 77, column 12]\n n$13=_fun_struct_capture::lambda_shared_lambda_lambda1.cpp:77:12_(&f:struct_capture::lambda_shared_lambda_lambda1.cpp:77:12*,&0$?%__sil_tmpSIL_materialize_temp__n$9:struct_capture::lambda_shared_lambda_lambda1.cpp:77:12&) [line 77, column 12]\n EXIT_SCOPE(n$10,n$11,n$12,n$13,n$14,0$?%__sil_tmpSIL_materialize_temp__n$9); [line 77, column 12]\n " shape="box"] +"struct_capture#7773507847510274281.f3db763dc0b20b24ec397f7802254c90_4" [label="4: DeclStmt \n n$14=_fun___variable_initialization(&f:struct_capture::lambda_shared_lambda_lambda1.cpp:77:12) assign_last [line 77, column 3]\n n$12=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$9:struct_capture::lambda_shared_lambda_lambda1.cpp:77:12) assign_last [line 77, column 12]\n n$11=*&x:SomeStruct [line 77, column 12]\n n$10=*&y:SomeStruct [line 77, column 12]\n *&0$?%__sil_tmpSIL_materialize_temp__n$9:struct_capture::lambda_shared_lambda_lambda1.cpp:77:12=(_fun_struct_capture::lambda_shared_lambda_lambda1.cpp:77:12_operator(),(n$11 &x:SomeStruct),(n$10 &y:SomeStruct)) [line 77, column 12]\n n$13=_fun_struct_capture::lambda_shared_lambda_lambda1.cpp:77:12_(&f:struct_capture::lambda_shared_lambda_lambda1.cpp:77:12*,&0$?%__sil_tmpSIL_materialize_temp__n$9:struct_capture::lambda_shared_lambda_lambda1.cpp:77:12&) [line 77, column 12]\n EXIT_SCOPE(n$10,n$11,n$12,n$13,n$14,0$?%__sil_tmpSIL_materialize_temp__n$9); [line 77, column 12]\n " shape="box"] "struct_capture#7773507847510274281.f3db763dc0b20b24ec397f7802254c90_4" -> "struct_capture#7773507847510274281.f3db763dc0b20b24ec397f7802254c90_3" ; -"struct_capture#7773507847510274281.f3db763dc0b20b24ec397f7802254c90_5" [label="5: DeclStmt \n n$16=_fun___variable_initialization(&y:SomeStruct) [line 76, column 3]\n n$15=_fun_SomeStruct_SomeStruct(&y:SomeStruct*) [line 76, column 14]\n EXIT_SCOPE(n$15,n$16); [line 76, column 14]\n " shape="box"] +"struct_capture#7773507847510274281.f3db763dc0b20b24ec397f7802254c90_5" [label="5: DeclStmt \n n$16=_fun___variable_initialization(&y:SomeStruct) assign_last [line 76, column 3]\n n$15=_fun_SomeStruct_SomeStruct(&y:SomeStruct*) [line 76, column 14]\n EXIT_SCOPE(n$15,n$16); [line 76, column 14]\n " shape="box"] "struct_capture#7773507847510274281.f3db763dc0b20b24ec397f7802254c90_5" -> "struct_capture#7773507847510274281.f3db763dc0b20b24ec397f7802254c90_4" ; -"struct_capture#7773507847510274281.f3db763dc0b20b24ec397f7802254c90_6" [label="6: DeclStmt \n n$18=_fun___variable_initialization(&x:SomeStruct) [line 75, column 3]\n n$17=_fun_SomeStruct_SomeStruct(&x:SomeStruct*) [line 75, column 14]\n EXIT_SCOPE(n$17,n$18); [line 75, column 14]\n " shape="box"] +"struct_capture#7773507847510274281.f3db763dc0b20b24ec397f7802254c90_6" [label="6: DeclStmt \n n$18=_fun___variable_initialization(&x:SomeStruct) assign_last [line 75, column 3]\n n$17=_fun_SomeStruct_SomeStruct(&x:SomeStruct*) [line 75, column 14]\n EXIT_SCOPE(n$17,n$18); [line 75, column 14]\n " shape="box"] "struct_capture#7773507847510274281.f3db763dc0b20b24ec397f7802254c90_6" -> "struct_capture#7773507847510274281.f3db763dc0b20b24ec397f7802254c90_5" ; @@ -163,7 +163,7 @@ digraph cfg { "capture_this_explicit#Capture#(13194085360619722149).2dba35a78268b10ad413414cc832a8f0_3" -> "capture_this_explicit#Capture#(13194085360619722149).2dba35a78268b10ad413414cc832a8f0_2" ; -"capture_this_explicit#Capture#(13194085360619722149).2dba35a78268b10ad413414cc832a8f0_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&lambda:Capture::capture_this_explicit::lambda_shared_lambda_lambda1.cpp:51:19) [line 51, column 5]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_explicit::lambda_shared_lambda_lambda1.cpp:51:19) [line 51, column 19]\n *&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_explicit::lambda_shared_lambda_lambda1.cpp:51:19=(_fun_Capture::capture_this_explicit::lambda_shared_lambda_lambda1.cpp:51:19_operator(),&this) [line 51, column 19]\n n$5=_fun_Capture::capture_this_explicit::lambda_shared_lambda_lambda1.cpp:51:19_(&lambda:Capture::capture_this_explicit::lambda_shared_lambda_lambda1.cpp:51:19*,&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_explicit::lambda_shared_lambda_lambda1.cpp:51:19&) [line 51, column 19]\n NULLIFY(&this); [line 51, column 19]\n EXIT_SCOPE(n$4,n$5,n$6,0$?%__sil_tmpSIL_materialize_temp__n$3,this); [line 51, column 19]\n " shape="box"] +"capture_this_explicit#Capture#(13194085360619722149).2dba35a78268b10ad413414cc832a8f0_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&lambda:Capture::capture_this_explicit::lambda_shared_lambda_lambda1.cpp:51:19) assign_last [line 51, column 5]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_explicit::lambda_shared_lambda_lambda1.cpp:51:19) assign_last [line 51, column 19]\n *&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_explicit::lambda_shared_lambda_lambda1.cpp:51:19=(_fun_Capture::capture_this_explicit::lambda_shared_lambda_lambda1.cpp:51:19_operator(),&this) [line 51, column 19]\n n$5=_fun_Capture::capture_this_explicit::lambda_shared_lambda_lambda1.cpp:51:19_(&lambda:Capture::capture_this_explicit::lambda_shared_lambda_lambda1.cpp:51:19*,&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_explicit::lambda_shared_lambda_lambda1.cpp:51:19&) [line 51, column 19]\n NULLIFY(&this); [line 51, column 19]\n EXIT_SCOPE(n$4,n$5,n$6,0$?%__sil_tmpSIL_materialize_temp__n$3,this); [line 51, column 19]\n " shape="box"] "capture_this_explicit#Capture#(13194085360619722149).2dba35a78268b10ad413414cc832a8f0_4" -> "capture_this_explicit#Capture#(13194085360619722149).2dba35a78268b10ad413414cc832a8f0_3" ; @@ -178,7 +178,7 @@ digraph cfg { "capture_this_with_auto#Capture#(15696525048884093218).38be242109186a45cc282c38962c68e2_3" -> "capture_this_with_auto#Capture#(15696525048884093218).38be242109186a45cc282c38962c68e2_2" ; -"capture_this_with_auto#Capture#(15696525048884093218).38be242109186a45cc282c38962c68e2_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&lambda:Capture::capture_this_with_auto::lambda_shared_lambda_lambda1.cpp:65:19) [line 65, column 5]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_with_auto::lambda_shared_lambda_lambda1.cpp:65:19) [line 65, column 19]\n *&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_with_auto::lambda_shared_lambda_lambda1.cpp:65:19=(_fun_Capture::capture_this_with_auto::lambda_shared_lambda_lambda1.cpp:65:19_operator(),&this) [line 65, column 19]\n n$5=_fun_Capture::capture_this_with_auto::lambda_shared_lambda_lambda1.cpp:65:19_(&lambda:Capture::capture_this_with_auto::lambda_shared_lambda_lambda1.cpp:65:19*,&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_with_auto::lambda_shared_lambda_lambda1.cpp:65:19&) [line 65, column 19]\n NULLIFY(&this); [line 65, column 19]\n EXIT_SCOPE(n$4,n$5,n$6,0$?%__sil_tmpSIL_materialize_temp__n$3,this); [line 65, column 19]\n " shape="box"] +"capture_this_with_auto#Capture#(15696525048884093218).38be242109186a45cc282c38962c68e2_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&lambda:Capture::capture_this_with_auto::lambda_shared_lambda_lambda1.cpp:65:19) assign_last [line 65, column 5]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_with_auto::lambda_shared_lambda_lambda1.cpp:65:19) assign_last [line 65, column 19]\n *&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_with_auto::lambda_shared_lambda_lambda1.cpp:65:19=(_fun_Capture::capture_this_with_auto::lambda_shared_lambda_lambda1.cpp:65:19_operator(),&this) [line 65, column 19]\n n$5=_fun_Capture::capture_this_with_auto::lambda_shared_lambda_lambda1.cpp:65:19_(&lambda:Capture::capture_this_with_auto::lambda_shared_lambda_lambda1.cpp:65:19*,&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_with_auto::lambda_shared_lambda_lambda1.cpp:65:19&) [line 65, column 19]\n NULLIFY(&this); [line 65, column 19]\n EXIT_SCOPE(n$4,n$5,n$6,0$?%__sil_tmpSIL_materialize_temp__n$3,this); [line 65, column 19]\n " shape="box"] "capture_this_with_auto#Capture#(15696525048884093218).38be242109186a45cc282c38962c68e2_4" -> "capture_this_with_auto#Capture#(15696525048884093218).38be242109186a45cc282c38962c68e2_3" ; @@ -193,7 +193,7 @@ digraph cfg { "capture_star_this#Capture#(2506493005619132138).63fd6aa2a7efbd48dc1a62c0c2bd2161_3" -> "capture_star_this#Capture#(2506493005619132138).63fd6aa2a7efbd48dc1a62c0c2bd2161_2" ; -"capture_star_this#Capture#(2506493005619132138).63fd6aa2a7efbd48dc1a62c0c2bd2161_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&lambda:Capture::capture_star_this::lambda_shared_lambda_lambda1.cpp:55:19) [line 55, column 5]\n n$5=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_star_this::lambda_shared_lambda_lambda1.cpp:55:19) [line 55, column 19]\n n$4=*&this:Capture* [line 55, column 19]\n *&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_star_this::lambda_shared_lambda_lambda1.cpp:55:19=(_fun_Capture::capture_star_this::lambda_shared_lambda_lambda1.cpp:55:19_operator(),(n$4 &this:Capture*)) [line 55, column 19]\n n$6=_fun_Capture::capture_star_this::lambda_shared_lambda_lambda1.cpp:55:19_(&lambda:Capture::capture_star_this::lambda_shared_lambda_lambda1.cpp:55:19*,&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_star_this::lambda_shared_lambda_lambda1.cpp:55:19&) [line 55, column 19]\n NULLIFY(&this); [line 55, column 19]\n EXIT_SCOPE(n$4,n$5,n$6,n$7,0$?%__sil_tmpSIL_materialize_temp__n$3,this); [line 55, column 19]\n " shape="box"] +"capture_star_this#Capture#(2506493005619132138).63fd6aa2a7efbd48dc1a62c0c2bd2161_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&lambda:Capture::capture_star_this::lambda_shared_lambda_lambda1.cpp:55:19) assign_last [line 55, column 5]\n n$5=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_star_this::lambda_shared_lambda_lambda1.cpp:55:19) assign_last [line 55, column 19]\n n$4=*&this:Capture* [line 55, column 19]\n *&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_star_this::lambda_shared_lambda_lambda1.cpp:55:19=(_fun_Capture::capture_star_this::lambda_shared_lambda_lambda1.cpp:55:19_operator(),(n$4 &this:Capture*)) [line 55, column 19]\n n$6=_fun_Capture::capture_star_this::lambda_shared_lambda_lambda1.cpp:55:19_(&lambda:Capture::capture_star_this::lambda_shared_lambda_lambda1.cpp:55:19*,&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_star_this::lambda_shared_lambda_lambda1.cpp:55:19&) [line 55, column 19]\n NULLIFY(&this); [line 55, column 19]\n EXIT_SCOPE(n$4,n$5,n$6,n$7,0$?%__sil_tmpSIL_materialize_temp__n$3,this); [line 55, column 19]\n " shape="box"] "capture_star_this#Capture#(2506493005619132138).63fd6aa2a7efbd48dc1a62c0c2bd2161_4" -> "capture_star_this#Capture#(2506493005619132138).63fd6aa2a7efbd48dc1a62c0c2bd2161_3" ; @@ -208,7 +208,7 @@ digraph cfg { "capture_this_with_equal#Capture#(805776379555510952).ecd73e9a4e2bef0d060a242b61508f10_3" -> "capture_this_with_equal#Capture#(805776379555510952).ecd73e9a4e2bef0d060a242b61508f10_2" ; -"capture_this_with_equal#Capture#(805776379555510952).ecd73e9a4e2bef0d060a242b61508f10_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&lambda:Capture::capture_this_with_equal::lambda_shared_lambda_lambda1.cpp:61:19) [line 61, column 5]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_with_equal::lambda_shared_lambda_lambda1.cpp:61:19) [line 61, column 19]\n *&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_with_equal::lambda_shared_lambda_lambda1.cpp:61:19=(_fun_Capture::capture_this_with_equal::lambda_shared_lambda_lambda1.cpp:61:19_operator(),&this) [line 61, column 19]\n n$5=_fun_Capture::capture_this_with_equal::lambda_shared_lambda_lambda1.cpp:61:19_(&lambda:Capture::capture_this_with_equal::lambda_shared_lambda_lambda1.cpp:61:19*,&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_with_equal::lambda_shared_lambda_lambda1.cpp:61:19&) [line 61, column 19]\n NULLIFY(&this); [line 61, column 19]\n EXIT_SCOPE(n$4,n$5,n$6,0$?%__sil_tmpSIL_materialize_temp__n$3,this); [line 61, column 19]\n " shape="box"] +"capture_this_with_equal#Capture#(805776379555510952).ecd73e9a4e2bef0d060a242b61508f10_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&lambda:Capture::capture_this_with_equal::lambda_shared_lambda_lambda1.cpp:61:19) assign_last [line 61, column 5]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_with_equal::lambda_shared_lambda_lambda1.cpp:61:19) assign_last [line 61, column 19]\n *&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_with_equal::lambda_shared_lambda_lambda1.cpp:61:19=(_fun_Capture::capture_this_with_equal::lambda_shared_lambda_lambda1.cpp:61:19_operator(),&this) [line 61, column 19]\n n$5=_fun_Capture::capture_this_with_equal::lambda_shared_lambda_lambda1.cpp:61:19_(&lambda:Capture::capture_this_with_equal::lambda_shared_lambda_lambda1.cpp:61:19*,&0$?%__sil_tmpSIL_materialize_temp__n$3:Capture::capture_this_with_equal::lambda_shared_lambda_lambda1.cpp:61:19&) [line 61, column 19]\n NULLIFY(&this); [line 61, column 19]\n EXIT_SCOPE(n$4,n$5,n$6,0$?%__sil_tmpSIL_materialize_temp__n$3,this); [line 61, column 19]\n " shape="box"] "capture_this_with_equal#Capture#(805776379555510952).ecd73e9a4e2bef0d060a242b61508f10_4" -> "capture_this_with_equal#Capture#(805776379555510952).ecd73e9a4e2bef0d060a242b61508f10_3" ; @@ -485,7 +485,7 @@ digraph cfg { "operator()#lambda_shared_lambda_lambda1.cpp:9:15#bar#(7708532531154088338).ffe36bb5dd46814f3461661fb80e3e06_3" -> "operator()#lambda_shared_lambda_lambda1.cpp:9:15#bar#(7708532531154088338).ffe36bb5dd46814f3461661fb80e3e06_2" ; -"operator()#lambda_shared_lambda_lambda1.cpp:9:15#bar#(7708532531154088338).ffe36bb5dd46814f3461661fb80e3e06_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&i:int) [line 10, column 5]\n *&i:int=0 [line 10, column 5]\n EXIT_SCOPE(n$2); [line 10, column 5]\n " shape="box"] +"operator()#lambda_shared_lambda_lambda1.cpp:9:15#bar#(7708532531154088338).ffe36bb5dd46814f3461661fb80e3e06_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&i:int) assign_last [line 10, column 5]\n *&i:int=0 [line 10, column 5]\n EXIT_SCOPE(n$2); [line 10, column 5]\n " shape="box"] "operator()#lambda_shared_lambda_lambda1.cpp:9:15#bar#(7708532531154088338).ffe36bb5dd46814f3461661fb80e3e06_4" -> "operator()#lambda_shared_lambda_lambda1.cpp:9:15#bar#(7708532531154088338).ffe36bb5dd46814f3461661fb80e3e06_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/methods/byvals.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/methods/byvals.cpp.dot index 73bb3ad91..e0681f3f6 100644 --- a/infer/tests/codetoanalyze/cpp/shared/methods/byvals.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/methods/byvals.cpp.dot @@ -51,7 +51,7 @@ digraph cfg { "dummy_struct#__infer_globals_initializer_pass_by_val.24fe54080733cebf362d2b34e691bb44_2" [label="2: Exit __infer_globals_initializer_pass_by_val::dummy_struct \n " color=yellow style=filled] -"dummy_struct#__infer_globals_initializer_pass_by_val.24fe54080733cebf362d2b34e691bb44_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&#GB$pass_by_val::dummy_struct:pass_by_val::PlainStruct) [line 15, column 1]\n *&#GB$pass_by_val::dummy_struct.x:int=0 [line 15, column 25]\n *&#GB$pass_by_val::dummy_struct.y:int*=null [line 15, column 25]\n EXIT_SCOPE(n$0); [line 15, column 25]\n APPLY_ABSTRACTION; [line 15, column 25]\n " shape="box"] +"dummy_struct#__infer_globals_initializer_pass_by_val.24fe54080733cebf362d2b34e691bb44_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&#GB$pass_by_val::dummy_struct:pass_by_val::PlainStruct) assign_last [line 15, column 1]\n *&#GB$pass_by_val::dummy_struct.x:int=0 [line 15, column 25]\n *&#GB$pass_by_val::dummy_struct.y:int*=null [line 15, column 25]\n EXIT_SCOPE(n$0); [line 15, column 25]\n APPLY_ABSTRACTION; [line 15, column 25]\n " shape="box"] "dummy_struct#__infer_globals_initializer_pass_by_val.24fe54080733cebf362d2b34e691bb44_3" -> "dummy_struct#__infer_globals_initializer_pass_by_val.24fe54080733cebf362d2b34e691bb44_2" ; @@ -84,7 +84,7 @@ digraph cfg { "make_id#pass_by_val(class pass_by_val::Id)#6647322778693099135.704a07df7f1fd4912e21bd274744a5e0_2" [label="2: Exit pass_by_val::make_id \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 60, column 1]\n " color=yellow style=filled] -"make_id#pass_by_val(class pass_by_val::Id)#6647322778693099135.704a07df7f1fd4912e21bd274744a5e0_3" [label="3: Return Stmt \n n$0=*&__return_param:pass_by_val::Id* [line 59, column 3]\n n$10=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:pass_by_val::Id) [line 59, column 10]\n n$2=*&args:int& [line 59, column 35]\n n$3=_fun_std::forward(n$2:int&) [line 59, column 16]\n n$4=*n$3:int [line 59, column 16]\n n$5=*&args:int& [line 59, column 35]\n n$6=_fun_std::forward(n$5:int&) [line 59, column 16]\n n$7=*&args:int& [line 59, column 35]\n n$8=_fun_std::forward(n$7:int&) [line 59, column 16]\n n$9=_fun_pass_by_val::Id_Id(&0$?%__sil_tmpSIL_materialize_temp__n$1:pass_by_val::Id*,n$4:int,n$6:int&,n$8:int&) [line 59, column 10]\n n$11=_fun_pass_by_val::Id_Id(n$0:pass_by_val::Id*,&0$?%__sil_tmpSIL_materialize_temp__n$1:pass_by_val::Id&) [line 59, column 10]\n NULLIFY(&args); [line 59, column 10]\n NULLIFY(&__return_param); [line 59, column 10]\n NULLIFY(&args); [line 59, column 10]\n NULLIFY(&args); [line 59, column 10]\n EXIT_SCOPE(n$0,n$2,n$3,n$4,n$5,n$6,n$7,n$8,n$9,n$10,n$11,args,__return_param,args,args,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 59, column 10]\n APPLY_ABSTRACTION; [line 59, column 10]\n " shape="box"] +"make_id#pass_by_val(class pass_by_val::Id)#6647322778693099135.704a07df7f1fd4912e21bd274744a5e0_3" [label="3: Return Stmt \n n$0=*&__return_param:pass_by_val::Id* [line 59, column 3]\n n$10=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:pass_by_val::Id) assign_last [line 59, column 10]\n n$2=*&args:int& [line 59, column 35]\n n$3=_fun_std::forward(n$2:int&) [line 59, column 16]\n n$4=*n$3:int [line 59, column 16]\n n$5=*&args:int& [line 59, column 35]\n n$6=_fun_std::forward(n$5:int&) [line 59, column 16]\n n$7=*&args:int& [line 59, column 35]\n n$8=_fun_std::forward(n$7:int&) [line 59, column 16]\n n$9=_fun_pass_by_val::Id_Id(&0$?%__sil_tmpSIL_materialize_temp__n$1:pass_by_val::Id*,n$4:int,n$6:int&,n$8:int&) [line 59, column 10]\n n$11=_fun_pass_by_val::Id_Id(n$0:pass_by_val::Id*,&0$?%__sil_tmpSIL_materialize_temp__n$1:pass_by_val::Id&) [line 59, column 10]\n NULLIFY(&args); [line 59, column 10]\n NULLIFY(&__return_param); [line 59, column 10]\n NULLIFY(&args); [line 59, column 10]\n NULLIFY(&args); [line 59, column 10]\n EXIT_SCOPE(n$0,n$2,n$3,n$4,n$5,n$6,n$7,n$8,n$9,n$10,n$11,args,__return_param,args,args,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 59, column 10]\n APPLY_ABSTRACTION; [line 59, column 10]\n " shape="box"] "make_id#pass_by_val(class pass_by_val::Id)#6647322778693099135.704a07df7f1fd4912e21bd274744a5e0_3" -> "make_id#pass_by_val(class pass_by_val::Id)#6647322778693099135.704a07df7f1fd4912e21bd274744a5e0_2" ; @@ -95,15 +95,15 @@ digraph cfg { "perfect_forwarding_by_ref#pass_by_val(class pass_by_val::Id)#7578991627406493712.4a78b0c805a8de47693f8c723da2ec49_2" [label="2: Exit pass_by_val::perfect_forwarding_by_ref \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 65, column 1]\n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$2); [line 65, column 1]\n NULLIFY(&b); [line 65, column 1]\n NULLIFY(&a); [line 65, column 1]\n " color=yellow style=filled] -"perfect_forwarding_by_ref#pass_by_val(class pass_by_val::Id)#7578991627406493712.4a78b0c805a8de47693f8c723da2ec49_3" [label="3: Return Stmt \n n$0=*&__return_param:pass_by_val::Id* [line 64, column 3]\n n$6=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:pass_by_val::Id) [line 64, column 10]\n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$2:int) [line 64, column 29]\n *&0$?%__sil_tmpSIL_materialize_temp__n$2:int=2 [line 64, column 29]\n n$5=_fun_pass_by_val::make_id(&a:int&,&b:int&,&0$?%__sil_tmpSIL_materialize_temp__n$2:int&,&0$?%__sil_tmpSIL_materialize_temp__n$1:pass_by_val::Id*) [line 64, column 10]\n n$7=_fun_pass_by_val::Id_Id(n$0:pass_by_val::Id*,&0$?%__sil_tmpSIL_materialize_temp__n$1:pass_by_val::Id&) [line 64, column 10]\n NULLIFY(&__return_param); [line 64, column 10]\n EXIT_SCOPE(n$0,n$3,n$5,n$6,n$7,a,__return_param,b,0$?%__sil_tmpSIL_materialize_temp__n$2,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 64, column 10]\n APPLY_ABSTRACTION; [line 64, column 10]\n " shape="box"] +"perfect_forwarding_by_ref#pass_by_val(class pass_by_val::Id)#7578991627406493712.4a78b0c805a8de47693f8c723da2ec49_3" [label="3: Return Stmt \n n$0=*&__return_param:pass_by_val::Id* [line 64, column 3]\n n$6=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:pass_by_val::Id) assign_last [line 64, column 10]\n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$2:int) assign_last [line 64, column 29]\n *&0$?%__sil_tmpSIL_materialize_temp__n$2:int=2 [line 64, column 29]\n n$5=_fun_pass_by_val::make_id(&a:int&,&b:int&,&0$?%__sil_tmpSIL_materialize_temp__n$2:int&,&0$?%__sil_tmpSIL_materialize_temp__n$1:pass_by_val::Id*) assign_last [line 64, column 10]\n n$7=_fun_pass_by_val::Id_Id(n$0:pass_by_val::Id*,&0$?%__sil_tmpSIL_materialize_temp__n$1:pass_by_val::Id&) [line 64, column 10]\n NULLIFY(&__return_param); [line 64, column 10]\n EXIT_SCOPE(n$0,n$3,n$5,n$6,n$7,a,__return_param,b,0$?%__sil_tmpSIL_materialize_temp__n$2,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 64, column 10]\n APPLY_ABSTRACTION; [line 64, column 10]\n " shape="box"] "perfect_forwarding_by_ref#pass_by_val(class pass_by_val::Id)#7578991627406493712.4a78b0c805a8de47693f8c723da2ec49_3" -> "perfect_forwarding_by_ref#pass_by_val(class pass_by_val::Id)#7578991627406493712.4a78b0c805a8de47693f8c723da2ec49_2" ; -"perfect_forwarding_by_ref#pass_by_val(class pass_by_val::Id)#7578991627406493712.4a78b0c805a8de47693f8c723da2ec49_4" [label="4: DeclStmt \n n$9=_fun___variable_initialization(&b:int) [line 63, column 3]\n *&b:int=1 [line 63, column 3]\n EXIT_SCOPE(n$9); [line 63, column 3]\n " shape="box"] +"perfect_forwarding_by_ref#pass_by_val(class pass_by_val::Id)#7578991627406493712.4a78b0c805a8de47693f8c723da2ec49_4" [label="4: DeclStmt \n n$9=_fun___variable_initialization(&b:int) assign_last [line 63, column 3]\n *&b:int=1 [line 63, column 3]\n EXIT_SCOPE(n$9); [line 63, column 3]\n " shape="box"] "perfect_forwarding_by_ref#pass_by_val(class pass_by_val::Id)#7578991627406493712.4a78b0c805a8de47693f8c723da2ec49_4" -> "perfect_forwarding_by_ref#pass_by_val(class pass_by_val::Id)#7578991627406493712.4a78b0c805a8de47693f8c723da2ec49_3" ; -"perfect_forwarding_by_ref#pass_by_val(class pass_by_val::Id)#7578991627406493712.4a78b0c805a8de47693f8c723da2ec49_5" [label="5: DeclStmt \n n$10=_fun___variable_initialization(&a:int) [line 63, column 3]\n *&a:int=0 [line 63, column 3]\n EXIT_SCOPE(n$10); [line 63, column 3]\n " shape="box"] +"perfect_forwarding_by_ref#pass_by_val(class pass_by_val::Id)#7578991627406493712.4a78b0c805a8de47693f8c723da2ec49_5" [label="5: DeclStmt \n n$10=_fun___variable_initialization(&a:int) assign_last [line 63, column 3]\n *&a:int=0 [line 63, column 3]\n EXIT_SCOPE(n$10); [line 63, column 3]\n " shape="box"] "perfect_forwarding_by_ref#pass_by_val(class pass_by_val::Id)#7578991627406493712.4a78b0c805a8de47693f8c723da2ec49_5" -> "perfect_forwarding_by_ref#pass_by_val(class pass_by_val::Id)#7578991627406493712.4a78b0c805a8de47693f8c723da2ec49_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/methods/conversion_operator.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/methods/conversion_operator.cpp.dot index 4d3c9d78d..cbae5fd1f 100644 --- a/infer/tests/codetoanalyze/cpp/shared/methods/conversion_operator.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/methods/conversion_operator.cpp.dot @@ -32,11 +32,11 @@ digraph cfg { "branch_div0#conversion_operator#6762751670974669482.0ad6ec49c1dc8988836c6e44e9d2b402_8" -> "branch_div0#conversion_operator#6762751670974669482.0ad6ec49c1dc8988836c6e44e9d2b402_2" ; -"branch_div0#conversion_operator#6762751670974669482.0ad6ec49c1dc8988836c6e44e9d2b402_9" [label="9: DeclStmt \n n$13=_fun___variable_initialization(&v:int) [line 35, column 5]\n _=*&x:conversion_operator::X [line 35, column 13]\n n$12=_fun_conversion_operator::X_operator_int(&x:conversion_operator::X&) [line 35, column 13]\n *&v:int=n$12 [line 35, column 5]\n EXIT_SCOPE(_,n$12,n$13); [line 35, column 5]\n " shape="box"] +"branch_div0#conversion_operator#6762751670974669482.0ad6ec49c1dc8988836c6e44e9d2b402_9" [label="9: DeclStmt \n n$13=_fun___variable_initialization(&v:int) assign_last [line 35, column 5]\n _=*&x:conversion_operator::X [line 35, column 13]\n n$12=_fun_conversion_operator::X_operator_int(&x:conversion_operator::X&) [line 35, column 13]\n *&v:int=n$12 [line 35, column 5]\n EXIT_SCOPE(_,n$12,n$13); [line 35, column 5]\n " shape="box"] "branch_div0#conversion_operator#6762751670974669482.0ad6ec49c1dc8988836c6e44e9d2b402_9" -> "branch_div0#conversion_operator#6762751670974669482.0ad6ec49c1dc8988836c6e44e9d2b402_8" ; -"branch_div0#conversion_operator#6762751670974669482.0ad6ec49c1dc8988836c6e44e9d2b402_10" [label="10: DeclStmt \n n$17=_fun___variable_initialization(&x:conversion_operator::X) [line 33, column 3]\n n$16=_fun_conversion_operator::X_X(&x:conversion_operator::X*,0:int,1:_Bool) [line 33, column 5]\n EXIT_SCOPE(n$16,n$17); [line 33, column 5]\n " shape="box"] +"branch_div0#conversion_operator#6762751670974669482.0ad6ec49c1dc8988836c6e44e9d2b402_10" [label="10: DeclStmt \n n$17=_fun___variable_initialization(&x:conversion_operator::X) assign_last [line 33, column 3]\n n$16=_fun_conversion_operator::X_X(&x:conversion_operator::X*,0:int,1:_Bool) [line 33, column 5]\n EXIT_SCOPE(n$16,n$17); [line 33, column 5]\n " shape="box"] "branch_div0#conversion_operator#6762751670974669482.0ad6ec49c1dc8988836c6e44e9d2b402_10" -> "branch_div0#conversion_operator#6762751670974669482.0ad6ec49c1dc8988836c6e44e9d2b402_5" ; @@ -72,11 +72,11 @@ digraph cfg { "branch_div1#conversion_operator#6025807300888085665.f3ee34cea9ff5d10407119d4b377adc2_8" -> "branch_div1#conversion_operator#6025807300888085665.f3ee34cea9ff5d10407119d4b377adc2_2" ; -"branch_div1#conversion_operator#6025807300888085665.f3ee34cea9ff5d10407119d4b377adc2_9" [label="9: DeclStmt \n n$13=_fun___variable_initialization(&v:int) [line 64, column 5]\n _=*&x:conversion_operator::X [line 64, column 13]\n n$12=_fun_conversion_operator::X_operator_int(&x:conversion_operator::X&) [line 64, column 13]\n *&v:int=n$12 [line 64, column 5]\n EXIT_SCOPE(_,n$12,n$13); [line 64, column 5]\n " shape="box"] +"branch_div1#conversion_operator#6025807300888085665.f3ee34cea9ff5d10407119d4b377adc2_9" [label="9: DeclStmt \n n$13=_fun___variable_initialization(&v:int) assign_last [line 64, column 5]\n _=*&x:conversion_operator::X [line 64, column 13]\n n$12=_fun_conversion_operator::X_operator_int(&x:conversion_operator::X&) [line 64, column 13]\n *&v:int=n$12 [line 64, column 5]\n EXIT_SCOPE(_,n$12,n$13); [line 64, column 5]\n " shape="box"] "branch_div1#conversion_operator#6025807300888085665.f3ee34cea9ff5d10407119d4b377adc2_9" -> "branch_div1#conversion_operator#6025807300888085665.f3ee34cea9ff5d10407119d4b377adc2_8" ; -"branch_div1#conversion_operator#6025807300888085665.f3ee34cea9ff5d10407119d4b377adc2_10" [label="10: DeclStmt \n n$17=_fun___variable_initialization(&x:conversion_operator::X) [line 62, column 3]\n n$16=_fun_conversion_operator::X_X(&x:conversion_operator::X*,1:int,1:_Bool) [line 62, column 5]\n EXIT_SCOPE(n$16,n$17); [line 62, column 5]\n " shape="box"] +"branch_div1#conversion_operator#6025807300888085665.f3ee34cea9ff5d10407119d4b377adc2_10" [label="10: DeclStmt \n n$17=_fun___variable_initialization(&x:conversion_operator::X) assign_last [line 62, column 3]\n n$16=_fun_conversion_operator::X_X(&x:conversion_operator::X*,1:int,1:_Bool) [line 62, column 5]\n EXIT_SCOPE(n$16,n$17); [line 62, column 5]\n " shape="box"] "branch_div1#conversion_operator#6025807300888085665.f3ee34cea9ff5d10407119d4b377adc2_10" -> "branch_div1#conversion_operator#6025807300888085665.f3ee34cea9ff5d10407119d4b377adc2_5" ; @@ -112,11 +112,11 @@ digraph cfg { "branch_no_div#conversion_operator#18429458682592639842.4c7cf0cc20989fd2ea431840e11b2521_8" -> "branch_no_div#conversion_operator#18429458682592639842.4c7cf0cc20989fd2ea431840e11b2521_2" ; -"branch_no_div#conversion_operator#18429458682592639842.4c7cf0cc20989fd2ea431840e11b2521_9" [label="9: DeclStmt \n n$13=_fun___variable_initialization(&v:int) [line 55, column 5]\n _=*&x:conversion_operator::X [line 55, column 13]\n n$12=_fun_conversion_operator::X_operator_int(&x:conversion_operator::X&) [line 55, column 13]\n *&v:int=n$12 [line 55, column 5]\n EXIT_SCOPE(_,n$12,n$13); [line 55, column 5]\n " shape="box"] +"branch_no_div#conversion_operator#18429458682592639842.4c7cf0cc20989fd2ea431840e11b2521_9" [label="9: DeclStmt \n n$13=_fun___variable_initialization(&v:int) assign_last [line 55, column 5]\n _=*&x:conversion_operator::X [line 55, column 13]\n n$12=_fun_conversion_operator::X_operator_int(&x:conversion_operator::X&) [line 55, column 13]\n *&v:int=n$12 [line 55, column 5]\n EXIT_SCOPE(_,n$12,n$13); [line 55, column 5]\n " shape="box"] "branch_no_div#conversion_operator#18429458682592639842.4c7cf0cc20989fd2ea431840e11b2521_9" -> "branch_no_div#conversion_operator#18429458682592639842.4c7cf0cc20989fd2ea431840e11b2521_8" ; -"branch_no_div#conversion_operator#18429458682592639842.4c7cf0cc20989fd2ea431840e11b2521_10" [label="10: DeclStmt \n n$17=_fun___variable_initialization(&x:conversion_operator::X) [line 53, column 3]\n n$16=_fun_conversion_operator::X_X(&x:conversion_operator::X*,0:int,0:_Bool) [line 53, column 5]\n EXIT_SCOPE(n$16,n$17); [line 53, column 5]\n " shape="box"] +"branch_no_div#conversion_operator#18429458682592639842.4c7cf0cc20989fd2ea431840e11b2521_10" [label="10: DeclStmt \n n$17=_fun___variable_initialization(&x:conversion_operator::X) assign_last [line 53, column 3]\n n$16=_fun_conversion_operator::X_X(&x:conversion_operator::X*,0:int,0:_Bool) [line 53, column 5]\n EXIT_SCOPE(n$16,n$17); [line 53, column 5]\n " shape="box"] "branch_no_div#conversion_operator#18429458682592639842.4c7cf0cc20989fd2ea431840e11b2521_10" -> "branch_no_div#conversion_operator#18429458682592639842.4c7cf0cc20989fd2ea431840e11b2521_5" ; @@ -127,7 +127,7 @@ digraph cfg { "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_2" [label="2: Exit conversion_operator::y_branch_div0 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 50, column 1]\n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$23); [line 50, column 1]\n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$11); [line 50, column 1]\n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 50, column 1]\n NULLIFY(&y); [line 50, column 1]\n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$12); [line 50, column 1]\n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$24); [line 50, column 1]\n " color=yellow style=filled] -"y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_3" [label="3: Return Stmt \n n$7=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:conversion_operator::X) [line 49, column 10]\n n$5=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:conversion_operator::X const ) [line 49, column 13]\n _=*&y:conversion_operator::Y [line 49, column 13]\n n$4=_fun_conversion_operator::Y_operator_X(&y:conversion_operator::Y&,&0$?%__sil_tmpSIL_materialize_temp__n$1:conversion_operator::X*) [line 49, column 13]\n n$6=_fun_conversion_operator::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$0:conversion_operator::X*,&0$?%__sil_tmpSIL_materialize_temp__n$1:conversion_operator::X const &) [line 49, column 10]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$0:conversion_operator::X [line 49, column 10]\n n$9=_fun_conversion_operator::X_operator_int(&0$?%__sil_tmpSIL_materialize_temp__n$0:conversion_operator::X&) [line 49, column 10]\n *&return:int=n$9 [line 49, column 3]\n EXIT_SCOPE(_,_,n$4,n$5,n$6,n$7,n$9,y,0$?%__sil_tmpSIL_materialize_temp__n$0,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 49, column 3]\n APPLY_ABSTRACTION; [line 49, column 3]\n " shape="box"] +"y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_3" [label="3: Return Stmt \n n$7=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:conversion_operator::X) assign_last [line 49, column 10]\n n$5=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:conversion_operator::X const ) assign_last [line 49, column 13]\n _=*&y:conversion_operator::Y [line 49, column 13]\n n$4=_fun_conversion_operator::Y_operator_X(&y:conversion_operator::Y&,&0$?%__sil_tmpSIL_materialize_temp__n$1:conversion_operator::X*) assign_last [line 49, column 13]\n n$6=_fun_conversion_operator::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$0:conversion_operator::X*,&0$?%__sil_tmpSIL_materialize_temp__n$1:conversion_operator::X const &) [line 49, column 10]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$0:conversion_operator::X [line 49, column 10]\n n$9=_fun_conversion_operator::X_operator_int(&0$?%__sil_tmpSIL_materialize_temp__n$0:conversion_operator::X&) [line 49, column 10]\n *&return:int=n$9 [line 49, column 3]\n EXIT_SCOPE(_,_,n$4,n$5,n$6,n$7,n$9,y,0$?%__sil_tmpSIL_materialize_temp__n$0,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 49, column 3]\n APPLY_ABSTRACTION; [line 49, column 3]\n " shape="box"] "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_3" -> "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_2" ; @@ -135,7 +135,7 @@ digraph cfg { "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_4" -> "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_3" ; -"y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_5" [label="5: Call _fun_conversion_operator::X_operator_bool \n n$18=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$11:conversion_operator::X) [line 45, column 7]\n n$16=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$12:conversion_operator::X const ) [line 45, column 10]\n _=*&y:conversion_operator::Y [line 45, column 10]\n n$15=_fun_conversion_operator::Y_operator_X(&y:conversion_operator::Y&,&0$?%__sil_tmpSIL_materialize_temp__n$12:conversion_operator::X*) [line 45, column 10]\n n$17=_fun_conversion_operator::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$11:conversion_operator::X*,&0$?%__sil_tmpSIL_materialize_temp__n$12:conversion_operator::X const &) [line 45, column 7]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$11:conversion_operator::X [line 45, column 7]\n n$20=_fun_conversion_operator::X_operator_bool(&0$?%__sil_tmpSIL_materialize_temp__n$11:conversion_operator::X&) [line 45, column 7]\n EXIT_SCOPE(_,_,n$15,n$16,n$17,n$18,0$?%__sil_tmpSIL_materialize_temp__n$12,0$?%__sil_tmpSIL_materialize_temp__n$11); [line 45, column 7]\n " shape="box"] +"y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_5" [label="5: Call _fun_conversion_operator::X_operator_bool \n n$18=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$11:conversion_operator::X) assign_last [line 45, column 7]\n n$16=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$12:conversion_operator::X const ) assign_last [line 45, column 10]\n _=*&y:conversion_operator::Y [line 45, column 10]\n n$15=_fun_conversion_operator::Y_operator_X(&y:conversion_operator::Y&,&0$?%__sil_tmpSIL_materialize_temp__n$12:conversion_operator::X*) assign_last [line 45, column 10]\n n$17=_fun_conversion_operator::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$11:conversion_operator::X*,&0$?%__sil_tmpSIL_materialize_temp__n$12:conversion_operator::X const &) [line 45, column 7]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$11:conversion_operator::X [line 45, column 7]\n n$20=_fun_conversion_operator::X_operator_bool(&0$?%__sil_tmpSIL_materialize_temp__n$11:conversion_operator::X&) [line 45, column 7]\n EXIT_SCOPE(_,_,n$15,n$16,n$17,n$18,0$?%__sil_tmpSIL_materialize_temp__n$12,0$?%__sil_tmpSIL_materialize_temp__n$11); [line 45, column 7]\n " shape="box"] "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_5" -> "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_6" ; @@ -152,7 +152,7 @@ digraph cfg { "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_8" -> "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_2" ; -"y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_9" [label="9: DeclStmt \n n$33=_fun___variable_initialization(&v:int) [line 46, column 5]\n n$30=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$23:conversion_operator::X) [line 46, column 13]\n n$28=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$24:conversion_operator::X const ) [line 46, column 16]\n _=*&y:conversion_operator::Y [line 46, column 16]\n n$27=_fun_conversion_operator::Y_operator_X(&y:conversion_operator::Y&,&0$?%__sil_tmpSIL_materialize_temp__n$24:conversion_operator::X*) [line 46, column 16]\n n$29=_fun_conversion_operator::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$23:conversion_operator::X*,&0$?%__sil_tmpSIL_materialize_temp__n$24:conversion_operator::X const &) [line 46, column 13]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$23:conversion_operator::X [line 46, column 13]\n n$32=_fun_conversion_operator::X_operator_int(&0$?%__sil_tmpSIL_materialize_temp__n$23:conversion_operator::X&) [line 46, column 13]\n *&v:int=n$32 [line 46, column 5]\n EXIT_SCOPE(_,_,n$27,n$28,n$29,n$30,n$32,n$33,0$?%__sil_tmpSIL_materialize_temp__n$24,y,0$?%__sil_tmpSIL_materialize_temp__n$23); [line 46, column 5]\n " shape="box"] +"y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_9" [label="9: DeclStmt \n n$33=_fun___variable_initialization(&v:int) assign_last [line 46, column 5]\n n$30=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$23:conversion_operator::X) assign_last [line 46, column 13]\n n$28=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$24:conversion_operator::X const ) assign_last [line 46, column 16]\n _=*&y:conversion_operator::Y [line 46, column 16]\n n$27=_fun_conversion_operator::Y_operator_X(&y:conversion_operator::Y&,&0$?%__sil_tmpSIL_materialize_temp__n$24:conversion_operator::X*) assign_last [line 46, column 16]\n n$29=_fun_conversion_operator::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$23:conversion_operator::X*,&0$?%__sil_tmpSIL_materialize_temp__n$24:conversion_operator::X const &) [line 46, column 13]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$23:conversion_operator::X [line 46, column 13]\n n$32=_fun_conversion_operator::X_operator_int(&0$?%__sil_tmpSIL_materialize_temp__n$23:conversion_operator::X&) [line 46, column 13]\n *&v:int=n$32 [line 46, column 5]\n EXIT_SCOPE(_,_,n$27,n$28,n$29,n$30,n$32,n$33,0$?%__sil_tmpSIL_materialize_temp__n$24,y,0$?%__sil_tmpSIL_materialize_temp__n$23); [line 46, column 5]\n " shape="box"] "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_9" -> "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_8" ; @@ -164,7 +164,7 @@ digraph cfg { "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_11" -> "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_10" ; -"y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_12" [label="12: DeclStmt \n n$37=_fun___variable_initialization(&y:conversion_operator::Y) [line 42, column 3]\n n$36=_fun_conversion_operator::Y_Y(&y:conversion_operator::Y*) [line 42, column 5]\n EXIT_SCOPE(n$36,n$37); [line 42, column 5]\n " shape="box"] +"y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_12" [label="12: DeclStmt \n n$37=_fun___variable_initialization(&y:conversion_operator::Y) assign_last [line 42, column 3]\n n$36=_fun_conversion_operator::Y_Y(&y:conversion_operator::Y*) [line 42, column 5]\n EXIT_SCOPE(n$36,n$37); [line 42, column 5]\n " shape="box"] "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_12" -> "y_branch_div0#conversion_operator#7606471872775172252.4a93f184f35976e9e7dc6663bc4d47a2_11" ; @@ -227,7 +227,7 @@ digraph cfg { "operator_X#Y#conversion_operator(class conversion_operator::X)#(9875474444891926125).86894a9a1bdbf53dc3721d092420d60c_2" [label="2: Exit conversion_operator::Y_operator_X \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 27, column 34]\n " color=yellow style=filled] -"operator_X#Y#conversion_operator(class conversion_operator::X)#(9875474444891926125).86894a9a1bdbf53dc3721d092420d60c_3" [label="3: Return Stmt \n n$0=*&__return_param:conversion_operator::X* [line 27, column 18]\n n$7=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:conversion_operator::X const ) [line 27, column 25]\n n$2=*&this:conversion_operator::Y* [line 27, column 27]\n n$3=*n$2.f:int [line 27, column 27]\n n$4=*&this:conversion_operator::Y* [line 27, column 30]\n n$5=*n$4.b:int [line 27, column 30]\n n$6=_fun_conversion_operator::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$1:conversion_operator::X const *,n$3:int,n$5:_Bool) [line 27, column 25]\n n$8=_fun_conversion_operator::X_X(n$0:conversion_operator::X*,&0$?%__sil_tmpSIL_materialize_temp__n$1:conversion_operator::X const &) [line 27, column 25]\n NULLIFY(&__return_param); [line 27, column 25]\n NULLIFY(&this); [line 27, column 25]\n EXIT_SCOPE(n$0,n$2,n$3,n$4,n$5,n$6,n$7,n$8,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1,this); [line 27, column 25]\n APPLY_ABSTRACTION; [line 27, column 25]\n " shape="box"] +"operator_X#Y#conversion_operator(class conversion_operator::X)#(9875474444891926125).86894a9a1bdbf53dc3721d092420d60c_3" [label="3: Return Stmt \n n$0=*&__return_param:conversion_operator::X* [line 27, column 18]\n n$7=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:conversion_operator::X const ) assign_last [line 27, column 25]\n n$2=*&this:conversion_operator::Y* [line 27, column 27]\n n$3=*n$2.f:int [line 27, column 27]\n n$4=*&this:conversion_operator::Y* [line 27, column 30]\n n$5=*n$4.b:int [line 27, column 30]\n n$6=_fun_conversion_operator::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$1:conversion_operator::X const *,n$3:int,n$5:_Bool) [line 27, column 25]\n n$8=_fun_conversion_operator::X_X(n$0:conversion_operator::X*,&0$?%__sil_tmpSIL_materialize_temp__n$1:conversion_operator::X const &) [line 27, column 25]\n NULLIFY(&__return_param); [line 27, column 25]\n NULLIFY(&this); [line 27, column 25]\n EXIT_SCOPE(n$0,n$2,n$3,n$4,n$5,n$6,n$7,n$8,__return_param,0$?%__sil_tmpSIL_materialize_temp__n$1,this); [line 27, column 25]\n APPLY_ABSTRACTION; [line 27, column 25]\n " shape="box"] "operator_X#Y#conversion_operator(class conversion_operator::X)#(9875474444891926125).86894a9a1bdbf53dc3721d092420d60c_3" -> "operator_X#Y#conversion_operator(class conversion_operator::X)#(9875474444891926125).86894a9a1bdbf53dc3721d092420d60c_2" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/methods/inline_method.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/methods/inline_method.cpp.dot index 20e551c24..8c56be2ce 100644 --- a/infer/tests/codetoanalyze/cpp/shared/methods/inline_method.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/methods/inline_method.cpp.dot @@ -26,7 +26,7 @@ digraph cfg { "fun#A#(6769533171018954461).6e614e38165b38606d6bb10131a47562_3" -> "fun#A#(6769533171018954461).6e614e38165b38606d6bb10131a47562_2" ; -"fun#A#(6769533171018954461).6e614e38165b38606d6bb10131a47562_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&c:int) [line 16, column 5]\n *&c:int=10 [line 16, column 5]\n EXIT_SCOPE(n$2); [line 16, column 5]\n " shape="box"] +"fun#A#(6769533171018954461).6e614e38165b38606d6bb10131a47562_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&c:int) assign_last [line 16, column 5]\n *&c:int=10 [line 16, column 5]\n EXIT_SCOPE(n$2); [line 16, column 5]\n " shape="box"] "fun#A#(6769533171018954461).6e614e38165b38606d6bb10131a47562_4" -> "fun#A#(6769533171018954461).6e614e38165b38606d6bb10131a47562_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/methods/return_struct.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/methods/return_struct.cpp.dot index a0d58d540..3685080df 100644 --- a/infer/tests/codetoanalyze/cpp/shared/methods/return_struct.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/methods/return_struct.cpp.dot @@ -11,7 +11,7 @@ digraph cfg { "test(class A)#14183353284361723530.f22d37fbaacc66a7efb8fb240415be10_3" -> "test(class A)#14183353284361723530.f22d37fbaacc66a7efb8fb240415be10_2" ; -"test(class A)#14183353284361723530.f22d37fbaacc66a7efb8fb240415be10_4" [label="4: DeclStmt \n n$11=_fun___variable_initialization(&x:X) [line 20, column 3]\n n$9=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$4:X) [line 20, column 9]\n n$5=*&a:A* [line 20, column 9]\n _=*n$5:A [line 20, column 9]\n n$8=_fun_A_get(n$5:A*,1:int,&0$?%__sil_tmpSIL_materialize_temp__n$4:X*) [line 20, column 9]\n n$10=_fun_X_X(&x:X*,&0$?%__sil_tmpSIL_materialize_temp__n$4:X&) [line 20, column 9]\n NULLIFY(&a); [line 20, column 9]\n EXIT_SCOPE(_,n$5,n$8,n$9,n$10,n$11,a,0$?%__sil_tmpSIL_materialize_temp__n$4); [line 20, column 9]\n " shape="box"] +"test(class A)#14183353284361723530.f22d37fbaacc66a7efb8fb240415be10_4" [label="4: DeclStmt \n n$11=_fun___variable_initialization(&x:X) assign_last [line 20, column 3]\n n$9=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$4:X) assign_last [line 20, column 9]\n n$5=*&a:A* [line 20, column 9]\n _=*n$5:A [line 20, column 9]\n n$8=_fun_A_get(n$5:A*,1:int,&0$?%__sil_tmpSIL_materialize_temp__n$4:X*) assign_last [line 20, column 9]\n n$10=_fun_X_X(&x:X*,&0$?%__sil_tmpSIL_materialize_temp__n$4:X&) [line 20, column 9]\n NULLIFY(&a); [line 20, column 9]\n EXIT_SCOPE(_,n$5,n$8,n$9,n$10,n$11,a,0$?%__sil_tmpSIL_materialize_temp__n$4); [line 20, column 9]\n " shape="box"] "test(class A)#14183353284361723530.f22d37fbaacc66a7efb8fb240415be10_4" -> "test(class A)#14183353284361723530.f22d37fbaacc66a7efb8fb240415be10_3" ; @@ -26,7 +26,7 @@ digraph cfg { "get#A(class X)#(1761444600576643509).0f83d3543d984a8645cb78162580d93f_3" -> "get#A(class X)#(1761444600576643509).0f83d3543d984a8645cb78162580d93f_2" ; -"get#A(class X)#(1761444600576643509).0f83d3543d984a8645cb78162580d93f_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x:X) [line 14, column 5]\n n$5=_fun_X_X(&x:X*) [line 14, column 7]\n EXIT_SCOPE(n$5,n$6); [line 14, column 7]\n " shape="box"] +"get#A(class X)#(1761444600576643509).0f83d3543d984a8645cb78162580d93f_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x:X) assign_last [line 14, column 5]\n n$5=_fun_X_X(&x:X*) [line 14, column 7]\n EXIT_SCOPE(n$5,n$6); [line 14, column 7]\n " shape="box"] "get#A(class X)#(1761444600576643509).0f83d3543d984a8645cb78162580d93f_4" -> "get#A(class X)#(1761444600576643509).0f83d3543d984a8645cb78162580d93f_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/methods/virtual_methods.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/methods/virtual_methods.cpp.dot index c32da4af0..09f5aa634 100644 --- a/infer/tests/codetoanalyze/cpp/shared/methods/virtual_methods.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/methods/virtual_methods.cpp.dot @@ -11,7 +11,7 @@ digraph cfg { "call_virtual_destructor#6847397116347440235.d267757a410b72cac399f5e3d0ee0f45_3" -> "call_virtual_destructor#6847397116347440235.d267757a410b72cac399f5e3d0ee0f45_2" ; -"call_virtual_destructor#6847397116347440235.d267757a410b72cac399f5e3d0ee0f45_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&trgl:Polygon*) [line 69, column 3]\n n$3=_fun___new(sizeof(t=Triangle):unsigned long) [line 69, column 19]\n n$4=_fun_Triangle_Triangle(n$3:Triangle*) [line 69, column 23]\n *&trgl:Triangle*=n$3 [line 69, column 3]\n EXIT_SCOPE(n$3,n$4,n$5); [line 69, column 3]\n " shape="box"] +"call_virtual_destructor#6847397116347440235.d267757a410b72cac399f5e3d0ee0f45_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&trgl:Polygon*) assign_last [line 69, column 3]\n n$3=_fun___new(sizeof(t=Triangle):unsigned long) [line 69, column 19]\n n$4=_fun_Triangle_Triangle(n$3:Triangle*) [line 69, column 23]\n *&trgl:Triangle*=n$3 [line 69, column 3]\n EXIT_SCOPE(n$3,n$4,n$5); [line 69, column 3]\n " shape="box"] "call_virtual_destructor#6847397116347440235.d267757a410b72cac399f5e3d0ee0f45_4" -> "call_virtual_destructor#6847397116347440235.d267757a410b72cac399f5e3d0ee0f45_3" ; @@ -26,11 +26,11 @@ digraph cfg { "poly_area#4209622570361008343.816833144841084a7fd6071bbff4c354_3" -> "poly_area#4209622570361008343.816833144841084a7fd6071bbff4c354_2" ; -"poly_area#4209622570361008343.816833144841084a7fd6071bbff4c354_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&ppoly3:Polygon*) [line 53, column 3]\n *&ppoly3:Polygon*=&poly [line 53, column 3]\n EXIT_SCOPE(n$6); [line 53, column 3]\n " shape="box"] +"poly_area#4209622570361008343.816833144841084a7fd6071bbff4c354_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&ppoly3:Polygon*) assign_last [line 53, column 3]\n *&ppoly3:Polygon*=&poly [line 53, column 3]\n EXIT_SCOPE(n$6); [line 53, column 3]\n " shape="box"] "poly_area#4209622570361008343.816833144841084a7fd6071bbff4c354_4" -> "poly_area#4209622570361008343.816833144841084a7fd6071bbff4c354_3" ; -"poly_area#4209622570361008343.816833144841084a7fd6071bbff4c354_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&poly:Polygon) [line 52, column 3]\n n$7=_fun_Polygon_Polygon(&poly:Polygon*) [line 52, column 11]\n EXIT_SCOPE(n$7,n$8); [line 52, column 11]\n " shape="box"] +"poly_area#4209622570361008343.816833144841084a7fd6071bbff4c354_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&poly:Polygon) assign_last [line 52, column 3]\n n$7=_fun_Polygon_Polygon(&poly:Polygon*) [line 52, column 11]\n EXIT_SCOPE(n$7,n$8); [line 52, column 11]\n " shape="box"] "poly_area#4209622570361008343.816833144841084a7fd6071bbff4c354_5" -> "poly_area#4209622570361008343.816833144841084a7fd6071bbff4c354_4" ; @@ -49,11 +49,11 @@ digraph cfg { "rect_area#9087317270636867019.dedb17c23e2d96ddd6e1087003e78815_4" -> "rect_area#9087317270636867019.dedb17c23e2d96ddd6e1087003e78815_3" ; -"rect_area#9087317270636867019.dedb17c23e2d96ddd6e1087003e78815_5" [label="5: DeclStmt \n n$9=_fun___variable_initialization(&ppoly1:Polygon*) [line 38, column 3]\n *&ppoly1:Rectangle*=&rect [line 38, column 3]\n EXIT_SCOPE(n$9); [line 38, column 3]\n " shape="box"] +"rect_area#9087317270636867019.dedb17c23e2d96ddd6e1087003e78815_5" [label="5: DeclStmt \n n$9=_fun___variable_initialization(&ppoly1:Polygon*) assign_last [line 38, column 3]\n *&ppoly1:Rectangle*=&rect [line 38, column 3]\n EXIT_SCOPE(n$9); [line 38, column 3]\n " shape="box"] "rect_area#9087317270636867019.dedb17c23e2d96ddd6e1087003e78815_5" -> "rect_area#9087317270636867019.dedb17c23e2d96ddd6e1087003e78815_4" ; -"rect_area#9087317270636867019.dedb17c23e2d96ddd6e1087003e78815_6" [label="6: DeclStmt \n n$11=_fun___variable_initialization(&rect:Rectangle) [line 37, column 3]\n n$10=_fun_Rectangle_Rectangle(&rect:Rectangle*) [line 37, column 13]\n EXIT_SCOPE(n$10,n$11); [line 37, column 13]\n " shape="box"] +"rect_area#9087317270636867019.dedb17c23e2d96ddd6e1087003e78815_6" [label="6: DeclStmt \n n$11=_fun___variable_initialization(&rect:Rectangle) assign_last [line 37, column 3]\n n$10=_fun_Rectangle_Rectangle(&rect:Rectangle*) [line 37, column 13]\n EXIT_SCOPE(n$10,n$11); [line 37, column 13]\n " shape="box"] "rect_area#9087317270636867019.dedb17c23e2d96ddd6e1087003e78815_6" -> "rect_area#9087317270636867019.dedb17c23e2d96ddd6e1087003e78815_5" ; @@ -72,15 +72,15 @@ digraph cfg { "tri_area#1215149030941579879.cc7663ab4ea89457778545059b70bc38_4" -> "tri_area#1215149030941579879.cc7663ab4ea89457778545059b70bc38_3" ; -"tri_area#1215149030941579879.cc7663ab4ea89457778545059b70bc38_5" [label="5: DeclStmt \n n$11=_fun___variable_initialization(&ppoly2:Polygon*) [line 46, column 3]\n *&ppoly2:Triangle*=&trgl [line 46, column 3]\n EXIT_SCOPE(n$11); [line 46, column 3]\n " shape="box"] +"tri_area#1215149030941579879.cc7663ab4ea89457778545059b70bc38_5" [label="5: DeclStmt \n n$11=_fun___variable_initialization(&ppoly2:Polygon*) assign_last [line 46, column 3]\n *&ppoly2:Triangle*=&trgl [line 46, column 3]\n EXIT_SCOPE(n$11); [line 46, column 3]\n " shape="box"] "tri_area#1215149030941579879.cc7663ab4ea89457778545059b70bc38_5" -> "tri_area#1215149030941579879.cc7663ab4ea89457778545059b70bc38_4" ; -"tri_area#1215149030941579879.cc7663ab4ea89457778545059b70bc38_6" [label="6: DeclStmt \n n$13=_fun___variable_initialization(&poly:Polygon) [line 45, column 3]\n n$12=_fun_Polygon_Polygon(&poly:Polygon*) [line 45, column 11]\n EXIT_SCOPE(n$12,n$13); [line 45, column 11]\n " shape="box"] +"tri_area#1215149030941579879.cc7663ab4ea89457778545059b70bc38_6" [label="6: DeclStmt \n n$13=_fun___variable_initialization(&poly:Polygon) assign_last [line 45, column 3]\n n$12=_fun_Polygon_Polygon(&poly:Polygon*) [line 45, column 11]\n EXIT_SCOPE(n$12,n$13); [line 45, column 11]\n " shape="box"] "tri_area#1215149030941579879.cc7663ab4ea89457778545059b70bc38_6" -> "tri_area#1215149030941579879.cc7663ab4ea89457778545059b70bc38_5" ; -"tri_area#1215149030941579879.cc7663ab4ea89457778545059b70bc38_7" [label="7: DeclStmt \n n$15=_fun___variable_initialization(&trgl:Triangle) [line 44, column 3]\n n$14=_fun_Triangle_Triangle(&trgl:Triangle*) [line 44, column 12]\n EXIT_SCOPE(n$14,n$15); [line 44, column 12]\n " shape="box"] +"tri_area#1215149030941579879.cc7663ab4ea89457778545059b70bc38_7" [label="7: DeclStmt \n n$15=_fun___variable_initialization(&trgl:Triangle) assign_last [line 44, column 3]\n n$14=_fun_Triangle_Triangle(&trgl:Triangle*) [line 44, column 12]\n EXIT_SCOPE(n$14,n$15); [line 44, column 12]\n " shape="box"] "tri_area#1215149030941579879.cc7663ab4ea89457778545059b70bc38_7" -> "tri_area#1215149030941579879.cc7663ab4ea89457778545059b70bc38_6" ; @@ -99,15 +99,15 @@ digraph cfg { "tri_not_virtual_area#9435562296359660595.88e7106fc7dcfd34401502a9deb415ac_4" -> "tri_not_virtual_area#9435562296359660595.88e7106fc7dcfd34401502a9deb415ac_3" ; -"tri_not_virtual_area#9435562296359660595.88e7106fc7dcfd34401502a9deb415ac_5" [label="5: DeclStmt \n n$11=_fun___variable_initialization(&ppoly2:Polygon*) [line 60, column 3]\n *&ppoly2:Triangle*=&trgl [line 60, column 3]\n EXIT_SCOPE(n$11); [line 60, column 3]\n " shape="box"] +"tri_not_virtual_area#9435562296359660595.88e7106fc7dcfd34401502a9deb415ac_5" [label="5: DeclStmt \n n$11=_fun___variable_initialization(&ppoly2:Polygon*) assign_last [line 60, column 3]\n *&ppoly2:Triangle*=&trgl [line 60, column 3]\n EXIT_SCOPE(n$11); [line 60, column 3]\n " shape="box"] "tri_not_virtual_area#9435562296359660595.88e7106fc7dcfd34401502a9deb415ac_5" -> "tri_not_virtual_area#9435562296359660595.88e7106fc7dcfd34401502a9deb415ac_4" ; -"tri_not_virtual_area#9435562296359660595.88e7106fc7dcfd34401502a9deb415ac_6" [label="6: DeclStmt \n n$13=_fun___variable_initialization(&poly:Polygon) [line 59, column 3]\n n$12=_fun_Polygon_Polygon(&poly:Polygon*) [line 59, column 11]\n EXIT_SCOPE(n$12,n$13); [line 59, column 11]\n " shape="box"] +"tri_not_virtual_area#9435562296359660595.88e7106fc7dcfd34401502a9deb415ac_6" [label="6: DeclStmt \n n$13=_fun___variable_initialization(&poly:Polygon) assign_last [line 59, column 3]\n n$12=_fun_Polygon_Polygon(&poly:Polygon*) [line 59, column 11]\n EXIT_SCOPE(n$12,n$13); [line 59, column 11]\n " shape="box"] "tri_not_virtual_area#9435562296359660595.88e7106fc7dcfd34401502a9deb415ac_6" -> "tri_not_virtual_area#9435562296359660595.88e7106fc7dcfd34401502a9deb415ac_5" ; -"tri_not_virtual_area#9435562296359660595.88e7106fc7dcfd34401502a9deb415ac_7" [label="7: DeclStmt \n n$15=_fun___variable_initialization(&trgl:Triangle) [line 58, column 3]\n n$14=_fun_Triangle_Triangle(&trgl:Triangle*) [line 58, column 12]\n EXIT_SCOPE(n$14,n$15); [line 58, column 12]\n " shape="box"] +"tri_not_virtual_area#9435562296359660595.88e7106fc7dcfd34401502a9deb415ac_7" [label="7: DeclStmt \n n$15=_fun___variable_initialization(&trgl:Triangle) assign_last [line 58, column 3]\n n$14=_fun_Triangle_Triangle(&trgl:Triangle*) [line 58, column 12]\n EXIT_SCOPE(n$14,n$15); [line 58, column 12]\n " shape="box"] "tri_not_virtual_area#9435562296359660595.88e7106fc7dcfd34401502a9deb415ac_7" -> "tri_not_virtual_area#9435562296359660595.88e7106fc7dcfd34401502a9deb415ac_6" ; @@ -177,7 +177,7 @@ digraph cfg { "area#Triangle#(14534668876010564879).b2c96bbb8f170e9d12180637dc0d6da3_3" -> "area#Triangle#(14534668876010564879).b2c96bbb8f170e9d12180637dc0d6da3_2" ; -"area#Triangle#(14534668876010564879).b2c96bbb8f170e9d12180637dc0d6da3_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x:int) [line 31, column 5]\n n$2=*&this:Triangle* [line 31, column 13]\n n$3=*n$2.width:int [line 31, column 13]\n n$4=*&this:Triangle* [line 31, column 21]\n n$5=*n$4.height:int [line 31, column 21]\n *&x:int=(n$3 * n$5) [line 31, column 5]\n NULLIFY(&this); [line 31, column 5]\n EXIT_SCOPE(n$2,n$3,n$4,n$5,n$6,this); [line 31, column 5]\n " shape="box"] +"area#Triangle#(14534668876010564879).b2c96bbb8f170e9d12180637dc0d6da3_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&x:int) assign_last [line 31, column 5]\n n$2=*&this:Triangle* [line 31, column 13]\n n$3=*n$2.width:int [line 31, column 13]\n n$4=*&this:Triangle* [line 31, column 21]\n n$5=*n$4.height:int [line 31, column 21]\n *&x:int=(n$3 * n$5) [line 31, column 5]\n NULLIFY(&this); [line 31, column 5]\n EXIT_SCOPE(n$2,n$3,n$4,n$5,n$6,this); [line 31, column 5]\n " shape="box"] "area#Triangle#(14534668876010564879).b2c96bbb8f170e9d12180637dc0d6da3_4" -> "area#Triangle#(14534668876010564879).b2c96bbb8f170e9d12180637dc0d6da3_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/namespace/function.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/namespace/function.cpp.dot index 54b714984..bf4abea5c 100644 --- a/infer/tests/codetoanalyze/cpp/shared/namespace/function.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/namespace/function.cpp.dot @@ -66,7 +66,7 @@ digraph cfg { "type_alias_div0#11064282270104671255.675c026241b82e6430f7456d997b57b4_3" -> "type_alias_div0#11064282270104671255.675c026241b82e6430f7456d997b57b4_2" ; -"type_alias_div0#11064282270104671255.675c026241b82e6430f7456d997b57b4_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&x:int) [line 38, column 3]\n *&x:int=0 [line 38, column 3]\n EXIT_SCOPE(n$2); [line 38, column 3]\n " shape="box"] +"type_alias_div0#11064282270104671255.675c026241b82e6430f7456d997b57b4_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&x:int) assign_last [line 38, column 3]\n *&x:int=0 [line 38, column 3]\n EXIT_SCOPE(n$2); [line 38, column 3]\n " shape="box"] "type_alias_div0#11064282270104671255.675c026241b82e6430f7456d997b57b4_4" -> "type_alias_div0#11064282270104671255.675c026241b82e6430f7456d997b57b4_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/namespace/namespace.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/namespace/namespace.cpp.dot index 4ba2fedfe..9074594d0 100644 --- a/infer/tests/codetoanalyze/cpp/shared/namespace/namespace.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/namespace/namespace.cpp.dot @@ -31,7 +31,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_8" -> "main.fad58de7366495db4650cfefac2fcd61_7" ; -"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$7=_fun___variable_initialization(&rect2:foo::Rectangle) [line 49, column 3]\n n$6=_fun_foo::Rectangle_Rectangle(&rect2:foo::Rectangle*) [line 49, column 18]\n EXIT_SCOPE(n$6,n$7); [line 49, column 18]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$7=_fun___variable_initialization(&rect2:foo::Rectangle) assign_last [line 49, column 3]\n n$6=_fun_foo::Rectangle_Rectangle(&rect2:foo::Rectangle*) [line 49, column 18]\n EXIT_SCOPE(n$6,n$7); [line 49, column 18]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_9" -> "main.fad58de7366495db4650cfefac2fcd61_8" ; @@ -39,11 +39,11 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_10" -> "main.fad58de7366495db4650cfefac2fcd61_9" ; -"main.fad58de7366495db4650cfefac2fcd61_11" [label="11: DeclStmt \n n$11=_fun___variable_initialization(&rect1:bar::Rectangle) [line 46, column 3]\n n$10=_fun_bar::Rectangle_Rectangle(&rect1:bar::Rectangle*) [line 46, column 18]\n EXIT_SCOPE(n$10,n$11); [line 46, column 18]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_11" [label="11: DeclStmt \n n$11=_fun___variable_initialization(&rect1:bar::Rectangle) assign_last [line 46, column 3]\n n$10=_fun_bar::Rectangle_Rectangle(&rect1:bar::Rectangle*) [line 46, column 18]\n EXIT_SCOPE(n$10,n$11); [line 46, column 18]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_11" -> "main.fad58de7366495db4650cfefac2fcd61_10" ; -"main.fad58de7366495db4650cfefac2fcd61_12" [label="12: DeclStmt \n n$13=_fun___variable_initialization(&x:foo::my_record) [line 44, column 3]\n n$12=_fun_foo::my_record_(&x:foo::my_record*) [line 44, column 18]\n EXIT_SCOPE(n$12,n$13); [line 44, column 18]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_12" [label="12: DeclStmt \n n$13=_fun___variable_initialization(&x:foo::my_record) assign_last [line 44, column 3]\n n$12=_fun_foo::my_record_(&x:foo::my_record*) [line 44, column 18]\n EXIT_SCOPE(n$12,n$13); [line 44, column 18]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_12" -> "main.fad58de7366495db4650cfefac2fcd61_11" ; @@ -54,7 +54,7 @@ digraph cfg { "pi#__infer_globals_initializer_bar.1155d696836634e07d40a8f71831e209_2" [label="2: Exit __infer_globals_initializer_bar::pi \n " color=yellow style=filled] -"pi#__infer_globals_initializer_bar.1155d696836634e07d40a8f71831e209_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&#GB$bar::pi:double const ) [line 27, column 1]\n *&#GB$bar::pi:double=3.1416 [line 27, column 1]\n EXIT_SCOPE(n$0); [line 27, column 1]\n APPLY_ABSTRACTION; [line 27, column 1]\n " shape="box"] +"pi#__infer_globals_initializer_bar.1155d696836634e07d40a8f71831e209_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&#GB$bar::pi:double const ) assign_last [line 27, column 1]\n *&#GB$bar::pi:double=3.1416 [line 27, column 1]\n EXIT_SCOPE(n$0); [line 27, column 1]\n APPLY_ABSTRACTION; [line 27, column 1]\n " shape="box"] "pi#__infer_globals_initializer_bar.1155d696836634e07d40a8f71831e209_3" -> "pi#__infer_globals_initializer_bar.1155d696836634e07d40a8f71831e209_2" ; @@ -65,7 +65,7 @@ digraph cfg { "rect#__infer_globals_initializer_bar.4a1fbff7dd04d46c33088cc2bed92914_2" [label="2: Exit __infer_globals_initializer_bar::rect \n " color=yellow style=filled] -"rect#__infer_globals_initializer_bar.4a1fbff7dd04d46c33088cc2bed92914_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&#GB$bar::rect:bar::Rectangle) [line 30, column 1]\n n$0=_fun_bar::Rectangle_Rectangle(&#GB$bar::rect:bar::Rectangle*) [line 36, column 3]\n EXIT_SCOPE(n$0,n$1); [line 36, column 3]\n APPLY_ABSTRACTION; [line 36, column 3]\n " shape="box"] +"rect#__infer_globals_initializer_bar.4a1fbff7dd04d46c33088cc2bed92914_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&#GB$bar::rect:bar::Rectangle) assign_last [line 30, column 1]\n n$0=_fun_bar::Rectangle_Rectangle(&#GB$bar::rect:bar::Rectangle*) [line 36, column 3]\n EXIT_SCOPE(n$0,n$1); [line 36, column 3]\n APPLY_ABSTRACTION; [line 36, column 3]\n " shape="box"] "rect#__infer_globals_initializer_bar.4a1fbff7dd04d46c33088cc2bed92914_3" -> "rect#__infer_globals_initializer_bar.4a1fbff7dd04d46c33088cc2bed92914_2" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_for.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_for.cpp.dot index bbdc949bc..bf3f17638 100644 --- a/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_for.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_for.cpp.dot @@ -11,7 +11,7 @@ digraph cfg { "init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_3" -> "init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_8" ; -"init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&i:int) [line 17, column 8]\n *&i:int=10 [line 17, column 8]\n EXIT_SCOPE(n$1); [line 17, column 8]\n APPLY_ABSTRACTION; [line 17, column 8]\n " shape="box"] +"init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&i:int) assign_last [line 17, column 8]\n *&i:int=10 [line 17, column 8]\n EXIT_SCOPE(n$1); [line 17, column 8]\n APPLY_ABSTRACTION; [line 17, column 8]\n " shape="box"] "init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_4" -> "init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_3" ; @@ -27,16 +27,16 @@ digraph cfg { "init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_7" -> "init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_2" ; -"init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_8" [label="8: DeclStmt \n n$5=_fun___variable_initialization(&x:int) [line 17, column 20]\n n$4=*&i:int [line 17, column 28]\n *&x:int=n$4 [line 17, column 20]\n EXIT_SCOPE(n$4,n$5); [line 17, column 20]\n " shape="box"] +"init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_8" [label="8: DeclStmt \n n$5=_fun___variable_initialization(&x:int) assign_last [line 17, column 20]\n n$4=*&i:int [line 17, column 28]\n *&x:int=n$4 [line 17, column 20]\n EXIT_SCOPE(n$4,n$5); [line 17, column 20]\n " shape="box"] "init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_8" -> "init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_6" ; "init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_8" -> "init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_7" ; -"init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_9" [label="9: BinaryOperatorStmt: AddAssign \n n$7=*&x:int [line 18, column 15]\n n$8=*&result:int [line 18, column 5]\n *&result:int=(n$8 + n$7) [line 18, column 5]\n EXIT_SCOPE(n$7,n$8); [line 18, column 5]\n " shape="box"] +"init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_9" [label="9: BinaryOperatorStmt: AddAssign \n n$7=*&x:int [line 18, column 15]\n n$8=*&result:int [line 18, column 5]\n *&result:int=(n$8 + n$7) [line 18, column 5]\n NULLIFY(&x); [line 18, column 5]\n EXIT_SCOPE(n$7,n$8,x); [line 18, column 5]\n " shape="box"] "init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_9" -> "init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_5" ; -"init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_10" [label="10: DeclStmt \n n$10=_fun___variable_initialization(&result:int) [line 16, column 3]\n *&result:int=0 [line 16, column 3]\n EXIT_SCOPE(n$10); [line 16, column 3]\n " shape="box"] +"init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_10" [label="10: DeclStmt \n n$10=_fun___variable_initialization(&result:int) assign_last [line 16, column 3]\n *&result:int=0 [line 16, column 3]\n EXIT_SCOPE(n$10); [line 16, column 3]\n " shape="box"] "init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_10" -> "init_with_scoped_var#8128013931289981830.1ee58ae56eeb1744bf4b3cc5c8cf5d42_4" ; @@ -51,7 +51,7 @@ digraph cfg { "simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_3" -> "simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_8" ; -"simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&i:int) [line 10, column 8]\n *&i:int=0 [line 10, column 8]\n EXIT_SCOPE(n$1); [line 10, column 8]\n APPLY_ABSTRACTION; [line 10, column 8]\n " shape="box"] +"simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&i:int) assign_last [line 10, column 8]\n *&i:int=0 [line 10, column 8]\n EXIT_SCOPE(n$1); [line 10, column 8]\n APPLY_ABSTRACTION; [line 10, column 8]\n " shape="box"] "simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_4" -> "simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_3" ; @@ -67,16 +67,16 @@ digraph cfg { "simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_7" -> "simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_2" ; -"simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&x:int) [line 10, column 19]\n *&x:int=2 [line 10, column 19]\n EXIT_SCOPE(n$4); [line 10, column 19]\n " shape="box"] +"simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&x:int) assign_last [line 10, column 19]\n *&x:int=2 [line 10, column 19]\n EXIT_SCOPE(n$4); [line 10, column 19]\n " shape="box"] "simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_8" -> "simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_6" ; "simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_8" -> "simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_7" ; -"simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_9" [label="9: BinaryOperatorStmt: AddAssign \n n$6=*&x:int [line 11, column 15]\n n$7=*&result:int [line 11, column 5]\n *&result:int=(n$7 + n$6) [line 11, column 5]\n EXIT_SCOPE(n$6,n$7); [line 11, column 5]\n " shape="box"] +"simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_9" [label="9: BinaryOperatorStmt: AddAssign \n n$6=*&x:int [line 11, column 15]\n n$7=*&result:int [line 11, column 5]\n *&result:int=(n$7 + n$6) [line 11, column 5]\n NULLIFY(&x); [line 11, column 5]\n EXIT_SCOPE(n$6,n$7,x); [line 11, column 5]\n " shape="box"] "simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_9" -> "simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_5" ; -"simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_10" [label="10: DeclStmt \n n$9=_fun___variable_initialization(&result:int) [line 9, column 3]\n *&result:int=0 [line 9, column 3]\n EXIT_SCOPE(n$9); [line 9, column 3]\n " shape="box"] +"simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_10" [label="10: DeclStmt \n n$9=_fun___variable_initialization(&result:int) assign_last [line 9, column 3]\n *&result:int=0 [line 9, column 3]\n EXIT_SCOPE(n$9); [line 9, column 3]\n " shape="box"] "simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_10" -> "simple_init#1527365342003611175.8f75bf8cf2aefccd4d47ab9274e1f9af_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_if.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_if.cpp.dot index b9375e288..1d52a1ffb 100644 --- a/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_if.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_if.cpp.dot @@ -44,7 +44,7 @@ digraph cfg { "conditional_init_div0#15409862859031639280.1a402395676f14cae9f26917a820e9ed_11" -> "conditional_init_div0#15409862859031639280.1a402395676f14cae9f26917a820e9ed_7" ; -"conditional_init_div0#15409862859031639280.1a402395676f14cae9f26917a820e9ed_12" [label="12: DeclStmt \n n$4=_fun___variable_initialization(&a:int) [line 41, column 7]\n n$3=*&0$?%__sil_tmpSIL_temp_conditional___n$2:int [line 41, column 15]\n *&a:int=n$3 [line 41, column 7]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$2); [line 41, column 7]\n EXIT_SCOPE(n$3,n$4,0$?%__sil_tmpSIL_temp_conditional___n$2); [line 41, column 7]\n " shape="box"] +"conditional_init_div0#15409862859031639280.1a402395676f14cae9f26917a820e9ed_12" [label="12: DeclStmt \n n$4=_fun___variable_initialization(&a:int) assign_last [line 41, column 7]\n n$3=*&0$?%__sil_tmpSIL_temp_conditional___n$2:int [line 41, column 15]\n *&a:int=n$3 [line 41, column 7]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$2); [line 41, column 7]\n EXIT_SCOPE(n$3,n$4,0$?%__sil_tmpSIL_temp_conditional___n$2); [line 41, column 7]\n " shape="box"] "conditional_init_div0#15409862859031639280.1a402395676f14cae9f26917a820e9ed_12" -> "conditional_init_div0#15409862859031639280.1a402395676f14cae9f26917a820e9ed_5" ; @@ -76,7 +76,7 @@ digraph cfg { "function_call_init_div0#7458225874916439501.0ec340f42ffbe340a808e1b8bee4f555_6" -> "function_call_init_div0#7458225874916439501.0ec340f42ffbe340a808e1b8bee4f555_3" ; -"function_call_init_div0#7458225874916439501.0ec340f42ffbe340a808e1b8bee4f555_7" [label="7: DeclStmt \n n$3=_fun___variable_initialization(&a:int) [line 35, column 7]\n n$2=_fun_get1() [line 35, column 15]\n *&a:int=n$2 [line 35, column 7]\n EXIT_SCOPE(n$2,n$3); [line 35, column 7]\n " shape="box"] +"function_call_init_div0#7458225874916439501.0ec340f42ffbe340a808e1b8bee4f555_7" [label="7: DeclStmt \n n$3=_fun___variable_initialization(&a:int) assign_last [line 35, column 7]\n n$2=_fun_get1() [line 35, column 15]\n *&a:int=n$2 [line 35, column 7]\n EXIT_SCOPE(n$2,n$3); [line 35, column 7]\n " shape="box"] "function_call_init_div0#7458225874916439501.0ec340f42ffbe340a808e1b8bee4f555_7" -> "function_call_init_div0#7458225874916439501.0ec340f42ffbe340a808e1b8bee4f555_5" ; @@ -119,7 +119,7 @@ digraph cfg { "reference_init_div0#8765531464226376816.66e8a6545ef6e4641561744b4125ae49_6" -> "reference_init_div0#8765531464226376816.66e8a6545ef6e4641561744b4125ae49_4" ; -"reference_init_div0#8765531464226376816.66e8a6545ef6e4641561744b4125ae49_7" [label="7: DeclStmt \n n$4=_fun___variable_initialization(&a:int&) [line 48, column 7]\n *&a:int&=&r [line 48, column 7]\n EXIT_SCOPE(n$4); [line 48, column 7]\n " shape="box"] +"reference_init_div0#8765531464226376816.66e8a6545ef6e4641561744b4125ae49_7" [label="7: DeclStmt \n n$4=_fun___variable_initialization(&a:int&) assign_last [line 48, column 7]\n *&a:int&=&r [line 48, column 7]\n EXIT_SCOPE(n$4); [line 48, column 7]\n " shape="box"] "reference_init_div0#8765531464226376816.66e8a6545ef6e4641561744b4125ae49_7" -> "reference_init_div0#8765531464226376816.66e8a6545ef6e4641561744b4125ae49_5" ; @@ -128,7 +128,7 @@ digraph cfg { "reference_init_div0#8765531464226376816.66e8a6545ef6e4641561744b4125ae49_8" -> "reference_init_div0#8765531464226376816.66e8a6545ef6e4641561744b4125ae49_4" ; -"reference_init_div0#8765531464226376816.66e8a6545ef6e4641561744b4125ae49_9" [label="9: DeclStmt \n n$9=_fun___variable_initialization(&r:int) [line 47, column 3]\n *&r:int=1 [line 47, column 3]\n EXIT_SCOPE(n$9); [line 47, column 3]\n " shape="box"] +"reference_init_div0#8765531464226376816.66e8a6545ef6e4641561744b4125ae49_9" [label="9: DeclStmt \n n$9=_fun___variable_initialization(&r:int) assign_last [line 47, column 3]\n *&r:int=1 [line 47, column 3]\n EXIT_SCOPE(n$9); [line 47, column 3]\n " shape="box"] "reference_init_div0#8765531464226376816.66e8a6545ef6e4641561744b4125ae49_9" -> "reference_init_div0#8765531464226376816.66e8a6545ef6e4641561744b4125ae49_7" ; @@ -155,7 +155,7 @@ digraph cfg { "simple_inif_elseif_div0#1757541495273878703.c8ccefe72cee28b41298deb3c0060bd6_6" -> "simple_inif_elseif_div0#1757541495273878703.c8ccefe72cee28b41298deb3c0060bd6_12" ; -"simple_inif_elseif_div0#1757541495273878703.c8ccefe72cee28b41298deb3c0060bd6_7" [label="7: DeclStmt \n n$2=_fun___variable_initialization(&a:int) [line 23, column 7]\n *&a:int=0 [line 23, column 7]\n EXIT_SCOPE(n$2); [line 23, column 7]\n " shape="box"] +"simple_inif_elseif_div0#1757541495273878703.c8ccefe72cee28b41298deb3c0060bd6_7" [label="7: DeclStmt \n n$2=_fun___variable_initialization(&a:int) assign_last [line 23, column 7]\n *&a:int=0 [line 23, column 7]\n EXIT_SCOPE(n$2); [line 23, column 7]\n " shape="box"] "simple_inif_elseif_div0#1757541495273878703.c8ccefe72cee28b41298deb3c0060bd6_7" -> "simple_inif_elseif_div0#1757541495273878703.c8ccefe72cee28b41298deb3c0060bd6_5" ; @@ -176,7 +176,7 @@ digraph cfg { "simple_inif_elseif_div0#1757541495273878703.c8ccefe72cee28b41298deb3c0060bd6_11" -> "simple_inif_elseif_div0#1757541495273878703.c8ccefe72cee28b41298deb3c0060bd6_14" ; -"simple_inif_elseif_div0#1757541495273878703.c8ccefe72cee28b41298deb3c0060bd6_12" [label="12: DeclStmt \n n$5=_fun___variable_initialization(&b:int) [line 25, column 14]\n *&b:int=0 [line 25, column 14]\n EXIT_SCOPE(n$5); [line 25, column 14]\n " shape="box"] +"simple_inif_elseif_div0#1757541495273878703.c8ccefe72cee28b41298deb3c0060bd6_12" [label="12: DeclStmt \n n$5=_fun___variable_initialization(&b:int) assign_last [line 25, column 14]\n *&b:int=0 [line 25, column 14]\n EXIT_SCOPE(n$5); [line 25, column 14]\n " shape="box"] "simple_inif_elseif_div0#1757541495273878703.c8ccefe72cee28b41298deb3c0060bd6_12" -> "simple_inif_elseif_div0#1757541495273878703.c8ccefe72cee28b41298deb3c0060bd6_10" ; @@ -212,7 +212,7 @@ digraph cfg { "simple_init_div0#11745425529376514034.212fa73086397a0d668498a9c8eff99e_6" -> "simple_init_div0#11745425529376514034.212fa73086397a0d668498a9c8eff99e_9" ; -"simple_init_div0#11745425529376514034.212fa73086397a0d668498a9c8eff99e_7" [label="7: DeclStmt \n n$2=_fun___variable_initialization(&a:int) [line 15, column 7]\n *&a:int=0 [line 15, column 7]\n EXIT_SCOPE(n$2); [line 15, column 7]\n " shape="box"] +"simple_init_div0#11745425529376514034.212fa73086397a0d668498a9c8eff99e_7" [label="7: DeclStmt \n n$2=_fun___variable_initialization(&a:int) assign_last [line 15, column 7]\n *&a:int=0 [line 15, column 7]\n EXIT_SCOPE(n$2); [line 15, column 7]\n " shape="box"] "simple_init_div0#11745425529376514034.212fa73086397a0d668498a9c8eff99e_7" -> "simple_init_div0#11745425529376514034.212fa73086397a0d668498a9c8eff99e_5" ; @@ -248,7 +248,7 @@ digraph cfg { "simple_init_div1#11746272153330047279.0563640869475a4683e824c15c85a68a_6" -> "simple_init_div1#11746272153330047279.0563640869475a4683e824c15c85a68a_3" ; -"simple_init_div1#11746272153330047279.0563640869475a4683e824c15c85a68a_7" [label="7: DeclStmt \n n$2=_fun___variable_initialization(&a:int) [line 9, column 7]\n *&a:int=1 [line 9, column 7]\n EXIT_SCOPE(n$2); [line 9, column 7]\n " shape="box"] +"simple_init_div1#11746272153330047279.0563640869475a4683e824c15c85a68a_7" [label="7: DeclStmt \n n$2=_fun___variable_initialization(&a:int) assign_last [line 9, column 7]\n *&a:int=1 [line 9, column 7]\n EXIT_SCOPE(n$2); [line 9, column 7]\n " shape="box"] "simple_init_div1#11746272153330047279.0563640869475a4683e824c15c85a68a_7" -> "simple_init_div1#11746272153330047279.0563640869475a4683e824c15c85a68a_5" ; @@ -280,7 +280,7 @@ digraph cfg { "simple_init_null_deref#4388790903269166010.3931bff4c48c8b02a470a54ec37db174_6" -> "simple_init_null_deref#4388790903269166010.3931bff4c48c8b02a470a54ec37db174_9" ; -"simple_init_null_deref#4388790903269166010.3931bff4c48c8b02a470a54ec37db174_7" [label="7: DeclStmt \n n$2=_fun___variable_initialization(&p:int*) [line 55, column 7]\n *&p:int*=null [line 55, column 7]\n EXIT_SCOPE(n$2); [line 55, column 7]\n " shape="box"] +"simple_init_null_deref#4388790903269166010.3931bff4c48c8b02a470a54ec37db174_7" [label="7: DeclStmt \n n$2=_fun___variable_initialization(&p:int*) assign_last [line 55, column 7]\n *&p:int*=null [line 55, column 7]\n EXIT_SCOPE(n$2); [line 55, column 7]\n " shape="box"] "simple_init_null_deref#4388790903269166010.3931bff4c48c8b02a470a54ec37db174_7" -> "simple_init_null_deref#4388790903269166010.3931bff4c48c8b02a470a54ec37db174_5" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_switch.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_switch.cpp.dot index 94dd915aa..f7b8fa2d0 100644 --- a/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_switch.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_switch.cpp.dot @@ -12,7 +12,7 @@ digraph cfg { "get#10177141129833125794.403aae26476e3a02c544075e122228e0_3" -> "get#10177141129833125794.403aae26476e3a02c544075e122228e0_12" ; "get#10177141129833125794.403aae26476e3a02c544075e122228e0_3" -> "get#10177141129833125794.403aae26476e3a02c544075e122228e0_13" ; -"get#10177141129833125794.403aae26476e3a02c544075e122228e0_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&x:int) [line 9, column 11]\n n$2=*&a:int [line 9, column 19]\n *&x:int=n$2 [line 9, column 11]\n NULLIFY(&a); [line 9, column 11]\n EXIT_SCOPE(n$2,n$3,a); [line 9, column 11]\n " shape="box"] +"get#10177141129833125794.403aae26476e3a02c544075e122228e0_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&x:int) assign_last [line 9, column 11]\n n$2=*&a:int [line 9, column 19]\n *&x:int=n$2 [line 9, column 11]\n NULLIFY(&a); [line 9, column 11]\n EXIT_SCOPE(n$2,n$3,a); [line 9, column 11]\n " shape="box"] "get#10177141129833125794.403aae26476e3a02c544075e122228e0_4" -> "get#10177141129833125794.403aae26476e3a02c544075e122228e0_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_while.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_while.cpp.dot index 6d654d5d1..903c55ccf 100644 --- a/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_while.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_while.cpp.dot @@ -48,7 +48,7 @@ digraph cfg { "conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_12" -> "conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_7" ; -"conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_13" [label="13: DeclStmt \n n$6=_fun___variable_initialization(&a:int) [line 21, column 10]\n n$5=*&0$?%__sil_tmpSIL_temp_conditional___n$2:int [line 21, column 18]\n *&a:int=n$5 [line 21, column 10]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$2); [line 21, column 10]\n EXIT_SCOPE(n$5,n$6,0$?%__sil_tmpSIL_temp_conditional___n$2); [line 21, column 10]\n " shape="box"] +"conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_13" [label="13: DeclStmt \n n$6=_fun___variable_initialization(&a:int) assign_last [line 21, column 10]\n n$5=*&0$?%__sil_tmpSIL_temp_conditional___n$2:int [line 21, column 18]\n *&a:int=n$5 [line 21, column 10]\n NULLIFY(&0$?%__sil_tmpSIL_temp_conditional___n$2); [line 21, column 10]\n EXIT_SCOPE(n$5,n$6,0$?%__sil_tmpSIL_temp_conditional___n$2); [line 21, column 10]\n " shape="box"] "conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_13" -> "conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_5" ; @@ -57,15 +57,15 @@ digraph cfg { "conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_14" -> "conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_4" ; -"conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_15" [label="15: BinaryOperatorStmt: AddAssign \n n$9=*&a:int [line 22, column 15]\n n$10=*&result:int [line 22, column 5]\n *&result:int=(n$10 + n$9) [line 22, column 5]\n EXIT_SCOPE(n$9,n$10); [line 22, column 5]\n " shape="box"] +"conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_15" [label="15: BinaryOperatorStmt: AddAssign \n n$9=*&a:int [line 22, column 15]\n n$10=*&result:int [line 22, column 5]\n *&result:int=(n$10 + n$9) [line 22, column 5]\n NULLIFY(&a); [line 22, column 5]\n EXIT_SCOPE(n$9,n$10,a); [line 22, column 5]\n " shape="box"] "conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_15" -> "conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_14" ; -"conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_16" [label="16: DeclStmt \n n$12=_fun___variable_initialization(&result:int) [line 20, column 3]\n *&result:int=0 [line 20, column 3]\n EXIT_SCOPE(n$12); [line 20, column 3]\n APPLY_ABSTRACTION; [line 20, column 3]\n " shape="box"] +"conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_16" [label="16: DeclStmt \n n$12=_fun___variable_initialization(&result:int) assign_last [line 20, column 3]\n *&result:int=0 [line 20, column 3]\n EXIT_SCOPE(n$12); [line 20, column 3]\n APPLY_ABSTRACTION; [line 20, column 3]\n " shape="box"] "conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_16" -> "conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_4" ; -"conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_17" [label="17: DeclStmt \n n$13=_fun___variable_initialization(&x:int) [line 19, column 3]\n *&x:int=10 [line 19, column 3]\n EXIT_SCOPE(n$13); [line 19, column 3]\n " shape="box"] +"conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_17" [label="17: DeclStmt \n n$13=_fun___variable_initialization(&x:int) assign_last [line 19, column 3]\n *&x:int=10 [line 19, column 3]\n EXIT_SCOPE(n$13); [line 19, column 3]\n " shape="box"] "conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_17" -> "conditional_assignment#8950169167588471442.be2d62cec5392b85b8d4d274664d86c5_16" ; @@ -92,7 +92,7 @@ digraph cfg { "simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_6" -> "simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_3" ; -"simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_7" [label="7: DeclStmt \n n$3=_fun___variable_initialization(&a:int) [line 11, column 10]\n n$2=*&x:int [line 11, column 18]\n *&a:int=n$2 [line 11, column 10]\n EXIT_SCOPE(n$2,n$3); [line 11, column 10]\n " shape="box"] +"simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_7" [label="7: DeclStmt \n n$3=_fun___variable_initialization(&a:int) assign_last [line 11, column 10]\n n$2=*&x:int [line 11, column 18]\n *&a:int=n$2 [line 11, column 10]\n EXIT_SCOPE(n$2,n$3); [line 11, column 10]\n " shape="box"] "simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_7" -> "simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_5" ; @@ -101,15 +101,15 @@ digraph cfg { "simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_8" -> "simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_4" ; -"simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_9" [label="9: BinaryOperatorStmt: AddAssign \n n$6=*&a:int [line 12, column 15]\n n$7=*&result:int [line 12, column 5]\n *&result:int=(n$7 + n$6) [line 12, column 5]\n EXIT_SCOPE(n$6,n$7); [line 12, column 5]\n " shape="box"] +"simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_9" [label="9: BinaryOperatorStmt: AddAssign \n n$6=*&a:int [line 12, column 15]\n n$7=*&result:int [line 12, column 5]\n *&result:int=(n$7 + n$6) [line 12, column 5]\n NULLIFY(&a); [line 12, column 5]\n EXIT_SCOPE(n$6,n$7,a); [line 12, column 5]\n " shape="box"] "simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_9" -> "simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_8" ; -"simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_10" [label="10: DeclStmt \n n$9=_fun___variable_initialization(&result:int) [line 10, column 3]\n *&result:int=0 [line 10, column 3]\n EXIT_SCOPE(n$9); [line 10, column 3]\n APPLY_ABSTRACTION; [line 10, column 3]\n " shape="box"] +"simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_10" [label="10: DeclStmt \n n$9=_fun___variable_initialization(&result:int) assign_last [line 10, column 3]\n *&result:int=0 [line 10, column 3]\n EXIT_SCOPE(n$9); [line 10, column 3]\n APPLY_ABSTRACTION; [line 10, column 3]\n " shape="box"] "simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_10" -> "simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_4" ; -"simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_11" [label="11: DeclStmt \n n$10=_fun___variable_initialization(&x:int) [line 9, column 3]\n *&x:int=10 [line 9, column 3]\n EXIT_SCOPE(n$10); [line 9, column 3]\n " shape="box"] +"simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_11" [label="11: DeclStmt \n n$10=_fun___variable_initialization(&x:int) assign_last [line 9, column 3]\n *&x:int=10 [line 9, column 3]\n EXIT_SCOPE(n$10); [line 9, column 3]\n " shape="box"] "simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_11" -> "simple_assignment#6454162814810356464.3b57619dd6c2d612798bc9ac9e7cf8ee_10" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/npe/method_call.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/npe/method_call.cpp.dot index f95cf4eb9..a1967d6a7 100644 --- a/infer/tests/codetoanalyze/cpp/shared/npe/method_call.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/npe/method_call.cpp.dot @@ -33,7 +33,7 @@ digraph cfg { "npe_call#13153501568930109452.8b51ea84ce0a673218a9c81b7ab70538_3" -> "npe_call#13153501568930109452.8b51ea84ce0a673218a9c81b7ab70538_2" ; -"npe_call#13153501568930109452.8b51ea84ce0a673218a9c81b7ab70538_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:X*) [line 14, column 3]\n *&x:X*=null [line 14, column 3]\n EXIT_SCOPE(n$4); [line 14, column 3]\n " shape="box"] +"npe_call#13153501568930109452.8b51ea84ce0a673218a9c81b7ab70538_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x:X*) assign_last [line 14, column 3]\n *&x:X*=null [line 14, column 3]\n EXIT_SCOPE(n$4); [line 14, column 3]\n " shape="box"] "npe_call#13153501568930109452.8b51ea84ce0a673218a9c81b7ab70538_4" -> "npe_call#13153501568930109452.8b51ea84ce0a673218a9c81b7ab70538_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/reference/box.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/reference/box.cpp.dot index f73637e90..f96f50c20 100644 --- a/infer/tests/codetoanalyze/cpp/shared/reference/box.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/reference/box.cpp.dot @@ -7,15 +7,15 @@ digraph cfg { "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_2" [label="2: Exit test \n NULLIFY(&r); [line 12, column 1]\n NULLIFY(&v); [line 12, column 1]\n NULLIFY(&p); [line 12, column 1]\n " color=yellow style=filled] -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&p:int*) [line 11, column 3]\n *&p:int*=&v [line 11, column 3]\n EXIT_SCOPE(n$1,p,v); [line 11, column 3]\n APPLY_ABSTRACTION; [line 11, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&p:int*) assign_last [line 11, column 3]\n *&p:int*=&v [line 11, column 3]\n EXIT_SCOPE(n$1,p,v); [line 11, column 3]\n APPLY_ABSTRACTION; [line 11, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_2" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&r:int&) [line 10, column 3]\n *&r:int&=&v [line 10, column 3]\n EXIT_SCOPE(n$2,r); [line 10, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&r:int&) assign_last [line 10, column 3]\n *&r:int&=&v [line 10, column 3]\n EXIT_SCOPE(n$2,r); [line 10, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_3" ; -"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&v:int) [line 9, column 3]\n *&v:int=3 [line 9, column 3]\n EXIT_SCOPE(n$3); [line 9, column 3]\n " shape="box"] +"test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&v:int) assign_last [line 9, column 3]\n *&v:int=3 [line 9, column 3]\n EXIT_SCOPE(n$3); [line 9, column 3]\n " shape="box"] "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_5" -> "test#18241244337164948030.afc14f193ad97442f67ac7183be789bc_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/reference/increment.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/reference/increment.cpp.dot index ef64d914d..e3d23c03d 100644 --- a/infer/tests/codetoanalyze/cpp/shared/reference/increment.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/reference/increment.cpp.dot @@ -7,19 +7,19 @@ digraph cfg { "using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_2" [label="2: Exit using_ref \n NULLIFY(&q); [line 19, column 1]\n NULLIFY(&v); [line 19, column 1]\n NULLIFY(&vr); [line 19, column 1]\n NULLIFY(&r); [line 19, column 1]\n " color=yellow style=filled] -"using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_3" [label="3: DeclStmt \n n$3=_fun___variable_initialization(&q:int&) [line 18, column 3]\n n$1=*&vr:int& [line 18, column 14]\n n$2=*n$1:int [line 18, column 12]\n *n$1:int=(n$2 - 1) [line 18, column 12]\n *&q:int&=n$1 [line 18, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,vr,q); [line 18, column 3]\n APPLY_ABSTRACTION; [line 18, column 3]\n " shape="box"] +"using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_3" [label="3: DeclStmt \n n$3=_fun___variable_initialization(&q:int&) assign_last [line 18, column 3]\n n$1=*&vr:int& [line 18, column 14]\n n$2=*n$1:int [line 18, column 12]\n *n$1:int=(n$2 - 1) [line 18, column 12]\n *&q:int&=n$1 [line 18, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,vr,q); [line 18, column 3]\n APPLY_ABSTRACTION; [line 18, column 3]\n " shape="box"] "using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_3" -> "using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_2" ; -"using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&r:int&) [line 17, column 3]\n n$4=*&vr:int& [line 17, column 14]\n n$5=*n$4:int [line 17, column 12]\n *n$4:int=(n$5 + 1) [line 17, column 12]\n *&r:int&=n$4 [line 17, column 3]\n EXIT_SCOPE(n$4,n$5,n$6,r); [line 17, column 3]\n " shape="box"] +"using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&r:int&) assign_last [line 17, column 3]\n n$4=*&vr:int& [line 17, column 14]\n n$5=*n$4:int [line 17, column 12]\n *n$4:int=(n$5 + 1) [line 17, column 12]\n *&r:int&=n$4 [line 17, column 3]\n EXIT_SCOPE(n$4,n$5,n$6,r); [line 17, column 3]\n " shape="box"] "using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_4" -> "using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_3" ; -"using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&vr:int&) [line 16, column 3]\n *&vr:int&=&v [line 16, column 3]\n EXIT_SCOPE(n$7,v); [line 16, column 3]\n " shape="box"] +"using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&vr:int&) assign_last [line 16, column 3]\n *&vr:int&=&v [line 16, column 3]\n EXIT_SCOPE(n$7,v); [line 16, column 3]\n " shape="box"] "using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_5" -> "using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_4" ; -"using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&v:int) [line 15, column 3]\n *&v:int=3 [line 15, column 3]\n EXIT_SCOPE(n$8); [line 15, column 3]\n " shape="box"] +"using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&v:int) assign_last [line 15, column 3]\n *&v:int=3 [line 15, column 3]\n EXIT_SCOPE(n$8); [line 15, column 3]\n " shape="box"] "using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_6" -> "using_ref#11585308534136333375.096010b8466cdacb12ca24c30d2a7334_5" ; @@ -30,15 +30,15 @@ digraph cfg { "using_value#13692921440907975250.fad67099f85ea68eb3281c85bd0ca170_2" [label="2: Exit using_value \n NULLIFY(&r); [line 12, column 1]\n NULLIFY(&v); [line 12, column 1]\n NULLIFY(&q); [line 12, column 1]\n " color=yellow style=filled] -"using_value#13692921440907975250.fad67099f85ea68eb3281c85bd0ca170_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&q:int&) [line 11, column 3]\n n$1=*&v:int [line 11, column 12]\n *&v:int=(n$1 - 1) [line 11, column 12]\n *&q:int&=&v [line 11, column 3]\n EXIT_SCOPE(n$1,n$2,q,v); [line 11, column 3]\n APPLY_ABSTRACTION; [line 11, column 3]\n " shape="box"] +"using_value#13692921440907975250.fad67099f85ea68eb3281c85bd0ca170_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&q:int&) assign_last [line 11, column 3]\n n$1=*&v:int [line 11, column 12]\n *&v:int=(n$1 - 1) [line 11, column 12]\n *&q:int&=&v [line 11, column 3]\n EXIT_SCOPE(n$1,n$2,q,v); [line 11, column 3]\n APPLY_ABSTRACTION; [line 11, column 3]\n " shape="box"] "using_value#13692921440907975250.fad67099f85ea68eb3281c85bd0ca170_3" -> "using_value#13692921440907975250.fad67099f85ea68eb3281c85bd0ca170_2" ; -"using_value#13692921440907975250.fad67099f85ea68eb3281c85bd0ca170_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&r:int&) [line 10, column 3]\n n$3=*&v:int [line 10, column 12]\n *&v:int=(n$3 + 1) [line 10, column 12]\n *&r:int&=&v [line 10, column 3]\n EXIT_SCOPE(n$3,n$4,r); [line 10, column 3]\n " shape="box"] +"using_value#13692921440907975250.fad67099f85ea68eb3281c85bd0ca170_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&r:int&) assign_last [line 10, column 3]\n n$3=*&v:int [line 10, column 12]\n *&v:int=(n$3 + 1) [line 10, column 12]\n *&r:int&=&v [line 10, column 3]\n EXIT_SCOPE(n$3,n$4,r); [line 10, column 3]\n " shape="box"] "using_value#13692921440907975250.fad67099f85ea68eb3281c85bd0ca170_4" -> "using_value#13692921440907975250.fad67099f85ea68eb3281c85bd0ca170_3" ; -"using_value#13692921440907975250.fad67099f85ea68eb3281c85bd0ca170_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&v:int) [line 9, column 3]\n *&v:int=3 [line 9, column 3]\n EXIT_SCOPE(n$5); [line 9, column 3]\n " shape="box"] +"using_value#13692921440907975250.fad67099f85ea68eb3281c85bd0ca170_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&v:int) assign_last [line 9, column 3]\n *&v:int=3 [line 9, column 3]\n EXIT_SCOPE(n$5); [line 9, column 3]\n " shape="box"] "using_value#13692921440907975250.fad67099f85ea68eb3281c85bd0ca170_5" -> "using_value#13692921440907975250.fad67099f85ea68eb3281c85bd0ca170_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/reference/init.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/reference/init.cpp.dot index a8cc8d53d..507f9f270 100644 --- a/infer/tests/codetoanalyze/cpp/shared/reference/init.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/reference/init.cpp.dot @@ -7,15 +7,15 @@ digraph cfg { "init_from_ptr#9521990274512470149.d27094f3cfd0d42c143fba9593870578_2" [label="2: Exit init_from_ptr \n NULLIFY(&d); [line 24, column 1]\n NULLIFY(&p); [line 24, column 1]\n " color=yellow style=filled] -"init_from_ptr#9521990274512470149.d27094f3cfd0d42c143fba9593870578_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&p:int*) [line 23, column 3]\n n$1=*&par:int* [line 23, column 12]\n *&p:int*=n$1 [line 23, column 3]\n NULLIFY(&par); [line 23, column 3]\n EXIT_SCOPE(n$1,n$2,par,p); [line 23, column 3]\n APPLY_ABSTRACTION; [line 23, column 3]\n " shape="box"] +"init_from_ptr#9521990274512470149.d27094f3cfd0d42c143fba9593870578_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&p:int*) assign_last [line 23, column 3]\n n$1=*&par:int* [line 23, column 12]\n *&p:int*=n$1 [line 23, column 3]\n NULLIFY(&par); [line 23, column 3]\n EXIT_SCOPE(n$1,n$2,par,p); [line 23, column 3]\n APPLY_ABSTRACTION; [line 23, column 3]\n " shape="box"] "init_from_ptr#9521990274512470149.d27094f3cfd0d42c143fba9593870578_3" -> "init_from_ptr#9521990274512470149.d27094f3cfd0d42c143fba9593870578_2" ; -"init_from_ptr#9521990274512470149.d27094f3cfd0d42c143fba9593870578_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&d:int&) [line 22, column 3]\n n$3=*&par:int* [line 22, column 13]\n *&d:int&=n$3 [line 22, column 3]\n EXIT_SCOPE(n$3,n$4,d); [line 22, column 3]\n " shape="box"] +"init_from_ptr#9521990274512470149.d27094f3cfd0d42c143fba9593870578_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&d:int&) assign_last [line 22, column 3]\n n$3=*&par:int* [line 22, column 13]\n *&d:int&=n$3 [line 22, column 3]\n EXIT_SCOPE(n$3,n$4,d); [line 22, column 3]\n " shape="box"] "init_from_ptr#9521990274512470149.d27094f3cfd0d42c143fba9593870578_4" -> "init_from_ptr#9521990274512470149.d27094f3cfd0d42c143fba9593870578_3" ; -"init_from_ptr#9521990274512470149.d27094f3cfd0d42c143fba9593870578_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&v:int) [line 21, column 3]\n n$5=*&par:int* [line 21, column 12]\n n$6=*n$5:int [line 21, column 11]\n *&v:int=n$6 [line 21, column 3]\n NULLIFY(&v); [line 21, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,v); [line 21, column 3]\n " shape="box"] +"init_from_ptr#9521990274512470149.d27094f3cfd0d42c143fba9593870578_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&v:int) assign_last [line 21, column 3]\n n$5=*&par:int* [line 21, column 12]\n n$6=*n$5:int [line 21, column 11]\n *&v:int=n$6 [line 21, column 3]\n NULLIFY(&v); [line 21, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,v); [line 21, column 3]\n " shape="box"] "init_from_ptr#9521990274512470149.d27094f3cfd0d42c143fba9593870578_5" -> "init_from_ptr#9521990274512470149.d27094f3cfd0d42c143fba9593870578_4" ; @@ -26,15 +26,15 @@ digraph cfg { "init_from_ref#17239877270654219020.166550b98b7cafba1c908639121bced8_2" [label="2: Exit init_from_ref \n NULLIFY(&d); [line 12, column 1]\n NULLIFY(&p); [line 12, column 1]\n " color=yellow style=filled] -"init_from_ref#17239877270654219020.166550b98b7cafba1c908639121bced8_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&p:int*) [line 11, column 3]\n n$1=*&par:int& [line 11, column 13]\n *&p:int*=n$1 [line 11, column 3]\n NULLIFY(&par); [line 11, column 3]\n EXIT_SCOPE(n$1,n$2,p,par); [line 11, column 3]\n APPLY_ABSTRACTION; [line 11, column 3]\n " shape="box"] +"init_from_ref#17239877270654219020.166550b98b7cafba1c908639121bced8_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&p:int*) assign_last [line 11, column 3]\n n$1=*&par:int& [line 11, column 13]\n *&p:int*=n$1 [line 11, column 3]\n NULLIFY(&par); [line 11, column 3]\n EXIT_SCOPE(n$1,n$2,p,par); [line 11, column 3]\n APPLY_ABSTRACTION; [line 11, column 3]\n " shape="box"] "init_from_ref#17239877270654219020.166550b98b7cafba1c908639121bced8_3" -> "init_from_ref#17239877270654219020.166550b98b7cafba1c908639121bced8_2" ; -"init_from_ref#17239877270654219020.166550b98b7cafba1c908639121bced8_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&d:int&) [line 10, column 3]\n n$3=*&par:int& [line 10, column 12]\n *&d:int&=n$3 [line 10, column 3]\n EXIT_SCOPE(n$3,n$4,d); [line 10, column 3]\n " shape="box"] +"init_from_ref#17239877270654219020.166550b98b7cafba1c908639121bced8_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&d:int&) assign_last [line 10, column 3]\n n$3=*&par:int& [line 10, column 12]\n *&d:int&=n$3 [line 10, column 3]\n EXIT_SCOPE(n$3,n$4,d); [line 10, column 3]\n " shape="box"] "init_from_ref#17239877270654219020.166550b98b7cafba1c908639121bced8_4" -> "init_from_ref#17239877270654219020.166550b98b7cafba1c908639121bced8_3" ; -"init_from_ref#17239877270654219020.166550b98b7cafba1c908639121bced8_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&v:int) [line 9, column 3]\n n$5=*&par:int& [line 9, column 11]\n n$6=*n$5:int [line 9, column 11]\n *&v:int=n$6 [line 9, column 3]\n NULLIFY(&v); [line 9, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,v); [line 9, column 3]\n " shape="box"] +"init_from_ref#17239877270654219020.166550b98b7cafba1c908639121bced8_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&v:int) assign_last [line 9, column 3]\n n$5=*&par:int& [line 9, column 11]\n n$6=*n$5:int [line 9, column 11]\n *&v:int=n$6 [line 9, column 3]\n NULLIFY(&v); [line 9, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,v); [line 9, column 3]\n " shape="box"] "init_from_ref#17239877270654219020.166550b98b7cafba1c908639121bced8_5" -> "init_from_ref#17239877270654219020.166550b98b7cafba1c908639121bced8_4" ; @@ -45,15 +45,15 @@ digraph cfg { "init_from_val#14538961741925123970.e5e29991fa3b6aa0a341c0c9f54754a7_2" [label="2: Exit init_from_val \n NULLIFY(&d); [line 18, column 1]\n NULLIFY(&par); [line 18, column 1]\n NULLIFY(&p); [line 18, column 1]\n " color=yellow style=filled] -"init_from_val#14538961741925123970.e5e29991fa3b6aa0a341c0c9f54754a7_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&p:int*) [line 17, column 3]\n *&p:int*=&par [line 17, column 3]\n EXIT_SCOPE(n$1,p,par); [line 17, column 3]\n APPLY_ABSTRACTION; [line 17, column 3]\n " shape="box"] +"init_from_val#14538961741925123970.e5e29991fa3b6aa0a341c0c9f54754a7_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&p:int*) assign_last [line 17, column 3]\n *&p:int*=&par [line 17, column 3]\n EXIT_SCOPE(n$1,p,par); [line 17, column 3]\n APPLY_ABSTRACTION; [line 17, column 3]\n " shape="box"] "init_from_val#14538961741925123970.e5e29991fa3b6aa0a341c0c9f54754a7_3" -> "init_from_val#14538961741925123970.e5e29991fa3b6aa0a341c0c9f54754a7_2" ; -"init_from_val#14538961741925123970.e5e29991fa3b6aa0a341c0c9f54754a7_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&d:int&) [line 16, column 3]\n *&d:int&=&par [line 16, column 3]\n EXIT_SCOPE(n$2,d); [line 16, column 3]\n " shape="box"] +"init_from_val#14538961741925123970.e5e29991fa3b6aa0a341c0c9f54754a7_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&d:int&) assign_last [line 16, column 3]\n *&d:int&=&par [line 16, column 3]\n EXIT_SCOPE(n$2,d); [line 16, column 3]\n " shape="box"] "init_from_val#14538961741925123970.e5e29991fa3b6aa0a341c0c9f54754a7_4" -> "init_from_val#14538961741925123970.e5e29991fa3b6aa0a341c0c9f54754a7_3" ; -"init_from_val#14538961741925123970.e5e29991fa3b6aa0a341c0c9f54754a7_5" [label="5: DeclStmt \n n$4=_fun___variable_initialization(&v:int) [line 15, column 3]\n n$3=*&par:int [line 15, column 11]\n *&v:int=n$3 [line 15, column 3]\n NULLIFY(&v); [line 15, column 3]\n EXIT_SCOPE(n$3,n$4,v); [line 15, column 3]\n " shape="box"] +"init_from_val#14538961741925123970.e5e29991fa3b6aa0a341c0c9f54754a7_5" [label="5: DeclStmt \n n$4=_fun___variable_initialization(&v:int) assign_last [line 15, column 3]\n n$3=*&par:int [line 15, column 11]\n *&v:int=n$3 [line 15, column 3]\n NULLIFY(&v); [line 15, column 3]\n EXIT_SCOPE(n$3,n$4,v); [line 15, column 3]\n " shape="box"] "init_from_val#14538961741925123970.e5e29991fa3b6aa0a341c0c9f54754a7_5" -> "init_from_val#14538961741925123970.e5e29991fa3b6aa0a341c0c9f54754a7_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/reference/member_access.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/reference/member_access.cpp.dot index 719a0bb9e..0d7eac4eb 100644 --- a/infer/tests/codetoanalyze/cpp/shared/reference/member_access.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/reference/member_access.cpp.dot @@ -7,11 +7,11 @@ digraph cfg { "access_ptr(class X)#15321479508398739907.a2d5fea3989ac28d8e0f2d82bdcf9e45_2" [label="2: Exit access_ptr \n " color=yellow style=filled] -"access_ptr(class X)#15321479508398739907.a2d5fea3989ac28d8e0f2d82bdcf9e45_3" [label="3: DeclStmt \n n$4=_fun___variable_initialization(&c:int) [line 20, column 3]\n n$1=*&x:X* [line 20, column 11]\n _=*n$1:X [line 20, column 11]\n n$3=_fun_X_call(n$1:X*) [line 20, column 11]\n *&c:int=n$3 [line 20, column 3]\n NULLIFY(&c); [line 20, column 3]\n NULLIFY(&x); [line 20, column 3]\n EXIT_SCOPE(_,n$1,n$3,n$4,c,x); [line 20, column 3]\n APPLY_ABSTRACTION; [line 20, column 3]\n " shape="box"] +"access_ptr(class X)#15321479508398739907.a2d5fea3989ac28d8e0f2d82bdcf9e45_3" [label="3: DeclStmt \n n$4=_fun___variable_initialization(&c:int) assign_last [line 20, column 3]\n n$1=*&x:X* [line 20, column 11]\n _=*n$1:X [line 20, column 11]\n n$3=_fun_X_call(n$1:X*) [line 20, column 11]\n *&c:int=n$3 [line 20, column 3]\n NULLIFY(&c); [line 20, column 3]\n NULLIFY(&x); [line 20, column 3]\n EXIT_SCOPE(_,n$1,n$3,n$4,c,x); [line 20, column 3]\n APPLY_ABSTRACTION; [line 20, column 3]\n " shape="box"] "access_ptr(class X)#15321479508398739907.a2d5fea3989ac28d8e0f2d82bdcf9e45_3" -> "access_ptr(class X)#15321479508398739907.a2d5fea3989ac28d8e0f2d82bdcf9e45_2" ; -"access_ptr(class X)#15321479508398739907.a2d5fea3989ac28d8e0f2d82bdcf9e45_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&f:int) [line 19, column 3]\n n$5=*&x:X* [line 19, column 11]\n n$6=*n$5.f:int [line 19, column 11]\n *&f:int=n$6 [line 19, column 3]\n NULLIFY(&f); [line 19, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,f); [line 19, column 3]\n " shape="box"] +"access_ptr(class X)#15321479508398739907.a2d5fea3989ac28d8e0f2d82bdcf9e45_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&f:int) assign_last [line 19, column 3]\n n$5=*&x:X* [line 19, column 11]\n n$6=*n$5.f:int [line 19, column 11]\n *&f:int=n$6 [line 19, column 3]\n NULLIFY(&f); [line 19, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,f); [line 19, column 3]\n " shape="box"] "access_ptr(class X)#15321479508398739907.a2d5fea3989ac28d8e0f2d82bdcf9e45_4" -> "access_ptr(class X)#15321479508398739907.a2d5fea3989ac28d8e0f2d82bdcf9e45_3" ; @@ -22,11 +22,11 @@ digraph cfg { "access_ref#4794488565171451856.2c0cb1f039897d6498c9fea4cbfec99e_2" [label="2: Exit access_ref \n " color=yellow style=filled] -"access_ref#4794488565171451856.2c0cb1f039897d6498c9fea4cbfec99e_3" [label="3: DeclStmt \n n$4=_fun___variable_initialization(&c:int) [line 15, column 3]\n n$1=*&x:X& [line 15, column 11]\n _=*n$1:X [line 15, column 11]\n n$3=_fun_X_call(n$1:X&) [line 15, column 11]\n *&c:int=n$3 [line 15, column 3]\n NULLIFY(&x); [line 15, column 3]\n NULLIFY(&c); [line 15, column 3]\n EXIT_SCOPE(_,n$1,n$3,n$4,x,c); [line 15, column 3]\n APPLY_ABSTRACTION; [line 15, column 3]\n " shape="box"] +"access_ref#4794488565171451856.2c0cb1f039897d6498c9fea4cbfec99e_3" [label="3: DeclStmt \n n$4=_fun___variable_initialization(&c:int) assign_last [line 15, column 3]\n n$1=*&x:X& [line 15, column 11]\n _=*n$1:X [line 15, column 11]\n n$3=_fun_X_call(n$1:X&) [line 15, column 11]\n *&c:int=n$3 [line 15, column 3]\n NULLIFY(&x); [line 15, column 3]\n NULLIFY(&c); [line 15, column 3]\n EXIT_SCOPE(_,n$1,n$3,n$4,x,c); [line 15, column 3]\n APPLY_ABSTRACTION; [line 15, column 3]\n " shape="box"] "access_ref#4794488565171451856.2c0cb1f039897d6498c9fea4cbfec99e_3" -> "access_ref#4794488565171451856.2c0cb1f039897d6498c9fea4cbfec99e_2" ; -"access_ref#4794488565171451856.2c0cb1f039897d6498c9fea4cbfec99e_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&f:int) [line 14, column 3]\n n$5=*&x:X& [line 14, column 11]\n n$6=*n$5.f:int [line 14, column 11]\n *&f:int=n$6 [line 14, column 3]\n NULLIFY(&f); [line 14, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,f); [line 14, column 3]\n " shape="box"] +"access_ref#4794488565171451856.2c0cb1f039897d6498c9fea4cbfec99e_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&f:int) assign_last [line 14, column 3]\n n$5=*&x:X& [line 14, column 11]\n n$6=*n$5.f:int [line 14, column 11]\n *&f:int=n$6 [line 14, column 3]\n NULLIFY(&f); [line 14, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,f); [line 14, column 3]\n " shape="box"] "access_ref#4794488565171451856.2c0cb1f039897d6498c9fea4cbfec99e_4" -> "access_ref#4794488565171451856.2c0cb1f039897d6498c9fea4cbfec99e_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/reference/member_access_from_return.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/reference/member_access_from_return.cpp.dot index 36cface74..28b9a493e 100644 --- a/infer/tests/codetoanalyze/cpp/shared/reference/member_access_from_return.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/reference/member_access_from_return.cpp.dot @@ -7,7 +7,7 @@ digraph cfg { "__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_2" [label="2: Exit __infer_globals_initializer_global \n " color=yellow style=filled] -"__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&#GB$global:X) [line 13, column 1]\n n$0=_fun_X_X(&#GB$global:X*) [line 13, column 3]\n EXIT_SCOPE(n$0,n$1); [line 13, column 3]\n APPLY_ABSTRACTION; [line 13, column 3]\n " shape="box"] +"__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&#GB$global:X) assign_last [line 13, column 1]\n n$0=_fun_X_X(&#GB$global:X*) [line 13, column 3]\n EXIT_SCOPE(n$0,n$1); [line 13, column 3]\n APPLY_ABSTRACTION; [line 13, column 3]\n " shape="box"] "__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_3" -> "__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_2" ; @@ -40,11 +40,11 @@ digraph cfg { "test_ptr#11416786403465510397.fe356f46dccde5545eadf0c661f4974d_2" [label="2: Exit test_ptr \n " color=yellow style=filled] -"test_ptr#11416786403465510397.fe356f46dccde5545eadf0c661f4974d_3" [label="3: DeclStmt \n n$4=_fun___variable_initialization(&c:int) [line 24, column 3]\n n$1=_fun_get_ptr() [line 24, column 11]\n _=*n$1:X [line 24, column 11]\n n$3=_fun_X_call(n$1:X*) [line 24, column 11]\n *&c:int=n$3 [line 24, column 3]\n NULLIFY(&c); [line 24, column 3]\n EXIT_SCOPE(_,n$1,n$3,n$4,c); [line 24, column 3]\n APPLY_ABSTRACTION; [line 24, column 3]\n " shape="box"] +"test_ptr#11416786403465510397.fe356f46dccde5545eadf0c661f4974d_3" [label="3: DeclStmt \n n$4=_fun___variable_initialization(&c:int) assign_last [line 24, column 3]\n n$1=_fun_get_ptr() [line 24, column 11]\n _=*n$1:X [line 24, column 11]\n n$3=_fun_X_call(n$1:X*) [line 24, column 11]\n *&c:int=n$3 [line 24, column 3]\n NULLIFY(&c); [line 24, column 3]\n EXIT_SCOPE(_,n$1,n$3,n$4,c); [line 24, column 3]\n APPLY_ABSTRACTION; [line 24, column 3]\n " shape="box"] "test_ptr#11416786403465510397.fe356f46dccde5545eadf0c661f4974d_3" -> "test_ptr#11416786403465510397.fe356f46dccde5545eadf0c661f4974d_2" ; -"test_ptr#11416786403465510397.fe356f46dccde5545eadf0c661f4974d_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&f:int) [line 23, column 3]\n n$5=_fun_get_ptr() [line 23, column 11]\n n$6=*n$5.f:int [line 23, column 11]\n *&f:int=n$6 [line 23, column 3]\n NULLIFY(&f); [line 23, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,f); [line 23, column 3]\n " shape="box"] +"test_ptr#11416786403465510397.fe356f46dccde5545eadf0c661f4974d_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&f:int) assign_last [line 23, column 3]\n n$5=_fun_get_ptr() [line 23, column 11]\n n$6=*n$5.f:int [line 23, column 11]\n *&f:int=n$6 [line 23, column 3]\n NULLIFY(&f); [line 23, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,f); [line 23, column 3]\n " shape="box"] "test_ptr#11416786403465510397.fe356f46dccde5545eadf0c661f4974d_4" -> "test_ptr#11416786403465510397.fe356f46dccde5545eadf0c661f4974d_3" ; @@ -55,11 +55,11 @@ digraph cfg { "test_ref#7021555814503032268.9c735d5eedd26e3009ec35c4af427db4_2" [label="2: Exit test_ref \n " color=yellow style=filled] -"test_ref#7021555814503032268.9c735d5eedd26e3009ec35c4af427db4_3" [label="3: DeclStmt \n n$4=_fun___variable_initialization(&c:int) [line 19, column 3]\n n$1=_fun_get_ref() [line 19, column 11]\n _=*n$1:X [line 19, column 11]\n n$3=_fun_X_call(n$1:X&) [line 19, column 11]\n *&c:int=n$3 [line 19, column 3]\n NULLIFY(&c); [line 19, column 3]\n EXIT_SCOPE(_,n$1,n$3,n$4,c); [line 19, column 3]\n APPLY_ABSTRACTION; [line 19, column 3]\n " shape="box"] +"test_ref#7021555814503032268.9c735d5eedd26e3009ec35c4af427db4_3" [label="3: DeclStmt \n n$4=_fun___variable_initialization(&c:int) assign_last [line 19, column 3]\n n$1=_fun_get_ref() [line 19, column 11]\n _=*n$1:X [line 19, column 11]\n n$3=_fun_X_call(n$1:X&) [line 19, column 11]\n *&c:int=n$3 [line 19, column 3]\n NULLIFY(&c); [line 19, column 3]\n EXIT_SCOPE(_,n$1,n$3,n$4,c); [line 19, column 3]\n APPLY_ABSTRACTION; [line 19, column 3]\n " shape="box"] "test_ref#7021555814503032268.9c735d5eedd26e3009ec35c4af427db4_3" -> "test_ref#7021555814503032268.9c735d5eedd26e3009ec35c4af427db4_2" ; -"test_ref#7021555814503032268.9c735d5eedd26e3009ec35c4af427db4_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&f:int) [line 18, column 3]\n n$5=_fun_get_ref() [line 18, column 11]\n n$6=*n$5.f:int [line 18, column 11]\n *&f:int=n$6 [line 18, column 3]\n NULLIFY(&f); [line 18, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,f); [line 18, column 3]\n " shape="box"] +"test_ref#7021555814503032268.9c735d5eedd26e3009ec35c4af427db4_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&f:int) assign_last [line 18, column 3]\n n$5=_fun_get_ref() [line 18, column 11]\n n$6=*n$5.f:int [line 18, column 11]\n *&f:int=n$6 [line 18, column 3]\n NULLIFY(&f); [line 18, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,f); [line 18, column 3]\n " shape="box"] "test_ref#7021555814503032268.9c735d5eedd26e3009ec35c4af427db4_4" -> "test_ref#7021555814503032268.9c735d5eedd26e3009ec35c4af427db4_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/reference/nested_assignment.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/reference/nested_assignment.cpp.dot index a404a3d86..12a759756 100644 --- a/infer/tests/codetoanalyze/cpp/shared/reference/nested_assignment.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/reference/nested_assignment.cpp.dot @@ -7,19 +7,19 @@ digraph cfg { "crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_2" [label="2: Exit crazy_nested \n NULLIFY(&ref_from_ref); [line 28, column 1]\n NULLIFY(&a); [line 28, column 1]\n NULLIFY(&ref_from_val); [line 28, column 1]\n " color=yellow style=filled] -"crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_3" [label="3: DeclStmt \n n$3=_fun___variable_initialization(&ref_from_ref:int&) [line 27, column 3]\n n$1=*&ref_from_val:int& [line 27, column 23]\n *&b:int=5 [line 27, column 38]\n n$2=*&b:int [line 27, column 38]\n *n$1:int=n$2 [line 27, column 23]\n *&ref_from_ref:int&=n$1 [line 27, column 3]\n NULLIFY(&b); [line 27, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,b,ref_from_val,ref_from_ref); [line 27, column 3]\n APPLY_ABSTRACTION; [line 27, column 3]\n " shape="box"] +"crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_3" [label="3: DeclStmt \n n$3=_fun___variable_initialization(&ref_from_ref:int&) assign_last [line 27, column 3]\n n$1=*&ref_from_val:int& [line 27, column 23]\n *&b:int=5 [line 27, column 38]\n n$2=*&b:int [line 27, column 38]\n *n$1:int=n$2 [line 27, column 23]\n *&ref_from_ref:int&=n$1 [line 27, column 3]\n NULLIFY(&b); [line 27, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,b,ref_from_val,ref_from_ref); [line 27, column 3]\n APPLY_ABSTRACTION; [line 27, column 3]\n " shape="box"] "crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_3" -> "crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_2" ; -"crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&ref_from_val:int&) [line 26, column 3]\n *&b:int=4 [line 26, column 27]\n n$4=*&b:int [line 26, column 27]\n *&a:int=n$4 [line 26, column 23]\n *&ref_from_val:int&=&a [line 26, column 3]\n NULLIFY(&b); [line 26, column 3]\n EXIT_SCOPE(n$4,n$5,b,a); [line 26, column 3]\n " shape="box"] +"crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&ref_from_val:int&) assign_last [line 26, column 3]\n *&b:int=4 [line 26, column 27]\n n$4=*&b:int [line 26, column 27]\n *&a:int=n$4 [line 26, column 23]\n *&ref_from_val:int&=&a [line 26, column 3]\n NULLIFY(&b); [line 26, column 3]\n EXIT_SCOPE(n$4,n$5,b,a); [line 26, column 3]\n " shape="box"] "crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_4" -> "crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_3" ; -"crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&b:int) [line 22, column 3]\n n$6=*&a:int [line 22, column 11]\n *&b:int=n$6 [line 22, column 3]\n NULLIFY(&b); [line 22, column 3]\n EXIT_SCOPE(n$6,n$7,b,a); [line 22, column 3]\n " shape="box"] +"crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&b:int) assign_last [line 22, column 3]\n n$6=*&a:int [line 22, column 11]\n *&b:int=n$6 [line 22, column 3]\n NULLIFY(&b); [line 22, column 3]\n EXIT_SCOPE(n$6,n$7,b,a); [line 22, column 3]\n " shape="box"] "crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_5" -> "crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_4" ; -"crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&a:int) [line 21, column 3]\n *&a:int=3 [line 21, column 3]\n EXIT_SCOPE(n$8); [line 21, column 3]\n " shape="box"] +"crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&a:int) assign_last [line 21, column 3]\n *&a:int=3 [line 21, column 3]\n EXIT_SCOPE(n$8); [line 21, column 3]\n " shape="box"] "crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_6" -> "crazy_nested#10001276026471322284.a3162fff8adcb89d9e3fa84dea455e7f_5" ; @@ -30,15 +30,15 @@ digraph cfg { "nested#4768179933025409429.17c34afcb279e8ad08f7f8afaad41585_2" [label="2: Exit nested \n NULLIFY(&a); [line 18, column 1]\n NULLIFY(&ref_from_ref); [line 18, column 1]\n NULLIFY(&ref_from_val); [line 18, column 1]\n " color=yellow style=filled] -"nested#4768179933025409429.17c34afcb279e8ad08f7f8afaad41585_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&ref_from_ref:int&) [line 17, column 3]\n n$1=*&ref_from_val:int& [line 17, column 23]\n *n$1:int=6 [line 17, column 23]\n *&ref_from_ref:int&=n$1 [line 17, column 3]\n EXIT_SCOPE(n$1,n$2,ref_from_val,ref_from_ref); [line 17, column 3]\n APPLY_ABSTRACTION; [line 17, column 3]\n " shape="box"] +"nested#4768179933025409429.17c34afcb279e8ad08f7f8afaad41585_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&ref_from_ref:int&) assign_last [line 17, column 3]\n n$1=*&ref_from_val:int& [line 17, column 23]\n *n$1:int=6 [line 17, column 23]\n *&ref_from_ref:int&=n$1 [line 17, column 3]\n EXIT_SCOPE(n$1,n$2,ref_from_val,ref_from_ref); [line 17, column 3]\n APPLY_ABSTRACTION; [line 17, column 3]\n " shape="box"] "nested#4768179933025409429.17c34afcb279e8ad08f7f8afaad41585_3" -> "nested#4768179933025409429.17c34afcb279e8ad08f7f8afaad41585_2" ; -"nested#4768179933025409429.17c34afcb279e8ad08f7f8afaad41585_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&ref_from_val:int&) [line 16, column 3]\n *&a:int=4 [line 16, column 23]\n *&ref_from_val:int&=&a [line 16, column 3]\n EXIT_SCOPE(n$3,a); [line 16, column 3]\n " shape="box"] +"nested#4768179933025409429.17c34afcb279e8ad08f7f8afaad41585_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&ref_from_val:int&) assign_last [line 16, column 3]\n *&a:int=4 [line 16, column 23]\n *&ref_from_val:int&=&a [line 16, column 3]\n EXIT_SCOPE(n$3,a); [line 16, column 3]\n " shape="box"] "nested#4768179933025409429.17c34afcb279e8ad08f7f8afaad41585_4" -> "nested#4768179933025409429.17c34afcb279e8ad08f7f8afaad41585_3" ; -"nested#4768179933025409429.17c34afcb279e8ad08f7f8afaad41585_5" [label="5: DeclStmt \n n$4=_fun___variable_initialization(&a:int) [line 15, column 3]\n *&a:int=3 [line 15, column 3]\n EXIT_SCOPE(n$4,a); [line 15, column 3]\n " shape="box"] +"nested#4768179933025409429.17c34afcb279e8ad08f7f8afaad41585_5" [label="5: DeclStmt \n n$4=_fun___variable_initialization(&a:int) assign_last [line 15, column 3]\n *&a:int=3 [line 15, column 3]\n EXIT_SCOPE(n$4,a); [line 15, column 3]\n " shape="box"] "nested#4768179933025409429.17c34afcb279e8ad08f7f8afaad41585_5" -> "nested#4768179933025409429.17c34afcb279e8ad08f7f8afaad41585_4" ; @@ -49,15 +49,15 @@ digraph cfg { "normal#16009437256715545217.c7cd9ebbb6d7cc9f4987cf90ce12a044_2" [label="2: Exit normal \n NULLIFY(&ref_from_val); [line 12, column 1]\n NULLIFY(&ref_from_ref); [line 12, column 1]\n NULLIFY(&a); [line 12, column 1]\n " color=yellow style=filled] -"normal#16009437256715545217.c7cd9ebbb6d7cc9f4987cf90ce12a044_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&ref_from_ref:int&) [line 11, column 3]\n n$1=*&ref_from_val:int& [line 11, column 23]\n *&ref_from_ref:int&=n$1 [line 11, column 3]\n EXIT_SCOPE(n$1,n$2,ref_from_ref,ref_from_val); [line 11, column 3]\n APPLY_ABSTRACTION; [line 11, column 3]\n " shape="box"] +"normal#16009437256715545217.c7cd9ebbb6d7cc9f4987cf90ce12a044_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&ref_from_ref:int&) assign_last [line 11, column 3]\n n$1=*&ref_from_val:int& [line 11, column 23]\n *&ref_from_ref:int&=n$1 [line 11, column 3]\n EXIT_SCOPE(n$1,n$2,ref_from_ref,ref_from_val); [line 11, column 3]\n APPLY_ABSTRACTION; [line 11, column 3]\n " shape="box"] "normal#16009437256715545217.c7cd9ebbb6d7cc9f4987cf90ce12a044_3" -> "normal#16009437256715545217.c7cd9ebbb6d7cc9f4987cf90ce12a044_2" ; -"normal#16009437256715545217.c7cd9ebbb6d7cc9f4987cf90ce12a044_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&ref_from_val:int&) [line 10, column 3]\n *&ref_from_val:int&=&a [line 10, column 3]\n EXIT_SCOPE(n$3,a); [line 10, column 3]\n " shape="box"] +"normal#16009437256715545217.c7cd9ebbb6d7cc9f4987cf90ce12a044_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&ref_from_val:int&) assign_last [line 10, column 3]\n *&ref_from_val:int&=&a [line 10, column 3]\n EXIT_SCOPE(n$3,a); [line 10, column 3]\n " shape="box"] "normal#16009437256715545217.c7cd9ebbb6d7cc9f4987cf90ce12a044_4" -> "normal#16009437256715545217.c7cd9ebbb6d7cc9f4987cf90ce12a044_3" ; -"normal#16009437256715545217.c7cd9ebbb6d7cc9f4987cf90ce12a044_5" [label="5: DeclStmt \n n$4=_fun___variable_initialization(&a:int) [line 9, column 3]\n *&a:int=3 [line 9, column 3]\n EXIT_SCOPE(n$4); [line 9, column 3]\n " shape="box"] +"normal#16009437256715545217.c7cd9ebbb6d7cc9f4987cf90ce12a044_5" [label="5: DeclStmt \n n$4=_fun___variable_initialization(&a:int) assign_last [line 9, column 3]\n *&a:int=3 [line 9, column 3]\n EXIT_SCOPE(n$4); [line 9, column 3]\n " shape="box"] "normal#16009437256715545217.c7cd9ebbb6d7cc9f4987cf90ce12a044_5" -> "normal#16009437256715545217.c7cd9ebbb6d7cc9f4987cf90ce12a044_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/reference/ptr_mem.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/reference/ptr_mem.cpp.dot index 8f2431e1f..16d149182 100644 --- a/infer/tests/codetoanalyze/cpp/shared/reference/ptr_mem.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/reference/ptr_mem.cpp.dot @@ -15,7 +15,7 @@ digraph cfg { "noskip#6149941428299352091.c0e56085ae3c9567084b0f9e4211cfc0_4" -> "noskip#6149941428299352091.c0e56085ae3c9567084b0f9e4211cfc0_3" ; -"noskip#6149941428299352091.c0e56085ae3c9567084b0f9e4211cfc0_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&i:item) [line 33, column 3]\n n$7=_fun_item_item(&i:item*) [line 33, column 8]\n EXIT_SCOPE(n$7,n$8); [line 33, column 8]\n " shape="box"] +"noskip#6149941428299352091.c0e56085ae3c9567084b0f9e4211cfc0_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&i:item) assign_last [line 33, column 3]\n n$7=_fun_item_item(&i:item*) [line 33, column 8]\n EXIT_SCOPE(n$7,n$8); [line 33, column 8]\n " shape="box"] "noskip#6149941428299352091.c0e56085ae3c9567084b0f9e4211cfc0_5" -> "noskip#6149941428299352091.c0e56085ae3c9567084b0f9e4211cfc0_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/reference/reference_field.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/reference/reference_field.cpp.dot index f41b2842c..32bb382de 100644 --- a/infer/tests/codetoanalyze/cpp/shared/reference/reference_field.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/reference/reference_field.cpp.dot @@ -15,7 +15,7 @@ digraph cfg { "ptr_F_div0#reference_field#14005768761742554773.fa7bac24d70ab0b747e7fb5360157c5f_4" -> "ptr_F_div0#reference_field#14005768761742554773.fa7bac24d70ab0b747e7fb5360157c5f_3" ; -"ptr_F_div0#reference_field#14005768761742554773.fa7bac24d70ab0b747e7fb5360157c5f_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ptr) [line 82, column 3]\n n$5=_fun_reference_field::Ptr_Ptr(&r:reference_field::Ptr*,&x:reference_field::X&) [line 82, column 7]\n EXIT_SCOPE(n$5,n$6); [line 82, column 7]\n " shape="box"] +"ptr_F_div0#reference_field#14005768761742554773.fa7bac24d70ab0b747e7fb5360157c5f_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ptr) assign_last [line 82, column 3]\n n$5=_fun_reference_field::Ptr_Ptr(&r:reference_field::Ptr*,&x:reference_field::X&) [line 82, column 7]\n EXIT_SCOPE(n$5,n$6); [line 82, column 7]\n " shape="box"] "ptr_F_div0#reference_field#14005768761742554773.fa7bac24d70ab0b747e7fb5360157c5f_5" -> "ptr_F_div0#reference_field#14005768761742554773.fa7bac24d70ab0b747e7fb5360157c5f_4" ; @@ -23,7 +23,7 @@ digraph cfg { "ptr_F_div0#reference_field#14005768761742554773.fa7bac24d70ab0b747e7fb5360157c5f_6" -> "ptr_F_div0#reference_field#14005768761742554773.fa7bac24d70ab0b747e7fb5360157c5f_5" ; -"ptr_F_div0#reference_field#14005768761742554773.fa7bac24d70ab0b747e7fb5360157c5f_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) [line 80, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 80, column 5]\n EXIT_SCOPE(n$7,n$8); [line 80, column 5]\n " shape="box"] +"ptr_F_div0#reference_field#14005768761742554773.fa7bac24d70ab0b747e7fb5360157c5f_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) assign_last [line 80, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 80, column 5]\n EXIT_SCOPE(n$7,n$8); [line 80, column 5]\n " shape="box"] "ptr_F_div0#reference_field#14005768761742554773.fa7bac24d70ab0b747e7fb5360157c5f_7" -> "ptr_F_div0#reference_field#14005768761742554773.fa7bac24d70ab0b747e7fb5360157c5f_6" ; @@ -42,7 +42,7 @@ digraph cfg { "ptr_I_div0#reference_field#18255668366877010738.5b1f39b2d5e2810cbdbf96621d88c2d0_4" -> "ptr_I_div0#reference_field#18255668366877010738.5b1f39b2d5e2810cbdbf96621d88c2d0_3" ; -"ptr_I_div0#reference_field#18255668366877010738.5b1f39b2d5e2810cbdbf96621d88c2d0_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ptr) [line 90, column 3]\n n$5=_fun_reference_field::Ptr_Ptr(&r:reference_field::Ptr*,&x:reference_field::X&) [line 90, column 7]\n EXIT_SCOPE(n$5,n$6); [line 90, column 7]\n " shape="box"] +"ptr_I_div0#reference_field#18255668366877010738.5b1f39b2d5e2810cbdbf96621d88c2d0_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ptr) assign_last [line 90, column 3]\n n$5=_fun_reference_field::Ptr_Ptr(&r:reference_field::Ptr*,&x:reference_field::X&) [line 90, column 7]\n EXIT_SCOPE(n$5,n$6); [line 90, column 7]\n " shape="box"] "ptr_I_div0#reference_field#18255668366877010738.5b1f39b2d5e2810cbdbf96621d88c2d0_5" -> "ptr_I_div0#reference_field#18255668366877010738.5b1f39b2d5e2810cbdbf96621d88c2d0_4" ; @@ -50,7 +50,7 @@ digraph cfg { "ptr_I_div0#reference_field#18255668366877010738.5b1f39b2d5e2810cbdbf96621d88c2d0_6" -> "ptr_I_div0#reference_field#18255668366877010738.5b1f39b2d5e2810cbdbf96621d88c2d0_5" ; -"ptr_I_div0#reference_field#18255668366877010738.5b1f39b2d5e2810cbdbf96621d88c2d0_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) [line 88, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 88, column 5]\n EXIT_SCOPE(n$7,n$8); [line 88, column 5]\n " shape="box"] +"ptr_I_div0#reference_field#18255668366877010738.5b1f39b2d5e2810cbdbf96621d88c2d0_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) assign_last [line 88, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 88, column 5]\n EXIT_SCOPE(n$7,n$8); [line 88, column 5]\n " shape="box"] "ptr_I_div0#reference_field#18255668366877010738.5b1f39b2d5e2810cbdbf96621d88c2d0_7" -> "ptr_I_div0#reference_field#18255668366877010738.5b1f39b2d5e2810cbdbf96621d88c2d0_6" ; @@ -69,7 +69,7 @@ digraph cfg { "ptr_getF_div0#reference_field#3337646019334387234.41e241b3e1d6a6f7c629a1c6ca69cf07_4" -> "ptr_getF_div0#reference_field#3337646019334387234.41e241b3e1d6a6f7c629a1c6ca69cf07_3" ; -"ptr_getF_div0#reference_field#3337646019334387234.41e241b3e1d6a6f7c629a1c6ca69cf07_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ptr) [line 98, column 3]\n n$5=_fun_reference_field::Ptr_Ptr(&r:reference_field::Ptr*,&x:reference_field::X&) [line 98, column 7]\n EXIT_SCOPE(n$5,n$6); [line 98, column 7]\n " shape="box"] +"ptr_getF_div0#reference_field#3337646019334387234.41e241b3e1d6a6f7c629a1c6ca69cf07_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ptr) assign_last [line 98, column 3]\n n$5=_fun_reference_field::Ptr_Ptr(&r:reference_field::Ptr*,&x:reference_field::X&) [line 98, column 7]\n EXIT_SCOPE(n$5,n$6); [line 98, column 7]\n " shape="box"] "ptr_getF_div0#reference_field#3337646019334387234.41e241b3e1d6a6f7c629a1c6ca69cf07_5" -> "ptr_getF_div0#reference_field#3337646019334387234.41e241b3e1d6a6f7c629a1c6ca69cf07_4" ; @@ -77,7 +77,7 @@ digraph cfg { "ptr_getF_div0#reference_field#3337646019334387234.41e241b3e1d6a6f7c629a1c6ca69cf07_6" -> "ptr_getF_div0#reference_field#3337646019334387234.41e241b3e1d6a6f7c629a1c6ca69cf07_5" ; -"ptr_getF_div0#reference_field#3337646019334387234.41e241b3e1d6a6f7c629a1c6ca69cf07_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) [line 96, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 96, column 5]\n EXIT_SCOPE(n$7,n$8); [line 96, column 5]\n " shape="box"] +"ptr_getF_div0#reference_field#3337646019334387234.41e241b3e1d6a6f7c629a1c6ca69cf07_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) assign_last [line 96, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 96, column 5]\n EXIT_SCOPE(n$7,n$8); [line 96, column 5]\n " shape="box"] "ptr_getF_div0#reference_field#3337646019334387234.41e241b3e1d6a6f7c629a1c6ca69cf07_7" -> "ptr_getF_div0#reference_field#3337646019334387234.41e241b3e1d6a6f7c629a1c6ca69cf07_6" ; @@ -96,7 +96,7 @@ digraph cfg { "ptr_getI_div0#reference_field#2818660867908728453.99667cea541002986498839338031f13_4" -> "ptr_getI_div0#reference_field#2818660867908728453.99667cea541002986498839338031f13_3" ; -"ptr_getI_div0#reference_field#2818660867908728453.99667cea541002986498839338031f13_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ptr) [line 106, column 3]\n n$5=_fun_reference_field::Ptr_Ptr(&r:reference_field::Ptr*,&x:reference_field::X&) [line 106, column 7]\n EXIT_SCOPE(n$5,n$6); [line 106, column 7]\n " shape="box"] +"ptr_getI_div0#reference_field#2818660867908728453.99667cea541002986498839338031f13_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ptr) assign_last [line 106, column 3]\n n$5=_fun_reference_field::Ptr_Ptr(&r:reference_field::Ptr*,&x:reference_field::X&) [line 106, column 7]\n EXIT_SCOPE(n$5,n$6); [line 106, column 7]\n " shape="box"] "ptr_getI_div0#reference_field#2818660867908728453.99667cea541002986498839338031f13_5" -> "ptr_getI_div0#reference_field#2818660867908728453.99667cea541002986498839338031f13_4" ; @@ -104,7 +104,7 @@ digraph cfg { "ptr_getI_div0#reference_field#2818660867908728453.99667cea541002986498839338031f13_6" -> "ptr_getI_div0#reference_field#2818660867908728453.99667cea541002986498839338031f13_5" ; -"ptr_getI_div0#reference_field#2818660867908728453.99667cea541002986498839338031f13_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) [line 104, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 104, column 5]\n EXIT_SCOPE(n$7,n$8); [line 104, column 5]\n " shape="box"] +"ptr_getI_div0#reference_field#2818660867908728453.99667cea541002986498839338031f13_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) assign_last [line 104, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 104, column 5]\n EXIT_SCOPE(n$7,n$8); [line 104, column 5]\n " shape="box"] "ptr_getI_div0#reference_field#2818660867908728453.99667cea541002986498839338031f13_7" -> "ptr_getI_div0#reference_field#2818660867908728453.99667cea541002986498839338031f13_6" ; @@ -123,7 +123,7 @@ digraph cfg { "ref_F_div0#reference_field#11041134718140208132.6e58f8c7050613499e915a7d12b0f081_4" -> "ref_F_div0#reference_field#11041134718140208132.6e58f8c7050613499e915a7d12b0f081_3" ; -"ref_F_div0#reference_field#11041134718140208132.6e58f8c7050613499e915a7d12b0f081_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ref) [line 49, column 3]\n n$5=_fun_reference_field::Ref_Ref(&r:reference_field::Ref*,&x:reference_field::X&) [line 49, column 7]\n EXIT_SCOPE(n$5,n$6); [line 49, column 7]\n " shape="box"] +"ref_F_div0#reference_field#11041134718140208132.6e58f8c7050613499e915a7d12b0f081_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ref) assign_last [line 49, column 3]\n n$5=_fun_reference_field::Ref_Ref(&r:reference_field::Ref*,&x:reference_field::X&) [line 49, column 7]\n EXIT_SCOPE(n$5,n$6); [line 49, column 7]\n " shape="box"] "ref_F_div0#reference_field#11041134718140208132.6e58f8c7050613499e915a7d12b0f081_5" -> "ref_F_div0#reference_field#11041134718140208132.6e58f8c7050613499e915a7d12b0f081_4" ; @@ -131,7 +131,7 @@ digraph cfg { "ref_F_div0#reference_field#11041134718140208132.6e58f8c7050613499e915a7d12b0f081_6" -> "ref_F_div0#reference_field#11041134718140208132.6e58f8c7050613499e915a7d12b0f081_5" ; -"ref_F_div0#reference_field#11041134718140208132.6e58f8c7050613499e915a7d12b0f081_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) [line 47, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 47, column 5]\n EXIT_SCOPE(n$7,n$8); [line 47, column 5]\n " shape="box"] +"ref_F_div0#reference_field#11041134718140208132.6e58f8c7050613499e915a7d12b0f081_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) assign_last [line 47, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 47, column 5]\n EXIT_SCOPE(n$7,n$8); [line 47, column 5]\n " shape="box"] "ref_F_div0#reference_field#11041134718140208132.6e58f8c7050613499e915a7d12b0f081_7" -> "ref_F_div0#reference_field#11041134718140208132.6e58f8c7050613499e915a7d12b0f081_6" ; @@ -150,7 +150,7 @@ digraph cfg { "ref_I_div0#reference_field#12578013844532400739.b911fdef1ca9c73b658bff3d5d964b9b_4" -> "ref_I_div0#reference_field#12578013844532400739.b911fdef1ca9c73b658bff3d5d964b9b_3" ; -"ref_I_div0#reference_field#12578013844532400739.b911fdef1ca9c73b658bff3d5d964b9b_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ref) [line 57, column 3]\n n$5=_fun_reference_field::Ref_Ref(&r:reference_field::Ref*,&x:reference_field::X&) [line 57, column 7]\n EXIT_SCOPE(n$5,n$6); [line 57, column 7]\n " shape="box"] +"ref_I_div0#reference_field#12578013844532400739.b911fdef1ca9c73b658bff3d5d964b9b_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ref) assign_last [line 57, column 3]\n n$5=_fun_reference_field::Ref_Ref(&r:reference_field::Ref*,&x:reference_field::X&) [line 57, column 7]\n EXIT_SCOPE(n$5,n$6); [line 57, column 7]\n " shape="box"] "ref_I_div0#reference_field#12578013844532400739.b911fdef1ca9c73b658bff3d5d964b9b_5" -> "ref_I_div0#reference_field#12578013844532400739.b911fdef1ca9c73b658bff3d5d964b9b_4" ; @@ -158,7 +158,7 @@ digraph cfg { "ref_I_div0#reference_field#12578013844532400739.b911fdef1ca9c73b658bff3d5d964b9b_6" -> "ref_I_div0#reference_field#12578013844532400739.b911fdef1ca9c73b658bff3d5d964b9b_5" ; -"ref_I_div0#reference_field#12578013844532400739.b911fdef1ca9c73b658bff3d5d964b9b_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) [line 55, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 55, column 5]\n EXIT_SCOPE(n$7,n$8); [line 55, column 5]\n " shape="box"] +"ref_I_div0#reference_field#12578013844532400739.b911fdef1ca9c73b658bff3d5d964b9b_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) assign_last [line 55, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 55, column 5]\n EXIT_SCOPE(n$7,n$8); [line 55, column 5]\n " shape="box"] "ref_I_div0#reference_field#12578013844532400739.b911fdef1ca9c73b658bff3d5d964b9b_7" -> "ref_I_div0#reference_field#12578013844532400739.b911fdef1ca9c73b658bff3d5d964b9b_6" ; @@ -177,7 +177,7 @@ digraph cfg { "ref_getF_div0#reference_field#2481930918988851369.2dc7181f26bf9bad7c2f06846f4d7ec4_4" -> "ref_getF_div0#reference_field#2481930918988851369.2dc7181f26bf9bad7c2f06846f4d7ec4_3" ; -"ref_getF_div0#reference_field#2481930918988851369.2dc7181f26bf9bad7c2f06846f4d7ec4_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ref) [line 65, column 3]\n n$5=_fun_reference_field::Ref_Ref(&r:reference_field::Ref*,&x:reference_field::X&) [line 65, column 7]\n EXIT_SCOPE(n$5,n$6); [line 65, column 7]\n " shape="box"] +"ref_getF_div0#reference_field#2481930918988851369.2dc7181f26bf9bad7c2f06846f4d7ec4_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ref) assign_last [line 65, column 3]\n n$5=_fun_reference_field::Ref_Ref(&r:reference_field::Ref*,&x:reference_field::X&) [line 65, column 7]\n EXIT_SCOPE(n$5,n$6); [line 65, column 7]\n " shape="box"] "ref_getF_div0#reference_field#2481930918988851369.2dc7181f26bf9bad7c2f06846f4d7ec4_5" -> "ref_getF_div0#reference_field#2481930918988851369.2dc7181f26bf9bad7c2f06846f4d7ec4_4" ; @@ -185,7 +185,7 @@ digraph cfg { "ref_getF_div0#reference_field#2481930918988851369.2dc7181f26bf9bad7c2f06846f4d7ec4_6" -> "ref_getF_div0#reference_field#2481930918988851369.2dc7181f26bf9bad7c2f06846f4d7ec4_5" ; -"ref_getF_div0#reference_field#2481930918988851369.2dc7181f26bf9bad7c2f06846f4d7ec4_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) [line 63, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 63, column 5]\n EXIT_SCOPE(n$7,n$8); [line 63, column 5]\n " shape="box"] +"ref_getF_div0#reference_field#2481930918988851369.2dc7181f26bf9bad7c2f06846f4d7ec4_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) assign_last [line 63, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 63, column 5]\n EXIT_SCOPE(n$7,n$8); [line 63, column 5]\n " shape="box"] "ref_getF_div0#reference_field#2481930918988851369.2dc7181f26bf9bad7c2f06846f4d7ec4_7" -> "ref_getF_div0#reference_field#2481930918988851369.2dc7181f26bf9bad7c2f06846f4d7ec4_6" ; @@ -204,7 +204,7 @@ digraph cfg { "ref_getI_div0#reference_field#17267881158640772750.8919328183561d84930ec2a40da70667_4" -> "ref_getI_div0#reference_field#17267881158640772750.8919328183561d84930ec2a40da70667_3" ; -"ref_getI_div0#reference_field#17267881158640772750.8919328183561d84930ec2a40da70667_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ref) [line 73, column 3]\n n$5=_fun_reference_field::Ref_Ref(&r:reference_field::Ref*,&x:reference_field::X&) [line 73, column 7]\n EXIT_SCOPE(n$5,n$6); [line 73, column 7]\n " shape="box"] +"ref_getI_div0#reference_field#17267881158640772750.8919328183561d84930ec2a40da70667_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Ref) assign_last [line 73, column 3]\n n$5=_fun_reference_field::Ref_Ref(&r:reference_field::Ref*,&x:reference_field::X&) [line 73, column 7]\n EXIT_SCOPE(n$5,n$6); [line 73, column 7]\n " shape="box"] "ref_getI_div0#reference_field#17267881158640772750.8919328183561d84930ec2a40da70667_5" -> "ref_getI_div0#reference_field#17267881158640772750.8919328183561d84930ec2a40da70667_4" ; @@ -212,7 +212,7 @@ digraph cfg { "ref_getI_div0#reference_field#17267881158640772750.8919328183561d84930ec2a40da70667_6" -> "ref_getI_div0#reference_field#17267881158640772750.8919328183561d84930ec2a40da70667_5" ; -"ref_getI_div0#reference_field#17267881158640772750.8919328183561d84930ec2a40da70667_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) [line 71, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 71, column 5]\n EXIT_SCOPE(n$7,n$8); [line 71, column 5]\n " shape="box"] +"ref_getI_div0#reference_field#17267881158640772750.8919328183561d84930ec2a40da70667_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) assign_last [line 71, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 71, column 5]\n EXIT_SCOPE(n$7,n$8); [line 71, column 5]\n " shape="box"] "ref_getI_div0#reference_field#17267881158640772750.8919328183561d84930ec2a40da70667_7" -> "ref_getI_div0#reference_field#17267881158640772750.8919328183561d84930ec2a40da70667_6" ; @@ -231,7 +231,7 @@ digraph cfg { "val_F_div0#reference_field#8428286850923379914.8fdee85eabf77b0016437fa0006d373c_4" -> "val_F_div0#reference_field#8428286850923379914.8fdee85eabf77b0016437fa0006d373c_3" ; -"val_F_div0#reference_field#8428286850923379914.8fdee85eabf77b0016437fa0006d373c_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&r:reference_field::Val) [line 115, column 3]\n n$4=_fun_reference_field::Val_Val(&r:reference_field::Val*,&x:reference_field::X&) [line 115, column 7]\n EXIT_SCOPE(n$4,n$5); [line 115, column 7]\n " shape="box"] +"val_F_div0#reference_field#8428286850923379914.8fdee85eabf77b0016437fa0006d373c_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&r:reference_field::Val) assign_last [line 115, column 3]\n n$4=_fun_reference_field::Val_Val(&r:reference_field::Val*,&x:reference_field::X&) [line 115, column 7]\n EXIT_SCOPE(n$4,n$5); [line 115, column 7]\n " shape="box"] "val_F_div0#reference_field#8428286850923379914.8fdee85eabf77b0016437fa0006d373c_5" -> "val_F_div0#reference_field#8428286850923379914.8fdee85eabf77b0016437fa0006d373c_4" ; @@ -239,7 +239,7 @@ digraph cfg { "val_F_div0#reference_field#8428286850923379914.8fdee85eabf77b0016437fa0006d373c_6" -> "val_F_div0#reference_field#8428286850923379914.8fdee85eabf77b0016437fa0006d373c_5" ; -"val_F_div0#reference_field#8428286850923379914.8fdee85eabf77b0016437fa0006d373c_7" [label="7: DeclStmt \n n$7=_fun___variable_initialization(&x:reference_field::X) [line 113, column 3]\n n$6=_fun_reference_field::X_X(&x:reference_field::X*) [line 113, column 5]\n EXIT_SCOPE(n$6,n$7); [line 113, column 5]\n " shape="box"] +"val_F_div0#reference_field#8428286850923379914.8fdee85eabf77b0016437fa0006d373c_7" [label="7: DeclStmt \n n$7=_fun___variable_initialization(&x:reference_field::X) assign_last [line 113, column 3]\n n$6=_fun_reference_field::X_X(&x:reference_field::X*) [line 113, column 5]\n EXIT_SCOPE(n$6,n$7); [line 113, column 5]\n " shape="box"] "val_F_div0#reference_field#8428286850923379914.8fdee85eabf77b0016437fa0006d373c_7" -> "val_F_div0#reference_field#8428286850923379914.8fdee85eabf77b0016437fa0006d373c_6" ; @@ -258,7 +258,7 @@ digraph cfg { "val_I_div0#reference_field#17788064844610257149.11b45a3e82e229e7a7714480217c1af3_4" -> "val_I_div0#reference_field#17788064844610257149.11b45a3e82e229e7a7714480217c1af3_3" ; -"val_I_div0#reference_field#17788064844610257149.11b45a3e82e229e7a7714480217c1af3_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&r:reference_field::Val) [line 123, column 3]\n n$4=_fun_reference_field::Val_Val(&r:reference_field::Val*,&x:reference_field::X&) [line 123, column 7]\n EXIT_SCOPE(n$4,n$5); [line 123, column 7]\n " shape="box"] +"val_I_div0#reference_field#17788064844610257149.11b45a3e82e229e7a7714480217c1af3_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&r:reference_field::Val) assign_last [line 123, column 3]\n n$4=_fun_reference_field::Val_Val(&r:reference_field::Val*,&x:reference_field::X&) [line 123, column 7]\n EXIT_SCOPE(n$4,n$5); [line 123, column 7]\n " shape="box"] "val_I_div0#reference_field#17788064844610257149.11b45a3e82e229e7a7714480217c1af3_5" -> "val_I_div0#reference_field#17788064844610257149.11b45a3e82e229e7a7714480217c1af3_4" ; @@ -266,7 +266,7 @@ digraph cfg { "val_I_div0#reference_field#17788064844610257149.11b45a3e82e229e7a7714480217c1af3_6" -> "val_I_div0#reference_field#17788064844610257149.11b45a3e82e229e7a7714480217c1af3_5" ; -"val_I_div0#reference_field#17788064844610257149.11b45a3e82e229e7a7714480217c1af3_7" [label="7: DeclStmt \n n$7=_fun___variable_initialization(&x:reference_field::X) [line 121, column 3]\n n$6=_fun_reference_field::X_X(&x:reference_field::X*) [line 121, column 5]\n EXIT_SCOPE(n$6,n$7); [line 121, column 5]\n " shape="box"] +"val_I_div0#reference_field#17788064844610257149.11b45a3e82e229e7a7714480217c1af3_7" [label="7: DeclStmt \n n$7=_fun___variable_initialization(&x:reference_field::X) assign_last [line 121, column 3]\n n$6=_fun_reference_field::X_X(&x:reference_field::X*) [line 121, column 5]\n EXIT_SCOPE(n$6,n$7); [line 121, column 5]\n " shape="box"] "val_I_div0#reference_field#17788064844610257149.11b45a3e82e229e7a7714480217c1af3_7" -> "val_I_div0#reference_field#17788064844610257149.11b45a3e82e229e7a7714480217c1af3_6" ; @@ -285,7 +285,7 @@ digraph cfg { "val_getF_div0#reference_field#16910887455441500799.24fc3c9591435f1b92c06c5c7da4bd2e_4" -> "val_getF_div0#reference_field#16910887455441500799.24fc3c9591435f1b92c06c5c7da4bd2e_3" ; -"val_getF_div0#reference_field#16910887455441500799.24fc3c9591435f1b92c06c5c7da4bd2e_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Val) [line 131, column 3]\n n$5=_fun_reference_field::Val_Val(&r:reference_field::Val*,&x:reference_field::X&) [line 131, column 7]\n EXIT_SCOPE(n$5,n$6); [line 131, column 7]\n " shape="box"] +"val_getF_div0#reference_field#16910887455441500799.24fc3c9591435f1b92c06c5c7da4bd2e_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Val) assign_last [line 131, column 3]\n n$5=_fun_reference_field::Val_Val(&r:reference_field::Val*,&x:reference_field::X&) [line 131, column 7]\n EXIT_SCOPE(n$5,n$6); [line 131, column 7]\n " shape="box"] "val_getF_div0#reference_field#16910887455441500799.24fc3c9591435f1b92c06c5c7da4bd2e_5" -> "val_getF_div0#reference_field#16910887455441500799.24fc3c9591435f1b92c06c5c7da4bd2e_4" ; @@ -293,7 +293,7 @@ digraph cfg { "val_getF_div0#reference_field#16910887455441500799.24fc3c9591435f1b92c06c5c7da4bd2e_6" -> "val_getF_div0#reference_field#16910887455441500799.24fc3c9591435f1b92c06c5c7da4bd2e_5" ; -"val_getF_div0#reference_field#16910887455441500799.24fc3c9591435f1b92c06c5c7da4bd2e_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) [line 129, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 129, column 5]\n EXIT_SCOPE(n$7,n$8); [line 129, column 5]\n " shape="box"] +"val_getF_div0#reference_field#16910887455441500799.24fc3c9591435f1b92c06c5c7da4bd2e_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) assign_last [line 129, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 129, column 5]\n EXIT_SCOPE(n$7,n$8); [line 129, column 5]\n " shape="box"] "val_getF_div0#reference_field#16910887455441500799.24fc3c9591435f1b92c06c5c7da4bd2e_7" -> "val_getF_div0#reference_field#16910887455441500799.24fc3c9591435f1b92c06c5c7da4bd2e_6" ; @@ -312,7 +312,7 @@ digraph cfg { "val_getI_div0#reference_field#1916539470996695608.683d462cf87abbc81874a14e4872564a_4" -> "val_getI_div0#reference_field#1916539470996695608.683d462cf87abbc81874a14e4872564a_3" ; -"val_getI_div0#reference_field#1916539470996695608.683d462cf87abbc81874a14e4872564a_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Val) [line 139, column 3]\n n$5=_fun_reference_field::Val_Val(&r:reference_field::Val*,&x:reference_field::X&) [line 139, column 7]\n EXIT_SCOPE(n$5,n$6); [line 139, column 7]\n " shape="box"] +"val_getI_div0#reference_field#1916539470996695608.683d462cf87abbc81874a14e4872564a_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&r:reference_field::Val) assign_last [line 139, column 3]\n n$5=_fun_reference_field::Val_Val(&r:reference_field::Val*,&x:reference_field::X&) [line 139, column 7]\n EXIT_SCOPE(n$5,n$6); [line 139, column 7]\n " shape="box"] "val_getI_div0#reference_field#1916539470996695608.683d462cf87abbc81874a14e4872564a_5" -> "val_getI_div0#reference_field#1916539470996695608.683d462cf87abbc81874a14e4872564a_4" ; @@ -320,7 +320,7 @@ digraph cfg { "val_getI_div0#reference_field#1916539470996695608.683d462cf87abbc81874a14e4872564a_6" -> "val_getI_div0#reference_field#1916539470996695608.683d462cf87abbc81874a14e4872564a_5" ; -"val_getI_div0#reference_field#1916539470996695608.683d462cf87abbc81874a14e4872564a_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) [line 137, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 137, column 5]\n EXIT_SCOPE(n$7,n$8); [line 137, column 5]\n " shape="box"] +"val_getI_div0#reference_field#1916539470996695608.683d462cf87abbc81874a14e4872564a_7" [label="7: DeclStmt \n n$8=_fun___variable_initialization(&x:reference_field::X) assign_last [line 137, column 3]\n n$7=_fun_reference_field::X_X(&x:reference_field::X*) [line 137, column 5]\n EXIT_SCOPE(n$7,n$8); [line 137, column 5]\n " shape="box"] "val_getI_div0#reference_field#1916539470996695608.683d462cf87abbc81874a14e4872564a_7" -> "val_getI_div0#reference_field#1916539470996695608.683d462cf87abbc81874a14e4872564a_6" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/reference/reference_struct_e2e.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/reference/reference_struct_e2e.cpp.dot index d00807ed6..6ec041721 100644 --- a/infer/tests/codetoanalyze/cpp/shared/reference/reference_struct_e2e.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/reference/reference_struct_e2e.cpp.dot @@ -7,7 +7,7 @@ digraph cfg { "__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_2" [label="2: Exit __infer_globals_initializer_global \n " color=yellow style=filled] -"__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&#GB$global:X) [line 27, column 1]\n n$0=_fun_X_X(&#GB$global:X*) [line 27, column 3]\n EXIT_SCOPE(n$0,n$1); [line 27, column 3]\n APPLY_ABSTRACTION; [line 27, column 3]\n " shape="box"] +"__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&#GB$global:X) assign_last [line 27, column 1]\n n$0=_fun_X_X(&#GB$global:X*) [line 27, column 3]\n EXIT_SCOPE(n$0,n$1); [line 27, column 3]\n APPLY_ABSTRACTION; [line 27, column 3]\n " shape="box"] "__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_3" -> "__infer_globals_initializer_global.bdc08c089842ce08b974b22a75daf78e_2" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/reference/reference_type_e2e.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/reference/reference_type_e2e.cpp.dot index c5b0e6f99..b4b429bc6 100644 --- a/infer/tests/codetoanalyze/cpp/shared/reference/reference_type_e2e.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/reference/reference_type_e2e.cpp.dot @@ -15,11 +15,11 @@ digraph cfg { "ptr_div0#14193575060740497524.6928690623c7c21a5a52547c8cdd4310_4" -> "ptr_div0#14193575060740497524.6928690623c7c21a5a52547c8cdd4310_3" ; -"ptr_div0#14193575060740497524.6928690623c7c21a5a52547c8cdd4310_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&p:int*) [line 13, column 3]\n *&p:int*=&a [line 13, column 3]\n EXIT_SCOPE(n$3); [line 13, column 3]\n " shape="box"] +"ptr_div0#14193575060740497524.6928690623c7c21a5a52547c8cdd4310_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&p:int*) assign_last [line 13, column 3]\n *&p:int*=&a [line 13, column 3]\n EXIT_SCOPE(n$3); [line 13, column 3]\n " shape="box"] "ptr_div0#14193575060740497524.6928690623c7c21a5a52547c8cdd4310_5" -> "ptr_div0#14193575060740497524.6928690623c7c21a5a52547c8cdd4310_4" ; -"ptr_div0#14193575060740497524.6928690623c7c21a5a52547c8cdd4310_6" [label="6: DeclStmt \n n$4=_fun___variable_initialization(&a:int) [line 12, column 3]\n *&a:int=2 [line 12, column 3]\n EXIT_SCOPE(n$4); [line 12, column 3]\n " shape="box"] +"ptr_div0#14193575060740497524.6928690623c7c21a5a52547c8cdd4310_6" [label="6: DeclStmt \n n$4=_fun___variable_initialization(&a:int) assign_last [line 12, column 3]\n *&a:int=2 [line 12, column 3]\n EXIT_SCOPE(n$4); [line 12, column 3]\n " shape="box"] "ptr_div0#14193575060740497524.6928690623c7c21a5a52547c8cdd4310_6" -> "ptr_div0#14193575060740497524.6928690623c7c21a5a52547c8cdd4310_5" ; @@ -38,7 +38,7 @@ digraph cfg { "ptr_div0_function#15472019236267517423.0a3eb7529edaa487d598988d34f0b091_4" -> "ptr_div0_function#15472019236267517423.0a3eb7529edaa487d598988d34f0b091_3" ; -"ptr_div0_function#15472019236267517423.0a3eb7529edaa487d598988d34f0b091_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&a:int) [line 19, column 3]\n *&a:int=2 [line 19, column 3]\n EXIT_SCOPE(n$3); [line 19, column 3]\n " shape="box"] +"ptr_div0_function#15472019236267517423.0a3eb7529edaa487d598988d34f0b091_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&a:int) assign_last [line 19, column 3]\n *&a:int=2 [line 19, column 3]\n EXIT_SCOPE(n$3); [line 19, column 3]\n " shape="box"] "ptr_div0_function#15472019236267517423.0a3eb7529edaa487d598988d34f0b091_5" -> "ptr_div0_function#15472019236267517423.0a3eb7529edaa487d598988d34f0b091_4" ; @@ -57,11 +57,11 @@ digraph cfg { "ptr_div0_function_temp_var#5150281836928396778.6b88ca0a7e844195f8de319fd04a3139_4" -> "ptr_div0_function_temp_var#5150281836928396778.6b88ca0a7e844195f8de319fd04a3139_3" ; -"ptr_div0_function_temp_var#5150281836928396778.6b88ca0a7e844195f8de319fd04a3139_5" [label="5: DeclStmt \n n$4=_fun___variable_initialization(&r:int*) [line 26, column 3]\n *&r:int*=&a [line 26, column 3]\n EXIT_SCOPE(n$4); [line 26, column 3]\n " shape="box"] +"ptr_div0_function_temp_var#5150281836928396778.6b88ca0a7e844195f8de319fd04a3139_5" [label="5: DeclStmt \n n$4=_fun___variable_initialization(&r:int*) assign_last [line 26, column 3]\n *&r:int*=&a [line 26, column 3]\n EXIT_SCOPE(n$4); [line 26, column 3]\n " shape="box"] "ptr_div0_function_temp_var#5150281836928396778.6b88ca0a7e844195f8de319fd04a3139_5" -> "ptr_div0_function_temp_var#5150281836928396778.6b88ca0a7e844195f8de319fd04a3139_4" ; -"ptr_div0_function_temp_var#5150281836928396778.6b88ca0a7e844195f8de319fd04a3139_6" [label="6: DeclStmt \n n$5=_fun___variable_initialization(&a:int) [line 25, column 3]\n *&a:int=2 [line 25, column 3]\n EXIT_SCOPE(n$5); [line 25, column 3]\n " shape="box"] +"ptr_div0_function_temp_var#5150281836928396778.6b88ca0a7e844195f8de319fd04a3139_6" [label="6: DeclStmt \n n$5=_fun___variable_initialization(&a:int) assign_last [line 25, column 3]\n *&a:int=2 [line 25, column 3]\n EXIT_SCOPE(n$5); [line 25, column 3]\n " shape="box"] "ptr_div0_function_temp_var#5150281836928396778.6b88ca0a7e844195f8de319fd04a3139_6" -> "ptr_div0_function_temp_var#5150281836928396778.6b88ca0a7e844195f8de319fd04a3139_5" ; @@ -80,11 +80,11 @@ digraph cfg { "ref_div0#1043072996947162803.d8e5fefe42038c8549979f6316354144_4" -> "ref_div0#1043072996947162803.d8e5fefe42038c8549979f6316354144_3" ; -"ref_div0#1043072996947162803.d8e5fefe42038c8549979f6316354144_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&r:int&) [line 33, column 3]\n *&r:int&=&a [line 33, column 3]\n EXIT_SCOPE(n$3); [line 33, column 3]\n " shape="box"] +"ref_div0#1043072996947162803.d8e5fefe42038c8549979f6316354144_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&r:int&) assign_last [line 33, column 3]\n *&r:int&=&a [line 33, column 3]\n EXIT_SCOPE(n$3); [line 33, column 3]\n " shape="box"] "ref_div0#1043072996947162803.d8e5fefe42038c8549979f6316354144_5" -> "ref_div0#1043072996947162803.d8e5fefe42038c8549979f6316354144_4" ; -"ref_div0#1043072996947162803.d8e5fefe42038c8549979f6316354144_6" [label="6: DeclStmt \n n$4=_fun___variable_initialization(&a:int) [line 32, column 3]\n *&a:int=2 [line 32, column 3]\n EXIT_SCOPE(n$4); [line 32, column 3]\n " shape="box"] +"ref_div0#1043072996947162803.d8e5fefe42038c8549979f6316354144_6" [label="6: DeclStmt \n n$4=_fun___variable_initialization(&a:int) assign_last [line 32, column 3]\n *&a:int=2 [line 32, column 3]\n EXIT_SCOPE(n$4); [line 32, column 3]\n " shape="box"] "ref_div0#1043072996947162803.d8e5fefe42038c8549979f6316354144_6" -> "ref_div0#1043072996947162803.d8e5fefe42038c8549979f6316354144_5" ; @@ -103,7 +103,7 @@ digraph cfg { "ref_div0_function#15446684317306379342.095fd29aa2a7d2024ec0380b2c42aad4_4" -> "ref_div0_function#15446684317306379342.095fd29aa2a7d2024ec0380b2c42aad4_3" ; -"ref_div0_function#15446684317306379342.095fd29aa2a7d2024ec0380b2c42aad4_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&a:int) [line 39, column 3]\n *&a:int=2 [line 39, column 3]\n EXIT_SCOPE(n$3); [line 39, column 3]\n " shape="box"] +"ref_div0_function#15446684317306379342.095fd29aa2a7d2024ec0380b2c42aad4_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&a:int) assign_last [line 39, column 3]\n *&a:int=2 [line 39, column 3]\n EXIT_SCOPE(n$3); [line 39, column 3]\n " shape="box"] "ref_div0_function#15446684317306379342.095fd29aa2a7d2024ec0380b2c42aad4_5" -> "ref_div0_function#15446684317306379342.095fd29aa2a7d2024ec0380b2c42aad4_4" ; @@ -122,11 +122,11 @@ digraph cfg { "ref_div0_function_temp_var#14207866842047996477.a899517f09b367d539ea5f04365fd46e_4" -> "ref_div0_function_temp_var#14207866842047996477.a899517f09b367d539ea5f04365fd46e_3" ; -"ref_div0_function_temp_var#14207866842047996477.a899517f09b367d539ea5f04365fd46e_5" [label="5: DeclStmt \n n$4=_fun___variable_initialization(&r:int&) [line 46, column 3]\n *&r:int&=&a [line 46, column 3]\n EXIT_SCOPE(n$4); [line 46, column 3]\n " shape="box"] +"ref_div0_function_temp_var#14207866842047996477.a899517f09b367d539ea5f04365fd46e_5" [label="5: DeclStmt \n n$4=_fun___variable_initialization(&r:int&) assign_last [line 46, column 3]\n *&r:int&=&a [line 46, column 3]\n EXIT_SCOPE(n$4); [line 46, column 3]\n " shape="box"] "ref_div0_function_temp_var#14207866842047996477.a899517f09b367d539ea5f04365fd46e_5" -> "ref_div0_function_temp_var#14207866842047996477.a899517f09b367d539ea5f04365fd46e_4" ; -"ref_div0_function_temp_var#14207866842047996477.a899517f09b367d539ea5f04365fd46e_6" [label="6: DeclStmt \n n$5=_fun___variable_initialization(&a:int) [line 45, column 3]\n *&a:int=2 [line 45, column 3]\n EXIT_SCOPE(n$5); [line 45, column 3]\n " shape="box"] +"ref_div0_function_temp_var#14207866842047996477.a899517f09b367d539ea5f04365fd46e_6" [label="6: DeclStmt \n n$5=_fun___variable_initialization(&a:int) assign_last [line 45, column 3]\n *&a:int=2 [line 45, column 3]\n EXIT_SCOPE(n$5); [line 45, column 3]\n " shape="box"] "ref_div0_function_temp_var#14207866842047996477.a899517f09b367d539ea5f04365fd46e_6" -> "ref_div0_function_temp_var#14207866842047996477.a899517f09b367d539ea5f04365fd46e_5" ; @@ -145,19 +145,19 @@ digraph cfg { "ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_4" -> "ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_3" ; -"ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&r2:int&) [line 55, column 3]\n n$3=*&r1:int& [line 55, column 13]\n *&b:int=1 [line 55, column 18]\n n$4=*&b:int [line 55, column 18]\n *n$3:int=n$4 [line 55, column 13]\n *&r2:int&=n$3 [line 55, column 3]\n NULLIFY(&b); [line 55, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,b,r1); [line 55, column 3]\n " shape="box"] +"ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&r2:int&) assign_last [line 55, column 3]\n n$3=*&r1:int& [line 55, column 13]\n *&b:int=1 [line 55, column 18]\n n$4=*&b:int [line 55, column 18]\n *n$3:int=n$4 [line 55, column 13]\n *&r2:int&=n$3 [line 55, column 3]\n NULLIFY(&b); [line 55, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,b,r1); [line 55, column 3]\n " shape="box"] "ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_5" -> "ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_4" ; -"ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_6" [label="6: DeclStmt \n n$6=_fun___variable_initialization(&r1:int&) [line 54, column 3]\n *&r1:int&=&a [line 54, column 3]\n EXIT_SCOPE(n$6); [line 54, column 3]\n " shape="box"] +"ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_6" [label="6: DeclStmt \n n$6=_fun___variable_initialization(&r1:int&) assign_last [line 54, column 3]\n *&r1:int&=&a [line 54, column 3]\n EXIT_SCOPE(n$6); [line 54, column 3]\n " shape="box"] "ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_6" -> "ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_5" ; -"ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_7" [label="7: DeclStmt \n n$7=_fun___variable_initialization(&b:int) [line 53, column 3]\n *&b:int=3 [line 53, column 3]\n NULLIFY(&b); [line 53, column 3]\n EXIT_SCOPE(n$7,b); [line 53, column 3]\n " shape="box"] +"ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_7" [label="7: DeclStmt \n n$7=_fun___variable_initialization(&b:int) assign_last [line 53, column 3]\n *&b:int=3 [line 53, column 3]\n NULLIFY(&b); [line 53, column 3]\n EXIT_SCOPE(n$7,b); [line 53, column 3]\n " shape="box"] "ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_7" -> "ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_6" ; -"ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_8" [label="8: DeclStmt \n n$8=_fun___variable_initialization(&a:int) [line 52, column 3]\n *&a:int=2 [line 52, column 3]\n EXIT_SCOPE(n$8); [line 52, column 3]\n " shape="box"] +"ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_8" [label="8: DeclStmt \n n$8=_fun___variable_initialization(&a:int) assign_last [line 52, column 3]\n *&a:int=2 [line 52, column 3]\n EXIT_SCOPE(n$8); [line 52, column 3]\n " shape="box"] "ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_8" -> "ref_div0_nested_assignment#17126972420420854569.bd6abb3056f6689fbac92af920ec6879_7" ; @@ -176,19 +176,19 @@ digraph cfg { "ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_4" -> "ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_3" ; -"ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&r2:int&) [line 64, column 3]\n n$3=*&r1:int& [line 64, column 13]\n *&b:int=1 [line 64, column 18]\n n$4=*&b:int [line 64, column 18]\n *n$3:int=n$4 [line 64, column 13]\n *&r2:int&=n$3 [line 64, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,r1); [line 64, column 3]\n " shape="box"] +"ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_5" [label="5: DeclStmt \n n$5=_fun___variable_initialization(&r2:int&) assign_last [line 64, column 3]\n n$3=*&r1:int& [line 64, column 13]\n *&b:int=1 [line 64, column 18]\n n$4=*&b:int [line 64, column 18]\n *n$3:int=n$4 [line 64, column 13]\n *&r2:int&=n$3 [line 64, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,r1); [line 64, column 3]\n " shape="box"] "ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_5" -> "ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_4" ; -"ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_6" [label="6: DeclStmt \n n$6=_fun___variable_initialization(&r1:int&) [line 63, column 3]\n *&r1:int&=&a [line 63, column 3]\n EXIT_SCOPE(n$6,a); [line 63, column 3]\n " shape="box"] +"ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_6" [label="6: DeclStmt \n n$6=_fun___variable_initialization(&r1:int&) assign_last [line 63, column 3]\n *&r1:int&=&a [line 63, column 3]\n EXIT_SCOPE(n$6,a); [line 63, column 3]\n " shape="box"] "ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_6" -> "ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_5" ; -"ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_7" [label="7: DeclStmt \n n$7=_fun___variable_initialization(&b:int) [line 62, column 3]\n *&b:int=3 [line 62, column 3]\n NULLIFY(&b); [line 62, column 3]\n EXIT_SCOPE(n$7,b); [line 62, column 3]\n " shape="box"] +"ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_7" [label="7: DeclStmt \n n$7=_fun___variable_initialization(&b:int) assign_last [line 62, column 3]\n *&b:int=3 [line 62, column 3]\n NULLIFY(&b); [line 62, column 3]\n EXIT_SCOPE(n$7,b); [line 62, column 3]\n " shape="box"] "ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_7" -> "ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_6" ; -"ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_8" [label="8: DeclStmt \n n$8=_fun___variable_initialization(&a:int) [line 61, column 3]\n *&a:int=2 [line 61, column 3]\n EXIT_SCOPE(n$8); [line 61, column 3]\n " shape="box"] +"ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_8" [label="8: DeclStmt \n n$8=_fun___variable_initialization(&a:int) assign_last [line 61, column 3]\n *&a:int=2 [line 61, column 3]\n EXIT_SCOPE(n$8); [line 61, column 3]\n " shape="box"] "ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_8" -> "ref_div1_nested_assignment#5121576951592231820.a9f8511d9ff791c44569fd8a8eb9d3cf_7" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/reference/temporary_lvalue.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/reference/temporary_lvalue.cpp.dot index 1e706ed52..08d454982 100644 --- a/infer/tests/codetoanalyze/cpp/shared/reference/temporary_lvalue.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/reference/temporary_lvalue.cpp.dot @@ -18,7 +18,7 @@ digraph cfg { "div0_function_param_cast#10492767400319523474.071b9a9b757a9140938b53a95e971def_2" [label="2: Exit div0_function_param_cast \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 15, column 49]\n " color=yellow style=filled] -"div0_function_param_cast#10492767400319523474.071b9a9b757a9140938b53a95e971def_3" [label="3: Return Stmt \n n$1=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:int const ) [line 15, column 45]\n *&0$?%__sil_tmpSIL_materialize_temp__n$0:int=0 [line 15, column 45]\n n$2=_fun_div(&0$?%__sil_tmpSIL_materialize_temp__n$0:int const &) [line 15, column 41]\n *&return:int=n$2 [line 15, column 34]\n EXIT_SCOPE(n$1,n$2,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 15, column 34]\n APPLY_ABSTRACTION; [line 15, column 34]\n " shape="box"] +"div0_function_param_cast#10492767400319523474.071b9a9b757a9140938b53a95e971def_3" [label="3: Return Stmt \n n$1=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:int const ) assign_last [line 15, column 45]\n *&0$?%__sil_tmpSIL_materialize_temp__n$0:int=0 [line 15, column 45]\n n$2=_fun_div(&0$?%__sil_tmpSIL_materialize_temp__n$0:int const &) [line 15, column 41]\n *&return:int=n$2 [line 15, column 34]\n EXIT_SCOPE(n$1,n$2,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 15, column 34]\n APPLY_ABSTRACTION; [line 15, column 34]\n " shape="box"] "div0_function_param_cast#10492767400319523474.071b9a9b757a9140938b53a95e971def_3" -> "div0_function_param_cast#10492767400319523474.071b9a9b757a9140938b53a95e971def_2" ; @@ -33,7 +33,7 @@ digraph cfg { "div0_init_expr#16429869714979266683.46e79db6a434bbf3e121689869095925_3" -> "div0_init_expr#16429869714979266683.46e79db6a434bbf3e121689869095925_2" ; -"div0_init_expr#16429869714979266683.46e79db6a434bbf3e121689869095925_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&a:int const &) [line 11, column 3]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:int const ) [line 11, column 18]\n *&0$?%__sil_tmpSIL_materialize_temp__n$3:int=0 [line 11, column 18]\n *&a:int const &=&0$?%__sil_tmpSIL_materialize_temp__n$3 [line 11, column 3]\n EXIT_SCOPE(n$4,n$5,0$?%__sil_tmpSIL_materialize_temp__n$3); [line 11, column 3]\n " shape="box"] +"div0_init_expr#16429869714979266683.46e79db6a434bbf3e121689869095925_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&a:int const &) assign_last [line 11, column 3]\n n$4=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$3:int const ) assign_last [line 11, column 18]\n *&0$?%__sil_tmpSIL_materialize_temp__n$3:int=0 [line 11, column 18]\n *&a:int const &=&0$?%__sil_tmpSIL_materialize_temp__n$3 [line 11, column 3]\n EXIT_SCOPE(n$4,n$5,0$?%__sil_tmpSIL_materialize_temp__n$3); [line 11, column 3]\n " shape="box"] "div0_init_expr#16429869714979266683.46e79db6a434bbf3e121689869095925_4" -> "div0_init_expr#16429869714979266683.46e79db6a434bbf3e121689869095925_3" ; @@ -48,7 +48,7 @@ digraph cfg { "div0_no_const_ref#2435860439272921671.329c6a0e35fd9b4b747df4dcffa5a9ef_3" -> "div0_no_const_ref#2435860439272921671.329c6a0e35fd9b4b747df4dcffa5a9ef_2" ; -"div0_no_const_ref#2435860439272921671.329c6a0e35fd9b4b747df4dcffa5a9ef_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) [line 19, column 3]\n *&a:int=0 [line 19, column 3]\n EXIT_SCOPE(n$2); [line 19, column 3]\n " shape="box"] +"div0_no_const_ref#2435860439272921671.329c6a0e35fd9b4b747df4dcffa5a9ef_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) assign_last [line 19, column 3]\n *&a:int=0 [line 19, column 3]\n EXIT_SCOPE(n$2); [line 19, column 3]\n " shape="box"] "div0_no_const_ref#2435860439272921671.329c6a0e35fd9b4b747df4dcffa5a9ef_4" -> "div0_no_const_ref#2435860439272921671.329c6a0e35fd9b4b747df4dcffa5a9ef_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/reference/unbox.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/reference/unbox.cpp.dot index 0efd6575b..e5db22481 100644 --- a/infer/tests/codetoanalyze/cpp/shared/reference/unbox.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/reference/unbox.cpp.dot @@ -52,11 +52,11 @@ digraph cfg { "unbox_ptr#3550280956167916174.75d50cc2e2dfffd1cc23613b01fc878b_5" -> "unbox_ptr#3550280956167916174.75d50cc2e2dfffd1cc23613b01fc878b_4" ; -"unbox_ptr#3550280956167916174.75d50cc2e2dfffd1cc23613b01fc878b_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&p:int*) [line 27, column 3]\n *&p:int*=&a [line 27, column 3]\n EXIT_SCOPE(n$8,a); [line 27, column 3]\n " shape="box"] +"unbox_ptr#3550280956167916174.75d50cc2e2dfffd1cc23613b01fc878b_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&p:int*) assign_last [line 27, column 3]\n *&p:int*=&a [line 27, column 3]\n EXIT_SCOPE(n$8,a); [line 27, column 3]\n " shape="box"] "unbox_ptr#3550280956167916174.75d50cc2e2dfffd1cc23613b01fc878b_6" -> "unbox_ptr#3550280956167916174.75d50cc2e2dfffd1cc23613b01fc878b_5" ; -"unbox_ptr#3550280956167916174.75d50cc2e2dfffd1cc23613b01fc878b_7" [label="7: DeclStmt \n n$9=_fun___variable_initialization(&a:int) [line 26, column 3]\n *&a:int=3 [line 26, column 3]\n EXIT_SCOPE(n$9); [line 26, column 3]\n " shape="box"] +"unbox_ptr#3550280956167916174.75d50cc2e2dfffd1cc23613b01fc878b_7" [label="7: DeclStmt \n n$9=_fun___variable_initialization(&a:int) assign_last [line 26, column 3]\n *&a:int=3 [line 26, column 3]\n EXIT_SCOPE(n$9); [line 26, column 3]\n " shape="box"] "unbox_ptr#3550280956167916174.75d50cc2e2dfffd1cc23613b01fc878b_7" -> "unbox_ptr#3550280956167916174.75d50cc2e2dfffd1cc23613b01fc878b_6" ; @@ -79,11 +79,11 @@ digraph cfg { "unbox_ref#9977470601320200599.91094dce9e5b43dc4c89abcbc69b2c70_5" -> "unbox_ref#9977470601320200599.91094dce9e5b43dc4c89abcbc69b2c70_4" ; -"unbox_ref#9977470601320200599.91094dce9e5b43dc4c89abcbc69b2c70_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&r:int&) [line 17, column 3]\n *&r:int&=&a [line 17, column 3]\n EXIT_SCOPE(n$8,a); [line 17, column 3]\n " shape="box"] +"unbox_ref#9977470601320200599.91094dce9e5b43dc4c89abcbc69b2c70_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&r:int&) assign_last [line 17, column 3]\n *&r:int&=&a [line 17, column 3]\n EXIT_SCOPE(n$8,a); [line 17, column 3]\n " shape="box"] "unbox_ref#9977470601320200599.91094dce9e5b43dc4c89abcbc69b2c70_6" -> "unbox_ref#9977470601320200599.91094dce9e5b43dc4c89abcbc69b2c70_5" ; -"unbox_ref#9977470601320200599.91094dce9e5b43dc4c89abcbc69b2c70_7" [label="7: DeclStmt \n n$9=_fun___variable_initialization(&a:int) [line 16, column 3]\n *&a:int=3 [line 16, column 3]\n EXIT_SCOPE(n$9); [line 16, column 3]\n " shape="box"] +"unbox_ref#9977470601320200599.91094dce9e5b43dc4c89abcbc69b2c70_7" [label="7: DeclStmt \n n$9=_fun___variable_initialization(&a:int) assign_last [line 16, column 3]\n *&a:int=3 [line 16, column 3]\n EXIT_SCOPE(n$9); [line 16, column 3]\n " shape="box"] "unbox_ref#9977470601320200599.91094dce9e5b43dc4c89abcbc69b2c70_7" -> "unbox_ref#9977470601320200599.91094dce9e5b43dc4c89abcbc69b2c70_6" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/templates/class_specialization.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/templates/class_specialization.cpp.dot index 4588ae1fe..4e2f8792d 100644 --- a/infer/tests/codetoanalyze/cpp/shared/templates/class_specialization.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/templates/class_specialization.cpp.dot @@ -7,7 +7,7 @@ digraph cfg { "foo_int#class_specialization#18011277194514159170.29412bbb7345cd5150bdd3239c145d19_2" [label="2: Exit class_specialization::foo_int \n NULLIFY(&b); [line 34, column 1]\n " color=yellow style=filled] -"foo_int#class_specialization#18011277194514159170.29412bbb7345cd5150bdd3239c145d19_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&z:int) [line 33, column 3]\n n$1=*&b.x:int [line 33, column 15]\n *&z:int=(1 / n$1) [line 33, column 3]\n NULLIFY(&z); [line 33, column 3]\n EXIT_SCOPE(n$1,n$2,b,z); [line 33, column 3]\n APPLY_ABSTRACTION; [line 33, column 3]\n " shape="box"] +"foo_int#class_specialization#18011277194514159170.29412bbb7345cd5150bdd3239c145d19_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&z:int) assign_last [line 33, column 3]\n n$1=*&b.x:int [line 33, column 15]\n *&z:int=(1 / n$1) [line 33, column 3]\n NULLIFY(&z); [line 33, column 3]\n EXIT_SCOPE(n$1,n$2,b,z); [line 33, column 3]\n APPLY_ABSTRACTION; [line 33, column 3]\n " shape="box"] "foo_int#class_specialization#18011277194514159170.29412bbb7345cd5150bdd3239c145d19_3" -> "foo_int#class_specialization#18011277194514159170.29412bbb7345cd5150bdd3239c145d19_2" ; @@ -15,7 +15,7 @@ digraph cfg { "foo_int#class_specialization#18011277194514159170.29412bbb7345cd5150bdd3239c145d19_4" -> "foo_int#class_specialization#18011277194514159170.29412bbb7345cd5150bdd3239c145d19_3" ; -"foo_int#class_specialization#18011277194514159170.29412bbb7345cd5150bdd3239c145d19_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&b:class_specialization::Derived) [line 31, column 3]\n n$5=_fun_class_specialization::Derived_Derived(&b:class_specialization::Derived*) [line 31, column 16]\n EXIT_SCOPE(n$5,n$6); [line 31, column 16]\n " shape="box"] +"foo_int#class_specialization#18011277194514159170.29412bbb7345cd5150bdd3239c145d19_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&b:class_specialization::Derived) assign_last [line 31, column 3]\n n$5=_fun_class_specialization::Derived_Derived(&b:class_specialization::Derived*) [line 31, column 16]\n EXIT_SCOPE(n$5,n$6); [line 31, column 16]\n " shape="box"] "foo_int#class_specialization#18011277194514159170.29412bbb7345cd5150bdd3239c145d19_5" -> "foo_int#class_specialization#18011277194514159170.29412bbb7345cd5150bdd3239c145d19_4" ; @@ -26,7 +26,7 @@ digraph cfg { "foo_intptr#class_specialization#3914514069521239538.096096ddd8eb9462872f535952d6e0a5_2" [label="2: Exit class_specialization::foo_intptr \n NULLIFY(&b); [line 28, column 1]\n " color=yellow style=filled] -"foo_intptr#class_specialization#3914514069521239538.096096ddd8eb9462872f535952d6e0a5_3" [label="3: DeclStmt \n n$3=_fun___variable_initialization(&x:int) [line 27, column 3]\n n$1=*&b.x:int* [line 27, column 12]\n n$2=*n$1:int [line 27, column 11]\n *&x:int=n$2 [line 27, column 3]\n NULLIFY(&x); [line 27, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,b,x); [line 27, column 3]\n APPLY_ABSTRACTION; [line 27, column 3]\n " shape="box"] +"foo_intptr#class_specialization#3914514069521239538.096096ddd8eb9462872f535952d6e0a5_3" [label="3: DeclStmt \n n$3=_fun___variable_initialization(&x:int) assign_last [line 27, column 3]\n n$1=*&b.x:int* [line 27, column 12]\n n$2=*n$1:int [line 27, column 11]\n *&x:int=n$2 [line 27, column 3]\n NULLIFY(&x); [line 27, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,b,x); [line 27, column 3]\n APPLY_ABSTRACTION; [line 27, column 3]\n " shape="box"] "foo_intptr#class_specialization#3914514069521239538.096096ddd8eb9462872f535952d6e0a5_3" -> "foo_intptr#class_specialization#3914514069521239538.096096ddd8eb9462872f535952d6e0a5_2" ; @@ -34,7 +34,7 @@ digraph cfg { "foo_intptr#class_specialization#3914514069521239538.096096ddd8eb9462872f535952d6e0a5_4" -> "foo_intptr#class_specialization#3914514069521239538.096096ddd8eb9462872f535952d6e0a5_3" ; -"foo_intptr#class_specialization#3914514069521239538.096096ddd8eb9462872f535952d6e0a5_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&b:class_specialization::Derived) [line 25, column 3]\n n$6=_fun_class_specialization::Derived_Derived(&b:class_specialization::Derived*) [line 25, column 17]\n EXIT_SCOPE(n$6,n$7); [line 25, column 17]\n " shape="box"] +"foo_intptr#class_specialization#3914514069521239538.096096ddd8eb9462872f535952d6e0a5_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&b:class_specialization::Derived) assign_last [line 25, column 3]\n n$6=_fun_class_specialization::Derived_Derived(&b:class_specialization::Derived*) [line 25, column 17]\n EXIT_SCOPE(n$6,n$7); [line 25, column 17]\n " shape="box"] "foo_intptr#class_specialization#3914514069521239538.096096ddd8eb9462872f535952d6e0a5_5" -> "foo_intptr#class_specialization#3914514069521239538.096096ddd8eb9462872f535952d6e0a5_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/templates/function.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/templates/function.cpp.dot index 814ae2055..4d1f814ce 100644 --- a/infer/tests/codetoanalyze/cpp/shared/templates/function.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/templates/function.cpp.dot @@ -33,7 +33,7 @@ digraph cfg { "createAndGetVal#function#6914861794749950810.03576380bf9ba7f93eef05bd79193575_3" -> "createAndGetVal#function#6914861794749950810.03576380bf9ba7f93eef05bd79193575_2" ; -"createAndGetVal#function#6914861794749950810.03576380bf9ba7f93eef05bd79193575_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&x:function::X1) [line 35, column 3]\n n$2=_fun_function::X1_X1(&x:function::X1*) [line 35, column 5]\n EXIT_SCOPE(n$2,n$3); [line 35, column 5]\n " shape="box"] +"createAndGetVal#function#6914861794749950810.03576380bf9ba7f93eef05bd79193575_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&x:function::X1) assign_last [line 35, column 3]\n n$2=_fun_function::X1_X1(&x:function::X1*) [line 35, column 5]\n EXIT_SCOPE(n$2,n$3); [line 35, column 5]\n " shape="box"] "createAndGetVal#function#6914861794749950810.03576380bf9ba7f93eef05bd79193575_4" -> "createAndGetVal#function#6914861794749950810.03576380bf9ba7f93eef05bd79193575_3" ; @@ -48,7 +48,7 @@ digraph cfg { "createAndGetVal#function#780814784522236088.525e889c7c5ef92e178075392a6961a4_3" -> "createAndGetVal#function#780814784522236088.525e889c7c5ef92e178075392a6961a4_2" ; -"createAndGetVal#function#780814784522236088.525e889c7c5ef92e178075392a6961a4_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&x:function::X3) [line 35, column 3]\n n$2=_fun_function::X3_X3(&x:function::X3*) [line 35, column 5]\n EXIT_SCOPE(n$2,n$3); [line 35, column 5]\n " shape="box"] +"createAndGetVal#function#780814784522236088.525e889c7c5ef92e178075392a6961a4_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&x:function::X3) assign_last [line 35, column 3]\n n$2=_fun_function::X3_X3(&x:function::X3*) [line 35, column 5]\n EXIT_SCOPE(n$2,n$3); [line 35, column 5]\n " shape="box"] "createAndGetVal#function#780814784522236088.525e889c7c5ef92e178075392a6961a4_4" -> "createAndGetVal#function#780814784522236088.525e889c7c5ef92e178075392a6961a4_3" ; @@ -74,11 +74,11 @@ digraph cfg { "div0_get_val#function#10798510201986830040.b077944b4022150f57aec37a5ffc164a_3" -> "div0_get_val#function#10798510201986830040.b077944b4022150f57aec37a5ffc164a_2" ; -"div0_get_val#function#10798510201986830040.b077944b4022150f57aec37a5ffc164a_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x3:function::X3) [line 57, column 3]\n n$3=_fun_function::X3_X3(&x3:function::X3*) [line 57, column 6]\n EXIT_SCOPE(n$3,n$4); [line 57, column 6]\n " shape="box"] +"div0_get_val#function#10798510201986830040.b077944b4022150f57aec37a5ffc164a_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x3:function::X3) assign_last [line 57, column 3]\n n$3=_fun_function::X3_X3(&x3:function::X3*) [line 57, column 6]\n EXIT_SCOPE(n$3,n$4); [line 57, column 6]\n " shape="box"] "div0_get_val#function#10798510201986830040.b077944b4022150f57aec37a5ffc164a_4" -> "div0_get_val#function#10798510201986830040.b077944b4022150f57aec37a5ffc164a_3" ; -"div0_get_val#function#10798510201986830040.b077944b4022150f57aec37a5ffc164a_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x1:function::X1) [line 56, column 3]\n n$5=_fun_function::X1_X1(&x1:function::X1*) [line 56, column 6]\n EXIT_SCOPE(n$5,n$6); [line 56, column 6]\n " shape="box"] +"div0_get_val#function#10798510201986830040.b077944b4022150f57aec37a5ffc164a_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x1:function::X1) assign_last [line 56, column 3]\n n$5=_fun_function::X1_X1(&x1:function::X1*) [line 56, column 6]\n EXIT_SCOPE(n$5,n$6); [line 56, column 6]\n " shape="box"] "div0_get_val#function#10798510201986830040.b077944b4022150f57aec37a5ffc164a_5" -> "div0_get_val#function#10798510201986830040.b077944b4022150f57aec37a5ffc164a_4" ; @@ -104,11 +104,11 @@ digraph cfg { "div1_get_val#function#3554411408849091151.45cb38d8fc35a6b2cdc1f63de85d2e51_3" -> "div1_get_val#function#3554411408849091151.45cb38d8fc35a6b2cdc1f63de85d2e51_2" ; -"div1_get_val#function#3554411408849091151.45cb38d8fc35a6b2cdc1f63de85d2e51_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x3:function::X3) [line 63, column 3]\n n$3=_fun_function::X3_X3(&x3:function::X3*) [line 63, column 6]\n EXIT_SCOPE(n$3,n$4); [line 63, column 6]\n " shape="box"] +"div1_get_val#function#3554411408849091151.45cb38d8fc35a6b2cdc1f63de85d2e51_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&x3:function::X3) assign_last [line 63, column 3]\n n$3=_fun_function::X3_X3(&x3:function::X3*) [line 63, column 6]\n EXIT_SCOPE(n$3,n$4); [line 63, column 6]\n " shape="box"] "div1_get_val#function#3554411408849091151.45cb38d8fc35a6b2cdc1f63de85d2e51_4" -> "div1_get_val#function#3554411408849091151.45cb38d8fc35a6b2cdc1f63de85d2e51_3" ; -"div1_get_val#function#3554411408849091151.45cb38d8fc35a6b2cdc1f63de85d2e51_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x1:function::X1) [line 62, column 3]\n n$5=_fun_function::X1_X1(&x1:function::X1*) [line 62, column 6]\n EXIT_SCOPE(n$5,n$6); [line 62, column 6]\n " shape="box"] +"div1_get_val#function#3554411408849091151.45cb38d8fc35a6b2cdc1f63de85d2e51_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x1:function::X1) assign_last [line 62, column 3]\n n$5=_fun_function::X1_X1(&x1:function::X1*) [line 62, column 6]\n EXIT_SCOPE(n$5,n$6); [line 62, column 6]\n " shape="box"] "div1_get_val#function#3554411408849091151.45cb38d8fc35a6b2cdc1f63de85d2e51_5" -> "div1_get_val#function#3554411408849091151.45cb38d8fc35a6b2cdc1f63de85d2e51_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/templates/method.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/templates/method.cpp.dot index aa03d618a..161391518 100644 --- a/infer/tests/codetoanalyze/cpp/shared/templates/method.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/templates/method.cpp.dot @@ -11,11 +11,11 @@ digraph cfg { "div0_getter#method#14570248362286164751.5f9f1e67fd1ac95f6c38eb7d407ea9ec_3" -> "div0_getter#method#14570248362286164751.5f9f1e67fd1ac95f6c38eb7d407ea9ec_2" ; -"div0_getter#method#14570248362286164751.5f9f1e67fd1ac95f6c38eb7d407ea9ec_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&g:method::Getter) [line 39, column 3]\n n$3=_fun_method::Getter_Getter(&g:method::Getter*) [line 39, column 10]\n EXIT_SCOPE(n$3,n$4); [line 39, column 10]\n " shape="box"] +"div0_getter#method#14570248362286164751.5f9f1e67fd1ac95f6c38eb7d407ea9ec_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&g:method::Getter) assign_last [line 39, column 3]\n n$3=_fun_method::Getter_Getter(&g:method::Getter*) [line 39, column 10]\n EXIT_SCOPE(n$3,n$4); [line 39, column 10]\n " shape="box"] "div0_getter#method#14570248362286164751.5f9f1e67fd1ac95f6c38eb7d407ea9ec_4" -> "div0_getter#method#14570248362286164751.5f9f1e67fd1ac95f6c38eb7d407ea9ec_3" ; -"div0_getter#method#14570248362286164751.5f9f1e67fd1ac95f6c38eb7d407ea9ec_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x2:method::X2) [line 38, column 3]\n n$5=_fun_method::X2_X2(&x2:method::X2*) [line 38, column 6]\n EXIT_SCOPE(n$5,n$6); [line 38, column 6]\n " shape="box"] +"div0_getter#method#14570248362286164751.5f9f1e67fd1ac95f6c38eb7d407ea9ec_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x2:method::X2) assign_last [line 38, column 3]\n n$5=_fun_method::X2_X2(&x2:method::X2*) [line 38, column 6]\n EXIT_SCOPE(n$5,n$6); [line 38, column 6]\n " shape="box"] "div0_getter#method#14570248362286164751.5f9f1e67fd1ac95f6c38eb7d407ea9ec_5" -> "div0_getter#method#14570248362286164751.5f9f1e67fd1ac95f6c38eb7d407ea9ec_4" ; @@ -30,15 +30,15 @@ digraph cfg { "div0_getter_templ#method#6375326311998023520.359f49fd177ddd10abb56481c8c0c0e0_3" -> "div0_getter_templ#method#6375326311998023520.359f49fd177ddd10abb56481c8c0c0e0_2" ; -"div0_getter_templ#method#6375326311998023520.359f49fd177ddd10abb56481c8c0c0e0_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&g:method::GetterTempl) [line 52, column 3]\n n$3=_fun_method::GetterTempl_GetterTempl(&g:method::GetterTempl*) [line 52, column 19]\n EXIT_SCOPE(n$3,n$4); [line 52, column 19]\n " shape="box"] +"div0_getter_templ#method#6375326311998023520.359f49fd177ddd10abb56481c8c0c0e0_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&g:method::GetterTempl) assign_last [line 52, column 3]\n n$3=_fun_method::GetterTempl_GetterTempl(&g:method::GetterTempl*) [line 52, column 19]\n EXIT_SCOPE(n$3,n$4); [line 52, column 19]\n " shape="box"] "div0_getter_templ#method#6375326311998023520.359f49fd177ddd10abb56481c8c0c0e0_4" -> "div0_getter_templ#method#6375326311998023520.359f49fd177ddd10abb56481c8c0c0e0_3" ; -"div0_getter_templ#method#6375326311998023520.359f49fd177ddd10abb56481c8c0c0e0_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x3:method::X3) [line 51, column 3]\n n$5=_fun_method::X3_X3(&x3:method::X3*) [line 51, column 6]\n EXIT_SCOPE(n$5,n$6); [line 51, column 6]\n " shape="box"] +"div0_getter_templ#method#6375326311998023520.359f49fd177ddd10abb56481c8c0c0e0_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x3:method::X3) assign_last [line 51, column 3]\n n$5=_fun_method::X3_X3(&x3:method::X3*) [line 51, column 6]\n EXIT_SCOPE(n$5,n$6); [line 51, column 6]\n " shape="box"] "div0_getter_templ#method#6375326311998023520.359f49fd177ddd10abb56481c8c0c0e0_5" -> "div0_getter_templ#method#6375326311998023520.359f49fd177ddd10abb56481c8c0c0e0_4" ; -"div0_getter_templ#method#6375326311998023520.359f49fd177ddd10abb56481c8c0c0e0_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&x2:method::X2) [line 50, column 3]\n n$7=_fun_method::X2_X2(&x2:method::X2*) [line 50, column 6]\n EXIT_SCOPE(n$7,n$8); [line 50, column 6]\n " shape="box"] +"div0_getter_templ#method#6375326311998023520.359f49fd177ddd10abb56481c8c0c0e0_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&x2:method::X2) assign_last [line 50, column 3]\n n$7=_fun_method::X2_X2(&x2:method::X2*) [line 50, column 6]\n EXIT_SCOPE(n$7,n$8); [line 50, column 6]\n " shape="box"] "div0_getter_templ#method#6375326311998023520.359f49fd177ddd10abb56481c8c0c0e0_6" -> "div0_getter_templ#method#6375326311998023520.359f49fd177ddd10abb56481c8c0c0e0_5" ; @@ -53,15 +53,15 @@ digraph cfg { "div0_getter_templ2#method#6451937884879872417.49c23913cff8a0a59e8e2158ec845f0c_3" -> "div0_getter_templ2#method#6451937884879872417.49c23913cff8a0a59e8e2158ec845f0c_2" ; -"div0_getter_templ2#method#6451937884879872417.49c23913cff8a0a59e8e2158ec845f0c_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&g:method::GetterTempl) [line 59, column 3]\n n$3=_fun_method::GetterTempl_GetterTempl(&g:method::GetterTempl*) [line 59, column 19]\n EXIT_SCOPE(n$3,n$4); [line 59, column 19]\n " shape="box"] +"div0_getter_templ2#method#6451937884879872417.49c23913cff8a0a59e8e2158ec845f0c_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&g:method::GetterTempl) assign_last [line 59, column 3]\n n$3=_fun_method::GetterTempl_GetterTempl(&g:method::GetterTempl*) [line 59, column 19]\n EXIT_SCOPE(n$3,n$4); [line 59, column 19]\n " shape="box"] "div0_getter_templ2#method#6451937884879872417.49c23913cff8a0a59e8e2158ec845f0c_4" -> "div0_getter_templ2#method#6451937884879872417.49c23913cff8a0a59e8e2158ec845f0c_3" ; -"div0_getter_templ2#method#6451937884879872417.49c23913cff8a0a59e8e2158ec845f0c_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x2_2:method::X2) [line 58, column 3]\n n$5=_fun_method::X2_X2(&x2_2:method::X2*) [line 58, column 6]\n EXIT_SCOPE(n$5,n$6); [line 58, column 6]\n " shape="box"] +"div0_getter_templ2#method#6451937884879872417.49c23913cff8a0a59e8e2158ec845f0c_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x2_2:method::X2) assign_last [line 58, column 3]\n n$5=_fun_method::X2_X2(&x2_2:method::X2*) [line 58, column 6]\n EXIT_SCOPE(n$5,n$6); [line 58, column 6]\n " shape="box"] "div0_getter_templ2#method#6451937884879872417.49c23913cff8a0a59e8e2158ec845f0c_5" -> "div0_getter_templ2#method#6451937884879872417.49c23913cff8a0a59e8e2158ec845f0c_4" ; -"div0_getter_templ2#method#6451937884879872417.49c23913cff8a0a59e8e2158ec845f0c_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&x2_1:method::X2) [line 57, column 3]\n n$7=_fun_method::X2_X2(&x2_1:method::X2*) [line 57, column 6]\n EXIT_SCOPE(n$7,n$8); [line 57, column 6]\n " shape="box"] +"div0_getter_templ2#method#6451937884879872417.49c23913cff8a0a59e8e2158ec845f0c_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&x2_1:method::X2) assign_last [line 57, column 3]\n n$7=_fun_method::X2_X2(&x2_1:method::X2*) [line 57, column 6]\n EXIT_SCOPE(n$7,n$8); [line 57, column 6]\n " shape="box"] "div0_getter_templ2#method#6451937884879872417.49c23913cff8a0a59e8e2158ec845f0c_6" -> "div0_getter_templ2#method#6451937884879872417.49c23913cff8a0a59e8e2158ec845f0c_5" ; @@ -76,11 +76,11 @@ digraph cfg { "div1_getter#method#14010655706182645930.dfb00d82a62eb9bd9507d251472215d9_3" -> "div1_getter#method#14010655706182645930.dfb00d82a62eb9bd9507d251472215d9_2" ; -"div1_getter#method#14010655706182645930.dfb00d82a62eb9bd9507d251472215d9_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&g:method::Getter) [line 45, column 3]\n n$3=_fun_method::Getter_Getter(&g:method::Getter*) [line 45, column 10]\n EXIT_SCOPE(n$3,n$4); [line 45, column 10]\n " shape="box"] +"div1_getter#method#14010655706182645930.dfb00d82a62eb9bd9507d251472215d9_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&g:method::Getter) assign_last [line 45, column 3]\n n$3=_fun_method::Getter_Getter(&g:method::Getter*) [line 45, column 10]\n EXIT_SCOPE(n$3,n$4); [line 45, column 10]\n " shape="box"] "div1_getter#method#14010655706182645930.dfb00d82a62eb9bd9507d251472215d9_4" -> "div1_getter#method#14010655706182645930.dfb00d82a62eb9bd9507d251472215d9_3" ; -"div1_getter#method#14010655706182645930.dfb00d82a62eb9bd9507d251472215d9_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x1:method::X1) [line 44, column 3]\n n$5=_fun_method::X1_X1(&x1:method::X1*) [line 44, column 6]\n EXIT_SCOPE(n$5,n$6); [line 44, column 6]\n " shape="box"] +"div1_getter#method#14010655706182645930.dfb00d82a62eb9bd9507d251472215d9_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x1:method::X1) assign_last [line 44, column 3]\n n$5=_fun_method::X1_X1(&x1:method::X1*) [line 44, column 6]\n EXIT_SCOPE(n$5,n$6); [line 44, column 6]\n " shape="box"] "div1_getter#method#14010655706182645930.dfb00d82a62eb9bd9507d251472215d9_5" -> "div1_getter#method#14010655706182645930.dfb00d82a62eb9bd9507d251472215d9_4" ; @@ -95,15 +95,15 @@ digraph cfg { "div1_getter_templ#method#11958064193628013457.8a8112afb18681951fdb43c93893e0c5_3" -> "div1_getter_templ#method#11958064193628013457.8a8112afb18681951fdb43c93893e0c5_2" ; -"div1_getter_templ#method#11958064193628013457.8a8112afb18681951fdb43c93893e0c5_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&g:method::GetterTempl) [line 66, column 3]\n n$3=_fun_method::GetterTempl_GetterTempl(&g:method::GetterTempl*) [line 66, column 19]\n EXIT_SCOPE(n$3,n$4); [line 66, column 19]\n " shape="box"] +"div1_getter_templ#method#11958064193628013457.8a8112afb18681951fdb43c93893e0c5_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&g:method::GetterTempl) assign_last [line 66, column 3]\n n$3=_fun_method::GetterTempl_GetterTempl(&g:method::GetterTempl*) [line 66, column 19]\n EXIT_SCOPE(n$3,n$4); [line 66, column 19]\n " shape="box"] "div1_getter_templ#method#11958064193628013457.8a8112afb18681951fdb43c93893e0c5_4" -> "div1_getter_templ#method#11958064193628013457.8a8112afb18681951fdb43c93893e0c5_3" ; -"div1_getter_templ#method#11958064193628013457.8a8112afb18681951fdb43c93893e0c5_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x2:method::X2) [line 65, column 3]\n n$5=_fun_method::X2_X2(&x2:method::X2*) [line 65, column 6]\n EXIT_SCOPE(n$5,n$6); [line 65, column 6]\n " shape="box"] +"div1_getter_templ#method#11958064193628013457.8a8112afb18681951fdb43c93893e0c5_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x2:method::X2) assign_last [line 65, column 3]\n n$5=_fun_method::X2_X2(&x2:method::X2*) [line 65, column 6]\n EXIT_SCOPE(n$5,n$6); [line 65, column 6]\n " shape="box"] "div1_getter_templ#method#11958064193628013457.8a8112afb18681951fdb43c93893e0c5_5" -> "div1_getter_templ#method#11958064193628013457.8a8112afb18681951fdb43c93893e0c5_4" ; -"div1_getter_templ#method#11958064193628013457.8a8112afb18681951fdb43c93893e0c5_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&x1:method::X1) [line 64, column 3]\n n$7=_fun_method::X1_X1(&x1:method::X1*) [line 64, column 6]\n EXIT_SCOPE(n$7,n$8); [line 64, column 6]\n " shape="box"] +"div1_getter_templ#method#11958064193628013457.8a8112afb18681951fdb43c93893e0c5_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&x1:method::X1) assign_last [line 64, column 3]\n n$7=_fun_method::X1_X1(&x1:method::X1*) [line 64, column 6]\n EXIT_SCOPE(n$7,n$8); [line 64, column 6]\n " shape="box"] "div1_getter_templ#method#11958064193628013457.8a8112afb18681951fdb43c93893e0c5_6" -> "div1_getter_templ#method#11958064193628013457.8a8112afb18681951fdb43c93893e0c5_5" ; @@ -118,15 +118,15 @@ digraph cfg { "div1_getter_templ2#method#7327429174804405806.fe61550d5271fa95726c7580c68f9015_3" -> "div1_getter_templ2#method#7327429174804405806.fe61550d5271fa95726c7580c68f9015_2" ; -"div1_getter_templ2#method#7327429174804405806.fe61550d5271fa95726c7580c68f9015_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&g:method::GetterTempl) [line 73, column 3]\n n$3=_fun_method::GetterTempl_GetterTempl(&g:method::GetterTempl*) [line 73, column 19]\n EXIT_SCOPE(n$3,n$4); [line 73, column 19]\n " shape="box"] +"div1_getter_templ2#method#7327429174804405806.fe61550d5271fa95726c7580c68f9015_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&g:method::GetterTempl) assign_last [line 73, column 3]\n n$3=_fun_method::GetterTempl_GetterTempl(&g:method::GetterTempl*) [line 73, column 19]\n EXIT_SCOPE(n$3,n$4); [line 73, column 19]\n " shape="box"] "div1_getter_templ2#method#7327429174804405806.fe61550d5271fa95726c7580c68f9015_4" -> "div1_getter_templ2#method#7327429174804405806.fe61550d5271fa95726c7580c68f9015_3" ; -"div1_getter_templ2#method#7327429174804405806.fe61550d5271fa95726c7580c68f9015_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x1_2:method::X1) [line 72, column 3]\n n$5=_fun_method::X1_X1(&x1_2:method::X1*) [line 72, column 6]\n EXIT_SCOPE(n$5,n$6); [line 72, column 6]\n " shape="box"] +"div1_getter_templ2#method#7327429174804405806.fe61550d5271fa95726c7580c68f9015_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&x1_2:method::X1) assign_last [line 72, column 3]\n n$5=_fun_method::X1_X1(&x1_2:method::X1*) [line 72, column 6]\n EXIT_SCOPE(n$5,n$6); [line 72, column 6]\n " shape="box"] "div1_getter_templ2#method#7327429174804405806.fe61550d5271fa95726c7580c68f9015_5" -> "div1_getter_templ2#method#7327429174804405806.fe61550d5271fa95726c7580c68f9015_4" ; -"div1_getter_templ2#method#7327429174804405806.fe61550d5271fa95726c7580c68f9015_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&x1_1:method::X1) [line 71, column 3]\n n$7=_fun_method::X1_X1(&x1_1:method::X1*) [line 71, column 6]\n EXIT_SCOPE(n$7,n$8); [line 71, column 6]\n " shape="box"] +"div1_getter_templ2#method#7327429174804405806.fe61550d5271fa95726c7580c68f9015_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&x1_1:method::X1) assign_last [line 71, column 3]\n n$7=_fun_method::X1_X1(&x1_1:method::X1*) [line 71, column 6]\n EXIT_SCOPE(n$7,n$8); [line 71, column 6]\n " shape="box"] "div1_getter_templ2#method#7327429174804405806.fe61550d5271fa95726c7580c68f9015_6" -> "div1_getter_templ2#method#7327429174804405806.fe61550d5271fa95726c7580c68f9015_5" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/templates/sizeof_pack.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/templates/sizeof_pack.cpp.dot index f0d9f02b2..d7f76b188 100644 --- a/infer/tests/codetoanalyze/cpp/shared/templates/sizeof_pack.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/templates/sizeof_pack.cpp.dot @@ -7,7 +7,7 @@ digraph cfg { "__infer_globals_initializer_test.19c6153ea70b713d8d2a1a0fd4ae91e3_2" [label="2: Exit __infer_globals_initializer_test \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$2); [line 21, column 50]\n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 21, column 50]\n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$4); [line 21, column 50]\n " color=yellow style=filled] -"__infer_globals_initializer_test.19c6153ea70b713d8d2a1a0fd4ae91e3_3" [label="3: DeclStmt \n n$7=_fun___variable_initialization(&#GB$test:int) [line 21, column 1]\n n$1=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:int const ) [line 21, column 43]\n *&0$?%__sil_tmpSIL_materialize_temp__n$0:int=0 [line 21, column 43]\n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$2:int const ) [line 21, column 46]\n *&0$?%__sil_tmpSIL_materialize_temp__n$2:int=0 [line 21, column 46]\n n$5=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$4:int const ) [line 21, column 49]\n *&0$?%__sil_tmpSIL_materialize_temp__n$4:int=0 [line 21, column 49]\n n$6=_fun_hash_combine_generic(&0$?%__sil_tmpSIL_materialize_temp__n$0:int const &,&0$?%__sil_tmpSIL_materialize_temp__n$2:int const &,&0$?%__sil_tmpSIL_materialize_temp__n$4:int const &) [line 21, column 12]\n *&#GB$test:int=n$6 [line 21, column 1]\n EXIT_SCOPE(n$1,n$3,n$5,n$6,n$7,0$?%__sil_tmpSIL_materialize_temp__n$4,0$?%__sil_tmpSIL_materialize_temp__n$0,0$?%__sil_tmpSIL_materialize_temp__n$2); [line 21, column 1]\n APPLY_ABSTRACTION; [line 21, column 1]\n " shape="box"] +"__infer_globals_initializer_test.19c6153ea70b713d8d2a1a0fd4ae91e3_3" [label="3: DeclStmt \n n$7=_fun___variable_initialization(&#GB$test:int) assign_last [line 21, column 1]\n n$1=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:int const ) assign_last [line 21, column 43]\n *&0$?%__sil_tmpSIL_materialize_temp__n$0:int=0 [line 21, column 43]\n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$2:int const ) assign_last [line 21, column 46]\n *&0$?%__sil_tmpSIL_materialize_temp__n$2:int=0 [line 21, column 46]\n n$5=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$4:int const ) assign_last [line 21, column 49]\n *&0$?%__sil_tmpSIL_materialize_temp__n$4:int=0 [line 21, column 49]\n n$6=_fun_hash_combine_generic(&0$?%__sil_tmpSIL_materialize_temp__n$0:int const &,&0$?%__sil_tmpSIL_materialize_temp__n$2:int const &,&0$?%__sil_tmpSIL_materialize_temp__n$4:int const &) [line 21, column 12]\n *&#GB$test:int=n$6 [line 21, column 1]\n EXIT_SCOPE(n$1,n$3,n$5,n$6,n$7,0$?%__sil_tmpSIL_materialize_temp__n$4,0$?%__sil_tmpSIL_materialize_temp__n$0,0$?%__sil_tmpSIL_materialize_temp__n$2); [line 21, column 1]\n APPLY_ABSTRACTION; [line 21, column 1]\n " shape="box"] "__infer_globals_initializer_test.19c6153ea70b713d8d2a1a0fd4ae91e3_3" -> "__infer_globals_initializer_test.19c6153ea70b713d8d2a1a0fd4ae91e3_2" ; @@ -38,7 +38,7 @@ digraph cfg { "hash_combine_generic#343026119801841589.3016efe6a900b985af0e18a37325385b_7" -> "hash_combine_generic#343026119801841589.3016efe6a900b985af0e18a37325385b_2" ; -"hash_combine_generic#343026119801841589.3016efe6a900b985af0e18a37325385b_8" [label="8: DeclStmt \n n$9=_fun___variable_initialization(&seed:int) [line 14, column 3]\n n$6=*&t:int const & [line 14, column 27]\n n$7=*n$6:int [line 14, column 27]\n n$8=_fun_MyHasher_hash(n$7:int) [line 14, column 14]\n *&seed:int=n$8 [line 14, column 3]\n NULLIFY(&t); [line 14, column 3]\n EXIT_SCOPE(n$6,n$7,n$8,n$9,t); [line 14, column 3]\n " shape="box"] +"hash_combine_generic#343026119801841589.3016efe6a900b985af0e18a37325385b_8" [label="8: DeclStmt \n n$9=_fun___variable_initialization(&seed:int) assign_last [line 14, column 3]\n n$6=*&t:int const & [line 14, column 27]\n n$7=*n$6:int [line 14, column 27]\n n$8=_fun_MyHasher_hash(n$7:int) [line 14, column 14]\n *&seed:int=n$8 [line 14, column 3]\n NULLIFY(&t); [line 14, column 3]\n EXIT_SCOPE(n$6,n$7,n$8,n$9,t); [line 14, column 3]\n " shape="box"] "hash_combine_generic#343026119801841589.3016efe6a900b985af0e18a37325385b_8" -> "hash_combine_generic#343026119801841589.3016efe6a900b985af0e18a37325385b_5" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/types/casts.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/types/casts.cpp.dot index aeb78f5e8..80905d4e0 100644 --- a/infer/tests/codetoanalyze/cpp/shared/types/casts.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/types/casts.cpp.dot @@ -7,7 +7,7 @@ digraph cfg { "functional_cast#14011367992313068291.82cd85208f04494c7a6533d123f52fe0_2" [label="2: Exit functional_cast \n " color=yellow style=filled] -"functional_cast#14011367992313068291.82cd85208f04494c7a6533d123f52fe0_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&a:int) [line 13, column 26]\n *&a:int=(2 + 3.4) [line 13, column 26]\n NULLIFY(&a); [line 13, column 26]\n EXIT_SCOPE(n$1,a); [line 13, column 26]\n APPLY_ABSTRACTION; [line 13, column 26]\n " shape="box"] +"functional_cast#14011367992313068291.82cd85208f04494c7a6533d123f52fe0_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&a:int) assign_last [line 13, column 26]\n *&a:int=(2 + 3.4) [line 13, column 26]\n NULLIFY(&a); [line 13, column 26]\n EXIT_SCOPE(n$1,a); [line 13, column 26]\n APPLY_ABSTRACTION; [line 13, column 26]\n " shape="box"] "functional_cast#14011367992313068291.82cd85208f04494c7a6533d123f52fe0_3" -> "functional_cast#14011367992313068291.82cd85208f04494c7a6533d123f52fe0_2" ; @@ -18,7 +18,7 @@ digraph cfg { "stat_cast#12446126613472042601.03b0c783caaf8ed84eb6e909b7645c57_2" [label="2: Exit stat_cast \n " color=yellow style=filled] -"stat_cast#12446126613472042601.03b0c783caaf8ed84eb6e909b7645c57_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&la:long long) [line 10, column 3]\n n$1=*&a:int [line 10, column 41]\n *&la:long long=n$1 [line 10, column 3]\n NULLIFY(&a); [line 10, column 3]\n NULLIFY(&la); [line 10, column 3]\n EXIT_SCOPE(n$1,n$2,a,la); [line 10, column 3]\n APPLY_ABSTRACTION; [line 10, column 3]\n " shape="box"] +"stat_cast#12446126613472042601.03b0c783caaf8ed84eb6e909b7645c57_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&la:long long) assign_last [line 10, column 3]\n n$1=*&a:int [line 10, column 41]\n *&la:long long=n$1 [line 10, column 3]\n NULLIFY(&a); [line 10, column 3]\n NULLIFY(&la); [line 10, column 3]\n EXIT_SCOPE(n$1,n$2,a,la); [line 10, column 3]\n APPLY_ABSTRACTION; [line 10, column 3]\n " shape="box"] "stat_cast#12446126613472042601.03b0c783caaf8ed84eb6e909b7645c57_3" -> "stat_cast#12446126613472042601.03b0c783caaf8ed84eb6e909b7645c57_2" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/types/const.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/types/const.cpp.dot index 69eedbb3b..f2ab1cd8d 100644 --- a/infer/tests/codetoanalyze/cpp/shared/types/const.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/types/const.cpp.dot @@ -15,7 +15,7 @@ digraph cfg { "call_const_params_with_address#9224946220162093338.ede5d9916aae78a9bdce4ac18328cdb4_4" -> "call_const_params_with_address#9224946220162093338.ede5d9916aae78a9bdce4ac18328cdb4_3" ; -"call_const_params_with_address#9224946220162093338.ede5d9916aae78a9bdce4ac18328cdb4_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&cx:int const ) [line 16, column 3]\n *&cx:int=0 [line 16, column 3]\n EXIT_SCOPE(n$3); [line 16, column 3]\n " shape="box"] +"call_const_params_with_address#9224946220162093338.ede5d9916aae78a9bdce4ac18328cdb4_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&cx:int const ) assign_last [line 16, column 3]\n *&cx:int=0 [line 16, column 3]\n EXIT_SCOPE(n$3); [line 16, column 3]\n " shape="box"] "call_const_params_with_address#9224946220162093338.ede5d9916aae78a9bdce4ac18328cdb4_5" -> "call_const_params_with_address#9224946220162093338.ede5d9916aae78a9bdce4ac18328cdb4_4" ; @@ -27,7 +27,7 @@ digraph cfg { "call_const_params_with_address#9224946220162093338.ede5d9916aae78a9bdce4ac18328cdb4_7" -> "call_const_params_with_address#9224946220162093338.ede5d9916aae78a9bdce4ac18328cdb4_6" ; -"call_const_params_with_address#9224946220162093338.ede5d9916aae78a9bdce4ac18328cdb4_8" [label="8: DeclStmt \n n$6=_fun___variable_initialization(&x:int) [line 12, column 3]\n *&x:int=1 [line 12, column 3]\n EXIT_SCOPE(n$6); [line 12, column 3]\n " shape="box"] +"call_const_params_with_address#9224946220162093338.ede5d9916aae78a9bdce4ac18328cdb4_8" [label="8: DeclStmt \n n$6=_fun___variable_initialization(&x:int) assign_last [line 12, column 3]\n *&x:int=1 [line 12, column 3]\n EXIT_SCOPE(n$6); [line 12, column 3]\n " shape="box"] "call_const_params_with_address#9224946220162093338.ede5d9916aae78a9bdce4ac18328cdb4_8" -> "call_const_params_with_address#9224946220162093338.ede5d9916aae78a9bdce4ac18328cdb4_7" ; @@ -42,7 +42,7 @@ digraph cfg { "call_const_params_with_pointer1#3193967915651281089.e26879dad7f44305c11fcc69c90dba86_3" -> "call_const_params_with_pointer1#3193967915651281089.e26879dad7f44305c11fcc69c90dba86_2" ; -"call_const_params_with_pointer1#3193967915651281089.e26879dad7f44305c11fcc69c90dba86_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&p:int*) [line 23, column 3]\n *&p:int*=null [line 23, column 3]\n EXIT_SCOPE(n$3); [line 23, column 3]\n " shape="box"] +"call_const_params_with_pointer1#3193967915651281089.e26879dad7f44305c11fcc69c90dba86_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&p:int*) assign_last [line 23, column 3]\n *&p:int*=null [line 23, column 3]\n EXIT_SCOPE(n$3); [line 23, column 3]\n " shape="box"] "call_const_params_with_pointer1#3193967915651281089.e26879dad7f44305c11fcc69c90dba86_4" -> "call_const_params_with_pointer1#3193967915651281089.e26879dad7f44305c11fcc69c90dba86_3" ; @@ -57,7 +57,7 @@ digraph cfg { "call_const_params_with_pointer2#3191133374674320806.7e564aa4edfd75304391a38942d7e07f_3" -> "call_const_params_with_pointer2#3191133374674320806.7e564aa4edfd75304391a38942d7e07f_2" ; -"call_const_params_with_pointer2#3191133374674320806.7e564aa4edfd75304391a38942d7e07f_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&p:int*) [line 27, column 3]\n *&p:int*=null [line 27, column 3]\n EXIT_SCOPE(n$3); [line 27, column 3]\n " shape="box"] +"call_const_params_with_pointer2#3191133374674320806.7e564aa4edfd75304391a38942d7e07f_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&p:int*) assign_last [line 27, column 3]\n *&p:int*=null [line 27, column 3]\n EXIT_SCOPE(n$3); [line 27, column 3]\n " shape="box"] "call_const_params_with_pointer2#3191133374674320806.7e564aa4edfd75304391a38942d7e07f_4" -> "call_const_params_with_pointer2#3191133374674320806.7e564aa4edfd75304391a38942d7e07f_3" ; @@ -72,7 +72,7 @@ digraph cfg { "call_const_params_with_pointer3#3191979998627854051.cb64d3f1c70e7ecb4d702fb494a6ddf9_3" -> "call_const_params_with_pointer3#3191979998627854051.cb64d3f1c70e7ecb4d702fb494a6ddf9_2" ; -"call_const_params_with_pointer3#3191979998627854051.cb64d3f1c70e7ecb4d702fb494a6ddf9_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&cp:int* const ) [line 32, column 3]\n *&cp:int* const =null [line 32, column 3]\n EXIT_SCOPE(n$3); [line 32, column 3]\n " shape="box"] +"call_const_params_with_pointer3#3191979998627854051.cb64d3f1c70e7ecb4d702fb494a6ddf9_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&cp:int* const ) assign_last [line 32, column 3]\n *&cp:int* const =null [line 32, column 3]\n EXIT_SCOPE(n$3); [line 32, column 3]\n " shape="box"] "call_const_params_with_pointer3#3191979998627854051.cb64d3f1c70e7ecb4d702fb494a6ddf9_4" -> "call_const_params_with_pointer3#3191979998627854051.cb64d3f1c70e7ecb4d702fb494a6ddf9_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/types/inheritance.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/types/inheritance.cpp.dot index a5d5d27b8..d0f5867c4 100644 --- a/infer/tests/codetoanalyze/cpp/shared/types/inheritance.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/types/inheritance.cpp.dot @@ -31,15 +31,15 @@ digraph cfg { "call_static_methods#2229162425019005814.6b8ed680875ca5e183f8fa3b51ea6718_8" -> "call_static_methods#2229162425019005814.6b8ed680875ca5e183f8fa3b51ea6718_7" ; -"call_static_methods#2229162425019005814.6b8ed680875ca5e183f8fa3b51ea6718_9" [label="9: DeclStmt \n n$21=_fun___variable_initialization(&s2:Sub*) [line 22, column 3]\n n$19=_fun___new(sizeof(t=Sub):unsigned long) [line 22, column 13]\n n$20=_fun_Sub_Sub(n$19:Sub*) [line 22, column 17]\n *&s2:Sub*=n$19 [line 22, column 3]\n EXIT_SCOPE(n$19,n$20,n$21); [line 22, column 3]\n " shape="box"] +"call_static_methods#2229162425019005814.6b8ed680875ca5e183f8fa3b51ea6718_9" [label="9: DeclStmt \n n$21=_fun___variable_initialization(&s2:Sub*) assign_last [line 22, column 3]\n n$19=_fun___new(sizeof(t=Sub):unsigned long) [line 22, column 13]\n n$20=_fun_Sub_Sub(n$19:Sub*) [line 22, column 17]\n *&s2:Sub*=n$19 [line 22, column 3]\n EXIT_SCOPE(n$19,n$20,n$21); [line 22, column 3]\n " shape="box"] "call_static_methods#2229162425019005814.6b8ed680875ca5e183f8fa3b51ea6718_9" -> "call_static_methods#2229162425019005814.6b8ed680875ca5e183f8fa3b51ea6718_8" ; -"call_static_methods#2229162425019005814.6b8ed680875ca5e183f8fa3b51ea6718_10" [label="10: DeclStmt \n n$24=_fun___variable_initialization(&s1:Base*) [line 21, column 3]\n n$22=_fun___new(sizeof(t=Sub):unsigned long) [line 21, column 14]\n n$23=_fun_Sub_Sub(n$22:Sub*) [line 21, column 18]\n *&s1:Sub*=n$22 [line 21, column 3]\n EXIT_SCOPE(n$22,n$23,n$24); [line 21, column 3]\n " shape="box"] +"call_static_methods#2229162425019005814.6b8ed680875ca5e183f8fa3b51ea6718_10" [label="10: DeclStmt \n n$24=_fun___variable_initialization(&s1:Base*) assign_last [line 21, column 3]\n n$22=_fun___new(sizeof(t=Sub):unsigned long) [line 21, column 14]\n n$23=_fun_Sub_Sub(n$22:Sub*) [line 21, column 18]\n *&s1:Sub*=n$22 [line 21, column 3]\n EXIT_SCOPE(n$22,n$23,n$24); [line 21, column 3]\n " shape="box"] "call_static_methods#2229162425019005814.6b8ed680875ca5e183f8fa3b51ea6718_10" -> "call_static_methods#2229162425019005814.6b8ed680875ca5e183f8fa3b51ea6718_9" ; -"call_static_methods#2229162425019005814.6b8ed680875ca5e183f8fa3b51ea6718_11" [label="11: DeclStmt \n n$27=_fun___variable_initialization(&b:Base*) [line 20, column 3]\n n$25=_fun___new(sizeof(t=Base):unsigned long) [line 20, column 13]\n n$26=_fun_Base_Base(n$25:Base*) [line 20, column 17]\n *&b:Base*=n$25 [line 20, column 3]\n EXIT_SCOPE(n$25,n$26,n$27); [line 20, column 3]\n " shape="box"] +"call_static_methods#2229162425019005814.6b8ed680875ca5e183f8fa3b51ea6718_11" [label="11: DeclStmt \n n$27=_fun___variable_initialization(&b:Base*) assign_last [line 20, column 3]\n n$25=_fun___new(sizeof(t=Base):unsigned long) [line 20, column 13]\n n$26=_fun_Base_Base(n$25:Base*) [line 20, column 17]\n *&b:Base*=n$25 [line 20, column 3]\n EXIT_SCOPE(n$25,n$26,n$27); [line 20, column 3]\n " shape="box"] "call_static_methods#2229162425019005814.6b8ed680875ca5e183f8fa3b51ea6718_11" -> "call_static_methods#2229162425019005814.6b8ed680875ca5e183f8fa3b51ea6718_10" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/types/inheritance_casts.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/types/inheritance_casts.cpp.dot index 5d9c6f9a0..ac2e6a29f 100644 --- a/infer/tests/codetoanalyze/cpp/shared/types/inheritance_casts.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/types/inheritance_casts.cpp.dot @@ -18,7 +18,7 @@ digraph cfg { "div0_A#inheritance_casts#7658516495554603699.e5c3e3413f6eac12dda7dd76db597c34_2" [label="2: Exit inheritance_casts::div0_A \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 26, column 37]\n " color=yellow style=filled] -"div0_A#inheritance_casts#7658516495554603699.e5c3e3413f6eac12dda7dd76db597c34_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::A const ) [line 26, column 27]\n n$2=_fun_inheritance_casts::getA(0:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::A*) [line 26, column 27]\n n$4=_fun_inheritance_casts::div(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::A const &) [line 26, column 23]\n *&return:int=n$4 [line 26, column 16]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 26, column 16]\n APPLY_ABSTRACTION; [line 26, column 16]\n " shape="box"] +"div0_A#inheritance_casts#7658516495554603699.e5c3e3413f6eac12dda7dd76db597c34_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::A const ) assign_last [line 26, column 27]\n n$2=_fun_inheritance_casts::getA(0:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::A*) assign_last [line 26, column 27]\n n$4=_fun_inheritance_casts::div(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::A const &) [line 26, column 23]\n *&return:int=n$4 [line 26, column 16]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 26, column 16]\n APPLY_ABSTRACTION; [line 26, column 16]\n " shape="box"] "div0_A#inheritance_casts#7658516495554603699.e5c3e3413f6eac12dda7dd76db597c34_3" -> "div0_A#inheritance_casts#7658516495554603699.e5c3e3413f6eac12dda7dd76db597c34_2" ; @@ -29,7 +29,7 @@ digraph cfg { "div0_B#inheritance_casts#9651791439006644302.4d2c177357a796fa9b436df4f92f3de8_2" [label="2: Exit inheritance_casts::div0_B \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 30, column 37]\n " color=yellow style=filled] -"div0_B#inheritance_casts#9651791439006644302.4d2c177357a796fa9b436df4f92f3de8_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::B const ) [line 30, column 27]\n n$2=_fun_inheritance_casts::getB(0:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::B*) [line 30, column 27]\n n$4=_fun_inheritance_casts::div(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::B const &) [line 30, column 23]\n *&return:int=n$4 [line 30, column 16]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 30, column 16]\n APPLY_ABSTRACTION; [line 30, column 16]\n " shape="box"] +"div0_B#inheritance_casts#9651791439006644302.4d2c177357a796fa9b436df4f92f3de8_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::B const ) assign_last [line 30, column 27]\n n$2=_fun_inheritance_casts::getB(0:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::B*) assign_last [line 30, column 27]\n n$4=_fun_inheritance_casts::div(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::B const &) [line 30, column 23]\n *&return:int=n$4 [line 30, column 16]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 30, column 16]\n APPLY_ABSTRACTION; [line 30, column 16]\n " shape="box"] "div0_B#inheritance_casts#9651791439006644302.4d2c177357a796fa9b436df4f92f3de8_3" -> "div0_B#inheritance_casts#9651791439006644302.4d2c177357a796fa9b436df4f92f3de8_2" ; @@ -40,7 +40,7 @@ digraph cfg { "div1_A#inheritance_casts#14706027417800210732.96d94ec773e2890c763d57de8a52982b_2" [label="2: Exit inheritance_casts::div1_A \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 28, column 37]\n " color=yellow style=filled] -"div1_A#inheritance_casts#14706027417800210732.96d94ec773e2890c763d57de8a52982b_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::A const ) [line 28, column 27]\n n$2=_fun_inheritance_casts::getA(1:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::A*) [line 28, column 27]\n n$4=_fun_inheritance_casts::div(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::A const &) [line 28, column 23]\n *&return:int=n$4 [line 28, column 16]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 28, column 16]\n APPLY_ABSTRACTION; [line 28, column 16]\n " shape="box"] +"div1_A#inheritance_casts#14706027417800210732.96d94ec773e2890c763d57de8a52982b_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::A const ) assign_last [line 28, column 27]\n n$2=_fun_inheritance_casts::getA(1:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::A*) assign_last [line 28, column 27]\n n$4=_fun_inheritance_casts::div(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::A const &) [line 28, column 23]\n *&return:int=n$4 [line 28, column 16]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 28, column 16]\n APPLY_ABSTRACTION; [line 28, column 16]\n " shape="box"] "div1_A#inheritance_casts#14706027417800210732.96d94ec773e2890c763d57de8a52982b_3" -> "div1_A#inheritance_casts#14706027417800210732.96d94ec773e2890c763d57de8a52982b_2" ; @@ -51,7 +51,7 @@ digraph cfg { "div1_B#inheritance_casts#15202051198007397773.6fa30ed113dcaca42095f52f33fb0c86_2" [label="2: Exit inheritance_casts::div1_B \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 32, column 37]\n " color=yellow style=filled] -"div1_B#inheritance_casts#15202051198007397773.6fa30ed113dcaca42095f52f33fb0c86_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::B const ) [line 32, column 27]\n n$2=_fun_inheritance_casts::getB(1:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::B*) [line 32, column 27]\n n$4=_fun_inheritance_casts::div(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::B const &) [line 32, column 23]\n *&return:int=n$4 [line 32, column 16]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 32, column 16]\n APPLY_ABSTRACTION; [line 32, column 16]\n " shape="box"] +"div1_B#inheritance_casts#15202051198007397773.6fa30ed113dcaca42095f52f33fb0c86_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::B const ) assign_last [line 32, column 27]\n n$2=_fun_inheritance_casts::getB(1:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::B*) assign_last [line 32, column 27]\n n$4=_fun_inheritance_casts::div(&0$?%__sil_tmpSIL_materialize_temp__n$0:inheritance_casts::B const &) [line 32, column 23]\n *&return:int=n$4 [line 32, column 16]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 32, column 16]\n APPLY_ABSTRACTION; [line 32, column 16]\n " shape="box"] "div1_B#inheritance_casts#15202051198007397773.6fa30ed113dcaca42095f52f33fb0c86_3" -> "div1_B#inheritance_casts#15202051198007397773.6fa30ed113dcaca42095f52f33fb0c86_2" ; @@ -70,7 +70,7 @@ digraph cfg { "getA#inheritance_casts(class inheritance_casts::A)#5702196550029280494.bf770d8fdf04212f16e0b3beb3d4c512_4" -> "getA#inheritance_casts(class inheritance_casts::A)#5702196550029280494.bf770d8fdf04212f16e0b3beb3d4c512_3" ; -"getA#inheritance_casts(class inheritance_casts::A)#5702196550029280494.bf770d8fdf04212f16e0b3beb3d4c512_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&x:inheritance_casts::A) [line 19, column 3]\n n$6=_fun_inheritance_casts::A_A(&x:inheritance_casts::A*) [line 19, column 5]\n EXIT_SCOPE(n$6,n$7); [line 19, column 5]\n " shape="box"] +"getA#inheritance_casts(class inheritance_casts::A)#5702196550029280494.bf770d8fdf04212f16e0b3beb3d4c512_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&x:inheritance_casts::A) assign_last [line 19, column 3]\n n$6=_fun_inheritance_casts::A_A(&x:inheritance_casts::A*) [line 19, column 5]\n EXIT_SCOPE(n$6,n$7); [line 19, column 5]\n " shape="box"] "getA#inheritance_casts(class inheritance_casts::A)#5702196550029280494.bf770d8fdf04212f16e0b3beb3d4c512_5" -> "getA#inheritance_casts(class inheritance_casts::A)#5702196550029280494.bf770d8fdf04212f16e0b3beb3d4c512_4" ; @@ -89,7 +89,7 @@ digraph cfg { "getB#inheritance_casts(class inheritance_casts::B)#7572693428029732371.903fb8dc56797768f6ca6ebdf511cdaf_4" -> "getB#inheritance_casts(class inheritance_casts::B)#7572693428029732371.903fb8dc56797768f6ca6ebdf511cdaf_3" ; -"getB#inheritance_casts(class inheritance_casts::B)#7572693428029732371.903fb8dc56797768f6ca6ebdf511cdaf_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&x:inheritance_casts::B) [line 14, column 3]\n n$6=_fun_inheritance_casts::B_B(&x:inheritance_casts::B*) [line 14, column 5]\n EXIT_SCOPE(n$6,n$7); [line 14, column 5]\n " shape="box"] +"getB#inheritance_casts(class inheritance_casts::B)#7572693428029732371.903fb8dc56797768f6ca6ebdf511cdaf_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&x:inheritance_casts::B) assign_last [line 14, column 3]\n n$6=_fun_inheritance_casts::B_B(&x:inheritance_casts::B*) [line 14, column 5]\n EXIT_SCOPE(n$6,n$7); [line 14, column 5]\n " shape="box"] "getB#inheritance_casts(class inheritance_casts::B)#7572693428029732371.903fb8dc56797768f6ca6ebdf511cdaf_5" -> "getB#inheritance_casts(class inheritance_casts::B)#7572693428029732371.903fb8dc56797768f6ca6ebdf511cdaf_4" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/types/inheritance_field.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/types/inheritance_field.cpp.dot index 956821311..3384c9034 100644 --- a/infer/tests/codetoanalyze/cpp/shared/types/inheritance_field.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/types/inheritance_field.cpp.dot @@ -60,7 +60,7 @@ digraph cfg { "div0_cast(class Sub)#5945090778893539301.57c132b2d87bb7310c8cb0085dede4d5_3" -> "div0_cast(class Sub)#5945090778893539301.57c132b2d87bb7310c8cb0085dede4d5_2" ; -"div0_cast(class Sub)#5945090778893539301.57c132b2d87bb7310c8cb0085dede4d5_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&b:Base1*) [line 37, column 3]\n n$3=*&s:Sub* [line 37, column 14]\n *&b:Sub*=n$3 [line 37, column 3]\n NULLIFY(&s); [line 37, column 3]\n EXIT_SCOPE(n$3,n$4,s); [line 37, column 3]\n " shape="box"] +"div0_cast(class Sub)#5945090778893539301.57c132b2d87bb7310c8cb0085dede4d5_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&b:Base1*) assign_last [line 37, column 3]\n n$3=*&s:Sub* [line 37, column 14]\n *&b:Sub*=n$3 [line 37, column 3]\n NULLIFY(&s); [line 37, column 3]\n EXIT_SCOPE(n$3,n$4,s); [line 37, column 3]\n " shape="box"] "div0_cast(class Sub)#5945090778893539301.57c132b2d87bb7310c8cb0085dede4d5_4" -> "div0_cast(class Sub)#5945090778893539301.57c132b2d87bb7310c8cb0085dede4d5_3" ; @@ -79,7 +79,7 @@ digraph cfg { "div0_cast_ref#11427648331886451822.4f535c7752ac1b6e5f35ab1a83dc2bd8_3" -> "div0_cast_ref#11427648331886451822.4f535c7752ac1b6e5f35ab1a83dc2bd8_2" ; -"div0_cast_ref#11427648331886451822.4f535c7752ac1b6e5f35ab1a83dc2bd8_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&b:Base1&) [line 43, column 3]\n n$3=*&s:Sub& [line 43, column 14]\n *&b:Sub&=n$3 [line 43, column 3]\n NULLIFY(&s); [line 43, column 3]\n EXIT_SCOPE(n$3,n$4,s); [line 43, column 3]\n " shape="box"] +"div0_cast_ref#11427648331886451822.4f535c7752ac1b6e5f35ab1a83dc2bd8_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&b:Base1&) assign_last [line 43, column 3]\n n$3=*&s:Sub& [line 43, column 14]\n *&b:Sub&=n$3 [line 43, column 3]\n NULLIFY(&s); [line 43, column 3]\n EXIT_SCOPE(n$3,n$4,s); [line 43, column 3]\n " shape="box"] "div0_cast_ref#11427648331886451822.4f535c7752ac1b6e5f35ab1a83dc2bd8_4" -> "div0_cast_ref#11427648331886451822.4f535c7752ac1b6e5f35ab1a83dc2bd8_3" ; @@ -147,7 +147,7 @@ digraph cfg { "div1_cast(class Sub)#4700794712628779370.5f88f1a243823d843f8f8a851cbaf0d4_3" -> "div1_cast(class Sub)#4700794712628779370.5f88f1a243823d843f8f8a851cbaf0d4_2" ; -"div1_cast(class Sub)#4700794712628779370.5f88f1a243823d843f8f8a851cbaf0d4_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&b:Base1*) [line 66, column 3]\n n$3=*&s:Sub* [line 66, column 14]\n *&b:Sub*=n$3 [line 66, column 3]\n NULLIFY(&s); [line 66, column 3]\n EXIT_SCOPE(n$3,n$4,s); [line 66, column 3]\n " shape="box"] +"div1_cast(class Sub)#4700794712628779370.5f88f1a243823d843f8f8a851cbaf0d4_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&b:Base1*) assign_last [line 66, column 3]\n n$3=*&s:Sub* [line 66, column 14]\n *&b:Sub*=n$3 [line 66, column 3]\n NULLIFY(&s); [line 66, column 3]\n EXIT_SCOPE(n$3,n$4,s); [line 66, column 3]\n " shape="box"] "div1_cast(class Sub)#4700794712628779370.5f88f1a243823d843f8f8a851cbaf0d4_4" -> "div1_cast(class Sub)#4700794712628779370.5f88f1a243823d843f8f8a851cbaf0d4_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/types/operator_overload.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/types/operator_overload.cpp.dot index 7107ffa7d..b280764ef 100644 --- a/infer/tests/codetoanalyze/cpp/shared/types/operator_overload.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/types/operator_overload.cpp.dot @@ -11,7 +11,7 @@ digraph cfg { "div0_function_op#6873855268879531342.84fad54736dded19eef101141599a76d_3" -> "div0_function_op#6873855268879531342.84fad54736dded19eef101141599a76d_2" ; -"div0_function_op#6873855268879531342.84fad54736dded19eef101141599a76d_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&v:int) [line 28, column 3]\n n$2=*&x:X& [line 28, column 11]\n n$3=_fun_operator*(n$2:X&,0:int) [line 28, column 11]\n *&v:int=n$3 [line 28, column 3]\n NULLIFY(&x); [line 28, column 3]\n EXIT_SCOPE(n$2,n$3,n$4,x); [line 28, column 3]\n " shape="box"] +"div0_function_op#6873855268879531342.84fad54736dded19eef101141599a76d_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&v:int) assign_last [line 28, column 3]\n n$2=*&x:X& [line 28, column 11]\n n$3=_fun_operator*(n$2:X&,0:int) [line 28, column 11]\n *&v:int=n$3 [line 28, column 3]\n NULLIFY(&x); [line 28, column 3]\n EXIT_SCOPE(n$2,n$3,n$4,x); [line 28, column 3]\n " shape="box"] "div0_function_op#6873855268879531342.84fad54736dded19eef101141599a76d_4" -> "div0_function_op#6873855268879531342.84fad54736dded19eef101141599a76d_3" ; @@ -37,7 +37,7 @@ digraph cfg { "div0_method#3394285867487200768.d62d68147390fdf119b5094668c7a05c_3" -> "div0_method#3394285867487200768.d62d68147390fdf119b5094668c7a05c_2" ; -"div0_method#3394285867487200768.d62d68147390fdf119b5094668c7a05c_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&v:int) [line 34, column 3]\n n$2=*&x:X& [line 34, column 11]\n _=*n$2:X [line 34, column 11]\n n$4=_fun_X_operator[](n$2:X&,0:int) [line 34, column 11]\n *&v:int=n$4 [line 34, column 3]\n NULLIFY(&x); [line 34, column 3]\n EXIT_SCOPE(_,n$2,n$4,n$5,x); [line 34, column 3]\n " shape="box"] +"div0_method#3394285867487200768.d62d68147390fdf119b5094668c7a05c_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&v:int) assign_last [line 34, column 3]\n n$2=*&x:X& [line 34, column 11]\n _=*n$2:X [line 34, column 11]\n n$4=_fun_X_operator[](n$2:X&,0:int) [line 34, column 11]\n *&v:int=n$4 [line 34, column 3]\n NULLIFY(&x); [line 34, column 3]\n EXIT_SCOPE(_,n$2,n$4,n$5,x); [line 34, column 3]\n " shape="box"] "div0_method#3394285867487200768.d62d68147390fdf119b5094668c7a05c_4" -> "div0_method#3394285867487200768.d62d68147390fdf119b5094668c7a05c_3" ; @@ -52,7 +52,7 @@ digraph cfg { "div0_method_op#16458634010327501325.9f8c8af0fef3459b668ce9bd6f32558b_3" -> "div0_method_op#16458634010327501325.9f8c8af0fef3459b668ce9bd6f32558b_2" ; -"div0_method_op#16458634010327501325.9f8c8af0fef3459b668ce9bd6f32558b_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&v:int) [line 20, column 3]\n n$3=*&x:X& [line 20, column 11]\n n$4=_fun_X_operator[](n$3:X&,0:int) [line 20, column 11]\n *&v:int=n$4 [line 20, column 3]\n NULLIFY(&x); [line 20, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,x); [line 20, column 3]\n " shape="box"] +"div0_method_op#16458634010327501325.9f8c8af0fef3459b668ce9bd6f32558b_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&v:int) assign_last [line 20, column 3]\n n$3=*&x:X& [line 20, column 11]\n n$4=_fun_X_operator[](n$3:X&,0:int) [line 20, column 11]\n *&v:int=n$4 [line 20, column 3]\n NULLIFY(&x); [line 20, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,x); [line 20, column 3]\n " shape="box"] "div0_method_op#16458634010327501325.9f8c8af0fef3459b668ce9bd6f32558b_4" -> "div0_method_op#16458634010327501325.9f8c8af0fef3459b668ce9bd6f32558b_3" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/types/return_struct.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/types/return_struct.cpp.dot index dafc2c0ae..16ca82292 100644 --- a/infer/tests/codetoanalyze/cpp/shared/types/return_struct.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/types/return_struct.cpp.dot @@ -15,7 +15,7 @@ digraph cfg { "get#return_struct(class return_struct::X)#15206943163581446197.86e6722206a41548a013622037de2b99_4" -> "get#return_struct(class return_struct::X)#15206943163581446197.86e6722206a41548a013622037de2b99_3" ; -"get#return_struct(class return_struct::X)#15206943163581446197.86e6722206a41548a013622037de2b99_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&x:return_struct::X) [line 20, column 3]\n n$6=_fun_return_struct::X_X(&x:return_struct::X*) [line 20, column 5]\n EXIT_SCOPE(n$6,n$7); [line 20, column 5]\n " shape="box"] +"get#return_struct(class return_struct::X)#15206943163581446197.86e6722206a41548a013622037de2b99_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&x:return_struct::X) assign_last [line 20, column 3]\n n$6=_fun_return_struct::X_X(&x:return_struct::X*) [line 20, column 5]\n EXIT_SCOPE(n$6,n$7); [line 20, column 5]\n " shape="box"] "get#return_struct(class return_struct::X)#15206943163581446197.86e6722206a41548a013622037de2b99_5" -> "get#return_struct(class return_struct::X)#15206943163581446197.86e6722206a41548a013622037de2b99_4" ; @@ -30,7 +30,7 @@ digraph cfg { "get_div0#return_struct#3543093399648500387.0c3db3a444952aefeee44e54da50327a_3" -> "get_div0#return_struct#3543093399648500387.0c3db3a444952aefeee44e54da50327a_2" ; -"get_div0#return_struct#3543093399648500387.0c3db3a444952aefeee44e54da50327a_4" [label="4: DeclStmt \n n$9=_fun___variable_initialization(&x:return_struct::X) [line 26, column 3]\n n$7=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$4:return_struct::X const ) [line 26, column 9]\n n$6=_fun_return_struct::get(0:int,&0$?%__sil_tmpSIL_materialize_temp__n$4:return_struct::X*) [line 26, column 9]\n n$8=_fun_return_struct::X_X(&x:return_struct::X*,&0$?%__sil_tmpSIL_materialize_temp__n$4:return_struct::X const &) [line 26, column 9]\n EXIT_SCOPE(n$6,n$7,n$8,n$9,0$?%__sil_tmpSIL_materialize_temp__n$4); [line 26, column 9]\n " shape="box"] +"get_div0#return_struct#3543093399648500387.0c3db3a444952aefeee44e54da50327a_4" [label="4: DeclStmt \n n$9=_fun___variable_initialization(&x:return_struct::X) assign_last [line 26, column 3]\n n$7=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$4:return_struct::X const ) assign_last [line 26, column 9]\n n$6=_fun_return_struct::get(0:int,&0$?%__sil_tmpSIL_materialize_temp__n$4:return_struct::X*) assign_last [line 26, column 9]\n n$8=_fun_return_struct::X_X(&x:return_struct::X*,&0$?%__sil_tmpSIL_materialize_temp__n$4:return_struct::X const &) [line 26, column 9]\n EXIT_SCOPE(n$6,n$7,n$8,n$9,0$?%__sil_tmpSIL_materialize_temp__n$4); [line 26, column 9]\n " shape="box"] "get_div0#return_struct#3543093399648500387.0c3db3a444952aefeee44e54da50327a_4" -> "get_div0#return_struct#3543093399648500387.0c3db3a444952aefeee44e54da50327a_3" ; @@ -45,7 +45,7 @@ digraph cfg { "get_div1#return_struct#4287655186293816212.dabfacf04a7d838f8bdc3ef21786303d_3" -> "get_div1#return_struct#4287655186293816212.dabfacf04a7d838f8bdc3ef21786303d_2" ; -"get_div1#return_struct#4287655186293816212.dabfacf04a7d838f8bdc3ef21786303d_4" [label="4: DeclStmt \n n$9=_fun___variable_initialization(&x:return_struct::X) [line 38, column 3]\n n$7=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$4:return_struct::X const ) [line 38, column 9]\n n$6=_fun_return_struct::get(1:int,&0$?%__sil_tmpSIL_materialize_temp__n$4:return_struct::X*) [line 38, column 9]\n n$8=_fun_return_struct::X_X(&x:return_struct::X*,&0$?%__sil_tmpSIL_materialize_temp__n$4:return_struct::X const &) [line 38, column 9]\n EXIT_SCOPE(n$6,n$7,n$8,n$9,0$?%__sil_tmpSIL_materialize_temp__n$4); [line 38, column 9]\n " shape="box"] +"get_div1#return_struct#4287655186293816212.dabfacf04a7d838f8bdc3ef21786303d_4" [label="4: DeclStmt \n n$9=_fun___variable_initialization(&x:return_struct::X) assign_last [line 38, column 3]\n n$7=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$4:return_struct::X const ) assign_last [line 38, column 9]\n n$6=_fun_return_struct::get(1:int,&0$?%__sil_tmpSIL_materialize_temp__n$4:return_struct::X*) assign_last [line 38, column 9]\n n$8=_fun_return_struct::X_X(&x:return_struct::X*,&0$?%__sil_tmpSIL_materialize_temp__n$4:return_struct::X const &) [line 38, column 9]\n EXIT_SCOPE(n$6,n$7,n$8,n$9,0$?%__sil_tmpSIL_materialize_temp__n$4); [line 38, column 9]\n " shape="box"] "get_div1#return_struct#4287655186293816212.dabfacf04a7d838f8bdc3ef21786303d_4" -> "get_div1#return_struct#4287655186293816212.dabfacf04a7d838f8bdc3ef21786303d_3" ; @@ -56,11 +56,11 @@ digraph cfg { "get_field_div0#return_struct#5765383981880135147.23dc82d8c29aaec22d9b9a68808820c3_2" [label="2: Exit return_struct::get_field_div0 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 33, column 1]\n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$6); [line 33, column 1]\n " color=yellow style=filled] -"get_field_div0#return_struct#5765383981880135147.23dc82d8c29aaec22d9b9a68808820c3_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X) [line 32, column 14]\n n$2=_fun_return_struct::get(0:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X*) [line 32, column 14]\n n$4=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 32, column 14]\n *&return:int=(1 / n$4) [line 32, column 3]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 32, column 3]\n APPLY_ABSTRACTION; [line 32, column 3]\n " shape="box"] +"get_field_div0#return_struct#5765383981880135147.23dc82d8c29aaec22d9b9a68808820c3_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X) assign_last [line 32, column 14]\n n$2=_fun_return_struct::get(0:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X*) assign_last [line 32, column 14]\n n$4=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 32, column 14]\n *&return:int=(1 / n$4) [line 32, column 3]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 32, column 3]\n APPLY_ABSTRACTION; [line 32, column 3]\n " shape="box"] "get_field_div0#return_struct#5765383981880135147.23dc82d8c29aaec22d9b9a68808820c3_3" -> "get_field_div0#return_struct#5765383981880135147.23dc82d8c29aaec22d9b9a68808820c3_2" ; -"get_field_div0#return_struct#5765383981880135147.23dc82d8c29aaec22d9b9a68808820c3_4" [label="4: Call _fun_return_struct::X_skip \n n$9=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$6:return_struct::X) [line 31, column 3]\n n$8=_fun_return_struct::get(0:int,&0$?%__sil_tmpSIL_materialize_temp__n$6:return_struct::X*) [line 31, column 3]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$6:return_struct::X [line 31, column 3]\n n$11=_fun_return_struct::X_skip(&0$?%__sil_tmpSIL_materialize_temp__n$6:return_struct::X&) [line 31, column 3]\n EXIT_SCOPE(_,n$8,n$9,n$11,0$?%__sil_tmpSIL_materialize_temp__n$6); [line 31, column 3]\n " shape="box"] +"get_field_div0#return_struct#5765383981880135147.23dc82d8c29aaec22d9b9a68808820c3_4" [label="4: Call _fun_return_struct::X_skip \n n$9=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$6:return_struct::X) assign_last [line 31, column 3]\n n$8=_fun_return_struct::get(0:int,&0$?%__sil_tmpSIL_materialize_temp__n$6:return_struct::X*) assign_last [line 31, column 3]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$6:return_struct::X [line 31, column 3]\n n$11=_fun_return_struct::X_skip(&0$?%__sil_tmpSIL_materialize_temp__n$6:return_struct::X&) [line 31, column 3]\n EXIT_SCOPE(_,n$8,n$9,n$11,0$?%__sil_tmpSIL_materialize_temp__n$6); [line 31, column 3]\n " shape="box"] "get_field_div0#return_struct#5765383981880135147.23dc82d8c29aaec22d9b9a68808820c3_4" -> "get_field_div0#return_struct#5765383981880135147.23dc82d8c29aaec22d9b9a68808820c3_3" ; @@ -71,7 +71,7 @@ digraph cfg { "get_field_div1#return_struct#6265027354366635900.8e009a5c61cd6a7375811ae0019c838c_2" [label="2: Exit return_struct::get_field_div1 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 42, column 45]\n " color=yellow style=filled] -"get_field_div1#return_struct#6265027354366635900.8e009a5c61cd6a7375811ae0019c838c_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X) [line 42, column 35]\n n$2=_fun_return_struct::get(1:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X*) [line 42, column 35]\n n$4=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 42, column 35]\n *&return:int=(1 / n$4) [line 42, column 24]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 42, column 24]\n APPLY_ABSTRACTION; [line 42, column 24]\n " shape="box"] +"get_field_div1#return_struct#6265027354366635900.8e009a5c61cd6a7375811ae0019c838c_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X) assign_last [line 42, column 35]\n n$2=_fun_return_struct::get(1:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X*) assign_last [line 42, column 35]\n n$4=*&0$?%__sil_tmpSIL_materialize_temp__n$0.f:int [line 42, column 35]\n *&return:int=(1 / n$4) [line 42, column 24]\n EXIT_SCOPE(n$2,n$3,n$4,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 42, column 24]\n APPLY_ABSTRACTION; [line 42, column 24]\n " shape="box"] "get_field_div1#return_struct#6265027354366635900.8e009a5c61cd6a7375811ae0019c838c_3" -> "get_field_div1#return_struct#6265027354366635900.8e009a5c61cd6a7375811ae0019c838c_2" ; @@ -82,7 +82,7 @@ digraph cfg { "get_method_div0#return_struct#1033779568239724265.1e897486d64ba4a977e56cdd041d6ba7_2" [label="2: Exit return_struct::get_method_div0 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 35, column 46]\n " color=yellow style=filled] -"get_method_div0#return_struct#1033779568239724265.1e897486d64ba4a977e56cdd041d6ba7_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X) [line 35, column 32]\n n$2=_fun_return_struct::get(0:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X*) [line 35, column 32]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X [line 35, column 32]\n n$5=_fun_return_struct::X_div(&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X&) [line 35, column 32]\n *&return:int=n$5 [line 35, column 25]\n EXIT_SCOPE(_,n$2,n$3,n$5,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 35, column 25]\n APPLY_ABSTRACTION; [line 35, column 25]\n " shape="box"] +"get_method_div0#return_struct#1033779568239724265.1e897486d64ba4a977e56cdd041d6ba7_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X) assign_last [line 35, column 32]\n n$2=_fun_return_struct::get(0:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X*) assign_last [line 35, column 32]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X [line 35, column 32]\n n$5=_fun_return_struct::X_div(&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X&) [line 35, column 32]\n *&return:int=n$5 [line 35, column 25]\n EXIT_SCOPE(_,n$2,n$3,n$5,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 35, column 25]\n APPLY_ABSTRACTION; [line 35, column 25]\n " shape="box"] "get_method_div0#return_struct#1033779568239724265.1e897486d64ba4a977e56cdd041d6ba7_3" -> "get_method_div0#return_struct#1033779568239724265.1e897486d64ba4a977e56cdd041d6ba7_2" ; @@ -93,7 +93,7 @@ digraph cfg { "get_method_div1#return_struct#1525840708539595762.816387a0cceab2d825a8393a6ca5d5a1_2" [label="2: Exit return_struct::get_method_div1 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$0); [line 44, column 46]\n " color=yellow style=filled] -"get_method_div1#return_struct#1525840708539595762.816387a0cceab2d825a8393a6ca5d5a1_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X) [line 44, column 32]\n n$2=_fun_return_struct::get(1:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X*) [line 44, column 32]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X [line 44, column 32]\n n$5=_fun_return_struct::X_div(&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X&) [line 44, column 32]\n *&return:int=n$5 [line 44, column 25]\n EXIT_SCOPE(_,n$2,n$3,n$5,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 44, column 25]\n APPLY_ABSTRACTION; [line 44, column 25]\n " shape="box"] +"get_method_div1#return_struct#1525840708539595762.816387a0cceab2d825a8393a6ca5d5a1_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X) assign_last [line 44, column 32]\n n$2=_fun_return_struct::get(1:int,&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X*) assign_last [line 44, column 32]\n _=*&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X [line 44, column 32]\n n$5=_fun_return_struct::X_div(&0$?%__sil_tmpSIL_materialize_temp__n$0:return_struct::X&) [line 44, column 32]\n *&return:int=n$5 [line 44, column 25]\n EXIT_SCOPE(_,n$2,n$3,n$5,0$?%__sil_tmpSIL_materialize_temp__n$0); [line 44, column 25]\n APPLY_ABSTRACTION; [line 44, column 25]\n " shape="box"] "get_method_div1#return_struct#1525840708539595762.816387a0cceab2d825a8393a6ca5d5a1_3" -> "get_method_div1#return_struct#1525840708539595762.816387a0cceab2d825a8393a6ca5d5a1_2" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/types/struct_forward_declare.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/types/struct_forward_declare.cpp.dot index 24e6ee050..e26a71d76 100644 --- a/infer/tests/codetoanalyze/cpp/shared/types/struct_forward_declare.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/types/struct_forward_declare.cpp.dot @@ -36,7 +36,7 @@ digraph cfg { "X_Y_div0#struct_forward_declare#18042232259689408087.5a34dbeba09cf8550874dbfc508af917_9" -> "X_Y_div0#struct_forward_declare#18042232259689408087.5a34dbeba09cf8550874dbfc508af917_8" ; -"X_Y_div0#struct_forward_declare#18042232259689408087.5a34dbeba09cf8550874dbfc508af917_10" [label="10: DeclStmt \n n$8=_fun___variable_initialization(&x:struct_forward_declare::X) [line 46, column 3]\n n$7=_fun_struct_forward_declare::X_X(&x:struct_forward_declare::X*) [line 46, column 5]\n EXIT_SCOPE(n$7,n$8); [line 46, column 5]\n " shape="box"] +"X_Y_div0#struct_forward_declare#18042232259689408087.5a34dbeba09cf8550874dbfc508af917_10" [label="10: DeclStmt \n n$8=_fun___variable_initialization(&x:struct_forward_declare::X) assign_last [line 46, column 3]\n n$7=_fun_struct_forward_declare::X_X(&x:struct_forward_declare::X*) [line 46, column 5]\n EXIT_SCOPE(n$7,n$8); [line 46, column 5]\n " shape="box"] "X_Y_div0#struct_forward_declare#18042232259689408087.5a34dbeba09cf8550874dbfc508af917_10" -> "X_Y_div0#struct_forward_declare#18042232259689408087.5a34dbeba09cf8550874dbfc508af917_9" ; @@ -55,7 +55,7 @@ digraph cfg { "X_div0#struct_forward_declare#14943490796844086809.e860fd7462df24ba7720802867a02ac2_4" -> "X_div0#struct_forward_declare#14943490796844086809.e860fd7462df24ba7720802867a02ac2_3" ; -"X_div0#struct_forward_declare#14943490796844086809.e860fd7462df24ba7720802867a02ac2_5" [label="5: DeclStmt \n n$4=_fun___variable_initialization(&x:struct_forward_declare::X) [line 35, column 3]\n n$3=_fun_struct_forward_declare::X_X(&x:struct_forward_declare::X*) [line 35, column 5]\n EXIT_SCOPE(n$3,n$4); [line 35, column 5]\n " shape="box"] +"X_div0#struct_forward_declare#14943490796844086809.e860fd7462df24ba7720802867a02ac2_5" [label="5: DeclStmt \n n$4=_fun___variable_initialization(&x:struct_forward_declare::X) assign_last [line 35, column 3]\n n$3=_fun_struct_forward_declare::X_X(&x:struct_forward_declare::X*) [line 35, column 5]\n EXIT_SCOPE(n$3,n$4); [line 35, column 5]\n " shape="box"] "X_div0#struct_forward_declare#14943490796844086809.e860fd7462df24ba7720802867a02ac2_5" -> "X_div0#struct_forward_declare#14943490796844086809.e860fd7462df24ba7720802867a02ac2_4" ; @@ -89,7 +89,7 @@ digraph cfg { "Z_div0#struct_forward_declare#1627203008264837059.744970cb2a0863ceafbc26504cb09faf_4" -> "Z_div0#struct_forward_declare#1627203008264837059.744970cb2a0863ceafbc26504cb09faf_3" ; -"Z_div0#struct_forward_declare#1627203008264837059.744970cb2a0863ceafbc26504cb09faf_5" [label="5: DeclStmt \n n$4=_fun___variable_initialization(&z:struct_forward_declare::Z) [line 56, column 3]\n n$3=_fun_struct_forward_declare::Z_Z(&z:struct_forward_declare::Z*) [line 56, column 5]\n EXIT_SCOPE(n$3,n$4); [line 56, column 5]\n " shape="box"] +"Z_div0#struct_forward_declare#1627203008264837059.744970cb2a0863ceafbc26504cb09faf_5" [label="5: DeclStmt \n n$4=_fun___variable_initialization(&z:struct_forward_declare::Z) assign_last [line 56, column 3]\n n$3=_fun_struct_forward_declare::Z_Z(&z:struct_forward_declare::Z*) [line 56, column 5]\n EXIT_SCOPE(n$3,n$4); [line 56, column 5]\n " shape="box"] "Z_div0#struct_forward_declare#1627203008264837059.744970cb2a0863ceafbc26504cb09faf_5" -> "Z_div0#struct_forward_declare#1627203008264837059.744970cb2a0863ceafbc26504cb09faf_4" ; @@ -115,7 +115,7 @@ digraph cfg { "fun_with_Z#struct_forward_declare(class struct_forward_declare::Z)#10740368644462176169.d708d356d0748993ed722a0113d84853_2" [label="2: Exit struct_forward_declare::fun_with_Z \n NULLIFY(&z2); [line 24, column 38]\n " color=yellow style=filled] -"fun_with_Z#struct_forward_declare(class struct_forward_declare::Z)#10740368644462176169.d708d356d0748993ed722a0113d84853_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&z2:struct_forward_declare::Z*) [line 24, column 26]\n n$1=*&z1:struct_forward_declare::Z* [line 24, column 34]\n *&z2:struct_forward_declare::Z*=n$1 [line 24, column 26]\n NULLIFY(&z1); [line 24, column 26]\n EXIT_SCOPE(n$1,n$2,z2,z1); [line 24, column 26]\n APPLY_ABSTRACTION; [line 24, column 26]\n " shape="box"] +"fun_with_Z#struct_forward_declare(class struct_forward_declare::Z)#10740368644462176169.d708d356d0748993ed722a0113d84853_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&z2:struct_forward_declare::Z*) assign_last [line 24, column 26]\n n$1=*&z1:struct_forward_declare::Z* [line 24, column 34]\n *&z2:struct_forward_declare::Z*=n$1 [line 24, column 26]\n NULLIFY(&z1); [line 24, column 26]\n EXIT_SCOPE(n$1,n$2,z2,z1); [line 24, column 26]\n APPLY_ABSTRACTION; [line 24, column 26]\n " shape="box"] "fun_with_Z#struct_forward_declare(class struct_forward_declare::Z)#10740368644462176169.d708d356d0748993ed722a0113d84853_3" -> "fun_with_Z#struct_forward_declare(class struct_forward_declare::Z)#10740368644462176169.d708d356d0748993ed722a0113d84853_2" ; diff --git a/infer/tests/codetoanalyze/cpp/shared/types/struct_pass_by_value.cpp.dot b/infer/tests/codetoanalyze/cpp/shared/types/struct_pass_by_value.cpp.dot index f77bd5b10..f501eb983 100644 --- a/infer/tests/codetoanalyze/cpp/shared/types/struct_pass_by_value.cpp.dot +++ b/infer/tests/codetoanalyze/cpp/shared/types/struct_pass_by_value.cpp.dot @@ -11,11 +11,11 @@ digraph cfg { "field_div0#struct_pass_by_value#10739265731582012189.309f906a63458fd1d3c6651d011f1020_3" -> "field_div0#struct_pass_by_value#10739265731582012189.309f906a63458fd1d3c6651d011f1020_2" ; -"field_div0#struct_pass_by_value#10739265731582012189.309f906a63458fd1d3c6651d011f1020_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&y:struct_pass_by_value::Y) [line 41, column 3]\n n$6=_fun_struct_pass_by_value::Y_Y(&y:struct_pass_by_value::Y*,&x:struct_pass_by_value::X&) [line 41, column 5]\n EXIT_SCOPE(n$6,n$7); [line 41, column 5]\n " shape="box"] +"field_div0#struct_pass_by_value#10739265731582012189.309f906a63458fd1d3c6651d011f1020_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&y:struct_pass_by_value::Y) assign_last [line 41, column 3]\n n$6=_fun_struct_pass_by_value::Y_Y(&y:struct_pass_by_value::Y*,&x:struct_pass_by_value::X&) [line 41, column 5]\n EXIT_SCOPE(n$6,n$7); [line 41, column 5]\n " shape="box"] "field_div0#struct_pass_by_value#10739265731582012189.309f906a63458fd1d3c6651d011f1020_4" -> "field_div0#struct_pass_by_value#10739265731582012189.309f906a63458fd1d3c6651d011f1020_3" ; -"field_div0#struct_pass_by_value#10739265731582012189.309f906a63458fd1d3c6651d011f1020_5" [label="5: DeclStmt \n n$9=_fun___variable_initialization(&x:struct_pass_by_value::X) [line 40, column 3]\n n$8=_fun_struct_pass_by_value::X_X(&x:struct_pass_by_value::X*,0:int) [line 40, column 5]\n EXIT_SCOPE(n$8,n$9); [line 40, column 5]\n " shape="box"] +"field_div0#struct_pass_by_value#10739265731582012189.309f906a63458fd1d3c6651d011f1020_5" [label="5: DeclStmt \n n$9=_fun___variable_initialization(&x:struct_pass_by_value::X) assign_last [line 40, column 3]\n n$8=_fun_struct_pass_by_value::X_X(&x:struct_pass_by_value::X*,0:int) [line 40, column 5]\n EXIT_SCOPE(n$8,n$9); [line 40, column 5]\n " shape="box"] "field_div0#struct_pass_by_value#10739265731582012189.309f906a63458fd1d3c6651d011f1020_5" -> "field_div0#struct_pass_by_value#10739265731582012189.309f906a63458fd1d3c6651d011f1020_4" ; @@ -45,7 +45,7 @@ digraph cfg { "param_get_copied_div0#struct_pass_by_value#5422600122206315156.a9ecc5bcf15beb35ee10b7d5c038ad8e_4" -> "param_get_copied_div0#struct_pass_by_value#5422600122206315156.a9ecc5bcf15beb35ee10b7d5c038ad8e_3" ; -"param_get_copied_div0#struct_pass_by_value#5422600122206315156.a9ecc5bcf15beb35ee10b7d5c038ad8e_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&x:struct_pass_by_value::X) [line 46, column 3]\n n$7=_fun_struct_pass_by_value::X_X(&x:struct_pass_by_value::X*,0:int) [line 46, column 5]\n EXIT_SCOPE(n$7,n$8); [line 46, column 5]\n " shape="box"] +"param_get_copied_div0#struct_pass_by_value#5422600122206315156.a9ecc5bcf15beb35ee10b7d5c038ad8e_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&x:struct_pass_by_value::X) assign_last [line 46, column 3]\n n$7=_fun_struct_pass_by_value::X_X(&x:struct_pass_by_value::X*,0:int) [line 46, column 5]\n EXIT_SCOPE(n$7,n$8); [line 46, column 5]\n " shape="box"] "param_get_copied_div0#struct_pass_by_value#5422600122206315156.a9ecc5bcf15beb35ee10b7d5c038ad8e_5" -> "param_get_copied_div0#struct_pass_by_value#5422600122206315156.a9ecc5bcf15beb35ee10b7d5c038ad8e_4" ; @@ -64,7 +64,7 @@ digraph cfg { "param_get_copied_div1#struct_pass_by_value#4678038335560999331.58ffd03114defd7dfa2ce1d8e7c84b46_4" -> "param_get_copied_div1#struct_pass_by_value#4678038335560999331.58ffd03114defd7dfa2ce1d8e7c84b46_3" ; -"param_get_copied_div1#struct_pass_by_value#4678038335560999331.58ffd03114defd7dfa2ce1d8e7c84b46_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&x:struct_pass_by_value::X) [line 52, column 3]\n n$7=_fun_struct_pass_by_value::X_X(&x:struct_pass_by_value::X*,1:int) [line 52, column 5]\n EXIT_SCOPE(n$7,n$8); [line 52, column 5]\n " shape="box"] +"param_get_copied_div1#struct_pass_by_value#4678038335560999331.58ffd03114defd7dfa2ce1d8e7c84b46_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&x:struct_pass_by_value::X) assign_last [line 52, column 3]\n n$7=_fun_struct_pass_by_value::X_X(&x:struct_pass_by_value::X*,1:int) [line 52, column 5]\n EXIT_SCOPE(n$7,n$8); [line 52, column 5]\n " shape="box"] "param_get_copied_div1#struct_pass_by_value#4678038335560999331.58ffd03114defd7dfa2ce1d8e7c84b46_5" -> "param_get_copied_div1#struct_pass_by_value#4678038335560999331.58ffd03114defd7dfa2ce1d8e7c84b46_4" ; @@ -86,7 +86,7 @@ digraph cfg { "temp_div0#struct_pass_by_value#12428807554484697371.c8fca64e841f1b138c802c96104d913c_2" [label="2: Exit struct_pass_by_value::temp_div0 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 35, column 43]\n NULLIFY(&0$?%__sil_tmp__temp_construct_n$0); [line 35, column 43]\n " color=yellow style=filled] -"temp_div0#struct_pass_by_value#12428807554484697371.c8fca64e841f1b138c802c96104d913c_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:struct_pass_by_value::X) [line 35, column 36]\n n$2=_fun_struct_pass_by_value::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$1:struct_pass_by_value::X*,0:int) [line 35, column 36]\n n$4=_fun_struct_pass_by_value::X_X(&0$?%__sil_tmp__temp_construct_n$0:struct_pass_by_value::X*,&0$?%__sil_tmpSIL_materialize_temp__n$1:struct_pass_by_value::X&) [line 35, column 36]\n n$5=_fun_struct_pass_by_value::get_f(&0$?%__sil_tmp__temp_construct_n$0:struct_pass_by_value::X) [line 35, column 30]\n *&return:int=(1 / n$5) [line 35, column 19]\n EXIT_SCOPE(n$2,n$3,n$4,n$5,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 35, column 19]\n APPLY_ABSTRACTION; [line 35, column 19]\n " shape="box"] +"temp_div0#struct_pass_by_value#12428807554484697371.c8fca64e841f1b138c802c96104d913c_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:struct_pass_by_value::X) assign_last [line 35, column 36]\n n$2=_fun_struct_pass_by_value::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$1:struct_pass_by_value::X*,0:int) [line 35, column 36]\n n$4=_fun_struct_pass_by_value::X_X(&0$?%__sil_tmp__temp_construct_n$0:struct_pass_by_value::X*,&0$?%__sil_tmpSIL_materialize_temp__n$1:struct_pass_by_value::X&) [line 35, column 36]\n n$5=_fun_struct_pass_by_value::get_f(&0$?%__sil_tmp__temp_construct_n$0:struct_pass_by_value::X) [line 35, column 30]\n *&return:int=(1 / n$5) [line 35, column 19]\n EXIT_SCOPE(n$2,n$3,n$4,n$5,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 35, column 19]\n APPLY_ABSTRACTION; [line 35, column 19]\n " shape="box"] "temp_div0#struct_pass_by_value#12428807554484697371.c8fca64e841f1b138c802c96104d913c_3" -> "temp_div0#struct_pass_by_value#12428807554484697371.c8fca64e841f1b138c802c96104d913c_2" ; @@ -97,7 +97,7 @@ digraph cfg { "temp_div1#struct_pass_by_value#13173334156757910444.11618e43948d09c7324724af84bc0d5b_2" [label="2: Exit struct_pass_by_value::temp_div1 \n NULLIFY(&0$?%__sil_tmpSIL_materialize_temp__n$1); [line 37, column 43]\n NULLIFY(&0$?%__sil_tmp__temp_construct_n$0); [line 37, column 43]\n " color=yellow style=filled] -"temp_div1#struct_pass_by_value#13173334156757910444.11618e43948d09c7324724af84bc0d5b_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:struct_pass_by_value::X) [line 37, column 36]\n n$2=_fun_struct_pass_by_value::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$1:struct_pass_by_value::X*,1:int) [line 37, column 36]\n n$4=_fun_struct_pass_by_value::X_X(&0$?%__sil_tmp__temp_construct_n$0:struct_pass_by_value::X*,&0$?%__sil_tmpSIL_materialize_temp__n$1:struct_pass_by_value::X&) [line 37, column 36]\n n$5=_fun_struct_pass_by_value::get_f(&0$?%__sil_tmp__temp_construct_n$0:struct_pass_by_value::X) [line 37, column 30]\n *&return:int=(1 / n$5) [line 37, column 19]\n EXIT_SCOPE(n$2,n$3,n$4,n$5,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 37, column 19]\n APPLY_ABSTRACTION; [line 37, column 19]\n " shape="box"] +"temp_div1#struct_pass_by_value#13173334156757910444.11618e43948d09c7324724af84bc0d5b_3" [label="3: Return Stmt \n n$3=_fun___variable_initialization(&0$?%__sil_tmpSIL_materialize_temp__n$1:struct_pass_by_value::X) assign_last [line 37, column 36]\n n$2=_fun_struct_pass_by_value::X_X(&0$?%__sil_tmpSIL_materialize_temp__n$1:struct_pass_by_value::X*,1:int) [line 37, column 36]\n n$4=_fun_struct_pass_by_value::X_X(&0$?%__sil_tmp__temp_construct_n$0:struct_pass_by_value::X*,&0$?%__sil_tmpSIL_materialize_temp__n$1:struct_pass_by_value::X&) [line 37, column 36]\n n$5=_fun_struct_pass_by_value::get_f(&0$?%__sil_tmp__temp_construct_n$0:struct_pass_by_value::X) [line 37, column 30]\n *&return:int=(1 / n$5) [line 37, column 19]\n EXIT_SCOPE(n$2,n$3,n$4,n$5,0$?%__sil_tmpSIL_materialize_temp__n$1); [line 37, column 19]\n APPLY_ABSTRACTION; [line 37, column 19]\n " shape="box"] "temp_div1#struct_pass_by_value#13173334156757910444.11618e43948d09c7324724af84bc0d5b_3" -> "temp_div1#struct_pass_by_value#13173334156757910444.11618e43948d09c7324724af84bc0d5b_2" ; @@ -112,7 +112,7 @@ digraph cfg { "var_div0#struct_pass_by_value#10764880494979445665.44da929aedf0cdc1afaea064cb399051_3" -> "var_div0#struct_pass_by_value#10764880494979445665.44da929aedf0cdc1afaea064cb399051_2" ; -"var_div0#struct_pass_by_value#10764880494979445665.44da929aedf0cdc1afaea064cb399051_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&x:struct_pass_by_value::X) [line 26, column 3]\n n$6=_fun_struct_pass_by_value::X_X(&x:struct_pass_by_value::X*,0:int) [line 26, column 5]\n EXIT_SCOPE(n$6,n$7); [line 26, column 5]\n " shape="box"] +"var_div0#struct_pass_by_value#10764880494979445665.44da929aedf0cdc1afaea064cb399051_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&x:struct_pass_by_value::X) assign_last [line 26, column 3]\n n$6=_fun_struct_pass_by_value::X_X(&x:struct_pass_by_value::X*,0:int) [line 26, column 5]\n EXIT_SCOPE(n$6,n$7); [line 26, column 5]\n " shape="box"] "var_div0#struct_pass_by_value#10764880494979445665.44da929aedf0cdc1afaea064cb399051_4" -> "var_div0#struct_pass_by_value#10764880494979445665.44da929aedf0cdc1afaea064cb399051_3" ; @@ -127,7 +127,7 @@ digraph cfg { "var_div1#struct_pass_by_value#11501824865066029482.b667f3a6d8153cf4e571282bd064fc22_3" -> "var_div1#struct_pass_by_value#11501824865066029482.b667f3a6d8153cf4e571282bd064fc22_2" ; -"var_div1#struct_pass_by_value#11501824865066029482.b667f3a6d8153cf4e571282bd064fc22_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&x:struct_pass_by_value::X) [line 31, column 3]\n n$6=_fun_struct_pass_by_value::X_X(&x:struct_pass_by_value::X*,1:int) [line 31, column 5]\n EXIT_SCOPE(n$6,n$7); [line 31, column 5]\n " shape="box"] +"var_div1#struct_pass_by_value#11501824865066029482.b667f3a6d8153cf4e571282bd064fc22_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&x:struct_pass_by_value::X) assign_last [line 31, column 3]\n n$6=_fun_struct_pass_by_value::X_X(&x:struct_pass_by_value::X*,1:int) [line 31, column 5]\n EXIT_SCOPE(n$6,n$7); [line 31, column 5]\n " shape="box"] "var_div1#struct_pass_by_value#11501824865066029482.b667f3a6d8153cf4e571282bd064fc22_4" -> "var_div1#struct_pass_by_value#11501824865066029482.b667f3a6d8153cf4e571282bd064fc22_3" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/block/retain_cycle.m.dot b/infer/tests/codetoanalyze/objc/frontend/block/retain_cycle.m.dot index 828129998..182277bcf 100644 --- a/infer/tests/codetoanalyze/objc/frontend/block/retain_cycle.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/block/retain_cycle.m.dot @@ -30,7 +30,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; -"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&a:A*) [line 61, column 3]\n n$2=_fun___objc_alloc_no_fail(sizeof(t=A):unsigned long) [line 61, column 10]\n *&a:A*=n$2 [line 61, column 3]\n EXIT_SCOPE(n$2,n$3); [line 61, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&a:A*) assign_last [line 61, column 3]\n n$2=_fun___objc_alloc_no_fail(sizeof(t=A):unsigned long) [line 61, column 10]\n *&a:A*=n$2 [line 61, column 3]\n EXIT_SCOPE(n$2,n$3); [line 61, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/block/static.m.dot b/infer/tests/codetoanalyze/objc/frontend/block/static.m.dot index b97396852..07cf059c8 100644 --- a/infer/tests/codetoanalyze/objc/frontend/block/static.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/block/static.m.dot @@ -18,7 +18,7 @@ digraph cfg { "objc_blockA_test2_3.d73da2e84cb701fb03b2fbe656a01a1b_2" [label="2: Exit objc_blockA_test2_3 \n NULLIFY(&p); [line 40, column 3]\n " color=yellow style=filled] -"objc_blockA_test2_3.d73da2e84cb701fb03b2fbe656a01a1b_3" [label="3: DeclStmt \n n$9=_fun___variable_initialization(&p:objc_object*) [line 39, column 5]\n n$8=*&#GB$A_test2.sharedInstance:objc_object* [line 39, column 12]\n *&p:objc_object*=n$8 [line 39, column 5]\n EXIT_SCOPE(n$8,n$9,p); [line 39, column 5]\n APPLY_ABSTRACTION; [line 39, column 5]\n " shape="box"] +"objc_blockA_test2_3.d73da2e84cb701fb03b2fbe656a01a1b_3" [label="3: DeclStmt \n n$9=_fun___variable_initialization(&p:objc_object*) assign_last [line 39, column 5]\n n$8=*&#GB$A_test2.sharedInstance:objc_object* [line 39, column 12]\n *&p:objc_object*=n$8 [line 39, column 5]\n EXIT_SCOPE(n$8,n$9,p); [line 39, column 5]\n APPLY_ABSTRACTION; [line 39, column 5]\n " shape="box"] "objc_blockA_test2_3.d73da2e84cb701fb03b2fbe656a01a1b_3" -> "objc_blockA_test2_3.d73da2e84cb701fb03b2fbe656a01a1b_2" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/boxing/Boxing.m.dot b/infer/tests/codetoanalyze/objc/frontend/boxing/Boxing.m.dot index 6d71d1665..a166b7b4d 100644 --- a/infer/tests/codetoanalyze/objc/frontend/boxing/Boxing.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/boxing/Boxing.m.dot @@ -11,7 +11,7 @@ digraph cfg { "getBool#Boxing#instance.3315ec58788820860ec4adc889dd7197_3" -> "getBool#Boxing#instance.3315ec58788820860ec4adc889dd7197_2" ; -"getBool#Boxing#instance.3315ec58788820860ec4adc889dd7197_4" [label="4: DeclStmt \n n$20=_fun___variable_initialization(&n:NSNumber*) [line 35, column 3]\n n$19=_fun_NSNumber_numberWithBool:(1:_Bool) [line 35, column 17]\n *&n:NSNumber*=n$19 [line 35, column 3]\n EXIT_SCOPE(n$19,n$20,n); [line 35, column 3]\n " shape="box"] +"getBool#Boxing#instance.3315ec58788820860ec4adc889dd7197_4" [label="4: DeclStmt \n n$20=_fun___variable_initialization(&n:NSNumber*) assign_last [line 35, column 3]\n n$19=_fun_NSNumber_numberWithBool:(1:_Bool) [line 35, column 17]\n *&n:NSNumber*=n$19 [line 35, column 3]\n EXIT_SCOPE(n$19,n$20,n); [line 35, column 3]\n " shape="box"] "getBool#Boxing#instance.3315ec58788820860ec4adc889dd7197_4" -> "getBool#Boxing#instance.3315ec58788820860ec4adc889dd7197_3" ; @@ -26,7 +26,7 @@ digraph cfg { "getDouble#Boxing#instance.d2ccf367cc9eb4c0b5e345694f262070_3" -> "getDouble#Boxing#instance.d2ccf367cc9eb4c0b5e345694f262070_2" ; -"getDouble#Boxing#instance.d2ccf367cc9eb4c0b5e345694f262070_4" [label="4: DeclStmt \n n$17=_fun___variable_initialization(&n:NSNumber*) [line 30, column 3]\n n$16=_fun_NSNumber_numberWithDouble:(1.5:double) [line 30, column 17]\n *&n:NSNumber*=n$16 [line 30, column 3]\n EXIT_SCOPE(n$16,n$17,n); [line 30, column 3]\n " shape="box"] +"getDouble#Boxing#instance.d2ccf367cc9eb4c0b5e345694f262070_4" [label="4: DeclStmt \n n$17=_fun___variable_initialization(&n:NSNumber*) assign_last [line 30, column 3]\n n$16=_fun_NSNumber_numberWithDouble:(1.5:double) [line 30, column 17]\n *&n:NSNumber*=n$16 [line 30, column 3]\n EXIT_SCOPE(n$16,n$17,n); [line 30, column 3]\n " shape="box"] "getDouble#Boxing#instance.d2ccf367cc9eb4c0b5e345694f262070_4" -> "getDouble#Boxing#instance.d2ccf367cc9eb4c0b5e345694f262070_3" ; @@ -41,7 +41,7 @@ digraph cfg { "getFloat#Boxing#instance.3de027274316c0cdfd230c6dbd0333a0_3" -> "getFloat#Boxing#instance.3de027274316c0cdfd230c6dbd0333a0_2" ; -"getFloat#Boxing#instance.3de027274316c0cdfd230c6dbd0333a0_4" [label="4: DeclStmt \n n$14=_fun___variable_initialization(&n:NSNumber*) [line 25, column 3]\n n$13=_fun_NSNumber_numberWithFloat:(1.5:float) [line 25, column 17]\n *&n:NSNumber*=n$13 [line 25, column 3]\n EXIT_SCOPE(n$13,n$14,n); [line 25, column 3]\n " shape="box"] +"getFloat#Boxing#instance.3de027274316c0cdfd230c6dbd0333a0_4" [label="4: DeclStmt \n n$14=_fun___variable_initialization(&n:NSNumber*) assign_last [line 25, column 3]\n n$13=_fun_NSNumber_numberWithFloat:(1.5:float) [line 25, column 17]\n *&n:NSNumber*=n$13 [line 25, column 3]\n EXIT_SCOPE(n$13,n$14,n); [line 25, column 3]\n " shape="box"] "getFloat#Boxing#instance.3de027274316c0cdfd230c6dbd0333a0_4" -> "getFloat#Boxing#instance.3de027274316c0cdfd230c6dbd0333a0_3" ; @@ -56,7 +56,7 @@ digraph cfg { "getInt#Boxing#instance.6b1205ea87bb285944ca74c0597dcf85_3" -> "getInt#Boxing#instance.6b1205ea87bb285944ca74c0597dcf85_2" ; -"getInt#Boxing#instance.6b1205ea87bb285944ca74c0597dcf85_4" [label="4: DeclStmt \n n$11=_fun___variable_initialization(&n:NSNumber*) [line 20, column 3]\n n$10=_fun_NSNumber_numberWithInt:(5:int) [line 20, column 17]\n *&n:NSNumber*=n$10 [line 20, column 3]\n EXIT_SCOPE(n$10,n$11,n); [line 20, column 3]\n " shape="box"] +"getInt#Boxing#instance.6b1205ea87bb285944ca74c0597dcf85_4" [label="4: DeclStmt \n n$11=_fun___variable_initialization(&n:NSNumber*) assign_last [line 20, column 3]\n n$10=_fun_NSNumber_numberWithInt:(5:int) [line 20, column 17]\n *&n:NSNumber*=n$10 [line 20, column 3]\n EXIT_SCOPE(n$10,n$11,n); [line 20, column 3]\n " shape="box"] "getInt#Boxing#instance.6b1205ea87bb285944ca74c0597dcf85_4" -> "getInt#Boxing#instance.6b1205ea87bb285944ca74c0597dcf85_3" ; @@ -71,15 +71,15 @@ digraph cfg { "getIntExp#Boxing#instance.1230c4f8d594629f186c72bd450c75b1_3" -> "getIntExp#Boxing#instance.1230c4f8d594629f186c72bd450c75b1_2" ; -"getIntExp#Boxing#instance.1230c4f8d594629f186c72bd450c75b1_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&n:NSNumber*) [line 15, column 3]\n n$3=*&x:int [line 15, column 41]\n n$4=*&y:int [line 15, column 45]\n n$5=_fun_NSNumber_numberWithInt:((n$3 + n$4):int) [line 15, column 17]\n *&n:NSNumber*=n$5 [line 15, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,n$6,n); [line 15, column 3]\n " shape="box"] +"getIntExp#Boxing#instance.1230c4f8d594629f186c72bd450c75b1_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&n:NSNumber*) assign_last [line 15, column 3]\n n$3=*&x:int [line 15, column 41]\n n$4=*&y:int [line 15, column 45]\n n$5=_fun_NSNumber_numberWithInt:((n$3 + n$4):int) [line 15, column 17]\n *&n:NSNumber*=n$5 [line 15, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,n$6,n); [line 15, column 3]\n " shape="box"] "getIntExp#Boxing#instance.1230c4f8d594629f186c72bd450c75b1_4" -> "getIntExp#Boxing#instance.1230c4f8d594629f186c72bd450c75b1_3" ; -"getIntExp#Boxing#instance.1230c4f8d594629f186c72bd450c75b1_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&y:int) [line 14, column 3]\n *&y:int=5 [line 14, column 3]\n EXIT_SCOPE(n$7); [line 14, column 3]\n " shape="box"] +"getIntExp#Boxing#instance.1230c4f8d594629f186c72bd450c75b1_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&y:int) assign_last [line 14, column 3]\n *&y:int=5 [line 14, column 3]\n EXIT_SCOPE(n$7); [line 14, column 3]\n " shape="box"] "getIntExp#Boxing#instance.1230c4f8d594629f186c72bd450c75b1_5" -> "getIntExp#Boxing#instance.1230c4f8d594629f186c72bd450c75b1_4" ; -"getIntExp#Boxing#instance.1230c4f8d594629f186c72bd450c75b1_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&x:int) [line 13, column 3]\n *&x:int=4 [line 13, column 3]\n EXIT_SCOPE(n$8); [line 13, column 3]\n " shape="box"] +"getIntExp#Boxing#instance.1230c4f8d594629f186c72bd450c75b1_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&x:int) assign_last [line 13, column 3]\n *&x:int=4 [line 13, column 3]\n EXIT_SCOPE(n$8); [line 13, column 3]\n " shape="box"] "getIntExp#Boxing#instance.1230c4f8d594629f186c72bd450c75b1_6" -> "getIntExp#Boxing#instance.1230c4f8d594629f186c72bd450c75b1_5" ; @@ -94,7 +94,7 @@ digraph cfg { "getS#Boxing#instance.97ccd331527b54376eb9b2b822cb25a3_3" -> "getS#Boxing#instance.97ccd331527b54376eb9b2b822cb25a3_2" ; -"getS#Boxing#instance.97ccd331527b54376eb9b2b822cb25a3_4" [label="4: DeclStmt \n n$25=_fun___variable_initialization(&s:NSString*) [line 40, column 3]\n n$23=_fun_strdup((char const *)\"hello world\":char const *) [line 40, column 19]\n n$24=_fun_NSString_stringWithUTF8String:((char const *)n$23:char const *) [line 40, column 17]\n *&s:NSString*=n$24 [line 40, column 3]\n EXIT_SCOPE(n$23,n$24,n$25,s); [line 40, column 3]\n " shape="box"] +"getS#Boxing#instance.97ccd331527b54376eb9b2b822cb25a3_4" [label="4: DeclStmt \n n$25=_fun___variable_initialization(&s:NSString*) assign_last [line 40, column 3]\n n$23=_fun_strdup((char const *)\"hello world\":char const *) [line 40, column 19]\n n$24=_fun_NSString_stringWithUTF8String:((char const *)n$23:char const *) [line 40, column 17]\n *&s:NSString*=n$24 [line 40, column 3]\n EXIT_SCOPE(n$23,n$24,n$25,s); [line 40, column 3]\n " shape="box"] "getS#Boxing#instance.97ccd331527b54376eb9b2b822cb25a3_4" -> "getS#Boxing#instance.97ccd331527b54376eb9b2b822cb25a3_3" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/boxing/array.m.dot b/infer/tests/codetoanalyze/objc/frontend/boxing/array.m.dot index c467a230c..885e7bd73 100644 --- a/infer/tests/codetoanalyze/objc/frontend/boxing/array.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/boxing/array.m.dot @@ -44,7 +44,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_11" -> "main.fad58de7366495db4650cfefac2fcd61_10" ; -"main.fad58de7366495db4650cfefac2fcd61_12" [label="12: DeclStmt \n n$18=_fun___variable_initialization(&germanCars:NSArray*) [line 14, column 3]\n n$16=_fun_NSString_stringWithUTF8String:(\"Mercedes-Benz\":char* const ) [line 15, column 5]\n n$11=_fun_NSString_stringWithUTF8String:(\"BMW\":char* const ) [line 16, column 5]\n n$12=_fun_NSString_stringWithUTF8String:(\"Porsche\":char* const ) [line 17, column 5]\n n$13=_fun_NSString_stringWithUTF8String:(\"Opel\":char* const ) [line 18, column 5]\n n$14=_fun_NSString_stringWithUTF8String:(\"Volkswagen\":char* const ) [line 19, column 5]\n n$15=_fun_NSString_stringWithUTF8String:(\"Audi\":char* const ) [line 20, column 5]\n n$17=_fun_NSArray_arrayWithObjects:count:(n$16:objc_object*,n$11:objc_object*,n$12:objc_object*,n$13:objc_object*,n$14:objc_object*,n$15:objc_object*,null:objc_object*) [line 14, column 25]\n *&germanCars:NSArray*=n$17 [line 14, column 3]\n EXIT_SCOPE(n$11,n$12,n$13,n$14,n$15,n$16,n$17,n$18); [line 14, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_12" [label="12: DeclStmt \n n$18=_fun___variable_initialization(&germanCars:NSArray*) assign_last [line 14, column 3]\n n$16=_fun_NSString_stringWithUTF8String:(\"Mercedes-Benz\":char* const ) [line 15, column 5]\n n$11=_fun_NSString_stringWithUTF8String:(\"BMW\":char* const ) [line 16, column 5]\n n$12=_fun_NSString_stringWithUTF8String:(\"Porsche\":char* const ) [line 17, column 5]\n n$13=_fun_NSString_stringWithUTF8String:(\"Opel\":char* const ) [line 18, column 5]\n n$14=_fun_NSString_stringWithUTF8String:(\"Volkswagen\":char* const ) [line 19, column 5]\n n$15=_fun_NSString_stringWithUTF8String:(\"Audi\":char* const ) [line 20, column 5]\n n$17=_fun_NSArray_arrayWithObjects:count:(n$16:objc_object*,n$11:objc_object*,n$12:objc_object*,n$13:objc_object*,n$14:objc_object*,n$15:objc_object*,null:objc_object*) [line 14, column 25]\n *&germanCars:NSArray*=n$17 [line 14, column 3]\n EXIT_SCOPE(n$11,n$12,n$13,n$14,n$15,n$16,n$17,n$18); [line 14, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_12" -> "main.fad58de7366495db4650cfefac2fcd61_11" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/boxing/array_literal.c.dot b/infer/tests/codetoanalyze/objc/frontend/boxing/array_literal.c.dot index 514bb356f..174db76ea 100644 --- a/infer/tests/codetoanalyze/objc/frontend/boxing/array_literal.c.dot +++ b/infer/tests/codetoanalyze/objc/frontend/boxing/array_literal.c.dot @@ -11,7 +11,7 @@ digraph cfg { "get_array.bca6b16c85e5b8ba530f380271b2ec79_3" -> "get_array.bca6b16c85e5b8ba530f380271b2ec79_2" ; -"get_array.bca6b16c85e5b8ba530f380271b2ec79_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&animals:NSArray*) [line 11, column 3]\n n$4=_fun_NSString_stringWithUTF8String:(\"cat\":char* const ) [line 11, column 48]\n n$3=_fun_NSString_stringWithUTF8String:(\"dog\":char* const ) [line 11, column 56]\n n$5=_fun_NSArray_arrayWithObjects:(n$4:objc_object*,n$3:NSString*,null:void*) [line 11, column 22]\n *&animals:NSArray*=n$5 [line 11, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,n$6,animals); [line 11, column 3]\n " shape="box"] +"get_array.bca6b16c85e5b8ba530f380271b2ec79_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&animals:NSArray*) assign_last [line 11, column 3]\n n$4=_fun_NSString_stringWithUTF8String:(\"cat\":char* const ) [line 11, column 48]\n n$3=_fun_NSString_stringWithUTF8String:(\"dog\":char* const ) [line 11, column 56]\n n$5=_fun_NSArray_arrayWithObjects:(n$4:objc_object*,n$3:NSString*,null:void*) [line 11, column 22]\n *&animals:NSArray*=n$5 [line 11, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,n$6,animals); [line 11, column 3]\n " shape="box"] "get_array.bca6b16c85e5b8ba530f380271b2ec79_4" -> "get_array.bca6b16c85e5b8ba530f380271b2ec79_3" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/exceptions/ExceptionExample.m.dot b/infer/tests/codetoanalyze/objc/frontend/exceptions/ExceptionExample.m.dot index dfc1266fc..c9ada5e27 100644 --- a/infer/tests/codetoanalyze/objc/frontend/exceptions/ExceptionExample.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/exceptions/ExceptionExample.m.dot @@ -11,7 +11,7 @@ digraph cfg { "test#ExceptionExample#instance.513cde8d794322493646dbd1821516dd_3" -> "test#ExceptionExample#instance.513cde8d794322493646dbd1821516dd_2" ; -"test#ExceptionExample#instance.513cde8d794322493646dbd1821516dd_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&s:NSString*) [line 18, column 5]\n n$3=_fun___objc_alloc_no_fail(sizeof(t=NSString):unsigned long) [line 18, column 19]\n *&s:NSString*=n$3 [line 18, column 5]\n EXIT_SCOPE(n$3,n$4,s); [line 18, column 5]\n " shape="box"] +"test#ExceptionExample#instance.513cde8d794322493646dbd1821516dd_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&s:NSString*) assign_last [line 18, column 5]\n n$3=_fun___objc_alloc_no_fail(sizeof(t=NSString):unsigned long) [line 18, column 19]\n *&s:NSString*=n$3 [line 18, column 5]\n EXIT_SCOPE(n$3,n$4,s); [line 18, column 5]\n " shape="box"] "test#ExceptionExample#instance.513cde8d794322493646dbd1821516dd_4" -> "test#ExceptionExample#instance.513cde8d794322493646dbd1821516dd_3" ; @@ -42,7 +42,7 @@ digraph cfg { "test1#ExceptionExample#instance.400b3bc567ff814f7f6788584460738f_7" -> "test1#ExceptionExample#instance.400b3bc567ff814f7f6788584460738f_3" ; -"test1#ExceptionExample#instance.400b3bc567ff814f7f6788584460738f_8" [label="8: DeclStmt \n n$13=_fun___variable_initialization(&s:NSString*) [line 26, column 3]\n n$12=_fun___objc_alloc_no_fail(sizeof(t=NSString):unsigned long) [line 26, column 17]\n *&s:NSString*=n$12 [line 26, column 3]\n EXIT_SCOPE(n$12,n$13); [line 26, column 3]\n " shape="box"] +"test1#ExceptionExample#instance.400b3bc567ff814f7f6788584460738f_8" [label="8: DeclStmt \n n$13=_fun___variable_initialization(&s:NSString*) assign_last [line 26, column 3]\n n$12=_fun___objc_alloc_no_fail(sizeof(t=NSString):unsigned long) [line 26, column 17]\n *&s:NSString*=n$12 [line 26, column 3]\n EXIT_SCOPE(n$12,n$13); [line 26, column 3]\n " shape="box"] "test1#ExceptionExample#instance.400b3bc567ff814f7f6788584460738f_8" -> "test1#ExceptionExample#instance.400b3bc567ff814f7f6788584460738f_5" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/fast_enumeration/Fast_enumeration.m.dot b/infer/tests/codetoanalyze/objc/frontend/fast_enumeration/Fast_enumeration.m.dot index c2b279b07..8ae17a224 100644 --- a/infer/tests/codetoanalyze/objc/frontend/fast_enumeration/Fast_enumeration.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/fast_enumeration/Fast_enumeration.m.dot @@ -40,7 +40,7 @@ digraph cfg { "fast_loop:#A(class NSArray)#instance.26b39d1106e4365a40bc2f6305401611_10" -> "fast_loop:#A(class NSArray)#instance.26b39d1106e4365a40bc2f6305401611_4" ; -"fast_loop:#A(class NSArray)#instance.26b39d1106e4365a40bc2f6305401611_11" [label="11: DeclStmt \n n$10=_fun___variable_initialization(&size:int) [line 20, column 3]\n *&size:int=0 [line 20, column 3]\n EXIT_SCOPE(n$10); [line 20, column 3]\n " shape="box"] +"fast_loop:#A(class NSArray)#instance.26b39d1106e4365a40bc2f6305401611_11" [label="11: DeclStmt \n n$10=_fun___variable_initialization(&size:int) assign_last [line 20, column 3]\n *&size:int=0 [line 20, column 3]\n EXIT_SCOPE(n$10); [line 20, column 3]\n " shape="box"] "fast_loop:#A(class NSArray)#instance.26b39d1106e4365a40bc2f6305401611_11" -> "fast_loop:#A(class NSArray)#instance.26b39d1106e4365a40bc2f6305401611_10" ; @@ -80,7 +80,7 @@ digraph cfg { "fast_loop_no_crash#A#instance.eaee56a1051009329a3989c3a10fb432_9" -> "fast_loop_no_crash#A#instance.eaee56a1051009329a3989c3a10fb432_3" ; -"fast_loop_no_crash#A#instance.eaee56a1051009329a3989c3a10fb432_10" [label="10: DeclStmt \n n$31=_fun___variable_initialization(&obj:objc_object*) [line 37, column 3]\n *&obj:objc_object*=null [line 37, column 3]\n EXIT_SCOPE(n$31,obj); [line 37, column 3]\n " shape="box"] +"fast_loop_no_crash#A#instance.eaee56a1051009329a3989c3a10fb432_10" [label="10: DeclStmt \n n$31=_fun___variable_initialization(&obj:objc_object*) assign_last [line 37, column 3]\n *&obj:objc_object*=null [line 37, column 3]\n EXIT_SCOPE(n$31,obj); [line 37, column 3]\n " shape="box"] "fast_loop_no_crash#A#instance.eaee56a1051009329a3989c3a10fb432_10" -> "fast_loop_no_crash#A#instance.eaee56a1051009329a3989c3a10fb432_9" ; @@ -116,11 +116,11 @@ digraph cfg { "while_loop:#A(class NSArray)#instance.225f55f19f886cfaa14fc056eca2399b_8" -> "while_loop:#A(class NSArray)#instance.225f55f19f886cfaa14fc056eca2399b_4" ; -"while_loop:#A(class NSArray)#instance.225f55f19f886cfaa14fc056eca2399b_9" [label="9: DeclStmt \n n$19=_fun___variable_initialization(&item:NSArray*) [line 29, column 3]\n *&item:NSArray*=null [line 29, column 3]\n EXIT_SCOPE(n$19,item); [line 29, column 3]\n APPLY_ABSTRACTION; [line 29, column 3]\n " shape="box"] +"while_loop:#A(class NSArray)#instance.225f55f19f886cfaa14fc056eca2399b_9" [label="9: DeclStmt \n n$19=_fun___variable_initialization(&item:NSArray*) assign_last [line 29, column 3]\n *&item:NSArray*=null [line 29, column 3]\n EXIT_SCOPE(n$19,item); [line 29, column 3]\n APPLY_ABSTRACTION; [line 29, column 3]\n " shape="box"] "while_loop:#A(class NSArray)#instance.225f55f19f886cfaa14fc056eca2399b_9" -> "while_loop:#A(class NSArray)#instance.225f55f19f886cfaa14fc056eca2399b_4" ; -"while_loop:#A(class NSArray)#instance.225f55f19f886cfaa14fc056eca2399b_10" [label="10: DeclStmt \n n$20=_fun___variable_initialization(&size:int) [line 28, column 3]\n *&size:int=0 [line 28, column 3]\n EXIT_SCOPE(n$20); [line 28, column 3]\n " shape="box"] +"while_loop:#A(class NSArray)#instance.225f55f19f886cfaa14fc056eca2399b_10" [label="10: DeclStmt \n n$20=_fun___variable_initialization(&size:int) assign_last [line 28, column 3]\n *&size:int=0 [line 28, column 3]\n EXIT_SCOPE(n$20); [line 28, column 3]\n " shape="box"] "while_loop:#A(class NSArray)#instance.225f55f19f886cfaa14fc056eca2399b_10" -> "while_loop:#A(class NSArray)#instance.225f55f19f886cfaa14fc056eca2399b_9" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/property/main_car.m.dot b/infer/tests/codetoanalyze/objc/frontend/property/main_car.m.dot index a3850dcf8..e79cbe6e1 100644 --- a/infer/tests/codetoanalyze/objc/frontend/property/main_car.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/property/main_car.m.dot @@ -19,7 +19,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_5" -> "main.fad58de7366495db4650cfefac2fcd61_4" ; -"main.fad58de7366495db4650cfefac2fcd61_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&honda:Car*) [line 11, column 3]\n n$6=_fun___objc_alloc_no_fail(sizeof(t=Car):unsigned long) [line 11, column 17]\n n$7=_fun_NSObject_init(n$6:Car*) virtual [line 11, column 16]\n *&honda:Car*=n$7 [line 11, column 3]\n EXIT_SCOPE(n$6,n$7,n$8); [line 11, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_6" [label="6: DeclStmt \n n$8=_fun___variable_initialization(&honda:Car*) assign_last [line 11, column 3]\n n$6=_fun___objc_alloc_no_fail(sizeof(t=Car):unsigned long) [line 11, column 17]\n n$7=_fun_NSObject_init(n$6:Car*) virtual [line 11, column 16]\n *&honda:Car*=n$7 [line 11, column 3]\n EXIT_SCOPE(n$6,n$7,n$8); [line 11, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_6" -> "main.fad58de7366495db4650cfefac2fcd61_5" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/returnstmt/void_return.m.dot b/infer/tests/codetoanalyze/objc/frontend/returnstmt/void_return.m.dot index 09a2beb9c..7ffaec31b 100644 --- a/infer/tests/codetoanalyze/objc/frontend/returnstmt/void_return.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/returnstmt/void_return.m.dot @@ -53,11 +53,11 @@ digraph cfg { "aMethod#MyClass#instance.af06019e61fb7341a36c141ed90caaaf_13" -> "aMethod#MyClass#instance.af06019e61fb7341a36c141ed90caaaf_2" ; -"aMethod#MyClass#instance.af06019e61fb7341a36c141ed90caaaf_14" [label="14: DeclStmt \n n$8=_fun___variable_initialization(&j:int) [line 18, column 3]\n *&j:int=0 [line 18, column 3]\n EXIT_SCOPE(n$8); [line 18, column 3]\n " shape="box"] +"aMethod#MyClass#instance.af06019e61fb7341a36c141ed90caaaf_14" [label="14: DeclStmt \n n$8=_fun___variable_initialization(&j:int) assign_last [line 18, column 3]\n *&j:int=0 [line 18, column 3]\n EXIT_SCOPE(n$8); [line 18, column 3]\n " shape="box"] "aMethod#MyClass#instance.af06019e61fb7341a36c141ed90caaaf_14" -> "aMethod#MyClass#instance.af06019e61fb7341a36c141ed90caaaf_10" ; -"aMethod#MyClass#instance.af06019e61fb7341a36c141ed90caaaf_15" [label="15: DeclStmt \n n$9=_fun___variable_initialization(&i:int) [line 17, column 3]\n *&i:int=0 [line 17, column 3]\n EXIT_SCOPE(n$9); [line 17, column 3]\n " shape="box"] +"aMethod#MyClass#instance.af06019e61fb7341a36c141ed90caaaf_15" [label="15: DeclStmt \n n$9=_fun___variable_initialization(&i:int) assign_last [line 17, column 3]\n *&i:int=0 [line 17, column 3]\n EXIT_SCOPE(n$9); [line 17, column 3]\n " shape="box"] "aMethod#MyClass#instance.af06019e61fb7341a36c141ed90caaaf_15" -> "aMethod#MyClass#instance.af06019e61fb7341a36c141ed90caaaf_14" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/self_static/Self.m.dot b/infer/tests/codetoanalyze/objc/frontend/self_static/Self.m.dot index e3c881ca6..4936fe84f 100644 --- a/infer/tests/codetoanalyze/objc/frontend/self_static/Self.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/self_static/Self.m.dot @@ -27,7 +27,7 @@ digraph cfg { "class_method_in_conditional.2a19b0bd8eafdb3235f52585a49ef84a_7" -> "class_method_in_conditional.2a19b0bd8eafdb3235f52585a49ef84a_2" ; -"class_method_in_conditional.2a19b0bd8eafdb3235f52585a49ef84a_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&c:objc_class*) [line 103, column 3]\n n$3=_fun_foo() [line 103, column 13]\n *&c:objc_class*=n$3 [line 103, column 3]\n EXIT_SCOPE(n$3,n$4,c); [line 103, column 3]\n " shape="box"] +"class_method_in_conditional.2a19b0bd8eafdb3235f52585a49ef84a_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&c:objc_class*) assign_last [line 103, column 3]\n n$3=_fun_foo() [line 103, column 13]\n *&c:objc_class*=n$3 [line 103, column 3]\n EXIT_SCOPE(n$3,n$4,c); [line 103, column 3]\n " shape="box"] "class_method_in_conditional.2a19b0bd8eafdb3235f52585a49ef84a_8" -> "class_method_in_conditional.2a19b0bd8eafdb3235f52585a49ef84a_5" ; @@ -105,7 +105,7 @@ digraph cfg { "class_method_fst_arg_of_class_method_inside_instance_method#A#class.7bda69c598fb7e024d776cec3122e2a6_10" -> "class_method_fst_arg_of_class_method_inside_instance_method#A#class.7bda69c598fb7e024d776cec3122e2a6_3" ; -"class_method_fst_arg_of_class_method_inside_instance_method#A#class.7bda69c598fb7e024d776cec3122e2a6_11" [label="11: DeclStmt \n n$38=_fun___variable_initialization(&stringsBundlePath:NSString*) [line 116, column 3]\n n$36=_fun_NSBundle_bundleForClass:(sizeof(t=B):unsigned long) [line 117, column 8]\n n$34=_fun_NSString_stringWithUTF8String:(\"Strings\":char* const ) [line 117, column 60]\n n$35=_fun_NSString_stringWithUTF8String:(\"bundle\":char* const ) [line 118, column 60]\n n$37=_fun_NSBundle_pathForResource:ofType:(n$36:NSBundle*,n$34:NSString*,n$35:NSString*) virtual [line 117, column 7]\n *&stringsBundlePath:NSString*=n$37 [line 116, column 3]\n EXIT_SCOPE(n$34,n$35,n$36,n$37,n$38); [line 116, column 3]\n " shape="box"] +"class_method_fst_arg_of_class_method_inside_instance_method#A#class.7bda69c598fb7e024d776cec3122e2a6_11" [label="11: DeclStmt \n n$38=_fun___variable_initialization(&stringsBundlePath:NSString*) assign_last [line 116, column 3]\n n$36=_fun_NSBundle_bundleForClass:(sizeof(t=B):unsigned long) [line 117, column 8]\n n$34=_fun_NSString_stringWithUTF8String:(\"Strings\":char* const ) [line 117, column 60]\n n$35=_fun_NSString_stringWithUTF8String:(\"bundle\":char* const ) [line 118, column 60]\n n$37=_fun_NSBundle_pathForResource:ofType:(n$36:NSBundle*,n$34:NSString*,n$35:NSString*) virtual [line 117, column 7]\n *&stringsBundlePath:NSString*=n$37 [line 116, column 3]\n EXIT_SCOPE(n$34,n$35,n$36,n$37,n$38); [line 116, column 3]\n " shape="box"] "class_method_fst_arg_of_class_method_inside_instance_method#A#class.7bda69c598fb7e024d776cec3122e2a6_11" -> "class_method_fst_arg_of_class_method_inside_instance_method#A#class.7bda69c598fb7e024d776cec3122e2a6_9" ; @@ -240,7 +240,7 @@ digraph cfg { "t#A#instance.e31b9a7bced712626784e2860af1a31b_3" -> "t#A#instance.e31b9a7bced712626784e2860af1a31b_2" ; -"t#A#instance.e31b9a7bced712626784e2860af1a31b_4" [label="4: DeclStmt \n n$15=_fun___variable_initialization(&b:B*) [line 73, column 3]\n n$13=_fun___objc_alloc_no_fail(sizeof(t=B):unsigned long) [line 73, column 10]\n n$14=_fun_NSObject_init(n$13:B*) virtual [line 73, column 10]\n *&b:B*=n$14 [line 73, column 3]\n EXIT_SCOPE(n$13,n$14,n$15,b); [line 73, column 3]\n " shape="box"] +"t#A#instance.e31b9a7bced712626784e2860af1a31b_4" [label="4: DeclStmt \n n$15=_fun___variable_initialization(&b:B*) assign_last [line 73, column 3]\n n$13=_fun___objc_alloc_no_fail(sizeof(t=B):unsigned long) [line 73, column 10]\n n$14=_fun_NSObject_init(n$13:B*) virtual [line 73, column 10]\n *&b:B*=n$14 [line 73, column 3]\n EXIT_SCOPE(n$13,n$14,n$15,b); [line 73, column 3]\n " shape="box"] "t#A#instance.e31b9a7bced712626784e2860af1a31b_4" -> "t#A#instance.e31b9a7bced712626784e2860af1a31b_3" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/self_static/static.m.dot b/infer/tests/codetoanalyze/objc/frontend/self_static/static.m.dot index 0d3d79ddc..5d573f4ca 100644 --- a/infer/tests/codetoanalyze/objc/frontend/self_static/static.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/self_static/static.m.dot @@ -7,7 +7,7 @@ digraph cfg { "aClassMethod#MyClass#class.889732ffd1b4632cdd7c3f47090e69c0_2" [label="2: Exit MyClass_aClassMethod \n NULLIFY(&myClass); [line 20, column 1]\n " color=yellow style=filled] -"aClassMethod#MyClass#class.889732ffd1b4632cdd7c3f47090e69c0_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&myClass:MyClass*) [line 19, column 3]\n n$0=_fun___objc_alloc_no_fail(sizeof(t=MyClass):unsigned long) [line 19, column 22]\n *&myClass:MyClass*=n$0 [line 19, column 3]\n EXIT_SCOPE(n$0,n$1,myClass); [line 19, column 3]\n APPLY_ABSTRACTION; [line 19, column 3]\n " shape="box"] +"aClassMethod#MyClass#class.889732ffd1b4632cdd7c3f47090e69c0_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&myClass:MyClass*) assign_last [line 19, column 3]\n n$0=_fun___objc_alloc_no_fail(sizeof(t=MyClass):unsigned long) [line 19, column 22]\n *&myClass:MyClass*=n$0 [line 19, column 3]\n EXIT_SCOPE(n$0,n$1,myClass); [line 19, column 3]\n APPLY_ABSTRACTION; [line 19, column 3]\n " shape="box"] "aClassMethod#MyClass#class.889732ffd1b4632cdd7c3f47090e69c0_3" -> "aClassMethod#MyClass#class.889732ffd1b4632cdd7c3f47090e69c0_2" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/strings/global_string_literal.m.dot b/infer/tests/codetoanalyze/objc/frontend/strings/global_string_literal.m.dot index a61cbdb72..d710aaac0 100644 --- a/infer/tests/codetoanalyze/objc/frontend/strings/global_string_literal.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/strings/global_string_literal.m.dot @@ -7,7 +7,7 @@ digraph cfg { "__infer_globals_initializer_lastName.ab5584b9c7a64c926bfb635dcb73a207_2" [label="2: Exit __infer_globals_initializer_lastName \n " color=yellow style=filled] -"__infer_globals_initializer_lastName.ab5584b9c7a64c926bfb635dcb73a207_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&#GB$lastName:NSString*) [line 10, column 1]\n n$0=_fun_NSString_stringWithUTF8String:(\"Rodriguez\":char* const ) [line 10, column 22]\n *&#GB$lastName:NSString*=n$0 [line 10, column 1]\n EXIT_SCOPE(n$0,n$1); [line 10, column 1]\n APPLY_ABSTRACTION; [line 10, column 1]\n " shape="box"] +"__infer_globals_initializer_lastName.ab5584b9c7a64c926bfb635dcb73a207_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&#GB$lastName:NSString*) assign_last [line 10, column 1]\n n$0=_fun_NSString_stringWithUTF8String:(\"Rodriguez\":char* const ) [line 10, column 22]\n *&#GB$lastName:NSString*=n$0 [line 10, column 1]\n EXIT_SCOPE(n$0,n$1); [line 10, column 1]\n APPLY_ABSTRACTION; [line 10, column 1]\n " shape="box"] "__infer_globals_initializer_lastName.ab5584b9c7a64c926bfb635dcb73a207_3" -> "__infer_globals_initializer_lastName.ab5584b9c7a64c926bfb635dcb73a207_2" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/strings/string_literal.m.dot b/infer/tests/codetoanalyze/objc/frontend/strings/string_literal.m.dot index ad408e3bb..d5de7d64f 100644 --- a/infer/tests/codetoanalyze/objc/frontend/strings/string_literal.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/strings/string_literal.m.dot @@ -11,7 +11,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; -"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&lastName:NSString*) [line 11, column 3]\n n$0=_fun_NSString_stringWithUTF8String:(\"Rodriguez\":char* const ) [line 11, column 24]\n *&lastName:NSString*=n$0 [line 11, column 3]\n EXIT_SCOPE(n$0,n$1,lastName); [line 11, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&lastName:NSString*) assign_last [line 11, column 3]\n n$0=_fun_NSString_stringWithUTF8String:(\"Rodriguez\":char* const ) [line 11, column 24]\n *&lastName:NSString*=n$0 [line 11, column 3]\n EXIT_SCOPE(n$0,n$1,lastName); [line 11, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/subclass/MySubClass.m.dot b/infer/tests/codetoanalyze/objc/frontend/subclass/MySubClass.m.dot index 583db8323..a2994780d 100644 --- a/infer/tests/codetoanalyze/objc/frontend/subclass/MySubClass.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/subclass/MySubClass.m.dot @@ -11,7 +11,7 @@ digraph cfg { "myNumber#MySubclass#instance.8e9ae0ac35cf895ff25e7570cdce81aa_3" -> "myNumber#MySubclass#instance.8e9ae0ac35cf895ff25e7570cdce81aa_2" ; -"myNumber#MySubclass#instance.8e9ae0ac35cf895ff25e7570cdce81aa_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&subclassNumber:int) [line 15, column 3]\n n$1=*&self:MySubclass* [line 15, column 24]\n n$2=_fun_MyClass_myNumber(n$1:MySubclass*) [line 15, column 24]\n *&subclassNumber:int=(n$2 + 1) [line 15, column 3]\n NULLIFY(&self); [line 15, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,self); [line 15, column 3]\n " shape="box"] +"myNumber#MySubclass#instance.8e9ae0ac35cf895ff25e7570cdce81aa_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&subclassNumber:int) assign_last [line 15, column 3]\n n$1=*&self:MySubclass* [line 15, column 24]\n n$2=_fun_MyClass_myNumber(n$1:MySubclass*) [line 15, column 24]\n *&subclassNumber:int=(n$2 + 1) [line 15, column 3]\n NULLIFY(&self); [line 15, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,self); [line 15, column 3]\n " shape="box"] "myNumber#MySubclass#instance.8e9ae0ac35cf895ff25e7570cdce81aa_4" -> "myNumber#MySubclass#instance.8e9ae0ac35cf895ff25e7570cdce81aa_3" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/subclass/main.c.dot b/infer/tests/codetoanalyze/objc/frontend/subclass/main.c.dot index 0f2a5b2fc..8817fbe26 100644 --- a/infer/tests/codetoanalyze/objc/frontend/subclass/main.c.dot +++ b/infer/tests/codetoanalyze/objc/frontend/subclass/main.c.dot @@ -11,7 +11,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; -"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:A*) [line 11, column 3]\n n$0=_fun___objc_alloc_no_fail(sizeof(t=A):unsigned long) [line 11, column 11]\n n$1=_fun_NSObject_init(n$0:A*) virtual [line 11, column 10]\n *&a:A*=n$1 [line 11, column 3]\n EXIT_SCOPE(n$0,n$1,n$2,a); [line 11, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:A*) assign_last [line 11, column 3]\n n$0=_fun___objc_alloc_no_fail(sizeof(t=A):unsigned long) [line 11, column 11]\n n$1=_fun_NSObject_init(n$0:A*) virtual [line 11, column 10]\n *&a:A*=n$1 [line 11, column 3]\n EXIT_SCOPE(n$0,n$1,n$2,a); [line 11, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/types/attributes.m.dot b/infer/tests/codetoanalyze/objc/frontend/types/attributes.m.dot index 475e1d2cb..1c6ec7661 100644 --- a/infer/tests/codetoanalyze/objc/frontend/types/attributes.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/types/attributes.m.dot @@ -35,23 +35,23 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_9" -> "main.fad58de7366495db4650cfefac2fcd61_8" ; -"main.fad58de7366495db4650cfefac2fcd61_10" [label="10: DeclStmt \n n$5=_fun___variable_initialization(&aStdRef:A*) [line 24, column 3]\n *&aStdRef:A*=null [line 24, column 3]\n EXIT_SCOPE(n$5,aStdRef); [line 24, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_10" [label="10: DeclStmt \n n$5=_fun___variable_initialization(&aStdRef:A*) assign_last [line 24, column 3]\n *&aStdRef:A*=null [line 24, column 3]\n EXIT_SCOPE(n$5,aStdRef); [line 24, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_10" -> "main.fad58de7366495db4650cfefac2fcd61_9" ; -"main.fad58de7366495db4650cfefac2fcd61_11" [label="11: DeclStmt \n n$6=_fun___variable_initialization(&anAutoRelRef:A__autoreleasing *) [line 23, column 3]\n *&anAutoRelRef:A__autoreleasing *=null [line 23, column 3]\n EXIT_SCOPE(n$6,anAutoRelRef); [line 23, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_11" [label="11: DeclStmt \n n$6=_fun___variable_initialization(&anAutoRelRef:A__autoreleasing *) assign_last [line 23, column 3]\n *&anAutoRelRef:A__autoreleasing *=null [line 23, column 3]\n EXIT_SCOPE(n$6,anAutoRelRef); [line 23, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_11" -> "main.fad58de7366495db4650cfefac2fcd61_10" ; -"main.fad58de7366495db4650cfefac2fcd61_12" [label="12: DeclStmt \n n$7=_fun___variable_initialization(&anUnsafeUnretRef:A__unsafe_unretained *) [line 22, column 3]\n *&anUnsafeUnretRef:A__unsafe_unretained *=null [line 22, column 3]\n EXIT_SCOPE(n$7,anUnsafeUnretRef); [line 22, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_12" [label="12: DeclStmt \n n$7=_fun___variable_initialization(&anUnsafeUnretRef:A__unsafe_unretained *) assign_last [line 22, column 3]\n *&anUnsafeUnretRef:A__unsafe_unretained *=null [line 22, column 3]\n EXIT_SCOPE(n$7,anUnsafeUnretRef); [line 22, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_12" -> "main.fad58de7366495db4650cfefac2fcd61_11" ; -"main.fad58de7366495db4650cfefac2fcd61_13" [label="13: DeclStmt \n n$8=_fun___variable_initialization(&aStrongRef:A*) [line 21, column 3]\n *&aStrongRef:A*=null [line 21, column 3]\n EXIT_SCOPE(n$8,aStrongRef); [line 21, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_13" [label="13: DeclStmt \n n$8=_fun___variable_initialization(&aStrongRef:A*) assign_last [line 21, column 3]\n *&aStrongRef:A*=null [line 21, column 3]\n EXIT_SCOPE(n$8,aStrongRef); [line 21, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_13" -> "main.fad58de7366495db4650cfefac2fcd61_12" ; -"main.fad58de7366495db4650cfefac2fcd61_14" [label="14: DeclStmt \n n$9=_fun___variable_initialization(&aWeakRef:A__weak *) [line 20, column 3]\n *&aWeakRef:A__weak *=null [line 20, column 3]\n EXIT_SCOPE(n$9,aWeakRef); [line 20, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_14" [label="14: DeclStmt \n n$9=_fun___variable_initialization(&aWeakRef:A__weak *) assign_last [line 20, column 3]\n *&aWeakRef:A__weak *=null [line 20, column 3]\n EXIT_SCOPE(n$9,aWeakRef); [line 20, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_14" -> "main.fad58de7366495db4650cfefac2fcd61_13" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/types/testloop.m.dot b/infer/tests/codetoanalyze/objc/frontend/types/testloop.m.dot index 7e19da439..c68a0786d 100644 --- a/infer/tests/codetoanalyze/objc/frontend/types/testloop.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/types/testloop.m.dot @@ -7,7 +7,7 @@ digraph cfg { "__infer_globals_initializer___iPadVideoAdLayout#774934d200ab6ea201ea7444923ebf03.91a439a98050a5c80fe23fc56f573207_2" [label="2: Exit __infer_globals_initializer___iPadVideoAdLayout \n " color=yellow style=filled] -"__infer_globals_initializer___iPadVideoAdLayout#774934d200ab6ea201ea7444923ebf03.91a439a98050a5c80fe23fc56f573207_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&#GB$__iPadVideoAdLayout:FBVideoAdLayout const ) [line 24, column 1]\n *&#GB$__iPadVideoAdLayout.placeHolderWidth:float=554 [line 24, column 52]\n *&#GB$__iPadVideoAdLayout.placeHolderHeight:float=350 [line 24, column 52]\n *&#GB$__iPadVideoAdLayout.contentLeftSidePadding:float=140 [line 24, column 52]\n *&#GB$__iPadVideoAdLayout.contentRightSidePadding:float=60 [line 24, column 52]\n *&#GB$__iPadVideoAdLayout.additionalPlaceholderOffset:float=40 [line 24, column 52]\n *&#GB$__iPadVideoAdLayout.contentGap:float=11 [line 24, column 52]\n EXIT_SCOPE(n$0); [line 24, column 52]\n APPLY_ABSTRACTION; [line 24, column 52]\n " shape="box"] +"__infer_globals_initializer___iPadVideoAdLayout#774934d200ab6ea201ea7444923ebf03.91a439a98050a5c80fe23fc56f573207_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&#GB$__iPadVideoAdLayout:FBVideoAdLayout const ) assign_last [line 24, column 1]\n *&#GB$__iPadVideoAdLayout.placeHolderWidth:float=554 [line 24, column 52]\n *&#GB$__iPadVideoAdLayout.placeHolderHeight:float=350 [line 24, column 52]\n *&#GB$__iPadVideoAdLayout.contentLeftSidePadding:float=140 [line 24, column 52]\n *&#GB$__iPadVideoAdLayout.contentRightSidePadding:float=60 [line 24, column 52]\n *&#GB$__iPadVideoAdLayout.additionalPlaceholderOffset:float=40 [line 24, column 52]\n *&#GB$__iPadVideoAdLayout.contentGap:float=11 [line 24, column 52]\n EXIT_SCOPE(n$0); [line 24, column 52]\n APPLY_ABSTRACTION; [line 24, column 52]\n " shape="box"] "__infer_globals_initializer___iPadVideoAdLayout#774934d200ab6ea201ea7444923ebf03.91a439a98050a5c80fe23fc56f573207_3" -> "__infer_globals_initializer___iPadVideoAdLayout#774934d200ab6ea201ea7444923ebf03.91a439a98050a5c80fe23fc56f573207_2" ; @@ -18,7 +18,7 @@ digraph cfg { "__infer_globals_initializer___iPhoneVideoAdLayout#774934d200ab6ea201ea7444923ebf03.1e6bd750ce4ce65119ad54cee8ee01a8_2" [label="2: Exit __infer_globals_initializer___iPhoneVideoAdLayout \n " color=yellow style=filled] -"__infer_globals_initializer___iPhoneVideoAdLayout#774934d200ab6ea201ea7444923ebf03.1e6bd750ce4ce65119ad54cee8ee01a8_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&#GB$__iPhoneVideoAdLayout:FBVideoAdLayout const ) [line 33, column 1]\n *&#GB$__iPhoneVideoAdLayout.placeHolderWidth:float=244 [line 33, column 54]\n *&#GB$__iPhoneVideoAdLayout.placeHolderHeight:float=175 [line 33, column 54]\n *&#GB$__iPhoneVideoAdLayout.contentLeftSidePadding:float=20 [line 33, column 54]\n *&#GB$__iPhoneVideoAdLayout.contentRightSidePadding:float=20 [line 33, column 54]\n *&#GB$__iPhoneVideoAdLayout.additionalPlaceholderOffset:float=0 [line 33, column 54]\n *&#GB$__iPhoneVideoAdLayout.contentGap:float=7 [line 33, column 54]\n EXIT_SCOPE(n$0); [line 33, column 54]\n APPLY_ABSTRACTION; [line 33, column 54]\n " shape="box"] +"__infer_globals_initializer___iPhoneVideoAdLayout#774934d200ab6ea201ea7444923ebf03.1e6bd750ce4ce65119ad54cee8ee01a8_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&#GB$__iPhoneVideoAdLayout:FBVideoAdLayout const ) assign_last [line 33, column 1]\n *&#GB$__iPhoneVideoAdLayout.placeHolderWidth:float=244 [line 33, column 54]\n *&#GB$__iPhoneVideoAdLayout.placeHolderHeight:float=175 [line 33, column 54]\n *&#GB$__iPhoneVideoAdLayout.contentLeftSidePadding:float=20 [line 33, column 54]\n *&#GB$__iPhoneVideoAdLayout.contentRightSidePadding:float=20 [line 33, column 54]\n *&#GB$__iPhoneVideoAdLayout.additionalPlaceholderOffset:float=0 [line 33, column 54]\n *&#GB$__iPhoneVideoAdLayout.contentGap:float=7 [line 33, column 54]\n EXIT_SCOPE(n$0); [line 33, column 54]\n APPLY_ABSTRACTION; [line 33, column 54]\n " shape="box"] "__infer_globals_initializer___iPhoneVideoAdLayout#774934d200ab6ea201ea7444923ebf03.1e6bd750ce4ce65119ad54cee8ee01a8_3" -> "__infer_globals_initializer___iPhoneVideoAdLayout#774934d200ab6ea201ea7444923ebf03.1e6bd750ce4ce65119ad54cee8ee01a8_2" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/types/void_call.m.dot b/infer/tests/codetoanalyze/objc/frontend/types/void_call.m.dot index 057e24d16..34b3e6ec6 100644 --- a/infer/tests/codetoanalyze/objc/frontend/types/void_call.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/types/void_call.m.dot @@ -53,7 +53,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_8" -> "main.fad58de7366495db4650cfefac2fcd61_7" ; -"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$10=_fun___variable_initialization(&o:AClass*) [line 38, column 3]\n n$9=_fun___objc_alloc_no_fail(sizeof(t=AClass):unsigned long) [line 38, column 15]\n *&o:AClass*=n$9 [line 38, column 3]\n EXIT_SCOPE(n$9,n$10); [line 38, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_9" [label="9: DeclStmt \n n$10=_fun___variable_initialization(&o:AClass*) assign_last [line 38, column 3]\n n$9=_fun___objc_alloc_no_fail(sizeof(t=AClass):unsigned long) [line 38, column 15]\n *&o:AClass*=n$9 [line 38, column 3]\n EXIT_SCOPE(n$9,n$10); [line 38, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_9" -> "main.fad58de7366495db4650cfefac2fcd61_5" ; @@ -66,7 +66,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_11" -> "main.fad58de7366495db4650cfefac2fcd61_10" ; -"main.fad58de7366495db4650cfefac2fcd61_12" [label="12: DeclStmt \n n$15=_fun___variable_initialization(&x:int) [line 33, column 3]\n *&x:int=1 [line 33, column 3]\n EXIT_SCOPE(n$15); [line 33, column 3]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_12" [label="12: DeclStmt \n n$15=_fun___variable_initialization(&x:int) assign_last [line 33, column 3]\n *&x:int=1 [line 33, column 3]\n EXIT_SCOPE(n$15); [line 33, column 3]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_12" -> "main.fad58de7366495db4650cfefac2fcd61_11" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/vardecl/initlist.m.dot b/infer/tests/codetoanalyze/objc/frontend/vardecl/initlist.m.dot index 90fe50e5d..4c5f985b0 100644 --- a/infer/tests/codetoanalyze/objc/frontend/vardecl/initlist.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/vardecl/initlist.m.dot @@ -7,7 +7,7 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_2" [label="2: Exit main \n " color=yellow style=filled] -"main.fad58de7366495db4650cfefac2fcd61_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&a:int[3*4][2*12]) [line 13, column 3]\n n$0=*&z:int [line 13, column 19]\n *&a[0][0]:int=(n$0 + 1) [line 13, column 18]\n *&a[0][1]:int=2 [line 13, column 18]\n *&a[0][2]:int=3 [line 13, column 18]\n *&a[1][0]:int=5 [line 13, column 33]\n *&a[1][1]:int=6 [line 13, column 33]\n *&a[1][2]:int=7 [line 13, column 33]\n NULLIFY(&z); [line 13, column 33]\n NULLIFY(&a); [line 13, column 33]\n EXIT_SCOPE(n$0,n$1,z,a); [line 13, column 33]\n APPLY_ABSTRACTION; [line 13, column 33]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&a:int[3*4][2*12]) assign_last [line 13, column 3]\n n$0=*&z:int [line 13, column 19]\n *&a[0][0]:int=(n$0 + 1) [line 13, column 18]\n *&a[0][1]:int=2 [line 13, column 18]\n *&a[0][2]:int=3 [line 13, column 18]\n *&a[1][0]:int=5 [line 13, column 33]\n *&a[1][1]:int=6 [line 13, column 33]\n *&a[1][2]:int=7 [line 13, column 33]\n NULLIFY(&z); [line 13, column 33]\n NULLIFY(&a); [line 13, column 33]\n EXIT_SCOPE(n$0,n$1,z,a); [line 13, column 33]\n APPLY_ABSTRACTION; [line 13, column 33]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; @@ -29,15 +29,15 @@ digraph cfg { "test.098f6bcd4621d373cade4e832627b4f6_2" [label="2: Exit test \n NULLIFY(&c1); [line 24, column 1]\n NULLIFY(&c2); [line 24, column 1]\n " color=yellow style=filled] -"test.098f6bcd4621d373cade4e832627b4f6_3" [label="3: DeclStmt \n n$4=_fun___variable_initialization(&a:C*[3*8]) [line 23, column 3]\n n$0=*&c1:C* [line 23, column 15]\n n$1=_fun_NSObject_init(n$0:C*) virtual [line 23, column 14]\n *&a[0]:C*=n$1 [line 23, column 13]\n n$2=*&c1:C* [line 23, column 25]\n *&a[1]:C*=n$2 [line 23, column 13]\n n$3=*&c2:C* [line 23, column 29]\n *&a[2]:C*=n$3 [line 23, column 13]\n NULLIFY(&a); [line 23, column 13]\n EXIT_SCOPE(n$0,n$1,n$2,n$3,n$4,c2,a,c1); [line 23, column 13]\n APPLY_ABSTRACTION; [line 23, column 13]\n " shape="box"] +"test.098f6bcd4621d373cade4e832627b4f6_3" [label="3: DeclStmt \n n$4=_fun___variable_initialization(&a:C*[3*8]) assign_last [line 23, column 3]\n n$0=*&c1:C* [line 23, column 15]\n n$1=_fun_NSObject_init(n$0:C*) virtual [line 23, column 14]\n *&a[0]:C*=n$1 [line 23, column 13]\n n$2=*&c1:C* [line 23, column 25]\n *&a[1]:C*=n$2 [line 23, column 13]\n n$3=*&c2:C* [line 23, column 29]\n *&a[2]:C*=n$3 [line 23, column 13]\n NULLIFY(&a); [line 23, column 13]\n EXIT_SCOPE(n$0,n$1,n$2,n$3,n$4,c2,a,c1); [line 23, column 13]\n APPLY_ABSTRACTION; [line 23, column 13]\n " shape="box"] "test.098f6bcd4621d373cade4e832627b4f6_3" -> "test.098f6bcd4621d373cade4e832627b4f6_2" ; -"test.098f6bcd4621d373cade4e832627b4f6_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&c2:C*) [line 22, column 3]\n n$5=_fun___objc_alloc_no_fail(sizeof(t=C):unsigned long) [line 22, column 11]\n *&c2:C*=n$5 [line 22, column 3]\n EXIT_SCOPE(n$5,n$6); [line 22, column 3]\n " shape="box"] +"test.098f6bcd4621d373cade4e832627b4f6_4" [label="4: DeclStmt \n n$6=_fun___variable_initialization(&c2:C*) assign_last [line 22, column 3]\n n$5=_fun___objc_alloc_no_fail(sizeof(t=C):unsigned long) [line 22, column 11]\n *&c2:C*=n$5 [line 22, column 3]\n EXIT_SCOPE(n$5,n$6); [line 22, column 3]\n " shape="box"] "test.098f6bcd4621d373cade4e832627b4f6_4" -> "test.098f6bcd4621d373cade4e832627b4f6_3" ; -"test.098f6bcd4621d373cade4e832627b4f6_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&c1:C*) [line 21, column 3]\n n$7=_fun___objc_alloc_no_fail(sizeof(t=C):unsigned long) [line 21, column 11]\n *&c1:C*=n$7 [line 21, column 3]\n EXIT_SCOPE(n$7,n$8); [line 21, column 3]\n " shape="box"] +"test.098f6bcd4621d373cade4e832627b4f6_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&c1:C*) assign_last [line 21, column 3]\n n$7=_fun___objc_alloc_no_fail(sizeof(t=C):unsigned long) [line 21, column 11]\n *&c1:C*=n$7 [line 21, column 3]\n EXIT_SCOPE(n$7,n$8); [line 21, column 3]\n " shape="box"] "test.098f6bcd4621d373cade4e832627b4f6_5" -> "test.098f6bcd4621d373cade4e832627b4f6_4" ; diff --git a/infer/tests/codetoanalyze/objc/frontend/vardecl/last_af.m.dot b/infer/tests/codetoanalyze/objc/frontend/vardecl/last_af.m.dot index 39992d433..ae7762bab 100644 --- a/infer/tests/codetoanalyze/objc/frontend/vardecl/last_af.m.dot +++ b/infer/tests/codetoanalyze/objc/frontend/vardecl/last_af.m.dot @@ -7,11 +7,11 @@ digraph cfg { "main.fad58de7366495db4650cfefac2fcd61_2" [label="2: Exit main \n " color=yellow style=filled] -"main.fad58de7366495db4650cfefac2fcd61_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&b:int) [line 8, column 14]\n n$0=*&a:int [line 8, column 29]\n *&b:int=(n$0 + 2) [line 8, column 14]\n NULLIFY(&b); [line 8, column 14]\n NULLIFY(&a); [line 8, column 14]\n EXIT_SCOPE(n$0,n$1,b,a); [line 8, column 14]\n APPLY_ABSTRACTION; [line 8, column 14]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&b:int) assign_last [line 8, column 14]\n n$0=*&a:int [line 8, column 29]\n *&b:int=(n$0 + 2) [line 8, column 14]\n NULLIFY(&b); [line 8, column 14]\n NULLIFY(&a); [line 8, column 14]\n EXIT_SCOPE(n$0,n$1,b,a); [line 8, column 14]\n APPLY_ABSTRACTION; [line 8, column 14]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_3" -> "main.fad58de7366495db4650cfefac2fcd61_2" ; -"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) [line 8, column 14]\n *&a:int=0 [line 8, column 14]\n EXIT_SCOPE(n$2); [line 8, column 14]\n " shape="box"] +"main.fad58de7366495db4650cfefac2fcd61_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&a:int) assign_last [line 8, column 14]\n *&a:int=0 [line 8, column 14]\n EXIT_SCOPE(n$2); [line 8, column 14]\n " shape="box"] "main.fad58de7366495db4650cfefac2fcd61_4" -> "main.fad58de7366495db4650cfefac2fcd61_3" ; diff --git a/infer/tests/codetoanalyze/objc/shared/annotations/nonnull_annotations.m.dot b/infer/tests/codetoanalyze/objc/shared/annotations/nonnull_annotations.m.dot index de869176d..fdb8e92a3 100644 --- a/infer/tests/codetoanalyze/objc/shared/annotations/nonnull_annotations.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/annotations/nonnull_annotations.m.dot @@ -22,7 +22,7 @@ digraph cfg { "test1:#A(class A)#instance.61440711d4e2388d4be3731c34a61289_3" -> "test1:#A(class A)#instance.61440711d4e2388d4be3731c34a61289_2" ; -"test1:#A(class A)#instance.61440711d4e2388d4be3731c34a61289_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&aa:A*) [line 24, column 3]\n n$3=*&a:A* [line 24, column 12]\n n$4=_fun_A_child(n$3:A*) [line 24, column 11]\n *&aa:A*=n$4 [line 24, column 3]\n NULLIFY(&a); [line 24, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,a); [line 24, column 3]\n " shape="box"] +"test1:#A(class A)#instance.61440711d4e2388d4be3731c34a61289_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&aa:A*) assign_last [line 24, column 3]\n n$3=*&a:A* [line 24, column 12]\n n$4=_fun_A_child(n$3:A*) [line 24, column 11]\n *&aa:A*=n$4 [line 24, column 3]\n NULLIFY(&a); [line 24, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,a); [line 24, column 3]\n " shape="box"] "test1:#A(class A)#instance.61440711d4e2388d4be3731c34a61289_4" -> "test1:#A(class A)#instance.61440711d4e2388d4be3731c34a61289_3" ; @@ -37,7 +37,7 @@ digraph cfg { "test2:#A(class A)#instance.3b9594b6f023617f19d57dee6d35cf80_3" -> "test2:#A(class A)#instance.3b9594b6f023617f19d57dee6d35cf80_2" ; -"test2:#A(class A)#instance.3b9594b6f023617f19d57dee6d35cf80_4" [label="4: DeclStmt \n n$10=_fun___variable_initialization(&aa:A*) [line 29, column 3]\n n$8=*&a:A* [line 29, column 12]\n n$9=_fun_A_child(n$8:A*) [line 29, column 11]\n *&aa:A*=n$9 [line 29, column 3]\n NULLIFY(&a); [line 29, column 3]\n EXIT_SCOPE(n$8,n$9,n$10,a); [line 29, column 3]\n " shape="box"] +"test2:#A(class A)#instance.3b9594b6f023617f19d57dee6d35cf80_4" [label="4: DeclStmt \n n$10=_fun___variable_initialization(&aa:A*) assign_last [line 29, column 3]\n n$8=*&a:A* [line 29, column 12]\n n$9=_fun_A_child(n$8:A*) [line 29, column 11]\n *&aa:A*=n$9 [line 29, column 3]\n NULLIFY(&a); [line 29, column 3]\n EXIT_SCOPE(n$8,n$9,n$10,a); [line 29, column 3]\n " shape="box"] "test2:#A(class A)#instance.3b9594b6f023617f19d57dee6d35cf80_4" -> "test2:#A(class A)#instance.3b9594b6f023617f19d57dee6d35cf80_3" ; diff --git a/infer/tests/codetoanalyze/objc/shared/annotations/nullable_annotations.m.dot b/infer/tests/codetoanalyze/objc/shared/annotations/nullable_annotations.m.dot index 563601837..86fca3a1b 100644 --- a/infer/tests/codetoanalyze/objc/shared/annotations/nullable_annotations.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/annotations/nullable_annotations.m.dot @@ -11,11 +11,11 @@ digraph cfg { "npe_property_nullable.ba4461b16b55481ab8de5124734d2bf3_3" -> "npe_property_nullable.ba4461b16b55481ab8de5124734d2bf3_2" ; -"npe_property_nullable.ba4461b16b55481ab8de5124734d2bf3_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&child:Person*) [line 55, column 3]\n n$3=*&person:Person* [line 55, column 19]\n n$4=_fun_Person_child(n$3:Person*) [line 55, column 26]\n *&child:Person*=n$4 [line 55, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,person); [line 55, column 3]\n " shape="box"] +"npe_property_nullable.ba4461b16b55481ab8de5124734d2bf3_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&child:Person*) assign_last [line 55, column 3]\n n$3=*&person:Person* [line 55, column 19]\n n$4=_fun_Person_child(n$3:Person*) [line 55, column 26]\n *&child:Person*=n$4 [line 55, column 3]\n EXIT_SCOPE(n$3,n$4,n$5,person); [line 55, column 3]\n " shape="box"] "npe_property_nullable.ba4461b16b55481ab8de5124734d2bf3_4" -> "npe_property_nullable.ba4461b16b55481ab8de5124734d2bf3_3" ; -"npe_property_nullable.ba4461b16b55481ab8de5124734d2bf3_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&person:Person*) [line 54, column 3]\n n$6=_fun___objc_alloc_no_fail(sizeof(t=Person):unsigned long) [line 54, column 20]\n n$7=_fun_NSObject_init(n$6:Person*) virtual [line 54, column 20]\n *&person:Person*=n$7 [line 54, column 3]\n EXIT_SCOPE(n$6,n$7,n$8); [line 54, column 3]\n " shape="box"] +"npe_property_nullable.ba4461b16b55481ab8de5124734d2bf3_5" [label="5: DeclStmt \n n$8=_fun___variable_initialization(&person:Person*) assign_last [line 54, column 3]\n n$6=_fun___objc_alloc_no_fail(sizeof(t=Person):unsigned long) [line 54, column 20]\n n$7=_fun_NSObject_init(n$6:Person*) virtual [line 54, column 20]\n *&person:Person*=n$7 [line 54, column 3]\n EXIT_SCOPE(n$6,n$7,n$8); [line 54, column 3]\n " shape="box"] "npe_property_nullable.ba4461b16b55481ab8de5124734d2bf3_5" -> "npe_property_nullable.ba4461b16b55481ab8de5124734d2bf3_4" ; @@ -41,7 +41,7 @@ digraph cfg { "otherUserName#User#instance.7b86b8d2191be71dec320c3203056cd7_3" -> "otherUserName#User#instance.7b86b8d2191be71dec320c3203056cd7_2" ; -"otherUserName#User#instance.7b86b8d2191be71dec320c3203056cd7_4" [label="4: DeclStmt \n n$8=_fun___variable_initialization(&ou:User*) [line 49, column 3]\n n$6=*&self:User* [line 49, column 15]\n n$7=_fun_User_otherUser(n$6:User*) virtual [line 49, column 14]\n *&ou:User*=n$7 [line 49, column 3]\n NULLIFY(&self); [line 49, column 3]\n EXIT_SCOPE(n$6,n$7,n$8,self); [line 49, column 3]\n " shape="box"] +"otherUserName#User#instance.7b86b8d2191be71dec320c3203056cd7_4" [label="4: DeclStmt \n n$8=_fun___variable_initialization(&ou:User*) assign_last [line 49, column 3]\n n$6=*&self:User* [line 49, column 15]\n n$7=_fun_User_otherUser(n$6:User*) virtual [line 49, column 14]\n *&ou:User*=n$7 [line 49, column 3]\n NULLIFY(&self); [line 49, column 3]\n EXIT_SCOPE(n$6,n$7,n$8,self); [line 49, column 3]\n " shape="box"] "otherUserName#User#instance.7b86b8d2191be71dec320c3203056cd7_4" -> "otherUserName#User#instance.7b86b8d2191be71dec320c3203056cd7_3" ; diff --git a/infer/tests/codetoanalyze/objc/shared/block/BlockVar.m.dot b/infer/tests/codetoanalyze/objc/shared/block/BlockVar.m.dot index 0caa58cb6..16039b846 100644 --- a/infer/tests/codetoanalyze/objc/shared/block/BlockVar.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/block/BlockVar.m.dot @@ -55,7 +55,7 @@ digraph cfg { "objc_blockBlockVar_navigateToURLInBackground_1.3f33ba208d462b81a235e03653494b18_3" -> "objc_blockBlockVar_navigateToURLInBackground_1.3f33ba208d462b81a235e03653494b18_2" ; -"objc_blockBlockVar_navigateToURLInBackground_1.3f33ba208d462b81a235e03653494b18_4" [label="4: DeclStmt \n n$13=_fun___variable_initialization(&res:int) [line 18, column 5]\n n$12=_fun_BlockVar_test() [line 18, column 15]\n *&res:int=n$12 [line 18, column 5]\n EXIT_SCOPE(n$12,n$13); [line 18, column 5]\n " shape="box"] +"objc_blockBlockVar_navigateToURLInBackground_1.3f33ba208d462b81a235e03653494b18_4" [label="4: DeclStmt \n n$13=_fun___variable_initialization(&res:int) assign_last [line 18, column 5]\n n$12=_fun_BlockVar_test() [line 18, column 15]\n *&res:int=n$12 [line 18, column 5]\n EXIT_SCOPE(n$12,n$13); [line 18, column 5]\n " shape="box"] "objc_blockBlockVar_navigateToURLInBackground_1.3f33ba208d462b81a235e03653494b18_4" -> "objc_blockBlockVar_navigateToURLInBackground_1.3f33ba208d462b81a235e03653494b18_3" ; @@ -95,15 +95,15 @@ digraph cfg { "navigateToURLInBackground#BlockVar#class.f4e64a7a224e4dae5096c3b731a4233e_9" -> "navigateToURLInBackground#BlockVar#class.f4e64a7a224e4dae5096c3b731a4233e_2" ; -"navigateToURLInBackground#BlockVar#class.f4e64a7a224e4dae5096c3b731a4233e_10" [label="10: DeclStmt \n n$5=_fun___variable_initialization(&p:int*) [line 22, column 3]\n *&p:int*=null [line 22, column 3]\n EXIT_SCOPE(n$5); [line 22, column 3]\n " shape="box"] +"navigateToURLInBackground#BlockVar#class.f4e64a7a224e4dae5096c3b731a4233e_10" [label="10: DeclStmt \n n$5=_fun___variable_initialization(&p:int*) assign_last [line 22, column 3]\n *&p:int*=null [line 22, column 3]\n EXIT_SCOPE(n$5); [line 22, column 3]\n " shape="box"] "navigateToURLInBackground#BlockVar#class.f4e64a7a224e4dae5096c3b731a4233e_10" -> "navigateToURLInBackground#BlockVar#class.f4e64a7a224e4dae5096c3b731a4233e_5" ; -"navigateToURLInBackground#BlockVar#class.f4e64a7a224e4dae5096c3b731a4233e_11" [label="11: DeclStmt \n n$8=_fun___variable_initialization(&x:int) [line 21, column 3]\n n$6=*&addBlock:_fn_(*) [line 21, column 11]\n n$7=n$6(1:int,2:int) [line 21, column 11]\n *&x:int=n$7 [line 21, column 3]\n EXIT_SCOPE(n$6,n$7,n$8,addBlock); [line 21, column 3]\n " shape="box"] +"navigateToURLInBackground#BlockVar#class.f4e64a7a224e4dae5096c3b731a4233e_11" [label="11: DeclStmt \n n$8=_fun___variable_initialization(&x:int) assign_last [line 21, column 3]\n n$6=*&addBlock:_fn_(*) [line 21, column 11]\n n$7=n$6(1:int,2:int) [line 21, column 11]\n *&x:int=n$7 [line 21, column 3]\n EXIT_SCOPE(n$6,n$7,n$8,addBlock); [line 21, column 3]\n " shape="box"] "navigateToURLInBackground#BlockVar#class.f4e64a7a224e4dae5096c3b731a4233e_11" -> "navigateToURLInBackground#BlockVar#class.f4e64a7a224e4dae5096c3b731a4233e_10" ; -"navigateToURLInBackground#BlockVar#class.f4e64a7a224e4dae5096c3b731a4233e_12" [label="12: DeclStmt \n n$14=_fun___variable_initialization(&addBlock:_fn_(*)) [line 17, column 3]\n *&addBlock:_fn_(*)=(_fun_objc_blockBlockVar_navigateToURLInBackground_1) [line 17, column 3]\n EXIT_SCOPE(n$14); [line 17, column 3]\n " shape="box"] +"navigateToURLInBackground#BlockVar#class.f4e64a7a224e4dae5096c3b731a4233e_12" [label="12: DeclStmt \n n$14=_fun___variable_initialization(&addBlock:_fn_(*)) assign_last [line 17, column 3]\n *&addBlock:_fn_(*)=(_fun_objc_blockBlockVar_navigateToURLInBackground_1) [line 17, column 3]\n EXIT_SCOPE(n$14); [line 17, column 3]\n " shape="box"] "navigateToURLInBackground#BlockVar#class.f4e64a7a224e4dae5096c3b731a4233e_12" -> "navigateToURLInBackground#BlockVar#class.f4e64a7a224e4dae5096c3b731a4233e_11" ; @@ -129,11 +129,11 @@ digraph cfg { "blockPostBad#BlockVar#instance.60292f870cad8c1a5cefdbfe4194d6f9_3" -> "blockPostBad#BlockVar#instance.60292f870cad8c1a5cefdbfe4194d6f9_2" ; -"blockPostBad#BlockVar#instance.60292f870cad8c1a5cefdbfe4194d6f9_4" [label="4: DeclStmt \n n$20=_fun___variable_initialization(&my_block:_fn_(*)) [line 31, column 3]\n n$18=*&x:int* [line 31, column 28]\n *&my_block:_fn_(*)=(_fun_objc_blockBlockVar_blockPostBad_2,(n$18 &x:int*)) [line 31, column 3]\n EXIT_SCOPE(n$18,n$20,x); [line 31, column 3]\n " shape="box"] +"blockPostBad#BlockVar#instance.60292f870cad8c1a5cefdbfe4194d6f9_4" [label="4: DeclStmt \n n$20=_fun___variable_initialization(&my_block:_fn_(*)) assign_last [line 31, column 3]\n n$18=*&x:int* [line 31, column 28]\n *&my_block:_fn_(*)=(_fun_objc_blockBlockVar_blockPostBad_2,(n$18 &x:int*)) [line 31, column 3]\n EXIT_SCOPE(n$18,n$20,x); [line 31, column 3]\n " shape="box"] "blockPostBad#BlockVar#instance.60292f870cad8c1a5cefdbfe4194d6f9_4" -> "blockPostBad#BlockVar#instance.60292f870cad8c1a5cefdbfe4194d6f9_3" ; -"blockPostBad#BlockVar#instance.60292f870cad8c1a5cefdbfe4194d6f9_5" [label="5: DeclStmt \n n$21=_fun___variable_initialization(&x:int*) [line 30, column 3]\n *&x:int*=null [line 30, column 3]\n EXIT_SCOPE(n$21); [line 30, column 3]\n " shape="box"] +"blockPostBad#BlockVar#instance.60292f870cad8c1a5cefdbfe4194d6f9_5" [label="5: DeclStmt \n n$21=_fun___variable_initialization(&x:int*) assign_last [line 30, column 3]\n *&x:int*=null [line 30, column 3]\n EXIT_SCOPE(n$21); [line 30, column 3]\n " shape="box"] "blockPostBad#BlockVar#instance.60292f870cad8c1a5cefdbfe4194d6f9_5" -> "blockPostBad#BlockVar#instance.60292f870cad8c1a5cefdbfe4194d6f9_4" ; @@ -148,15 +148,15 @@ digraph cfg { "blockPostOk#BlockVar#instance.1bb64a946f8b169b31996644931ed82d_3" -> "blockPostOk#BlockVar#instance.1bb64a946f8b169b31996644931ed82d_2" ; -"blockPostOk#BlockVar#instance.1bb64a946f8b169b31996644931ed82d_4" [label="4: DeclStmt \n n$27=_fun___variable_initialization(&my_block:_fn_(*)) [line 40, column 3]\n n$25=*&x:int* [line 40, column 28]\n *&my_block:_fn_(*)=(_fun_objc_blockBlockVar_blockPostOk_3,(n$25 &x:int*)) [line 40, column 3]\n EXIT_SCOPE(n$25,n$27,x); [line 40, column 3]\n " shape="box"] +"blockPostOk#BlockVar#instance.1bb64a946f8b169b31996644931ed82d_4" [label="4: DeclStmt \n n$27=_fun___variable_initialization(&my_block:_fn_(*)) assign_last [line 40, column 3]\n n$25=*&x:int* [line 40, column 28]\n *&my_block:_fn_(*)=(_fun_objc_blockBlockVar_blockPostOk_3,(n$25 &x:int*)) [line 40, column 3]\n EXIT_SCOPE(n$25,n$27,x); [line 40, column 3]\n " shape="box"] "blockPostOk#BlockVar#instance.1bb64a946f8b169b31996644931ed82d_4" -> "blockPostOk#BlockVar#instance.1bb64a946f8b169b31996644931ed82d_3" ; -"blockPostOk#BlockVar#instance.1bb64a946f8b169b31996644931ed82d_5" [label="5: DeclStmt \n n$28=_fun___variable_initialization(&x:int*) [line 39, column 3]\n *&x:int*=&i [line 39, column 3]\n EXIT_SCOPE(n$28,i); [line 39, column 3]\n " shape="box"] +"blockPostOk#BlockVar#instance.1bb64a946f8b169b31996644931ed82d_5" [label="5: DeclStmt \n n$28=_fun___variable_initialization(&x:int*) assign_last [line 39, column 3]\n *&x:int*=&i [line 39, column 3]\n EXIT_SCOPE(n$28,i); [line 39, column 3]\n " shape="box"] "blockPostOk#BlockVar#instance.1bb64a946f8b169b31996644931ed82d_5" -> "blockPostOk#BlockVar#instance.1bb64a946f8b169b31996644931ed82d_4" ; -"blockPostOk#BlockVar#instance.1bb64a946f8b169b31996644931ed82d_6" [label="6: DeclStmt \n n$29=_fun___variable_initialization(&i:int) [line 38, column 3]\n *&i:int=7 [line 38, column 3]\n EXIT_SCOPE(n$29); [line 38, column 3]\n " shape="box"] +"blockPostOk#BlockVar#instance.1bb64a946f8b169b31996644931ed82d_6" [label="6: DeclStmt \n n$29=_fun___variable_initialization(&i:int) assign_last [line 38, column 3]\n *&i:int=7 [line 38, column 3]\n EXIT_SCOPE(n$29); [line 38, column 3]\n " shape="box"] "blockPostOk#BlockVar#instance.1bb64a946f8b169b31996644931ed82d_6" -> "blockPostOk#BlockVar#instance.1bb64a946f8b169b31996644931ed82d_5" ; @@ -175,15 +175,15 @@ digraph cfg { "capturedNoNullDeref#BlockVar#instance.ebe646baaabdc58144a5916780ee8c76_4" -> "capturedNoNullDeref#BlockVar#instance.ebe646baaabdc58144a5916780ee8c76_3" ; -"capturedNoNullDeref#BlockVar#instance.ebe646baaabdc58144a5916780ee8c76_5" [label="5: DeclStmt \n n$42=_fun___variable_initialization(&my_block:_fn_(*)) [line 57, column 3]\n n$39=*&x:int* [line 57, column 27]\n *&my_block:_fn_(*)=(_fun_objc_blockBlockVar_capturedNoNullDeref_5,(n$39 &x:int*)) [line 57, column 3]\n EXIT_SCOPE(n$39,n$42,x); [line 57, column 3]\n " shape="box"] +"capturedNoNullDeref#BlockVar#instance.ebe646baaabdc58144a5916780ee8c76_5" [label="5: DeclStmt \n n$42=_fun___variable_initialization(&my_block:_fn_(*)) assign_last [line 57, column 3]\n n$39=*&x:int* [line 57, column 27]\n *&my_block:_fn_(*)=(_fun_objc_blockBlockVar_capturedNoNullDeref_5,(n$39 &x:int*)) [line 57, column 3]\n EXIT_SCOPE(n$39,n$42,x); [line 57, column 3]\n " shape="box"] "capturedNoNullDeref#BlockVar#instance.ebe646baaabdc58144a5916780ee8c76_5" -> "capturedNoNullDeref#BlockVar#instance.ebe646baaabdc58144a5916780ee8c76_4" ; -"capturedNoNullDeref#BlockVar#instance.ebe646baaabdc58144a5916780ee8c76_6" [label="6: DeclStmt \n n$43=_fun___variable_initialization(&x:int*) [line 56, column 3]\n *&x:int*=&i [line 56, column 3]\n EXIT_SCOPE(n$43,i); [line 56, column 3]\n " shape="box"] +"capturedNoNullDeref#BlockVar#instance.ebe646baaabdc58144a5916780ee8c76_6" [label="6: DeclStmt \n n$43=_fun___variable_initialization(&x:int*) assign_last [line 56, column 3]\n *&x:int*=&i [line 56, column 3]\n EXIT_SCOPE(n$43,i); [line 56, column 3]\n " shape="box"] "capturedNoNullDeref#BlockVar#instance.ebe646baaabdc58144a5916780ee8c76_6" -> "capturedNoNullDeref#BlockVar#instance.ebe646baaabdc58144a5916780ee8c76_5" ; -"capturedNoNullDeref#BlockVar#instance.ebe646baaabdc58144a5916780ee8c76_7" [label="7: DeclStmt \n n$44=_fun___variable_initialization(&i:int) [line 55, column 3]\n *&i:int=5 [line 55, column 3]\n EXIT_SCOPE(n$44); [line 55, column 3]\n " shape="box"] +"capturedNoNullDeref#BlockVar#instance.ebe646baaabdc58144a5916780ee8c76_7" [label="7: DeclStmt \n n$44=_fun___variable_initialization(&i:int) assign_last [line 55, column 3]\n *&i:int=5 [line 55, column 3]\n EXIT_SCOPE(n$44); [line 55, column 3]\n " shape="box"] "capturedNoNullDeref#BlockVar#instance.ebe646baaabdc58144a5916780ee8c76_7" -> "capturedNoNullDeref#BlockVar#instance.ebe646baaabdc58144a5916780ee8c76_6" ; @@ -198,11 +198,11 @@ digraph cfg { "capturedNullDeref#BlockVar#instance.48c44f7ae26caf7a1ac522523ebac894_3" -> "capturedNullDeref#BlockVar#instance.48c44f7ae26caf7a1ac522523ebac894_2" ; -"capturedNullDeref#BlockVar#instance.48c44f7ae26caf7a1ac522523ebac894_4" [label="4: DeclStmt \n n$35=_fun___variable_initialization(&my_block:_fn_(*)) [line 48, column 3]\n n$32=*&x:int* [line 48, column 27]\n *&my_block:_fn_(*)=(_fun_objc_blockBlockVar_capturedNullDeref_4,(n$32 &x:int*)) [line 48, column 3]\n EXIT_SCOPE(n$32,n$35,x); [line 48, column 3]\n " shape="box"] +"capturedNullDeref#BlockVar#instance.48c44f7ae26caf7a1ac522523ebac894_4" [label="4: DeclStmt \n n$35=_fun___variable_initialization(&my_block:_fn_(*)) assign_last [line 48, column 3]\n n$32=*&x:int* [line 48, column 27]\n *&my_block:_fn_(*)=(_fun_objc_blockBlockVar_capturedNullDeref_4,(n$32 &x:int*)) [line 48, column 3]\n EXIT_SCOPE(n$32,n$35,x); [line 48, column 3]\n " shape="box"] "capturedNullDeref#BlockVar#instance.48c44f7ae26caf7a1ac522523ebac894_4" -> "capturedNullDeref#BlockVar#instance.48c44f7ae26caf7a1ac522523ebac894_3" ; -"capturedNullDeref#BlockVar#instance.48c44f7ae26caf7a1ac522523ebac894_5" [label="5: DeclStmt \n n$36=_fun___variable_initialization(&x:int*) [line 47, column 3]\n *&x:int*=null [line 47, column 3]\n EXIT_SCOPE(n$36); [line 47, column 3]\n " shape="box"] +"capturedNullDeref#BlockVar#instance.48c44f7ae26caf7a1ac522523ebac894_5" [label="5: DeclStmt \n n$36=_fun___variable_initialization(&x:int*) assign_last [line 47, column 3]\n *&x:int*=null [line 47, column 3]\n EXIT_SCOPE(n$36); [line 47, column 3]\n " shape="box"] "capturedNullDeref#BlockVar#instance.48c44f7ae26caf7a1ac522523ebac894_5" -> "capturedNullDeref#BlockVar#instance.48c44f7ae26caf7a1ac522523ebac894_4" ; diff --git a/infer/tests/codetoanalyze/objc/shared/block/block-it.m.dot b/infer/tests/codetoanalyze/objc/shared/block/block-it.m.dot index 51dc16e10..85eaa93e7 100644 --- a/infer/tests/codetoanalyze/objc/shared/block/block-it.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/block/block-it.m.dot @@ -67,7 +67,7 @@ digraph cfg { "array#MyBlock#instance.8be6e5b5e968d186440e1931c9eb40de_3" -> "array#MyBlock#instance.8be6e5b5e968d186440e1931c9eb40de_2" ; -"array#MyBlock#instance.8be6e5b5e968d186440e1931c9eb40de_4" [label="4: DeclStmt \n n$9=_fun___variable_initialization(&a:NSArray*) [line 18, column 3]\n n$7=_fun___objc_alloc_no_fail(sizeof(t=NSArray):unsigned long) [line 18, column 17]\n n$8=_fun_NSArray_init(n$7:NSArray*) virtual [line 18, column 16]\n *&a:NSArray*=n$8 [line 18, column 3]\n EXIT_SCOPE(n$7,n$8,n$9); [line 18, column 3]\n " shape="box"] +"array#MyBlock#instance.8be6e5b5e968d186440e1931c9eb40de_4" [label="4: DeclStmt \n n$9=_fun___variable_initialization(&a:NSArray*) assign_last [line 18, column 3]\n n$7=_fun___objc_alloc_no_fail(sizeof(t=NSArray):unsigned long) [line 18, column 17]\n n$8=_fun_NSArray_init(n$7:NSArray*) virtual [line 18, column 16]\n *&a:NSArray*=n$8 [line 18, column 3]\n EXIT_SCOPE(n$7,n$8,n$9); [line 18, column 3]\n " shape="box"] "array#MyBlock#instance.8be6e5b5e968d186440e1931c9eb40de_4" -> "array#MyBlock#instance.8be6e5b5e968d186440e1931c9eb40de_3" ; @@ -86,7 +86,7 @@ digraph cfg { "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_4" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_7" ; -"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_5" [label="5: DeclStmt \n n$12=_fun___variable_initialization(&idx:unsigned long) [line 48, column 8]\n *&idx:unsigned long=(unsigned long)0 [line 48, column 8]\n EXIT_SCOPE(n$12); [line 48, column 8]\n APPLY_ABSTRACTION; [line 48, column 8]\n " shape="box"] +"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_5" [label="5: DeclStmt \n n$12=_fun___variable_initialization(&idx:unsigned long) assign_last [line 48, column 8]\n *&idx:unsigned long=(unsigned long)0 [line 48, column 8]\n EXIT_SCOPE(n$12); [line 48, column 8]\n APPLY_ABSTRACTION; [line 48, column 8]\n " shape="box"] "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_5" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_4" ; @@ -103,7 +103,7 @@ digraph cfg { "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_8" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_15" ; -"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_9" [label="9: Prune (false branch, for loop) \n PRUNE(!(n$14 < n$16), false); [line 48, column 28]\n NULLIFY(&idx); [line 48, column 28]\n EXIT_SCOPE(n$14,n$16,objects,idx,enumerateObjectsUsingBlock,object); [line 48, column 28]\n APPLY_ABSTRACTION; [line 48, column 28]\n " shape="invhouse"] +"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_9" [label="9: Prune (false branch, for loop) \n PRUNE(!(n$14 < n$16), false); [line 48, column 28]\n NULLIFY(&idx); [line 48, column 28]\n EXIT_SCOPE(n$14,n$16,objects,idx,enumerateObjectsUsingBlock); [line 48, column 28]\n APPLY_ABSTRACTION; [line 48, column 28]\n " shape="invhouse"] "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_9" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_3" ; @@ -116,7 +116,7 @@ digraph cfg { "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_11" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_12" ; "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_11" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_13" ; -"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_12" [label="12: Prune (true branch, if) \n PRUNE((n$18 == 1), true); [line 52, column 9]\n NULLIFY(&idx); [line 52, column 9]\n EXIT_SCOPE(n$18,objects,idx,enumerateObjectsUsingBlock,object); [line 52, column 9]\n APPLY_ABSTRACTION; [line 52, column 9]\n " shape="invhouse"] +"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_12" [label="12: Prune (true branch, if) \n PRUNE((n$18 == 1), true); [line 52, column 9]\n NULLIFY(&idx); [line 52, column 9]\n EXIT_SCOPE(n$18,objects,idx,enumerateObjectsUsingBlock); [line 52, column 9]\n APPLY_ABSTRACTION; [line 52, column 9]\n " shape="invhouse"] "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_12" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_3" ; @@ -124,11 +124,11 @@ digraph cfg { "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_13" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_10" ; -"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_14" [label="14: Call n$22 \n n$22=*&enumerateObjectsUsingBlock:_fn_(*) [line 51, column 5]\n n$23=*&object:objc_object* [line 51, column 32]\n n$24=*&idx:unsigned long [line 51, column 40]\n n$25=*&stop:_Bool* [line 51, column 45]\n n$26=n$22(n$23:objc_object*,n$24:unsigned long,n$25:_Bool*) [line 51, column 5]\n EXIT_SCOPE(n$22,n$23,n$24,n$25,n$26); [line 51, column 5]\n " shape="box"] +"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_14" [label="14: Call n$22 \n n$22=*&enumerateObjectsUsingBlock:_fn_(*) [line 51, column 5]\n n$23=*&object:objc_object* [line 51, column 32]\n n$24=*&idx:unsigned long [line 51, column 40]\n n$25=*&stop:_Bool* [line 51, column 45]\n n$26=n$22(n$23:objc_object*,n$24:unsigned long,n$25:_Bool*) [line 51, column 5]\n EXIT_SCOPE(n$22,n$23,n$24,n$25,n$26,object); [line 51, column 5]\n " shape="box"] "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_14" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_11" ; -"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_15" [label="15: DeclStmt \n n$30=_fun___variable_initialization(&object:objc_object*) [line 50, column 5]\n n$28=*&objects:NSArray* [line 50, column 17]\n n$27=*&idx:unsigned long [line 50, column 25]\n n$29=_fun_NSArray_objectAtIndexedSubscript:(n$28:NSArray*,n$27:unsigned long) virtual [line 50, column 17]\n *&object:objc_object*=n$29 [line 50, column 5]\n EXIT_SCOPE(n$27,n$28,n$29,n$30); [line 50, column 5]\n " shape="box"] +"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_15" [label="15: DeclStmt \n n$30=_fun___variable_initialization(&object:objc_object*) assign_last [line 50, column 5]\n n$28=*&objects:NSArray* [line 50, column 17]\n n$27=*&idx:unsigned long [line 50, column 25]\n n$29=_fun_NSArray_objectAtIndexedSubscript:(n$28:NSArray*,n$27:unsigned long) virtual [line 50, column 17]\n *&object:objc_object*=n$29 [line 50, column 5]\n EXIT_SCOPE(n$27,n$28,n$29,n$30); [line 50, column 5]\n " shape="box"] "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_15" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_14" ; @@ -136,19 +136,19 @@ digraph cfg { "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_16" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_5" ; -"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_17" [label="17: DeclStmt \n n$34=_fun___variable_initialization(&stop:_Bool*) [line 45, column 3]\n n$33=_fun_malloc_no_fail(sizeof(t=_Bool;nbytes=1):_Bool) [line 45, column 16]\n *&stop:_Bool*=(_Bool*)n$33 [line 45, column 3]\n EXIT_SCOPE(n$33,n$34); [line 45, column 3]\n " shape="box"] +"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_17" [label="17: DeclStmt \n n$34=_fun___variable_initialization(&stop:_Bool*) assign_last [line 45, column 3]\n n$33=_fun_malloc_no_fail(sizeof(t=_Bool;nbytes=1):_Bool) [line 45, column 16]\n *&stop:_Bool*=(_Bool*)n$33 [line 45, column 3]\n EXIT_SCOPE(n$33,n$34); [line 45, column 3]\n " shape="box"] "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_17" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_16" ; -"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_18" [label="18: DeclStmt \n n$40=_fun___variable_initialization(&enumerateObjectsUsingBlock:_fn_(*)) [line 37, column 3]\n *&enumerateObjectsUsingBlock:_fn_(*)=(_fun_objc_blockMyBlock_array_trans_2) [line 37, column 3]\n EXIT_SCOPE(n$40); [line 37, column 3]\n " shape="box"] +"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_18" [label="18: DeclStmt \n n$40=_fun___variable_initialization(&enumerateObjectsUsingBlock:_fn_(*)) assign_last [line 37, column 3]\n *&enumerateObjectsUsingBlock:_fn_(*)=(_fun_objc_blockMyBlock_array_trans_2) [line 37, column 3]\n EXIT_SCOPE(n$40); [line 37, column 3]\n " shape="box"] "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_18" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_17" ; -"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_19" [label="19: DeclStmt \n n$42=_fun___variable_initialization(&objects:NSArray*) [line 34, column 3]\n n$41=*&a:NSArray* [line 34, column 22]\n *&objects:NSArray*=n$41 [line 34, column 3]\n EXIT_SCOPE(n$41,n$42,a); [line 34, column 3]\n " shape="box"] +"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_19" [label="19: DeclStmt \n n$42=_fun___variable_initialization(&objects:NSArray*) assign_last [line 34, column 3]\n n$41=*&a:NSArray* [line 34, column 22]\n *&objects:NSArray*=n$41 [line 34, column 3]\n EXIT_SCOPE(n$41,n$42,a); [line 34, column 3]\n " shape="box"] "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_19" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_18" ; -"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_20" [label="20: DeclStmt \n n$45=_fun___variable_initialization(&a:NSArray*) [line 32, column 3]\n n$43=_fun___objc_alloc_no_fail(sizeof(t=NSArray):unsigned long) [line 32, column 17]\n n$44=_fun_NSArray_init(n$43:NSArray*) virtual [line 32, column 16]\n *&a:NSArray*=n$44 [line 32, column 3]\n EXIT_SCOPE(n$43,n$44,n$45); [line 32, column 3]\n " shape="box"] +"array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_20" [label="20: DeclStmt \n n$45=_fun___variable_initialization(&a:NSArray*) assign_last [line 32, column 3]\n n$43=_fun___objc_alloc_no_fail(sizeof(t=NSArray):unsigned long) [line 32, column 17]\n n$44=_fun_NSArray_init(n$43:NSArray*) virtual [line 32, column 16]\n *&a:NSArray*=n$44 [line 32, column 3]\n EXIT_SCOPE(n$43,n$44,n$45); [line 32, column 3]\n " shape="box"] "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_20" -> "array_trans#MyBlock#instance.13289a590560d0628a3ae5174e716a32_19" ; diff --git a/infer/tests/codetoanalyze/objc/shared/block/block.m.dot b/infer/tests/codetoanalyze/objc/shared/block/block.m.dot index 748169cb8..74aba5840 100644 --- a/infer/tests/codetoanalyze/objc/shared/block/block.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/block/block.m.dot @@ -42,11 +42,11 @@ digraph cfg { "main1.38f534a9576db7ec6ebcbca8c111f942_8" -> "main1.38f534a9576db7ec6ebcbca8c111f942_7" ; -"main1.38f534a9576db7ec6ebcbca8c111f942_9" [label="9: DeclStmt \n n$22=_fun___variable_initialization(&x:int) [line 11, column 3]\n *&x:int=7 [line 11, column 3]\n EXIT_SCOPE(n$22); [line 11, column 3]\n " shape="box"] +"main1.38f534a9576db7ec6ebcbca8c111f942_9" [label="9: DeclStmt \n n$22=_fun___variable_initialization(&x:int) assign_last [line 11, column 3]\n *&x:int=7 [line 11, column 3]\n EXIT_SCOPE(n$22); [line 11, column 3]\n " shape="box"] "main1.38f534a9576db7ec6ebcbca8c111f942_9" -> "main1.38f534a9576db7ec6ebcbca8c111f942_8" ; -"main1.38f534a9576db7ec6ebcbca8c111f942_10" [label="10: DeclStmt \n n$23=_fun___variable_initialization(&#GB$main1.s:int) [line 10, column 3]\n *&#GB$main1.s:int=3 [line 10, column 3]\n EXIT_SCOPE(n$23); [line 10, column 3]\n " shape="box"] +"main1.38f534a9576db7ec6ebcbca8c111f942_10" [label="10: DeclStmt \n n$23=_fun___variable_initialization(&#GB$main1.s:int) assign_last [line 10, column 3]\n *&#GB$main1.s:int=3 [line 10, column 3]\n EXIT_SCOPE(n$23); [line 10, column 3]\n " shape="box"] "main1.38f534a9576db7ec6ebcbca8c111f942_10" -> "main1.38f534a9576db7ec6ebcbca8c111f942_9" ; @@ -80,7 +80,7 @@ digraph cfg { "objc_blockmain1_2.0d332204bbe33f46a9283d2c0df5700a_5" -> "objc_blockmain1_2.0d332204bbe33f46a9283d2c0df5700a_4" ; -"objc_blockmain1_2.0d332204bbe33f46a9283d2c0df5700a_6" [label="6: DeclStmt \n n$21=_fun___variable_initialization(&bla:int) [line 19, column 5]\n *&bla:int=3 [line 19, column 5]\n EXIT_SCOPE(n$21); [line 19, column 5]\n " shape="box"] +"objc_blockmain1_2.0d332204bbe33f46a9283d2c0df5700a_6" [label="6: DeclStmt \n n$21=_fun___variable_initialization(&bla:int) assign_last [line 19, column 5]\n *&bla:int=3 [line 19, column 5]\n EXIT_SCOPE(n$21); [line 19, column 5]\n " shape="box"] "objc_blockmain1_2.0d332204bbe33f46a9283d2c0df5700a_6" -> "objc_blockmain1_2.0d332204bbe33f46a9283d2c0df5700a_5" ; diff --git a/infer/tests/codetoanalyze/objc/shared/block/block_no_args.m.dot b/infer/tests/codetoanalyze/objc/shared/block/block_no_args.m.dot index fd9ebe618..3e03c192e 100644 --- a/infer/tests/codetoanalyze/objc/shared/block/block_no_args.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/block/block_no_args.m.dot @@ -47,7 +47,7 @@ digraph cfg { "m#My_manager#instance.e773f849d062cb9801497b62f5c98f5e_9" -> "m#My_manager#instance.e773f849d062cb9801497b62f5c98f5e_2" ; -"m#My_manager#instance.e773f849d062cb9801497b62f5c98f5e_10" [label="10: DeclStmt \n n$5=_fun___variable_initialization(&p:int*) [line 27, column 3]\n *&p:int*=null [line 27, column 3]\n EXIT_SCOPE(n$5); [line 27, column 3]\n " shape="box"] +"m#My_manager#instance.e773f849d062cb9801497b62f5c98f5e_10" [label="10: DeclStmt \n n$5=_fun___variable_initialization(&p:int*) assign_last [line 27, column 3]\n *&p:int*=null [line 27, column 3]\n EXIT_SCOPE(n$5); [line 27, column 3]\n " shape="box"] "m#My_manager#instance.e773f849d062cb9801497b62f5c98f5e_10" -> "m#My_manager#instance.e773f849d062cb9801497b62f5c98f5e_5" ; @@ -59,7 +59,7 @@ digraph cfg { "m#My_manager#instance.e773f849d062cb9801497b62f5c98f5e_12" -> "m#My_manager#instance.e773f849d062cb9801497b62f5c98f5e_11" ; -"m#My_manager#instance.e773f849d062cb9801497b62f5c98f5e_13" [label="13: DeclStmt \n n$10=_fun___variable_initialization(&z:int) [line 22, column 3]\n *&z:int=3 [line 22, column 3]\n EXIT_SCOPE(n$10); [line 22, column 3]\n " shape="box"] +"m#My_manager#instance.e773f849d062cb9801497b62f5c98f5e_13" [label="13: DeclStmt \n n$10=_fun___variable_initialization(&z:int) assign_last [line 22, column 3]\n *&z:int=3 [line 22, column 3]\n EXIT_SCOPE(n$10); [line 22, column 3]\n " shape="box"] "m#My_manager#instance.e773f849d062cb9801497b62f5c98f5e_13" -> "m#My_manager#instance.e773f849d062cb9801497b62f5c98f5e_12" ; diff --git a/infer/tests/codetoanalyze/objc/shared/block/block_release.m.dot b/infer/tests/codetoanalyze/objc/shared/block/block_release.m.dot index 054d31375..aed1c930e 100644 --- a/infer/tests/codetoanalyze/objc/shared/block/block_release.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/block/block_release.m.dot @@ -64,15 +64,15 @@ digraph cfg { "blockReleaseNoLeak#My_manager#instance.0c48f80f024250b18a529440f1313af6_9" -> "blockReleaseNoLeak#My_manager#instance.0c48f80f024250b18a529440f1313af6_8" ; -"blockReleaseNoLeak#My_manager#instance.0c48f80f024250b18a529440f1313af6_10" [label="10: DeclStmt \n n$17=_fun___variable_initialization(&newImage:CGImage*) [line 22, column 3]\n n$15=*&context:CGContext* [line 22, column 52]\n n$16=_fun_CGBitmapContextCreateImage(n$15:CGContext*) [line 22, column 25]\n *&newImage:CGImage*=n$16 [line 22, column 3]\n EXIT_SCOPE(n$15,n$16,n$17); [line 22, column 3]\n " shape="box"] +"blockReleaseNoLeak#My_manager#instance.0c48f80f024250b18a529440f1313af6_10" [label="10: DeclStmt \n n$17=_fun___variable_initialization(&newImage:CGImage*) assign_last [line 22, column 3]\n n$15=*&context:CGContext* [line 22, column 52]\n n$16=_fun_CGBitmapContextCreateImage(n$15:CGContext*) [line 22, column 25]\n *&newImage:CGImage*=n$16 [line 22, column 3]\n EXIT_SCOPE(n$15,n$16,n$17); [line 22, column 3]\n " shape="box"] "blockReleaseNoLeak#My_manager#instance.0c48f80f024250b18a529440f1313af6_10" -> "blockReleaseNoLeak#My_manager#instance.0c48f80f024250b18a529440f1313af6_9" ; -"blockReleaseNoLeak#My_manager#instance.0c48f80f024250b18a529440f1313af6_11" [label="11: DeclStmt \n n$19=_fun___variable_initialization(&context:CGContext*) [line 21, column 3]\n n$18=_fun_CGBitmapContextCreate(null:void*,(unsigned long)0:unsigned long,(unsigned long)0:unsigned long,(unsigned long)8:unsigned long,(unsigned long)0:unsigned long,null:CGColorSpace*,(unsigned int)0:unsigned int) [line 21, column 26]\n *&context:CGContext*=n$18 [line 21, column 3]\n EXIT_SCOPE(n$18,n$19); [line 21, column 3]\n " shape="box"] +"blockReleaseNoLeak#My_manager#instance.0c48f80f024250b18a529440f1313af6_11" [label="11: DeclStmt \n n$19=_fun___variable_initialization(&context:CGContext*) assign_last [line 21, column 3]\n n$18=_fun_CGBitmapContextCreate(null:void*,(unsigned long)0:unsigned long,(unsigned long)0:unsigned long,(unsigned long)8:unsigned long,(unsigned long)0:unsigned long,null:CGColorSpace*,(unsigned int)0:unsigned int) [line 21, column 26]\n *&context:CGContext*=n$18 [line 21, column 3]\n EXIT_SCOPE(n$18,n$19); [line 21, column 3]\n " shape="box"] "blockReleaseNoLeak#My_manager#instance.0c48f80f024250b18a529440f1313af6_11" -> "blockReleaseNoLeak#My_manager#instance.0c48f80f024250b18a529440f1313af6_10" ; -"blockReleaseNoLeak#My_manager#instance.0c48f80f024250b18a529440f1313af6_12" [label="12: DeclStmt \n n$20=_fun___variable_initialization(&z:int) [line 20, column 3]\n *&z:int=3 [line 20, column 3]\n EXIT_SCOPE(n$20); [line 20, column 3]\n " shape="box"] +"blockReleaseNoLeak#My_manager#instance.0c48f80f024250b18a529440f1313af6_12" [label="12: DeclStmt \n n$20=_fun___variable_initialization(&z:int) assign_last [line 20, column 3]\n *&z:int=3 [line 20, column 3]\n EXIT_SCOPE(n$20); [line 20, column 3]\n " shape="box"] "blockReleaseNoLeak#My_manager#instance.0c48f80f024250b18a529440f1313af6_12" -> "blockReleaseNoLeak#My_manager#instance.0c48f80f024250b18a529440f1313af6_11" ; diff --git a/infer/tests/codetoanalyze/objc/shared/block/dispatch.m.dot b/infer/tests/codetoanalyze/objc/shared/block/dispatch.m.dot index 7edefcbb6..27faab57a 100644 --- a/infer/tests/codetoanalyze/objc/shared/block/dispatch.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/block/dispatch.m.dot @@ -36,11 +36,11 @@ digraph cfg { "DispatchMain.f6461dbdaeaf9a114cbe40f5f72fbb3f_9" -> "DispatchMain.f6461dbdaeaf9a114cbe40f5f72fbb3f_2" ; -"DispatchMain.f6461dbdaeaf9a114cbe40f5f72fbb3f_10" [label="10: DeclStmt \n n$4=_fun___variable_initialization(&p:int*) [line 84, column 3]\n *&p:int*=null [line 84, column 3]\n EXIT_SCOPE(n$4); [line 84, column 3]\n " shape="box"] +"DispatchMain.f6461dbdaeaf9a114cbe40f5f72fbb3f_10" [label="10: DeclStmt \n n$4=_fun___variable_initialization(&p:int*) assign_last [line 84, column 3]\n *&p:int*=null [line 84, column 3]\n EXIT_SCOPE(n$4); [line 84, column 3]\n " shape="box"] "DispatchMain.f6461dbdaeaf9a114cbe40f5f72fbb3f_10" -> "DispatchMain.f6461dbdaeaf9a114cbe40f5f72fbb3f_5" ; -"DispatchMain.f6461dbdaeaf9a114cbe40f5f72fbb3f_11" [label="11: DeclStmt \n n$6=_fun___variable_initialization(&b:DispatchA*) [line 83, column 3]\n n$5=_fun_DispatchA_sharedInstance() [line 83, column 18]\n *&b:DispatchA*=n$5 [line 83, column 3]\n EXIT_SCOPE(n$5,n$6); [line 83, column 3]\n " shape="box"] +"DispatchMain.f6461dbdaeaf9a114cbe40f5f72fbb3f_11" [label="11: DeclStmt \n n$6=_fun___variable_initialization(&b:DispatchA*) assign_last [line 83, column 3]\n n$5=_fun_DispatchA_sharedInstance() [line 83, column 18]\n *&b:DispatchA*=n$5 [line 83, column 3]\n EXIT_SCOPE(n$5,n$6); [line 83, column 3]\n " shape="box"] "DispatchMain.f6461dbdaeaf9a114cbe40f5f72fbb3f_11" -> "DispatchMain.f6461dbdaeaf9a114cbe40f5f72fbb3f_10" ; @@ -114,7 +114,7 @@ digraph cfg { "block_attribute#DispatchA#class.df997e345dbf19ec3438c667c942e14a_4" -> "block_attribute#DispatchA#class.df997e345dbf19ec3438c667c942e14a_3" ; -"block_attribute#DispatchA#class.df997e345dbf19ec3438c667c942e14a_5" [label="5: DeclStmt \n n$12=_fun___variable_initialization(&a:DispatchA*) [line 36, column 3]\n n$10=_fun___objc_alloc_no_fail(sizeof(t=DispatchA):unsigned long) [line 36, column 26]\n n$11=_fun_NSObject_init(n$10:DispatchA*) virtual [line 36, column 26]\n *&a:DispatchA*=n$11 [line 36, column 3]\n EXIT_SCOPE(n$10,n$11,n$12); [line 36, column 3]\n " shape="box"] +"block_attribute#DispatchA#class.df997e345dbf19ec3438c667c942e14a_5" [label="5: DeclStmt \n n$12=_fun___variable_initialization(&a:DispatchA*) assign_last [line 36, column 3]\n n$10=_fun___objc_alloc_no_fail(sizeof(t=DispatchA):unsigned long) [line 36, column 26]\n n$11=_fun_NSObject_init(n$10:DispatchA*) virtual [line 36, column 26]\n *&a:DispatchA*=n$11 [line 36, column 3]\n EXIT_SCOPE(n$10,n$11,n$12); [line 36, column 3]\n " shape="box"] "block_attribute#DispatchA#class.df997e345dbf19ec3438c667c942e14a_5" -> "block_attribute#DispatchA#class.df997e345dbf19ec3438c667c942e14a_4" ; @@ -133,7 +133,7 @@ digraph cfg { "dispatch_a_block_variable#DispatchA#class.3cc12dd22127281b8293b7c046d21bb2_4" -> "dispatch_a_block_variable#DispatchA#class.3cc12dd22127281b8293b7c046d21bb2_3" ; -"dispatch_a_block_variable#DispatchA#class.3cc12dd22127281b8293b7c046d21bb2_5" [label="5: DeclStmt \n n$24=_fun___variable_initialization(&initialization_block__:_fn_(*)) [line 54, column 3]\n *&initialization_block__:_fn_(*)=(_fun_objc_blockDispatchA_dispatch_a_block_variable_4) [line 54, column 3]\n EXIT_SCOPE(n$24); [line 54, column 3]\n " shape="box"] +"dispatch_a_block_variable#DispatchA#class.3cc12dd22127281b8293b7c046d21bb2_5" [label="5: DeclStmt \n n$24=_fun___variable_initialization(&initialization_block__:_fn_(*)) assign_last [line 54, column 3]\n *&initialization_block__:_fn_(*)=(_fun_objc_blockDispatchA_dispatch_a_block_variable_4) [line 54, column 3]\n EXIT_SCOPE(n$24); [line 54, column 3]\n " shape="box"] "dispatch_a_block_variable#DispatchA#class.3cc12dd22127281b8293b7c046d21bb2_5" -> "dispatch_a_block_variable#DispatchA#class.3cc12dd22127281b8293b7c046d21bb2_4" ; @@ -152,7 +152,7 @@ digraph cfg { "dispatch_a_block_variable_from_macro#DispatchA#class.92567a38d5ab3cf637f72030b1097441_4" -> "dispatch_a_block_variable_from_macro#DispatchA#class.92567a38d5ab3cf637f72030b1097441_3" ; -"dispatch_a_block_variable_from_macro#DispatchA#class.92567a38d5ab3cf637f72030b1097441_5" [label="5: DeclStmt \n n$30=_fun___variable_initialization(&initialization_block__:_fn_(*)) [line 65, column 5]\n *&initialization_block__:_fn_(*)=(_fun_objc_blockDispatchA_dispatch_a_block_variable_from_macro_5) [line 65, column 5]\n EXIT_SCOPE(n$30); [line 65, column 5]\n " shape="box"] +"dispatch_a_block_variable_from_macro#DispatchA#class.92567a38d5ab3cf637f72030b1097441_5" [label="5: DeclStmt \n n$30=_fun___variable_initialization(&initialization_block__:_fn_(*)) assign_last [line 65, column 5]\n *&initialization_block__:_fn_(*)=(_fun_objc_blockDispatchA_dispatch_a_block_variable_from_macro_5) [line 65, column 5]\n EXIT_SCOPE(n$30); [line 65, column 5]\n " shape="box"] "dispatch_a_block_variable_from_macro#DispatchA#class.92567a38d5ab3cf637f72030b1097441_5" -> "dispatch_a_block_variable_from_macro#DispatchA#class.92567a38d5ab3cf637f72030b1097441_4" ; @@ -175,7 +175,7 @@ digraph cfg { "dispatch_a_block_variable_from_macro_delivers_initialised_object#DispatchA#class.a58ef5afb5e1e9480b49788e2400c52c_4" -> "dispatch_a_block_variable_from_macro_delivers_initialised_object#DispatchA#class.a58ef5afb5e1e9480b49788e2400c52c_3" ; -"dispatch_a_block_variable_from_macro_delivers_initialised_object#DispatchA#class.a58ef5afb5e1e9480b49788e2400c52c_5" [label="5: DeclStmt \n n$35=_fun___variable_initialization(&a:DispatchA*) [line 75, column 3]\n n$34=_fun_DispatchA_dispatch_a_block_variable_from_macro() [line 75, column 18]\n *&a:DispatchA*=n$34 [line 75, column 3]\n EXIT_SCOPE(n$34,n$35); [line 75, column 3]\n " shape="box"] +"dispatch_a_block_variable_from_macro_delivers_initialised_object#DispatchA#class.a58ef5afb5e1e9480b49788e2400c52c_5" [label="5: DeclStmt \n n$35=_fun___variable_initialization(&a:DispatchA*) assign_last [line 75, column 3]\n n$34=_fun_DispatchA_dispatch_a_block_variable_from_macro() [line 75, column 18]\n *&a:DispatchA*=n$34 [line 75, column 3]\n EXIT_SCOPE(n$34,n$35); [line 75, column 3]\n " shape="box"] "dispatch_a_block_variable_from_macro_delivers_initialised_object#DispatchA#class.a58ef5afb5e1e9480b49788e2400c52c_5" -> "dispatch_a_block_variable_from_macro_delivers_initialised_object#DispatchA#class.a58ef5afb5e1e9480b49788e2400c52c_4" ; @@ -209,7 +209,7 @@ digraph cfg { "trans#DispatchA#class.23f9d908a87deca79c235bc76ca6e941_4" -> "trans#DispatchA#class.23f9d908a87deca79c235bc76ca6e941_3" ; -"trans#DispatchA#class.23f9d908a87deca79c235bc76ca6e941_5" [label="5: DeclStmt \n n$18=_fun___variable_initialization(&dummy_block:_fn_(*)) [line 45, column 3]\n *&dummy_block:_fn_(*)=(_fun_objc_blockDispatchA_trans_3) [line 45, column 3]\n EXIT_SCOPE(n$18); [line 45, column 3]\n " shape="box"] +"trans#DispatchA#class.23f9d908a87deca79c235bc76ca6e941_5" [label="5: DeclStmt \n n$18=_fun___variable_initialization(&dummy_block:_fn_(*)) assign_last [line 45, column 3]\n *&dummy_block:_fn_(*)=(_fun_objc_blockDispatchA_trans_3) [line 45, column 3]\n EXIT_SCOPE(n$18); [line 45, column 3]\n " shape="box"] "trans#DispatchA#class.23f9d908a87deca79c235bc76ca6e941_5" -> "trans#DispatchA#class.23f9d908a87deca79c235bc76ca6e941_4" ; diff --git a/infer/tests/codetoanalyze/objc/shared/block/dispatch_examples.m.dot b/infer/tests/codetoanalyze/objc/shared/block/dispatch_examples.m.dot index 1bfe1c1a8..52d80688f 100644 --- a/infer/tests/codetoanalyze/objc/shared/block/dispatch_examples.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/block/dispatch_examples.m.dot @@ -105,7 +105,7 @@ digraph cfg { "dispatch_after_example#DispatchEx#class.1d25856bd99eb1ef683c8f65ff46d05d_4" -> "dispatch_after_example#DispatchEx#class.1d25856bd99eb1ef683c8f65ff46d05d_3" ; -"dispatch_after_example#DispatchEx#class.1d25856bd99eb1ef683c8f65ff46d05d_5" [label="5: DeclStmt \n n$24=_fun___variable_initialization(&#GB$DispatchEx_dispatch_after_example.a:DispatchEx*) [line 45, column 3]\n *&#GB$DispatchEx_dispatch_after_example.a:DispatchEx*=null [line 45, column 3]\n EXIT_SCOPE(n$24); [line 45, column 3]\n " shape="box"] +"dispatch_after_example#DispatchEx#class.1d25856bd99eb1ef683c8f65ff46d05d_5" [label="5: DeclStmt \n n$24=_fun___variable_initialization(&#GB$DispatchEx_dispatch_after_example.a:DispatchEx*) assign_last [line 45, column 3]\n *&#GB$DispatchEx_dispatch_after_example.a:DispatchEx*=null [line 45, column 3]\n EXIT_SCOPE(n$24); [line 45, column 3]\n " shape="box"] "dispatch_after_example#DispatchEx#class.1d25856bd99eb1ef683c8f65ff46d05d_5" -> "dispatch_after_example#DispatchEx#class.1d25856bd99eb1ef683c8f65ff46d05d_4" ; @@ -124,7 +124,7 @@ digraph cfg { "dispatch_async_example#DispatchEx#class.5c5d7347be2a9654ad7e32514189fe54_4" -> "dispatch_async_example#DispatchEx#class.5c5d7347be2a9654ad7e32514189fe54_3" ; -"dispatch_async_example#DispatchEx#class.5c5d7347be2a9654ad7e32514189fe54_5" [label="5: DeclStmt \n n$15=_fun___variable_initialization(&#GB$DispatchEx_dispatch_async_example.a:DispatchEx*) [line 35, column 3]\n *&#GB$DispatchEx_dispatch_async_example.a:DispatchEx*=null [line 35, column 3]\n EXIT_SCOPE(n$15); [line 35, column 3]\n " shape="box"] +"dispatch_async_example#DispatchEx#class.5c5d7347be2a9654ad7e32514189fe54_5" [label="5: DeclStmt \n n$15=_fun___variable_initialization(&#GB$DispatchEx_dispatch_async_example.a:DispatchEx*) assign_last [line 35, column 3]\n *&#GB$DispatchEx_dispatch_async_example.a:DispatchEx*=null [line 35, column 3]\n EXIT_SCOPE(n$15); [line 35, column 3]\n " shape="box"] "dispatch_async_example#DispatchEx#class.5c5d7347be2a9654ad7e32514189fe54_5" -> "dispatch_async_example#DispatchEx#class.5c5d7347be2a9654ad7e32514189fe54_4" ; @@ -143,7 +143,7 @@ digraph cfg { "dispatch_barrier_example#DispatchEx#class.a541a40f2f04e29019c58e563f7544d8_4" -> "dispatch_barrier_example#DispatchEx#class.a541a40f2f04e29019c58e563f7544d8_3" ; -"dispatch_barrier_example#DispatchEx#class.a541a40f2f04e29019c58e563f7544d8_5" [label="5: DeclStmt \n n$48=_fun___variable_initialization(&#GB$DispatchEx_dispatch_barrier_example.a:DispatchEx*) [line 74, column 3]\n *&#GB$DispatchEx_dispatch_barrier_example.a:DispatchEx*=null [line 74, column 3]\n EXIT_SCOPE(n$48); [line 74, column 3]\n " shape="box"] +"dispatch_barrier_example#DispatchEx#class.a541a40f2f04e29019c58e563f7544d8_5" [label="5: DeclStmt \n n$48=_fun___variable_initialization(&#GB$DispatchEx_dispatch_barrier_example.a:DispatchEx*) assign_last [line 74, column 3]\n *&#GB$DispatchEx_dispatch_barrier_example.a:DispatchEx*=null [line 74, column 3]\n EXIT_SCOPE(n$48); [line 74, column 3]\n " shape="box"] "dispatch_barrier_example#DispatchEx#class.a541a40f2f04e29019c58e563f7544d8_5" -> "dispatch_barrier_example#DispatchEx#class.a541a40f2f04e29019c58e563f7544d8_4" ; @@ -162,7 +162,7 @@ digraph cfg { "dispatch_group_example#DispatchEx#class.f420a75c58eda6d3f0e5e05fadabfc18_4" -> "dispatch_group_example#DispatchEx#class.f420a75c58eda6d3f0e5e05fadabfc18_3" ; -"dispatch_group_example#DispatchEx#class.f420a75c58eda6d3f0e5e05fadabfc18_5" [label="5: DeclStmt \n n$32=_fun___variable_initialization(&#GB$DispatchEx_dispatch_group_example.a:DispatchEx*) [line 56, column 3]\n *&#GB$DispatchEx_dispatch_group_example.a:DispatchEx*=null [line 56, column 3]\n EXIT_SCOPE(n$32); [line 56, column 3]\n " shape="box"] +"dispatch_group_example#DispatchEx#class.f420a75c58eda6d3f0e5e05fadabfc18_5" [label="5: DeclStmt \n n$32=_fun___variable_initialization(&#GB$DispatchEx_dispatch_group_example.a:DispatchEx*) assign_last [line 56, column 3]\n *&#GB$DispatchEx_dispatch_group_example.a:DispatchEx*=null [line 56, column 3]\n EXIT_SCOPE(n$32); [line 56, column 3]\n " shape="box"] "dispatch_group_example#DispatchEx#class.f420a75c58eda6d3f0e5e05fadabfc18_5" -> "dispatch_group_example#DispatchEx#class.f420a75c58eda6d3f0e5e05fadabfc18_4" ; @@ -181,7 +181,7 @@ digraph cfg { "dispatch_group_notify_example#DispatchEx#class.f5cf54b07621c319cf7ead3b217760ed_4" -> "dispatch_group_notify_example#DispatchEx#class.f5cf54b07621c319cf7ead3b217760ed_3" ; -"dispatch_group_notify_example#DispatchEx#class.f5cf54b07621c319cf7ead3b217760ed_5" [label="5: DeclStmt \n n$40=_fun___variable_initialization(&#GB$DispatchEx_dispatch_group_notify_example.a:DispatchEx*) [line 65, column 3]\n *&#GB$DispatchEx_dispatch_group_notify_example.a:DispatchEx*=null [line 65, column 3]\n EXIT_SCOPE(n$40); [line 65, column 3]\n " shape="box"] +"dispatch_group_notify_example#DispatchEx#class.f5cf54b07621c319cf7ead3b217760ed_5" [label="5: DeclStmt \n n$40=_fun___variable_initialization(&#GB$DispatchEx_dispatch_group_notify_example.a:DispatchEx*) assign_last [line 65, column 3]\n *&#GB$DispatchEx_dispatch_group_notify_example.a:DispatchEx*=null [line 65, column 3]\n EXIT_SCOPE(n$40); [line 65, column 3]\n " shape="box"] "dispatch_group_notify_example#DispatchEx#class.f5cf54b07621c319cf7ead3b217760ed_5" -> "dispatch_group_notify_example#DispatchEx#class.f5cf54b07621c319cf7ead3b217760ed_4" ; @@ -200,7 +200,7 @@ digraph cfg { "dispatch_once_example#DispatchEx#class.d3456446b1a2d5355c1767887cc8b62c_4" -> "dispatch_once_example#DispatchEx#class.d3456446b1a2d5355c1767887cc8b62c_3" ; -"dispatch_once_example#DispatchEx#class.d3456446b1a2d5355c1767887cc8b62c_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&#GB$DispatchEx_dispatch_once_example.a:DispatchEx*) [line 23, column 3]\n *&#GB$DispatchEx_dispatch_once_example.a:DispatchEx*=null [line 23, column 3]\n EXIT_SCOPE(n$7); [line 23, column 3]\n " shape="box"] +"dispatch_once_example#DispatchEx#class.d3456446b1a2d5355c1767887cc8b62c_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&#GB$DispatchEx_dispatch_once_example.a:DispatchEx*) assign_last [line 23, column 3]\n *&#GB$DispatchEx_dispatch_once_example.a:DispatchEx*=null [line 23, column 3]\n EXIT_SCOPE(n$7); [line 23, column 3]\n " shape="box"] "dispatch_once_example#DispatchEx#class.d3456446b1a2d5355c1767887cc8b62c_5" -> "dispatch_once_example#DispatchEx#class.d3456446b1a2d5355c1767887cc8b62c_4" ; diff --git a/infer/tests/codetoanalyze/objc/shared/category_procdesc/main.c.dot b/infer/tests/codetoanalyze/objc/shared/category_procdesc/main.c.dot index 4b71d4572..ef77dfae6 100644 --- a/infer/tests/codetoanalyze/objc/shared/category_procdesc/main.c.dot +++ b/infer/tests/codetoanalyze/objc/shared/category_procdesc/main.c.dot @@ -11,7 +11,7 @@ digraph cfg { "CategoryProcdescMain.ae2ee334c26ccbf8ee413efe5d896611_3" -> "CategoryProcdescMain.ae2ee334c26ccbf8ee413efe5d896611_2" ; -"CategoryProcdescMain.ae2ee334c26ccbf8ee413efe5d896611_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&x:int*) [line 14, column 3]\n n$0=_fun_malloc_no_fail(sizeof(t=int;nbytes=4):int) [line 14, column 12]\n *&x:int*=(int*)n$0 [line 14, column 3]\n EXIT_SCOPE(n$0,n$1,x); [line 14, column 3]\n " shape="box"] +"CategoryProcdescMain.ae2ee334c26ccbf8ee413efe5d896611_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&x:int*) assign_last [line 14, column 3]\n n$0=_fun_malloc_no_fail(sizeof(t=int;nbytes=4):int) [line 14, column 12]\n *&x:int*=(int*)n$0 [line 14, column 3]\n EXIT_SCOPE(n$0,n$1,x); [line 14, column 3]\n " shape="box"] "CategoryProcdescMain.ae2ee334c26ccbf8ee413efe5d896611_4" -> "CategoryProcdescMain.ae2ee334c26ccbf8ee413efe5d896611_3" ; @@ -19,7 +19,7 @@ digraph cfg { "CategoryProcdescMain.ae2ee334c26ccbf8ee413efe5d896611_5" -> "CategoryProcdescMain.ae2ee334c26ccbf8ee413efe5d896611_4" ; -"CategoryProcdescMain.ae2ee334c26ccbf8ee413efe5d896611_6" [label="6: DeclStmt \n n$6=_fun___variable_initialization(&person:EOCPerson*) [line 12, column 3]\n n$4=_fun___objc_alloc_no_fail(sizeof(t=EOCPerson):unsigned long) [line 12, column 24]\n n$5=_fun_NSObject_init(n$4:EOCPerson*) virtual [line 12, column 23]\n *&person:EOCPerson*=n$5 [line 12, column 3]\n EXIT_SCOPE(n$4,n$5,n$6); [line 12, column 3]\n " shape="box"] +"CategoryProcdescMain.ae2ee334c26ccbf8ee413efe5d896611_6" [label="6: DeclStmt \n n$6=_fun___variable_initialization(&person:EOCPerson*) assign_last [line 12, column 3]\n n$4=_fun___objc_alloc_no_fail(sizeof(t=EOCPerson):unsigned long) [line 12, column 24]\n n$5=_fun_NSObject_init(n$4:EOCPerson*) virtual [line 12, column 23]\n *&person:EOCPerson*=n$5 [line 12, column 3]\n EXIT_SCOPE(n$4,n$5,n$6); [line 12, column 3]\n " shape="box"] "CategoryProcdescMain.ae2ee334c26ccbf8ee413efe5d896611_6" -> "CategoryProcdescMain.ae2ee334c26ccbf8ee413efe5d896611_5" ; diff --git a/infer/tests/codetoanalyze/objc/shared/field_superclass/SuperExample.m.dot b/infer/tests/codetoanalyze/objc/shared/field_superclass/SuperExample.m.dot index 4fa50c612..98c73197b 100644 --- a/infer/tests/codetoanalyze/objc/shared/field_superclass/SuperExample.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/field_superclass/SuperExample.m.dot @@ -7,7 +7,7 @@ digraph cfg { "super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_2" [label="2: Exit super_example_main \n NULLIFY(&a); [line 42, column 1]\n " color=yellow style=filled] -"super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&a:objc_object*) [line 40, column 5]\n n$0=_fun___objc_alloc_no_fail(sizeof(t=ASuper):unsigned long) [line 40, column 21]\n n$1=_fun_NSObject_init(n$0:ASuper*) virtual [line 40, column 21]\n *&a:objc_object*=n$1 [line 40, column 5]\n EXIT_SCOPE(n$0,n$1,n$2,a); [line 40, column 5]\n APPLY_ABSTRACTION; [line 40, column 5]\n " shape="box"] +"super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&a:objc_object*) assign_last [line 40, column 5]\n n$0=_fun___objc_alloc_no_fail(sizeof(t=ASuper):unsigned long) [line 40, column 21]\n n$1=_fun_NSObject_init(n$0:ASuper*) virtual [line 40, column 21]\n *&a:objc_object*=n$1 [line 40, column 5]\n EXIT_SCOPE(n$0,n$1,n$2,a); [line 40, column 5]\n APPLY_ABSTRACTION; [line 40, column 5]\n " shape="box"] "super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_3" -> "super_example_main.e3ebe95e6c5ae811733f235c29fbbf6d_2" ; diff --git a/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/ArcExample.m.dot b/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/ArcExample.m.dot index 401306f07..e4c4616d5 100644 --- a/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/ArcExample.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/ArcExample.m.dot @@ -11,7 +11,7 @@ digraph cfg { "getS#ArcA#instance.a6d142da8215d5903690f8a054289ac7_3" -> "getS#ArcA#instance.a6d142da8215d5903690f8a054289ac7_2" ; -"getS#ArcA#instance.a6d142da8215d5903690f8a054289ac7_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&s:NSString*) [line 21, column 3]\n n$1=_fun___objc_alloc_no_fail(sizeof(t=NSString):unsigned long) [line 21, column 17]\n *&s:NSString*=n$1 [line 21, column 3]\n EXIT_SCOPE(n$1,n$2); [line 21, column 3]\n " shape="box"] +"getS#ArcA#instance.a6d142da8215d5903690f8a054289ac7_4" [label="4: DeclStmt \n n$2=_fun___variable_initialization(&s:NSString*) assign_last [line 21, column 3]\n n$1=_fun___objc_alloc_no_fail(sizeof(t=NSString):unsigned long) [line 21, column 17]\n *&s:NSString*=n$1 [line 21, column 3]\n EXIT_SCOPE(n$1,n$2); [line 21, column 3]\n " shape="box"] "getS#ArcA#instance.a6d142da8215d5903690f8a054289ac7_4" -> "getS#ArcA#instance.a6d142da8215d5903690f8a054289ac7_3" ; @@ -26,7 +26,7 @@ digraph cfg { "newS#ArcA#instance.9d1f2aa4ea1ccfd32c1438724cfc19ba_3" -> "newS#ArcA#instance.9d1f2aa4ea1ccfd32c1438724cfc19ba_2" ; -"newS#ArcA#instance.9d1f2aa4ea1ccfd32c1438724cfc19ba_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&s:NSString*) [line 27, column 3]\n n$4=_fun___objc_alloc_no_fail(sizeof(t=NSString):unsigned long) [line 27, column 17]\n *&s:NSString*=n$4 [line 27, column 3]\n EXIT_SCOPE(n$4,n$5); [line 27, column 3]\n " shape="box"] +"newS#ArcA#instance.9d1f2aa4ea1ccfd32c1438724cfc19ba_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&s:NSString*) assign_last [line 27, column 3]\n n$4=_fun___objc_alloc_no_fail(sizeof(t=NSString):unsigned long) [line 27, column 17]\n *&s:NSString*=n$4 [line 27, column 3]\n EXIT_SCOPE(n$4,n$5); [line 27, column 3]\n " shape="box"] "newS#ArcA#instance.9d1f2aa4ea1ccfd32c1438724cfc19ba_4" -> "newS#ArcA#instance.9d1f2aa4ea1ccfd32c1438724cfc19ba_3" ; diff --git a/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/AutoreleaseExample.m.dot b/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/AutoreleaseExample.m.dot index cfbad3bd6..a0d8d646e 100644 --- a/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/AutoreleaseExample.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/AutoreleaseExample.m.dot @@ -27,15 +27,15 @@ digraph cfg { "autorelease_test1.8f3499e28c7129f0f6b2300d214d7864_7" -> "autorelease_test1.8f3499e28c7129f0f6b2300d214d7864_6" ; -"autorelease_test1.8f3499e28c7129f0f6b2300d214d7864_8" [label="8: DeclStmt \n n$5=_fun___variable_initialization(&s3:Auto*) [line 35, column 3]\n *&s3:Auto*=null [line 35, column 3]\n EXIT_SCOPE(n$5,s3); [line 35, column 3]\n " shape="box"] +"autorelease_test1.8f3499e28c7129f0f6b2300d214d7864_8" [label="8: DeclStmt \n n$5=_fun___variable_initialization(&s3:Auto*) assign_last [line 35, column 3]\n *&s3:Auto*=null [line 35, column 3]\n EXIT_SCOPE(n$5,s3); [line 35, column 3]\n " shape="box"] "autorelease_test1.8f3499e28c7129f0f6b2300d214d7864_8" -> "autorelease_test1.8f3499e28c7129f0f6b2300d214d7864_7" ; -"autorelease_test1.8f3499e28c7129f0f6b2300d214d7864_9" [label="9: DeclStmt \n n$6=_fun___variable_initialization(&s2:Auto*) [line 34, column 3]\n *&s2:Auto*=null [line 34, column 3]\n EXIT_SCOPE(n$6,s2); [line 34, column 3]\n " shape="box"] +"autorelease_test1.8f3499e28c7129f0f6b2300d214d7864_9" [label="9: DeclStmt \n n$6=_fun___variable_initialization(&s2:Auto*) assign_last [line 34, column 3]\n *&s2:Auto*=null [line 34, column 3]\n EXIT_SCOPE(n$6,s2); [line 34, column 3]\n " shape="box"] "autorelease_test1.8f3499e28c7129f0f6b2300d214d7864_9" -> "autorelease_test1.8f3499e28c7129f0f6b2300d214d7864_8" ; -"autorelease_test1.8f3499e28c7129f0f6b2300d214d7864_10" [label="10: DeclStmt \n n$7=_fun___variable_initialization(&s1:Auto*) [line 33, column 3]\n *&s1:Auto*=null [line 33, column 3]\n EXIT_SCOPE(n$7,s1); [line 33, column 3]\n " shape="box"] +"autorelease_test1.8f3499e28c7129f0f6b2300d214d7864_10" [label="10: DeclStmt \n n$7=_fun___variable_initialization(&s1:Auto*) assign_last [line 33, column 3]\n *&s1:Auto*=null [line 33, column 3]\n EXIT_SCOPE(n$7,s1); [line 33, column 3]\n " shape="box"] "autorelease_test1.8f3499e28c7129f0f6b2300d214d7864_10" -> "autorelease_test1.8f3499e28c7129f0f6b2300d214d7864_9" ; @@ -62,15 +62,15 @@ digraph cfg { "autorelease_test2.d978c6e21f1931e19bc731b4ffb90225_6" -> "autorelease_test2.d978c6e21f1931e19bc731b4ffb90225_5" ; -"autorelease_test2.d978c6e21f1931e19bc731b4ffb90225_7" [label="7: DeclStmt \n n$3=_fun___variable_initialization(&s3:Auto*) [line 48, column 3]\n *&s3:Auto*=null [line 48, column 3]\n EXIT_SCOPE(n$3,s3); [line 48, column 3]\n " shape="box"] +"autorelease_test2.d978c6e21f1931e19bc731b4ffb90225_7" [label="7: DeclStmt \n n$3=_fun___variable_initialization(&s3:Auto*) assign_last [line 48, column 3]\n *&s3:Auto*=null [line 48, column 3]\n EXIT_SCOPE(n$3,s3); [line 48, column 3]\n " shape="box"] "autorelease_test2.d978c6e21f1931e19bc731b4ffb90225_7" -> "autorelease_test2.d978c6e21f1931e19bc731b4ffb90225_6" ; -"autorelease_test2.d978c6e21f1931e19bc731b4ffb90225_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&s2:Auto*) [line 47, column 3]\n *&s2:Auto*=null [line 47, column 3]\n EXIT_SCOPE(n$4,s2); [line 47, column 3]\n " shape="box"] +"autorelease_test2.d978c6e21f1931e19bc731b4ffb90225_8" [label="8: DeclStmt \n n$4=_fun___variable_initialization(&s2:Auto*) assign_last [line 47, column 3]\n *&s2:Auto*=null [line 47, column 3]\n EXIT_SCOPE(n$4,s2); [line 47, column 3]\n " shape="box"] "autorelease_test2.d978c6e21f1931e19bc731b4ffb90225_8" -> "autorelease_test2.d978c6e21f1931e19bc731b4ffb90225_7" ; -"autorelease_test2.d978c6e21f1931e19bc731b4ffb90225_9" [label="9: DeclStmt \n n$5=_fun___variable_initialization(&s1:Auto*) [line 46, column 3]\n *&s1:Auto*=null [line 46, column 3]\n EXIT_SCOPE(n$5,s1); [line 46, column 3]\n " shape="box"] +"autorelease_test2.d978c6e21f1931e19bc731b4ffb90225_9" [label="9: DeclStmt \n n$5=_fun___variable_initialization(&s1:Auto*) assign_last [line 46, column 3]\n *&s1:Auto*=null [line 46, column 3]\n EXIT_SCOPE(n$5,s1); [line 46, column 3]\n " shape="box"] "autorelease_test2.d978c6e21f1931e19bc731b4ffb90225_9" -> "autorelease_test2.d978c6e21f1931e19bc731b4ffb90225_8" ; @@ -81,7 +81,7 @@ digraph cfg { "autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_2" [label="2: Exit autorelease_test3 \n NULLIFY(&pool); [line 63, column 1]\n NULLIFY(&c); [line 63, column 1]\n NULLIFY(&string); [line 63, column 1]\n " color=yellow style=filled] -"autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&c:NSString*) [line 62, column 3]\n n$0=*&string:NSString* [line 62, column 17]\n *&c:NSString*=n$0 [line 62, column 3]\n EXIT_SCOPE(n$0,n$1,string,c); [line 62, column 3]\n APPLY_ABSTRACTION; [line 62, column 3]\n " shape="box"] +"autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&c:NSString*) assign_last [line 62, column 3]\n n$0=*&string:NSString* [line 62, column 17]\n *&c:NSString*=n$0 [line 62, column 3]\n EXIT_SCOPE(n$0,n$1,string,c); [line 62, column 3]\n APPLY_ABSTRACTION; [line 62, column 3]\n " shape="box"] "autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_3" -> "autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_2" ; @@ -89,11 +89,11 @@ digraph cfg { "autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_4" -> "autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_3" ; -"autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&string:NSString*) [line 59, column 3]\n n$4=_fun___objc_alloc_no_fail(sizeof(t=NSString):unsigned long) [line 59, column 23]\n n$5=_fun_NSObject_autorelease(n$4:NSString*) virtual [line 59, column 22]\n *&string:NSString*=n$5 [line 59, column 3]\n EXIT_SCOPE(n$4,n$5,n$6); [line 59, column 3]\n " shape="box"] +"autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&string:NSString*) assign_last [line 59, column 3]\n n$4=_fun___objc_alloc_no_fail(sizeof(t=NSString):unsigned long) [line 59, column 23]\n n$5=_fun_NSObject_autorelease(n$4:NSString*) virtual [line 59, column 22]\n *&string:NSString*=n$5 [line 59, column 3]\n EXIT_SCOPE(n$4,n$5,n$6); [line 59, column 3]\n " shape="box"] "autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_5" -> "autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_4" ; -"autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&pool:NSAutoreleasePool*) [line 58, column 3]\n n$7=_fun___objc_alloc_no_fail(sizeof(t=NSAutoreleasePool):unsigned long) [line 58, column 30]\n n$8=_fun_NSObject_init(n$7:NSAutoreleasePool*) virtual [line 58, column 29]\n *&pool:NSAutoreleasePool*=n$8 [line 58, column 3]\n EXIT_SCOPE(n$7,n$8,n$9); [line 58, column 3]\n " shape="box"] +"autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&pool:NSAutoreleasePool*) assign_last [line 58, column 3]\n n$7=_fun___objc_alloc_no_fail(sizeof(t=NSAutoreleasePool):unsigned long) [line 58, column 30]\n n$8=_fun_NSObject_init(n$7:NSAutoreleasePool*) virtual [line 58, column 29]\n *&pool:NSAutoreleasePool*=n$8 [line 58, column 3]\n EXIT_SCOPE(n$7,n$8,n$9); [line 58, column 3]\n " shape="box"] "autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_6" -> "autorelease_test3.5fa2e6ceb6075e26a47f9b8c9cdf65ba_5" ; @@ -108,7 +108,7 @@ digraph cfg { "createA.48a5d7f480131d59bba69d521715b836_3" -> "createA.48a5d7f480131d59bba69d521715b836_2" ; -"createA.48a5d7f480131d59bba69d521715b836_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&s1:Auto*) [line 28, column 3]\n n$2=_fun___objc_alloc_no_fail(sizeof(t=Auto):unsigned long) [line 28, column 15]\n n$3=_fun_NSObject_init(n$2:Auto*) virtual [line 28, column 14]\n *&s1:Auto*=n$3 [line 28, column 3]\n EXIT_SCOPE(n$2,n$3,n$4); [line 28, column 3]\n " shape="box"] +"createA.48a5d7f480131d59bba69d521715b836_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&s1:Auto*) assign_last [line 28, column 3]\n n$2=_fun___objc_alloc_no_fail(sizeof(t=Auto):unsigned long) [line 28, column 15]\n n$3=_fun_NSObject_init(n$2:Auto*) virtual [line 28, column 14]\n *&s1:Auto*=n$3 [line 28, column 3]\n EXIT_SCOPE(n$2,n$3,n$4); [line 28, column 3]\n " shape="box"] "createA.48a5d7f480131d59bba69d521715b836_4" -> "createA.48a5d7f480131d59bba69d521715b836_3" ; @@ -123,7 +123,7 @@ digraph cfg { "autorelease_main#Auto#instance.dbdd003a511fe2beb7e0a817d39f6fd8_3" -> "autorelease_main#Auto#instance.dbdd003a511fe2beb7e0a817d39f6fd8_2" ; -"autorelease_main#Auto#instance.dbdd003a511fe2beb7e0a817d39f6fd8_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&s:NSString*) [line 21, column 3]\n n$2=_fun___objc_alloc_no_fail(sizeof(t=NSString):unsigned long) [line 21, column 17]\n *&s:NSString*=n$2 [line 21, column 3]\n EXIT_SCOPE(n$2,n$3); [line 21, column 3]\n " shape="box"] +"autorelease_main#Auto#instance.dbdd003a511fe2beb7e0a817d39f6fd8_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&s:NSString*) assign_last [line 21, column 3]\n n$2=_fun___objc_alloc_no_fail(sizeof(t=NSString):unsigned long) [line 21, column 17]\n *&s:NSString*=n$2 [line 21, column 3]\n EXIT_SCOPE(n$2,n$3); [line 21, column 3]\n " shape="box"] "autorelease_main#Auto#instance.dbdd003a511fe2beb7e0a817d39f6fd8_4" -> "autorelease_main#Auto#instance.dbdd003a511fe2beb7e0a817d39f6fd8_3" ; diff --git a/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/MemoryLeakExample.m.dot b/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/MemoryLeakExample.m.dot index 78386e7c1..6c27b3fd6 100644 --- a/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/MemoryLeakExample.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/MemoryLeakExample.m.dot @@ -26,7 +26,7 @@ digraph cfg { "objc_blockMemoryLeakExample_blockFreeNoLeak_2.1717186f4031a201971ac91124f16c98_4" -> "objc_blockMemoryLeakExample_blockFreeNoLeak_2.1717186f4031a201971ac91124f16c98_3" ; -"objc_blockMemoryLeakExample_blockFreeNoLeak_2.1717186f4031a201971ac91124f16c98_5" [label="5: DeclStmt \n n$77=_fun___variable_initialization(&i:int) [line 104, column 5]\n n$75=*&x:int* [line 104, column 14]\n n$76=*n$75:int [line 104, column 13]\n *&i:int=n$76 [line 104, column 5]\n EXIT_SCOPE(n$75,n$76,n$77); [line 104, column 5]\n " shape="box"] +"objc_blockMemoryLeakExample_blockFreeNoLeak_2.1717186f4031a201971ac91124f16c98_5" [label="5: DeclStmt \n n$77=_fun___variable_initialization(&i:int) assign_last [line 104, column 5]\n n$75=*&x:int* [line 104, column 14]\n n$76=*n$75:int [line 104, column 13]\n *&i:int=n$76 [line 104, column 5]\n EXIT_SCOPE(n$75,n$76,n$77); [line 104, column 5]\n " shape="box"] "objc_blockMemoryLeakExample_blockFreeNoLeak_2.1717186f4031a201971ac91124f16c98_5" -> "objc_blockMemoryLeakExample_blockFreeNoLeak_2.1717186f4031a201971ac91124f16c98_4" ; @@ -56,11 +56,11 @@ digraph cfg { "createCloseCrossGlyphNoLeak:#MemoryLeakExample#class.0954bcd442044fd9788af38303a3790b_3" -> "createCloseCrossGlyphNoLeak:#MemoryLeakExample#class.0954bcd442044fd9788af38303a3790b_2" ; -"createCloseCrossGlyphNoLeak:#MemoryLeakExample#class.0954bcd442044fd9788af38303a3790b_4" [label="4: DeclStmt \n n$37=_fun___variable_initialization(&path1:CGPath*) [line 60, column 3]\n n$36=_fun_CGPathCreateMutable() [line 60, column 28]\n *&path1:CGPath*=n$36 [line 60, column 3]\n EXIT_SCOPE(n$36,n$37); [line 60, column 3]\n " shape="box"] +"createCloseCrossGlyphNoLeak:#MemoryLeakExample#class.0954bcd442044fd9788af38303a3790b_4" [label="4: DeclStmt \n n$37=_fun___variable_initialization(&path1:CGPath*) assign_last [line 60, column 3]\n n$36=_fun_CGPathCreateMutable() [line 60, column 28]\n *&path1:CGPath*=n$36 [line 60, column 3]\n EXIT_SCOPE(n$36,n$37); [line 60, column 3]\n " shape="box"] "createCloseCrossGlyphNoLeak:#MemoryLeakExample#class.0954bcd442044fd9788af38303a3790b_4" -> "createCloseCrossGlyphNoLeak:#MemoryLeakExample#class.0954bcd442044fd9788af38303a3790b_3" ; -"createCloseCrossGlyphNoLeak:#MemoryLeakExample#class.0954bcd442044fd9788af38303a3790b_5" [label="5: DeclStmt \n n$40=_fun___variable_initialization(&lineThickness:double) [line 57, column 3]\n n$38=*&rect:CGRect [line 57, column 51]\n n$39=_fun_CGRectGetHeight(n$38:CGRect) [line 57, column 35]\n *&lineThickness:double=(0.200000003 * n$39) [line 57, column 3]\n NULLIFY(&lineThickness); [line 57, column 3]\n NULLIFY(&rect); [line 57, column 3]\n EXIT_SCOPE(n$38,n$39,n$40,lineThickness,rect); [line 57, column 3]\n " shape="box"] +"createCloseCrossGlyphNoLeak:#MemoryLeakExample#class.0954bcd442044fd9788af38303a3790b_5" [label="5: DeclStmt \n n$40=_fun___variable_initialization(&lineThickness:double) assign_last [line 57, column 3]\n n$38=*&rect:CGRect [line 57, column 51]\n n$39=_fun_CGRectGetHeight(n$38:CGRect) [line 57, column 35]\n *&lineThickness:double=(0.200000003 * n$39) [line 57, column 3]\n NULLIFY(&lineThickness); [line 57, column 3]\n NULLIFY(&rect); [line 57, column 3]\n EXIT_SCOPE(n$38,n$39,n$40,lineThickness,rect); [line 57, column 3]\n " shape="box"] "createCloseCrossGlyphNoLeak:#MemoryLeakExample#class.0954bcd442044fd9788af38303a3790b_5" -> "createCloseCrossGlyphNoLeak:#MemoryLeakExample#class.0954bcd442044fd9788af38303a3790b_4" ; @@ -86,7 +86,7 @@ digraph cfg { "measureFrameSizeForTextNoLeak#MemoryLeakExample#class.9443bec011166230e1709abbe3c930d4_3" -> "measureFrameSizeForTextNoLeak#MemoryLeakExample#class.9443bec011166230e1709abbe3c930d4_2" ; -"measureFrameSizeForTextNoLeak#MemoryLeakExample#class.9443bec011166230e1709abbe3c930d4_4" [label="4: DeclStmt \n n$24=_fun___variable_initialization(&maString:__CFAttributedString*) [line 37, column 3]\n n$23=_fun_CFAttributedStringCreateMutable(null:__CFAllocator const *,0:long) [line 38, column 7]\n *&maString:__CFAttributedString*=n$23 [line 37, column 3]\n EXIT_SCOPE(n$23,n$24); [line 37, column 3]\n " shape="box"] +"measureFrameSizeForTextNoLeak#MemoryLeakExample#class.9443bec011166230e1709abbe3c930d4_4" [label="4: DeclStmt \n n$24=_fun___variable_initialization(&maString:__CFAttributedString*) assign_last [line 37, column 3]\n n$23=_fun_CFAttributedStringCreateMutable(null:__CFAllocator const *,0:long) [line 38, column 7]\n *&maString:__CFAttributedString*=n$23 [line 37, column 3]\n EXIT_SCOPE(n$23,n$24); [line 37, column 3]\n " shape="box"] "measureFrameSizeForTextNoLeak#MemoryLeakExample#class.9443bec011166230e1709abbe3c930d4_4" -> "measureFrameSizeForTextNoLeak#MemoryLeakExample#class.9443bec011166230e1709abbe3c930d4_3" ; @@ -112,7 +112,7 @@ digraph cfg { "test1NoLeak#MemoryLeakExample#class.7e0d9640dbd86a21622e801793707bd9_3" -> "test1NoLeak#MemoryLeakExample#class.7e0d9640dbd86a21622e801793707bd9_2" ; -"test1NoLeak#MemoryLeakExample#class.7e0d9640dbd86a21622e801793707bd9_4" [label="4: DeclStmt \n n$30=_fun___variable_initialization(&framesetter:__CTFramesetter const *) [line 47, column 3]\n n$29=_fun_CTFramesetterCreateWithAttributedString(null:__CFAttributedString const *) [line 47, column 34]\n *&framesetter:__CTFramesetter const *=n$29 [line 47, column 3]\n EXIT_SCOPE(n$29,n$30); [line 47, column 3]\n " shape="box"] +"test1NoLeak#MemoryLeakExample#class.7e0d9640dbd86a21622e801793707bd9_4" [label="4: DeclStmt \n n$30=_fun___variable_initialization(&framesetter:__CTFramesetter const *) assign_last [line 47, column 3]\n n$29=_fun_CTFramesetterCreateWithAttributedString(null:__CFAttributedString const *) [line 47, column 34]\n *&framesetter:__CTFramesetter const *=n$29 [line 47, column 3]\n EXIT_SCOPE(n$29,n$30); [line 47, column 3]\n " shape="box"] "test1NoLeak#MemoryLeakExample#class.7e0d9640dbd86a21622e801793707bd9_4" -> "test1NoLeak#MemoryLeakExample#class.7e0d9640dbd86a21622e801793707bd9_3" ; @@ -138,7 +138,7 @@ digraph cfg { "test2NoLeak#MemoryLeakExample#class.69cf0c35f7df26deefa723cac655894d_3" -> "test2NoLeak#MemoryLeakExample#class.69cf0c35f7df26deefa723cac655894d_2" ; -"test2NoLeak#MemoryLeakExample#class.69cf0c35f7df26deefa723cac655894d_4" [label="4: DeclStmt \n n$46=_fun___variable_initialization(&allowedPublicKey:__SecKey*) [line 69, column 3]\n n$45=_fun_SecTrustCopyPublicKey(null:__SecTrust*) [line 69, column 32]\n *&allowedPublicKey:__SecKey*=n$45 [line 69, column 3]\n EXIT_SCOPE(n$45,n$46); [line 69, column 3]\n " shape="box"] +"test2NoLeak#MemoryLeakExample#class.69cf0c35f7df26deefa723cac655894d_4" [label="4: DeclStmt \n n$46=_fun___variable_initialization(&allowedPublicKey:__SecKey*) assign_last [line 69, column 3]\n n$45=_fun_SecTrustCopyPublicKey(null:__SecTrust*) [line 69, column 32]\n *&allowedPublicKey:__SecKey*=n$45 [line 69, column 3]\n EXIT_SCOPE(n$45,n$46); [line 69, column 3]\n " shape="box"] "test2NoLeak#MemoryLeakExample#class.69cf0c35f7df26deefa723cac655894d_4" -> "test2NoLeak#MemoryLeakExample#class.69cf0c35f7df26deefa723cac655894d_3" ; @@ -153,7 +153,7 @@ digraph cfg { "testImageRefRelease#MemoryLeakExample#class.fa3cf5eac6a14b14c5050c7d62d2a79f_3" -> "testImageRefRelease#MemoryLeakExample#class.fa3cf5eac6a14b14c5050c7d62d2a79f_2" ; -"testImageRefRelease#MemoryLeakExample#class.fa3cf5eac6a14b14c5050c7d62d2a79f_4" [label="4: DeclStmt \n n$50=_fun___variable_initialization(&newImage:CGImage*) [line 74, column 3]\n n$49=_fun_CGBitmapContextCreateImage(null:CGContext*) [line 74, column 25]\n *&newImage:CGImage*=n$49 [line 74, column 3]\n EXIT_SCOPE(n$49,n$50); [line 74, column 3]\n " shape="box"] +"testImageRefRelease#MemoryLeakExample#class.fa3cf5eac6a14b14c5050c7d62d2a79f_4" [label="4: DeclStmt \n n$50=_fun___variable_initialization(&newImage:CGImage*) assign_last [line 74, column 3]\n n$49=_fun_CGBitmapContextCreateImage(null:CGContext*) [line 74, column 25]\n *&newImage:CGImage*=n$49 [line 74, column 3]\n EXIT_SCOPE(n$49,n$50); [line 74, column 3]\n " shape="box"] "testImageRefRelease#MemoryLeakExample#class.fa3cf5eac6a14b14c5050c7d62d2a79f_4" -> "testImageRefRelease#MemoryLeakExample#class.fa3cf5eac6a14b14c5050c7d62d2a79f_3" ; @@ -168,7 +168,7 @@ digraph cfg { "blockCapturedVarLeak#MemoryLeakExample#instance.53bb018bc84d6a696dc756e20b5b3f52_3" -> "blockCapturedVarLeak#MemoryLeakExample#instance.53bb018bc84d6a696dc756e20b5b3f52_2" ; -"blockCapturedVarLeak#MemoryLeakExample#instance.53bb018bc84d6a696dc756e20b5b3f52_4" [label="4: DeclStmt \n n$65=_fun___variable_initialization(&blk:_fn_(*)) [line 94, column 3]\n n$62=*&x:int* [line 94, column 22]\n *&blk:_fn_(*)=(_fun_objc_blockMemoryLeakExample_blockCapturedVarLeak_1,(n$62 &x:int*)) [line 94, column 3]\n EXIT_SCOPE(n$62,n$65,x); [line 94, column 3]\n " shape="box"] +"blockCapturedVarLeak#MemoryLeakExample#instance.53bb018bc84d6a696dc756e20b5b3f52_4" [label="4: DeclStmt \n n$65=_fun___variable_initialization(&blk:_fn_(*)) assign_last [line 94, column 3]\n n$62=*&x:int* [line 94, column 22]\n *&blk:_fn_(*)=(_fun_objc_blockMemoryLeakExample_blockCapturedVarLeak_1,(n$62 &x:int*)) [line 94, column 3]\n EXIT_SCOPE(n$62,n$65,x); [line 94, column 3]\n " shape="box"] "blockCapturedVarLeak#MemoryLeakExample#instance.53bb018bc84d6a696dc756e20b5b3f52_4" -> "blockCapturedVarLeak#MemoryLeakExample#instance.53bb018bc84d6a696dc756e20b5b3f52_3" ; @@ -176,7 +176,7 @@ digraph cfg { "blockCapturedVarLeak#MemoryLeakExample#instance.53bb018bc84d6a696dc756e20b5b3f52_5" -> "blockCapturedVarLeak#MemoryLeakExample#instance.53bb018bc84d6a696dc756e20b5b3f52_4" ; -"blockCapturedVarLeak#MemoryLeakExample#instance.53bb018bc84d6a696dc756e20b5b3f52_6" [label="6: DeclStmt \n n$68=_fun___variable_initialization(&x:int*) [line 92, column 3]\n n$67=_fun_malloc_no_fail(sizeof(t=int;nbytes=4):int) [line 92, column 12]\n *&x:int*=(int*)n$67 [line 92, column 3]\n EXIT_SCOPE(n$67,n$68); [line 92, column 3]\n " shape="box"] +"blockCapturedVarLeak#MemoryLeakExample#instance.53bb018bc84d6a696dc756e20b5b3f52_6" [label="6: DeclStmt \n n$68=_fun___variable_initialization(&x:int*) assign_last [line 92, column 3]\n n$67=_fun_malloc_no_fail(sizeof(t=int;nbytes=4):int) [line 92, column 12]\n *&x:int*=(int*)n$67 [line 92, column 3]\n EXIT_SCOPE(n$67,n$68); [line 92, column 3]\n " shape="box"] "blockCapturedVarLeak#MemoryLeakExample#instance.53bb018bc84d6a696dc756e20b5b3f52_6" -> "blockCapturedVarLeak#MemoryLeakExample#instance.53bb018bc84d6a696dc756e20b5b3f52_5" ; @@ -191,7 +191,7 @@ digraph cfg { "blockFreeNoLeak#MemoryLeakExample#instance.6bcefe2afb9f172f8aadbab54d9bd144_3" -> "blockFreeNoLeak#MemoryLeakExample#instance.6bcefe2afb9f172f8aadbab54d9bd144_2" ; -"blockFreeNoLeak#MemoryLeakExample#instance.6bcefe2afb9f172f8aadbab54d9bd144_4" [label="4: DeclStmt \n n$78=_fun___variable_initialization(&blk:_fn_(*)) [line 103, column 3]\n n$71=*&x:int* [line 103, column 22]\n *&blk:_fn_(*)=(_fun_objc_blockMemoryLeakExample_blockFreeNoLeak_2,(n$71 &x:int*)) [line 103, column 3]\n EXIT_SCOPE(n$71,n$78,x); [line 103, column 3]\n " shape="box"] +"blockFreeNoLeak#MemoryLeakExample#instance.6bcefe2afb9f172f8aadbab54d9bd144_4" [label="4: DeclStmt \n n$78=_fun___variable_initialization(&blk:_fn_(*)) assign_last [line 103, column 3]\n n$71=*&x:int* [line 103, column 22]\n *&blk:_fn_(*)=(_fun_objc_blockMemoryLeakExample_blockFreeNoLeak_2,(n$71 &x:int*)) [line 103, column 3]\n EXIT_SCOPE(n$71,n$78,x); [line 103, column 3]\n " shape="box"] "blockFreeNoLeak#MemoryLeakExample#instance.6bcefe2afb9f172f8aadbab54d9bd144_4" -> "blockFreeNoLeak#MemoryLeakExample#instance.6bcefe2afb9f172f8aadbab54d9bd144_3" ; @@ -199,7 +199,7 @@ digraph cfg { "blockFreeNoLeak#MemoryLeakExample#instance.6bcefe2afb9f172f8aadbab54d9bd144_5" -> "blockFreeNoLeak#MemoryLeakExample#instance.6bcefe2afb9f172f8aadbab54d9bd144_4" ; -"blockFreeNoLeak#MemoryLeakExample#instance.6bcefe2afb9f172f8aadbab54d9bd144_6" [label="6: DeclStmt \n n$81=_fun___variable_initialization(&x:int*) [line 101, column 3]\n n$80=_fun_malloc_no_fail(sizeof(t=int;nbytes=4):int) [line 101, column 12]\n *&x:int*=(int*)n$80 [line 101, column 3]\n EXIT_SCOPE(n$80,n$81); [line 101, column 3]\n " shape="box"] +"blockFreeNoLeak#MemoryLeakExample#instance.6bcefe2afb9f172f8aadbab54d9bd144_6" [label="6: DeclStmt \n n$81=_fun___variable_initialization(&x:int*) assign_last [line 101, column 3]\n n$80=_fun_malloc_no_fail(sizeof(t=int;nbytes=4):int) [line 101, column 12]\n *&x:int*=(int*)n$80 [line 101, column 3]\n EXIT_SCOPE(n$80,n$81); [line 101, column 3]\n " shape="box"] "blockFreeNoLeak#MemoryLeakExample#instance.6bcefe2afb9f172f8aadbab54d9bd144_6" -> "blockFreeNoLeak#MemoryLeakExample#instance.6bcefe2afb9f172f8aadbab54d9bd144_5" ; @@ -218,11 +218,11 @@ digraph cfg { "layoutSubviews#MemoryLeakExample#instance.2b3151f18431bcdbc08267ea4ff96f53_4" -> "layoutSubviews#MemoryLeakExample#instance.2b3151f18431bcdbc08267ea4ff96f53_3" ; -"layoutSubviews#MemoryLeakExample#instance.2b3151f18431bcdbc08267ea4ff96f53_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&shadowPath:CGPath const *) [line 19, column 3]\n n$4=*&attachmentContainerView:UIView* [line 20, column 28]\n n$5=_fun_UIView_bounds(n$4:UIView*) [line 20, column 52]\n n$6=_fun_CGPathCreateWithRect(n$5:CGRect,null:CGAffineTransform const *) [line 20, column 7]\n *&shadowPath:CGPath const *=n$6 [line 19, column 3]\n EXIT_SCOPE(n$4,n$5,n$6,n$7); [line 19, column 3]\n " shape="box"] +"layoutSubviews#MemoryLeakExample#instance.2b3151f18431bcdbc08267ea4ff96f53_5" [label="5: DeclStmt \n n$7=_fun___variable_initialization(&shadowPath:CGPath const *) assign_last [line 19, column 3]\n n$4=*&attachmentContainerView:UIView* [line 20, column 28]\n n$5=_fun_UIView_bounds(n$4:UIView*) [line 20, column 52]\n n$6=_fun_CGPathCreateWithRect(n$5:CGRect,null:CGAffineTransform const *) [line 20, column 7]\n *&shadowPath:CGPath const *=n$6 [line 19, column 3]\n EXIT_SCOPE(n$4,n$5,n$6,n$7); [line 19, column 3]\n " shape="box"] "layoutSubviews#MemoryLeakExample#instance.2b3151f18431bcdbc08267ea4ff96f53_5" -> "layoutSubviews#MemoryLeakExample#instance.2b3151f18431bcdbc08267ea4ff96f53_4" ; -"layoutSubviews#MemoryLeakExample#instance.2b3151f18431bcdbc08267ea4ff96f53_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&attachmentContainerView:UIView*) [line 18, column 3]\n n$8=_fun___objc_alloc_no_fail(sizeof(t=UIView):unsigned long) [line 18, column 37]\n *&attachmentContainerView:UIView*=n$8 [line 18, column 3]\n EXIT_SCOPE(n$8,n$9); [line 18, column 3]\n " shape="box"] +"layoutSubviews#MemoryLeakExample#instance.2b3151f18431bcdbc08267ea4ff96f53_6" [label="6: DeclStmt \n n$9=_fun___variable_initialization(&attachmentContainerView:UIView*) assign_last [line 18, column 3]\n n$8=_fun___objc_alloc_no_fail(sizeof(t=UIView):unsigned long) [line 18, column 37]\n *&attachmentContainerView:UIView*=n$8 [line 18, column 3]\n EXIT_SCOPE(n$8,n$9); [line 18, column 3]\n " shape="box"] "layoutSubviews#MemoryLeakExample#instance.2b3151f18431bcdbc08267ea4ff96f53_6" -> "layoutSubviews#MemoryLeakExample#instance.2b3151f18431bcdbc08267ea4ff96f53_5" ; @@ -241,7 +241,7 @@ digraph cfg { "regularLeak#MemoryLeakExample#instance.939a892cee505c3459f2d889292f218b_4" -> "regularLeak#MemoryLeakExample#instance.939a892cee505c3459f2d889292f218b_3" ; -"regularLeak#MemoryLeakExample#instance.939a892cee505c3459f2d889292f218b_5" [label="5: DeclStmt \n n$59=_fun___variable_initialization(&x:int*) [line 86, column 3]\n n$58=_fun_malloc_no_fail(sizeof(t=int;nbytes=4):int) [line 86, column 12]\n *&x:int*=(int*)n$58 [line 86, column 3]\n EXIT_SCOPE(n$58,n$59); [line 86, column 3]\n " shape="box"] +"regularLeak#MemoryLeakExample#instance.939a892cee505c3459f2d889292f218b_5" [label="5: DeclStmt \n n$59=_fun___variable_initialization(&x:int*) assign_last [line 86, column 3]\n n$58=_fun_malloc_no_fail(sizeof(t=int;nbytes=4):int) [line 86, column 12]\n *&x:int*=(int*)n$58 [line 86, column 3]\n EXIT_SCOPE(n$58,n$59); [line 86, column 3]\n " shape="box"] "regularLeak#MemoryLeakExample#instance.939a892cee505c3459f2d889292f218b_5" -> "regularLeak#MemoryLeakExample#instance.939a892cee505c3459f2d889292f218b_4" ; @@ -256,7 +256,7 @@ digraph cfg { "test#MemoryLeakExample#instance.cbb708bfe735ac5e5777524359299e00_3" -> "test#MemoryLeakExample#instance.cbb708bfe735ac5e5777524359299e00_2" ; -"test#MemoryLeakExample#instance.cbb708bfe735ac5e5777524359299e00_4" [label="4: DeclStmt \n n$19=_fun___variable_initialization(&shadowPath:CGPath const *) [line 27, column 3]\n n$15=*&self:MemoryLeakExample* [line 28, column 28]\n n$16=_fun_MemoryLeakExample_backgroundCoveringView(n$15:MemoryLeakExample*) [line 28, column 33]\n n$17=_fun_UIView_bounds(n$16:UIView*) [line 28, column 56]\n n$18=_fun_CGPathCreateWithRect(n$17:CGRect,null:CGAffineTransform const *) [line 28, column 7]\n *&shadowPath:CGPath const *=n$18 [line 27, column 3]\n EXIT_SCOPE(n$15,n$16,n$17,n$18,n$19); [line 27, column 3]\n " shape="box"] +"test#MemoryLeakExample#instance.cbb708bfe735ac5e5777524359299e00_4" [label="4: DeclStmt \n n$19=_fun___variable_initialization(&shadowPath:CGPath const *) assign_last [line 27, column 3]\n n$15=*&self:MemoryLeakExample* [line 28, column 28]\n n$16=_fun_MemoryLeakExample_backgroundCoveringView(n$15:MemoryLeakExample*) [line 28, column 33]\n n$17=_fun_UIView_bounds(n$16:UIView*) [line 28, column 56]\n n$18=_fun_CGPathCreateWithRect(n$17:CGRect,null:CGAffineTransform const *) [line 28, column 7]\n *&shadowPath:CGPath const *=n$18 [line 27, column 3]\n EXIT_SCOPE(n$15,n$16,n$17,n$18,n$19); [line 27, column 3]\n " shape="box"] "test#MemoryLeakExample#instance.cbb708bfe735ac5e5777524359299e00_4" -> "test#MemoryLeakExample#instance.cbb708bfe735ac5e5777524359299e00_3" ; @@ -271,7 +271,7 @@ digraph cfg { "testFBColorCreateWithGray#MemoryLeakExample#instance.4f74b525e11effa846f82d4205d48a4a_3" -> "testFBColorCreateWithGray#MemoryLeakExample#instance.4f74b525e11effa846f82d4205d48a4a_2" ; -"testFBColorCreateWithGray#MemoryLeakExample#instance.4f74b525e11effa846f82d4205d48a4a_4" [label="4: DeclStmt \n n$54=_fun___variable_initialization(&borderColor:CGColor*) [line 81, column 3]\n n$53=_fun_FBColorCreateWithGray(0.:double,0.3:double) [line 81, column 28]\n *&borderColor:CGColor*=n$53 [line 81, column 3]\n EXIT_SCOPE(n$53,n$54); [line 81, column 3]\n " shape="box"] +"testFBColorCreateWithGray#MemoryLeakExample#instance.4f74b525e11effa846f82d4205d48a4a_4" [label="4: DeclStmt \n n$54=_fun___variable_initialization(&borderColor:CGColor*) assign_last [line 81, column 3]\n n$53=_fun_FBColorCreateWithGray(0.:double,0.3:double) [line 81, column 28]\n *&borderColor:CGColor*=n$53 [line 81, column 3]\n EXIT_SCOPE(n$53,n$54); [line 81, column 3]\n " shape="box"] "testFBColorCreateWithGray#MemoryLeakExample#instance.4f74b525e11effa846f82d4205d48a4a_4" -> "testFBColorCreateWithGray#MemoryLeakExample#instance.4f74b525e11effa846f82d4205d48a4a_3" ; diff --git a/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/RetainReleaseExample.m.dot b/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/RetainReleaseExample.m.dot index 35e0c9219..a291adf89 100644 --- a/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/RetainReleaseExample.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/RetainReleaseExample.m.dot @@ -15,7 +15,7 @@ digraph cfg { "retain_release_test.65a9467f2c991ef519f3b0d97687f937_4" -> "retain_release_test.65a9467f2c991ef519f3b0d97687f937_3" ; -"retain_release_test.65a9467f2c991ef519f3b0d97687f937_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&a:RRA*) [line 23, column 3]\n n$4=_fun___objc_alloc_no_fail(sizeof(t=RRA):unsigned long) [line 23, column 13]\n n$5=_fun_RRA_init(n$4:RRA*) virtual [line 23, column 12]\n *&a:RRA*=n$5 [line 23, column 3]\n EXIT_SCOPE(n$4,n$5,n$6); [line 23, column 3]\n " shape="box"] +"retain_release_test.65a9467f2c991ef519f3b0d97687f937_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&a:RRA*) assign_last [line 23, column 3]\n n$4=_fun___objc_alloc_no_fail(sizeof(t=RRA):unsigned long) [line 23, column 13]\n n$5=_fun_RRA_init(n$4:RRA*) virtual [line 23, column 12]\n *&a:RRA*=n$5 [line 23, column 3]\n EXIT_SCOPE(n$4,n$5,n$6); [line 23, column 3]\n " shape="box"] "retain_release_test.65a9467f2c991ef519f3b0d97687f937_5" -> "retain_release_test.65a9467f2c991ef519f3b0d97687f937_4" ; diff --git a/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/TollBridgeExample.m.dot b/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/TollBridgeExample.m.dot index afd1e95b5..593cbe4e9 100644 --- a/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/TollBridgeExample.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/TollBridgeExample.m.dot @@ -7,11 +7,11 @@ digraph cfg { "bridgeDictionaryNoLeak.a9b55a0c8751bf95138aeb6870d0dec1_2" [label="2: Exit bridgeDictionaryNoLeak \n NULLIFY(&dict); [line 45, column 1]\n NULLIFY(&bufferAttributes); [line 45, column 1]\n " color=yellow style=filled] -"bridgeDictionaryNoLeak.a9b55a0c8751bf95138aeb6870d0dec1_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&dict:__CFDictionary const *) [line 44, column 3]\n n$0=*&bufferAttributes:NSDictionary* [line 44, column 52]\n *&dict:__CFDictionary const *=n$0 [line 44, column 3]\n EXIT_SCOPE(n$0,n$1,bufferAttributes,dict); [line 44, column 3]\n APPLY_ABSTRACTION; [line 44, column 3]\n " shape="box"] +"bridgeDictionaryNoLeak.a9b55a0c8751bf95138aeb6870d0dec1_3" [label="3: DeclStmt \n n$1=_fun___variable_initialization(&dict:__CFDictionary const *) assign_last [line 44, column 3]\n n$0=*&bufferAttributes:NSDictionary* [line 44, column 52]\n *&dict:__CFDictionary const *=n$0 [line 44, column 3]\n EXIT_SCOPE(n$0,n$1,bufferAttributes,dict); [line 44, column 3]\n APPLY_ABSTRACTION; [line 44, column 3]\n " shape="box"] "bridgeDictionaryNoLeak.a9b55a0c8751bf95138aeb6870d0dec1_3" -> "bridgeDictionaryNoLeak.a9b55a0c8751bf95138aeb6870d0dec1_2" ; -"bridgeDictionaryNoLeak.a9b55a0c8751bf95138aeb6870d0dec1_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&bufferAttributes:NSDictionary*) [line 43, column 3]\n n$3=_fun_NSDictionary_dictionaryWithObjects:forKeys:count:(null:objc_object*) [line 43, column 58]\n n$2=_fun_NSString_stringWithUTF8String:(\"key\":char* const ) [line 43, column 49]\n n$4=_fun_NSDictionary_dictionaryWithObjects:forKeys:count:(n$3:objc_object*,n$2:objc_object*,null:objc_object*) [line 43, column 36]\n *&bufferAttributes:NSDictionary*=n$4 [line 43, column 3]\n EXIT_SCOPE(n$2,n$3,n$4,n$5); [line 43, column 3]\n " shape="box"] +"bridgeDictionaryNoLeak.a9b55a0c8751bf95138aeb6870d0dec1_4" [label="4: DeclStmt \n n$5=_fun___variable_initialization(&bufferAttributes:NSDictionary*) assign_last [line 43, column 3]\n n$3=_fun_NSDictionary_dictionaryWithObjects:forKeys:count:(null:objc_object*) [line 43, column 58]\n n$2=_fun_NSString_stringWithUTF8String:(\"key\":char* const ) [line 43, column 49]\n n$4=_fun_NSDictionary_dictionaryWithObjects:forKeys:count:(n$3:objc_object*,n$2:objc_object*,null:objc_object*) [line 43, column 36]\n *&bufferAttributes:NSDictionary*=n$4 [line 43, column 3]\n EXIT_SCOPE(n$2,n$3,n$4,n$5); [line 43, column 3]\n " shape="box"] "bridgeDictionaryNoLeak.a9b55a0c8751bf95138aeb6870d0dec1_4" -> "bridgeDictionaryNoLeak.a9b55a0c8751bf95138aeb6870d0dec1_3" ; @@ -37,7 +37,7 @@ digraph cfg { "_readHTTPHeader#TollBridgeExample#instance.3d37ce88cf13750e89ba404865a70554_3" -> "_readHTTPHeader#TollBridgeExample#instance.3d37ce88cf13750e89ba404865a70554_2" ; -"_readHTTPHeader#TollBridgeExample#instance.3d37ce88cf13750e89ba404865a70554_4" [label="4: DeclStmt \n n$17=_fun___variable_initialization(&ref:__CFDictionary const *) [line 34, column 3]\n n$16=_fun_CFHTTPMessageCopyAllHeaderFields(null:__CFHTTPMessage*) [line 34, column 25]\n *&ref:__CFDictionary const *=n$16 [line 34, column 3]\n EXIT_SCOPE(n$16,n$17); [line 34, column 3]\n " shape="box"] +"_readHTTPHeader#TollBridgeExample#instance.3d37ce88cf13750e89ba404865a70554_4" [label="4: DeclStmt \n n$17=_fun___variable_initialization(&ref:__CFDictionary const *) assign_last [line 34, column 3]\n n$16=_fun_CFHTTPMessageCopyAllHeaderFields(null:__CFHTTPMessage*) [line 34, column 25]\n *&ref:__CFDictionary const *=n$16 [line 34, column 3]\n EXIT_SCOPE(n$16,n$17); [line 34, column 3]\n " shape="box"] "_readHTTPHeader#TollBridgeExample#instance.3d37ce88cf13750e89ba404865a70554_4" -> "_readHTTPHeader#TollBridgeExample#instance.3d37ce88cf13750e89ba404865a70554_3" ; @@ -48,11 +48,11 @@ digraph cfg { "brideRetained#TollBridgeExample#instance.de039e838ea3246eff789fdc0d11405c_2" [label="2: Exit TollBridgeExample_brideRetained \n NULLIFY(&a); [line 30, column 1]\n NULLIFY(&observer); [line 30, column 1]\n " color=yellow style=filled] -"brideRetained#TollBridgeExample#instance.de039e838ea3246eff789fdc0d11405c_3" [label="3: DeclStmt \n n$11=_fun___variable_initialization(&a:__CFLocale const *) [line 29, column 3]\n n$10=*&observer:objc_object* [line 29, column 50]\n *&a:__CFLocale const *=n$10 [line 29, column 3]\n EXIT_SCOPE(n$10,n$11,observer,a); [line 29, column 3]\n APPLY_ABSTRACTION; [line 29, column 3]\n " shape="box"] +"brideRetained#TollBridgeExample#instance.de039e838ea3246eff789fdc0d11405c_3" [label="3: DeclStmt \n n$11=_fun___variable_initialization(&a:__CFLocale const *) assign_last [line 29, column 3]\n n$10=*&observer:objc_object* [line 29, column 50]\n *&a:__CFLocale const *=n$10 [line 29, column 3]\n EXIT_SCOPE(n$10,n$11,observer,a); [line 29, column 3]\n APPLY_ABSTRACTION; [line 29, column 3]\n " shape="box"] "brideRetained#TollBridgeExample#instance.de039e838ea3246eff789fdc0d11405c_3" -> "brideRetained#TollBridgeExample#instance.de039e838ea3246eff789fdc0d11405c_2" ; -"brideRetained#TollBridgeExample#instance.de039e838ea3246eff789fdc0d11405c_4" [label="4: DeclStmt \n n$13=_fun___variable_initialization(&observer:objc_object*) [line 28, column 3]\n n$12=_fun___objc_alloc_no_fail(sizeof(t=NSLocale):unsigned long) [line 28, column 17]\n *&observer:objc_object*=n$12 [line 28, column 3]\n EXIT_SCOPE(n$12,n$13); [line 28, column 3]\n " shape="box"] +"brideRetained#TollBridgeExample#instance.de039e838ea3246eff789fdc0d11405c_4" [label="4: DeclStmt \n n$13=_fun___variable_initialization(&observer:objc_object*) assign_last [line 28, column 3]\n n$12=_fun___objc_alloc_no_fail(sizeof(t=NSLocale):unsigned long) [line 28, column 17]\n *&observer:objc_object*=n$12 [line 28, column 3]\n EXIT_SCOPE(n$12,n$13); [line 28, column 3]\n " shape="box"] "brideRetained#TollBridgeExample#instance.de039e838ea3246eff789fdc0d11405c_4" -> "brideRetained#TollBridgeExample#instance.de039e838ea3246eff789fdc0d11405c_3" ; @@ -63,11 +63,11 @@ digraph cfg { "bridge#TollBridgeExample#instance.fadd5a014118113c960fa1a6e3ff27ba_2" [label="2: Exit TollBridgeExample_bridge \n NULLIFY(&nameRef); [line 25, column 1]\n NULLIFY(&a); [line 25, column 1]\n " color=yellow style=filled] -"bridge#TollBridgeExample#instance.fadd5a014118113c960fa1a6e3ff27ba_3" [label="3: DeclStmt \n n$7=_fun___variable_initialization(&a:NSLocale*) [line 24, column 3]\n n$5=*&nameRef:__CFLocale const * [line 24, column 37]\n n$6=_fun___free_cf(n$5:__CFLocale const *) [line 24, column 17]\n *&a:NSLocale*=n$5 [line 24, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,a,nameRef); [line 24, column 3]\n APPLY_ABSTRACTION; [line 24, column 3]\n " shape="box"] +"bridge#TollBridgeExample#instance.fadd5a014118113c960fa1a6e3ff27ba_3" [label="3: DeclStmt \n n$7=_fun___variable_initialization(&a:NSLocale*) assign_last [line 24, column 3]\n n$5=*&nameRef:__CFLocale const * [line 24, column 37]\n n$6=_fun___free_cf(n$5:__CFLocale const *) [line 24, column 17]\n *&a:NSLocale*=n$5 [line 24, column 3]\n EXIT_SCOPE(n$5,n$6,n$7,a,nameRef); [line 24, column 3]\n APPLY_ABSTRACTION; [line 24, column 3]\n " shape="box"] "bridge#TollBridgeExample#instance.fadd5a014118113c960fa1a6e3ff27ba_3" -> "bridge#TollBridgeExample#instance.fadd5a014118113c960fa1a6e3ff27ba_2" ; -"bridge#TollBridgeExample#instance.fadd5a014118113c960fa1a6e3ff27ba_4" [label="4: DeclStmt \n n$9=_fun___variable_initialization(&nameRef:__CFLocale const *) [line 23, column 3]\n n$8=_fun_CFLocaleCreate(null:__CFAllocator const *,null:__CFString const *) [line 23, column 25]\n *&nameRef:__CFLocale const *=n$8 [line 23, column 3]\n EXIT_SCOPE(n$8,n$9); [line 23, column 3]\n " shape="box"] +"bridge#TollBridgeExample#instance.fadd5a014118113c960fa1a6e3ff27ba_4" [label="4: DeclStmt \n n$9=_fun___variable_initialization(&nameRef:__CFLocale const *) assign_last [line 23, column 3]\n n$8=_fun_CFLocaleCreate(null:__CFAllocator const *,null:__CFString const *) [line 23, column 25]\n *&nameRef:__CFLocale const *=n$8 [line 23, column 3]\n EXIT_SCOPE(n$8,n$9); [line 23, column 3]\n " shape="box"] "bridge#TollBridgeExample#instance.fadd5a014118113c960fa1a6e3ff27ba_4" -> "bridge#TollBridgeExample#instance.fadd5a014118113c960fa1a6e3ff27ba_3" ; @@ -78,11 +78,11 @@ digraph cfg { "bridgeTransfer#TollBridgeExample#instance.d0065913beb197e891ef0d8a0bb81b38_2" [label="2: Exit TollBridgeExample_bridgeTransfer \n NULLIFY(&a); [line 20, column 1]\n NULLIFY(&nameRef); [line 20, column 1]\n " color=yellow style=filled] -"bridgeTransfer#TollBridgeExample#instance.d0065913beb197e891ef0d8a0bb81b38_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&a:NSLocale*) [line 19, column 3]\n n$0=*&nameRef:__CFLocale const * [line 19, column 46]\n n$1=_fun___free_cf(n$0:__CFLocale const *) [line 19, column 17]\n *&a:NSLocale*=n$0 [line 19, column 3]\n EXIT_SCOPE(n$0,n$1,n$2,nameRef,a); [line 19, column 3]\n APPLY_ABSTRACTION; [line 19, column 3]\n " shape="box"] +"bridgeTransfer#TollBridgeExample#instance.d0065913beb197e891ef0d8a0bb81b38_3" [label="3: DeclStmt \n n$2=_fun___variable_initialization(&a:NSLocale*) assign_last [line 19, column 3]\n n$0=*&nameRef:__CFLocale const * [line 19, column 46]\n n$1=_fun___free_cf(n$0:__CFLocale const *) [line 19, column 17]\n *&a:NSLocale*=n$0 [line 19, column 3]\n EXIT_SCOPE(n$0,n$1,n$2,nameRef,a); [line 19, column 3]\n APPLY_ABSTRACTION; [line 19, column 3]\n " shape="box"] "bridgeTransfer#TollBridgeExample#instance.d0065913beb197e891ef0d8a0bb81b38_3" -> "bridgeTransfer#TollBridgeExample#instance.d0065913beb197e891ef0d8a0bb81b38_2" ; -"bridgeTransfer#TollBridgeExample#instance.d0065913beb197e891ef0d8a0bb81b38_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&nameRef:__CFLocale const *) [line 18, column 3]\n n$3=_fun_CFLocaleCreate(null:__CFAllocator const *,null:__CFString const *) [line 18, column 25]\n *&nameRef:__CFLocale const *=n$3 [line 18, column 3]\n EXIT_SCOPE(n$3,n$4); [line 18, column 3]\n " shape="box"] +"bridgeTransfer#TollBridgeExample#instance.d0065913beb197e891ef0d8a0bb81b38_4" [label="4: DeclStmt \n n$4=_fun___variable_initialization(&nameRef:__CFLocale const *) assign_last [line 18, column 3]\n n$3=_fun_CFLocaleCreate(null:__CFAllocator const *,null:__CFString const *) [line 18, column 25]\n *&nameRef:__CFLocale const *=n$3 [line 18, column 3]\n EXIT_SCOPE(n$3,n$4); [line 18, column 3]\n " shape="box"] "bridgeTransfer#TollBridgeExample#instance.d0065913beb197e891ef0d8a0bb81b38_4" -> "bridgeTransfer#TollBridgeExample#instance.d0065913beb197e891ef0d8a0bb81b38_3" ; diff --git a/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/arc_methods.m.dot b/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/arc_methods.m.dot index c63017135..83ddb4cc6 100644 --- a/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/arc_methods.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/memory_leaks_benchmark/arc_methods.m.dot @@ -11,19 +11,19 @@ digraph cfg { "main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_3" -> "main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_2" ; -"main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&ab:ArcMethodsA*) [line 43, column 3]\n n$0=*&a2:ArcMethodsA* [line 43, column 21]\n *&ab:ArcMethodsA*=n$0 [line 43, column 3]\n EXIT_SCOPE(n$0,n$1,a2,ab); [line 43, column 3]\n " shape="box"] +"main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_4" [label="4: DeclStmt \n n$1=_fun___variable_initialization(&ab:ArcMethodsA*) assign_last [line 43, column 3]\n n$0=*&a2:ArcMethodsA* [line 43, column 21]\n *&ab:ArcMethodsA*=n$0 [line 43, column 3]\n EXIT_SCOPE(n$0,n$1,a2,ab); [line 43, column 3]\n " shape="box"] "main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_4" -> "main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_3" ; -"main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&a2:ArcMethodsA*) [line 42, column 3]\n n$2=_fun_ArcMethodsA_someA() [line 42, column 21]\n *&a2:ArcMethodsA*=n$2 [line 42, column 3]\n EXIT_SCOPE(n$2,n$3); [line 42, column 3]\n " shape="box"] +"main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&a2:ArcMethodsA*) assign_last [line 42, column 3]\n n$2=_fun_ArcMethodsA_someA() [line 42, column 21]\n *&a2:ArcMethodsA*=n$2 [line 42, column 3]\n EXIT_SCOPE(n$2,n$3); [line 42, column 3]\n " shape="box"] "main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_5" -> "main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_4" ; -"main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_6" [label="6: DeclStmt \n n$5=_fun___variable_initialization(&aa:ArcMethodsA*) [line 41, column 3]\n n$4=*&a1:ArcMethodsA* [line 41, column 21]\n *&aa:ArcMethodsA*=n$4 [line 41, column 3]\n EXIT_SCOPE(n$4,n$5,aa,a1); [line 41, column 3]\n " shape="box"] +"main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_6" [label="6: DeclStmt \n n$5=_fun___variable_initialization(&aa:ArcMethodsA*) assign_last [line 41, column 3]\n n$4=*&a1:ArcMethodsA* [line 41, column 21]\n *&aa:ArcMethodsA*=n$4 [line 41, column 3]\n EXIT_SCOPE(n$4,n$5,aa,a1); [line 41, column 3]\n " shape="box"] "main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_6" -> "main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_5" ; -"main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_7" [label="7: DeclStmt \n n$7=_fun___variable_initialization(&a1:ArcMethodsA*) [line 40, column 3]\n n$6=_fun_ArcMethodsA_newA() [line 40, column 21]\n *&a1:ArcMethodsA*=n$6 [line 40, column 3]\n EXIT_SCOPE(n$6,n$7); [line 40, column 3]\n " shape="box"] +"main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_7" [label="7: DeclStmt \n n$7=_fun___variable_initialization(&a1:ArcMethodsA*) assign_last [line 40, column 3]\n n$6=_fun_ArcMethodsA_newA() [line 40, column 21]\n *&a1:ArcMethodsA*=n$6 [line 40, column 3]\n EXIT_SCOPE(n$6,n$7); [line 40, column 3]\n " shape="box"] "main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_7" -> "main_arc_methods.6924ccbb58d8dbb03048861dcbd6134b_6" ; @@ -38,7 +38,7 @@ digraph cfg { "newA#ArcMethodsA#class.8f73d571693162b8fe59ae9b171012f1_3" -> "newA#ArcMethodsA#class.8f73d571693162b8fe59ae9b171012f1_2" ; -"newA#ArcMethodsA#class.8f73d571693162b8fe59ae9b171012f1_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&a:ArcMethodsA*) [line 21, column 3]\n n$1=_fun___objc_alloc_no_fail(sizeof(t=ArcMethodsA):unsigned long) [line 21, column 21]\n n$2=_fun_NSObject_init(n$1:ArcMethodsA*) virtual [line 21, column 20]\n *&a:ArcMethodsA*=n$2 [line 21, column 3]\n EXIT_SCOPE(n$1,n$2,n$3); [line 21, column 3]\n " shape="box"] +"newA#ArcMethodsA#class.8f73d571693162b8fe59ae9b171012f1_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&a:ArcMethodsA*) assign_last [line 21, column 3]\n n$1=_fun___objc_alloc_no_fail(sizeof(t=ArcMethodsA):unsigned long) [line 21, column 21]\n n$2=_fun_NSObject_init(n$1:ArcMethodsA*) virtual [line 21, column 20]\n *&a:ArcMethodsA*=n$2 [line 21, column 3]\n EXIT_SCOPE(n$1,n$2,n$3); [line 21, column 3]\n " shape="box"] "newA#ArcMethodsA#class.8f73d571693162b8fe59ae9b171012f1_4" -> "newA#ArcMethodsA#class.8f73d571693162b8fe59ae9b171012f1_3" ; @@ -53,7 +53,7 @@ digraph cfg { "someA#ArcMethodsA#class.b84b222a4d332a9b8f3f1d6626af9c8f_3" -> "someA#ArcMethodsA#class.b84b222a4d332a9b8f3f1d6626af9c8f_2" ; -"someA#ArcMethodsA#class.b84b222a4d332a9b8f3f1d6626af9c8f_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&a:ArcMethodsA*) [line 26, column 3]\n n$5=_fun___objc_alloc_no_fail(sizeof(t=ArcMethodsA):unsigned long) [line 26, column 21]\n n$6=_fun_NSObject_init(n$5:ArcMethodsA*) virtual [line 26, column 20]\n *&a:ArcMethodsA*=n$6 [line 26, column 3]\n EXIT_SCOPE(n$5,n$6,n$7); [line 26, column 3]\n " shape="box"] +"someA#ArcMethodsA#class.b84b222a4d332a9b8f3f1d6626af9c8f_4" [label="4: DeclStmt \n n$7=_fun___variable_initialization(&a:ArcMethodsA*) assign_last [line 26, column 3]\n n$5=_fun___objc_alloc_no_fail(sizeof(t=ArcMethodsA):unsigned long) [line 26, column 21]\n n$6=_fun_NSObject_init(n$5:ArcMethodsA*) virtual [line 26, column 20]\n *&a:ArcMethodsA*=n$6 [line 26, column 3]\n EXIT_SCOPE(n$5,n$6,n$7); [line 26, column 3]\n " shape="box"] "someA#ArcMethodsA#class.b84b222a4d332a9b8f3f1d6626af9c8f_4" -> "someA#ArcMethodsA#class.b84b222a4d332a9b8f3f1d6626af9c8f_3" ; diff --git a/infer/tests/codetoanalyze/objc/shared/npe/Available_expr.m.dot b/infer/tests/codetoanalyze/objc/shared/npe/Available_expr.m.dot index bf304ec1c..cee3011c4 100644 --- a/infer/tests/codetoanalyze/objc/shared/npe/Available_expr.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/npe/Available_expr.m.dot @@ -27,7 +27,7 @@ digraph cfg { "test_no_bug#Available_expr#instance.a4aa786abeb2b17541abfe8ecf02c88f_7" -> "test_no_bug#Available_expr#instance.a4aa786abeb2b17541abfe8ecf02c88f_2" ; -"test_no_bug#Available_expr#instance.a4aa786abeb2b17541abfe8ecf02c88f_8" [label="8: DeclStmt \n n$5=_fun___variable_initialization(&p:int*) [line 16, column 3]\n *&p:int*=null [line 16, column 3]\n EXIT_SCOPE(n$5); [line 16, column 3]\n " shape="box"] +"test_no_bug#Available_expr#instance.a4aa786abeb2b17541abfe8ecf02c88f_8" [label="8: DeclStmt \n n$5=_fun___variable_initialization(&p:int*) assign_last [line 16, column 3]\n *&p:int*=null [line 16, column 3]\n EXIT_SCOPE(n$5); [line 16, column 3]\n " shape="box"] "test_no_bug#Available_expr#instance.a4aa786abeb2b17541abfe8ecf02c88f_8" -> "test_no_bug#Available_expr#instance.a4aa786abeb2b17541abfe8ecf02c88f_5" ; diff --git a/infer/tests/codetoanalyze/objc/shared/npe/Nonnull_attribute_example.m.dot b/infer/tests/codetoanalyze/objc/shared/npe/Nonnull_attribute_example.m.dot index f5bf5fd62..203c8848e 100644 --- a/infer/tests/codetoanalyze/objc/shared/npe/Nonnull_attribute_example.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/npe/Nonnull_attribute_example.m.dot @@ -33,11 +33,11 @@ digraph cfg { "initWithCoder:and:#NonnullC(class NSString,class NonnullA)#instance.e23828ce4467c2001440771e2c4692f8_3" -> "initWithCoder:and:#NonnullC(class NSString,class NonnullA)#instance.e23828ce4467c2001440771e2c4692f8_2" ; -"initWithCoder:and:#NonnullC(class NSString,class NonnullA)#instance.e23828ce4467c2001440771e2c4692f8_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&y:int) [line 38, column 3]\n n$1=*&a1:NonnullA* [line 38, column 11]\n n$2=*n$1.x:int [line 38, column 11]\n *&y:int=n$2 [line 38, column 3]\n NULLIFY(&y); [line 38, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,y,a1); [line 38, column 3]\n " shape="box"] +"initWithCoder:and:#NonnullC(class NSString,class NonnullA)#instance.e23828ce4467c2001440771e2c4692f8_4" [label="4: DeclStmt \n n$3=_fun___variable_initialization(&y:int) assign_last [line 38, column 3]\n n$1=*&a1:NonnullA* [line 38, column 11]\n n$2=*n$1.x:int [line 38, column 11]\n *&y:int=n$2 [line 38, column 3]\n NULLIFY(&y); [line 38, column 3]\n EXIT_SCOPE(n$1,n$2,n$3,y,a1); [line 38, column 3]\n " shape="box"] "initWithCoder:and:#NonnullC(class NSString,class NonnullA)#instance.e23828ce4467c2001440771e2c4692f8_4" -> "initWithCoder:and:#NonnullC(class NSString,class NonnullA)#instance.e23828ce4467c2001440771e2c4692f8_3" ; -"initWithCoder:and:#NonnullC(class NSString,class NonnullA)#instance.e23828ce4467c2001440771e2c4692f8_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&a1:NonnullA*) [line 37, column 3]\n n$4=*&a:NonnullA* [line 37, column 19]\n n$5=_fun_NonnullA_getA(n$4:NonnullA*) virtual [line 37, column 18]\n *&a1:NonnullA*=n$5 [line 37, column 3]\n NULLIFY(&a); [line 37, column 3]\n EXIT_SCOPE(n$4,n$5,n$6,a); [line 37, column 3]\n " shape="box"] +"initWithCoder:and:#NonnullC(class NSString,class NonnullA)#instance.e23828ce4467c2001440771e2c4692f8_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&a1:NonnullA*) assign_last [line 37, column 3]\n n$4=*&a:NonnullA* [line 37, column 19]\n n$5=_fun_NonnullA_getA(n$4:NonnullA*) virtual [line 37, column 18]\n *&a1:NonnullA*=n$5 [line 37, column 3]\n NULLIFY(&a); [line 37, column 3]\n EXIT_SCOPE(n$4,n$5,n$6,a); [line 37, column 3]\n " shape="box"] "initWithCoder:and:#NonnullC(class NSString,class NonnullA)#instance.e23828ce4467c2001440771e2c4692f8_5" -> "initWithCoder:and:#NonnullC(class NSString,class NonnullA)#instance.e23828ce4467c2001440771e2c4692f8_4" ; diff --git a/infer/tests/codetoanalyze/objc/shared/npe/npe_malloc.m.dot b/infer/tests/codetoanalyze/objc/shared/npe/npe_malloc.m.dot index b37a4f8d8..9cb42df8a 100644 --- a/infer/tests/codetoanalyze/objc/shared/npe/npe_malloc.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/npe/npe_malloc.m.dot @@ -15,7 +15,7 @@ digraph cfg { "test#NpeMallocC#instance.736ba93f935cc64d6e9c549cc16c07a7_4" -> "test#NpeMallocC#instance.736ba93f935cc64d6e9c549cc16c07a7_3" ; -"test#NpeMallocC#instance.736ba93f935cc64d6e9c549cc16c07a7_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&person:Person*) [line 23, column 3]\n n$2=_fun_malloc_no_fail(sizeof(t=Person;nbytes=8):Person) [line 23, column 43]\n *&person:Person*=n$2 [line 23, column 3]\n EXIT_SCOPE(n$2,n$3); [line 23, column 3]\n " shape="box"] +"test#NpeMallocC#instance.736ba93f935cc64d6e9c549cc16c07a7_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&person:Person*) assign_last [line 23, column 3]\n n$2=_fun_malloc_no_fail(sizeof(t=Person;nbytes=8):Person) [line 23, column 43]\n *&person:Person*=n$2 [line 23, column 3]\n EXIT_SCOPE(n$2,n$3); [line 23, column 3]\n " shape="box"] "test#NpeMallocC#instance.736ba93f935cc64d6e9c549cc16c07a7_5" -> "test#NpeMallocC#instance.736ba93f935cc64d6e9c549cc16c07a7_4" ; diff --git a/infer/tests/codetoanalyze/objc/shared/property/GetterExample.m.dot b/infer/tests/codetoanalyze/objc/shared/property/GetterExample.m.dot index a6400356f..b63b0fc27 100644 --- a/infer/tests/codetoanalyze/objc/shared/property/GetterExample.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/property/GetterExample.m.dot @@ -15,7 +15,7 @@ digraph cfg { "should_have_div0.f0a0c4e0ab301ca0aa2f50aa87721dc4_4" -> "should_have_div0.f0a0c4e0ab301ca0aa2f50aa87721dc4_3" ; -"should_have_div0.f0a0c4e0ab301ca0aa2f50aa87721dc4_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&a:GetterExample*) [line 13, column 3]\n n$4=_fun___objc_alloc_no_fail(sizeof(t=GetterExample):unsigned long) [line 13, column 23]\n n$5=_fun_NSObject_init(n$4:GetterExample*) virtual [line 13, column 22]\n *&a:GetterExample*=n$5 [line 13, column 3]\n EXIT_SCOPE(n$4,n$5,n$6); [line 13, column 3]\n " shape="box"] +"should_have_div0.f0a0c4e0ab301ca0aa2f50aa87721dc4_5" [label="5: DeclStmt \n n$6=_fun___variable_initialization(&a:GetterExample*) assign_last [line 13, column 3]\n n$4=_fun___objc_alloc_no_fail(sizeof(t=GetterExample):unsigned long) [line 13, column 23]\n n$5=_fun_NSObject_init(n$4:GetterExample*) virtual [line 13, column 22]\n *&a:GetterExample*=n$5 [line 13, column 3]\n EXIT_SCOPE(n$4,n$5,n$6); [line 13, column 3]\n " shape="box"] "should_have_div0.f0a0c4e0ab301ca0aa2f50aa87721dc4_5" -> "should_have_div0.f0a0c4e0ab301ca0aa2f50aa87721dc4_4" ; diff --git a/infer/tests/codetoanalyze/objc/shared/property/PropertyAttributes.m.dot b/infer/tests/codetoanalyze/objc/shared/property/PropertyAttributes.m.dot index 595b291c2..f7f260a94 100644 --- a/infer/tests/codetoanalyze/objc/shared/property/PropertyAttributes.m.dot +++ b/infer/tests/codetoanalyze/objc/shared/property/PropertyAttributes.m.dot @@ -19,7 +19,7 @@ digraph cfg { "test.098f6bcd4621d373cade4e832627b4f6_5" -> "test.098f6bcd4621d373cade4e832627b4f6_4" ; -"test.098f6bcd4621d373cade4e832627b4f6_6" [label="6: DeclStmt \n n$7=_fun___variable_initialization(&a:PropertyA*) [line 41, column 3]\n n$5=_fun___objc_alloc_no_fail(sizeof(t=PropertyA):unsigned long) [line 41, column 19]\n n$6=_fun_PropertyA_init(n$5:PropertyA*) virtual [line 41, column 18]\n *&a:PropertyA*=n$6 [line 41, column 3]\n EXIT_SCOPE(n$5,n$6,n$7); [line 41, column 3]\n " shape="box"] +"test.098f6bcd4621d373cade4e832627b4f6_6" [label="6: DeclStmt \n n$7=_fun___variable_initialization(&a:PropertyA*) assign_last [line 41, column 3]\n n$5=_fun___objc_alloc_no_fail(sizeof(t=PropertyA):unsigned long) [line 41, column 19]\n n$6=_fun_PropertyA_init(n$5:PropertyA*) virtual [line 41, column 18]\n *&a:PropertyA*=n$6 [line 41, column 3]\n EXIT_SCOPE(n$5,n$6,n$7); [line 41, column 3]\n " shape="box"] "test.098f6bcd4621d373cade4e832627b4f6_6" -> "test.098f6bcd4621d373cade4e832627b4f6_5" ; @@ -58,7 +58,7 @@ digraph cfg { "copy#PropertyA#instance.d5955e11cf35af4b4d602b2971590d5f_9" -> "copy#PropertyA#instance.d5955e11cf35af4b4d602b2971590d5f_8" ; -"copy#PropertyA#instance.d5955e11cf35af4b4d602b2971590d5f_10" [label="10: DeclStmt \n n$16=_fun___variable_initialization(&other:PropertyA*) [line 29, column 3]\n n$14=_fun___objc_alloc_no_fail(sizeof(t=PropertyA):unsigned long) [line 29, column 23]\n n$15=_fun_PropertyA_init(n$14:PropertyA*) virtual [line 29, column 22]\n *&other:PropertyA*=n$15 [line 29, column 3]\n EXIT_SCOPE(n$14,n$15,n$16); [line 29, column 3]\n " shape="box"] +"copy#PropertyA#instance.d5955e11cf35af4b4d602b2971590d5f_10" [label="10: DeclStmt \n n$16=_fun___variable_initialization(&other:PropertyA*) assign_last [line 29, column 3]\n n$14=_fun___objc_alloc_no_fail(sizeof(t=PropertyA):unsigned long) [line 29, column 23]\n n$15=_fun_PropertyA_init(n$14:PropertyA*) virtual [line 29, column 22]\n *&other:PropertyA*=n$15 [line 29, column 3]\n EXIT_SCOPE(n$14,n$15,n$16); [line 29, column 3]\n " shape="box"] "copy#PropertyA#instance.d5955e11cf35af4b4d602b2971590d5f_10" -> "copy#PropertyA#instance.d5955e11cf35af4b4d602b2971590d5f_5" ; diff --git a/infer/tests/codetoanalyze/objc/shared/protocol_procdesc/main.c.dot b/infer/tests/codetoanalyze/objc/shared/protocol_procdesc/main.c.dot index ba3d9e1a6..63b7bf5aa 100644 --- a/infer/tests/codetoanalyze/objc/shared/protocol_procdesc/main.c.dot +++ b/infer/tests/codetoanalyze/objc/shared/protocol_procdesc/main.c.dot @@ -15,7 +15,7 @@ digraph cfg { "ProtocolProcdescMain.84e7d2448aa904c965bf225f17cfb503_4" -> "ProtocolProcdescMain.84e7d2448aa904c965bf225f17cfb503_3" ; -"ProtocolProcdescMain.84e7d2448aa904c965bf225f17cfb503_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&bike:Bicycle*) [line 12, column 3]\n n$2=_fun___objc_alloc_no_fail(sizeof(t=Bicycle):unsigned long) [line 12, column 19]\n *&bike:Bicycle*=n$2 [line 12, column 3]\n EXIT_SCOPE(n$2,n$3); [line 12, column 3]\n " shape="box"] +"ProtocolProcdescMain.84e7d2448aa904c965bf225f17cfb503_5" [label="5: DeclStmt \n n$3=_fun___variable_initialization(&bike:Bicycle*) assign_last [line 12, column 3]\n n$2=_fun___objc_alloc_no_fail(sizeof(t=Bicycle):unsigned long) [line 12, column 19]\n *&bike:Bicycle*=n$2 [line 12, column 3]\n EXIT_SCOPE(n$2,n$3); [line 12, column 3]\n " shape="box"] "ProtocolProcdescMain.84e7d2448aa904c965bf225f17cfb503_5" -> "ProtocolProcdescMain.84e7d2448aa904c965bf225f17cfb503_4" ; diff --git a/infer/tests/codetoanalyze/objcpp/frontend/global_const/global_const.mm.dot b/infer/tests/codetoanalyze/objcpp/frontend/global_const/global_const.mm.dot index 6d8808af8..4f3a0e736 100644 --- a/infer/tests/codetoanalyze/objcpp/frontend/global_const/global_const.mm.dot +++ b/infer/tests/codetoanalyze/objcpp/frontend/global_const/global_const.mm.dot @@ -7,7 +7,7 @@ digraph cfg { "__infer_globals_initializer___someFields#305cac08d8197bd145f7f55cc8a06d16.794b83eea8b5794c71808060b1f3b5c7_2" [label="2: Exit __infer_globals_initializer___someFields \n " color=yellow style=filled] -"__infer_globals_initializer___someFields#305cac08d8197bd145f7f55cc8a06d16.794b83eea8b5794c71808060b1f3b5c7_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&#GB$__someFields:Fields const ) [line 14, column 1]\n *&#GB$__someFields.field1:float=1 [line 14, column 36]\n *&#GB$__someFields.field2:float=2 [line 14, column 36]\n *&#GB$__someFields.field3:float=3 [line 14, column 36]\n EXIT_SCOPE(n$0); [line 14, column 36]\n APPLY_ABSTRACTION; [line 14, column 36]\n " shape="box"] +"__infer_globals_initializer___someFields#305cac08d8197bd145f7f55cc8a06d16.794b83eea8b5794c71808060b1f3b5c7_3" [label="3: DeclStmt \n n$0=_fun___variable_initialization(&#GB$__someFields:Fields const ) assign_last [line 14, column 1]\n *&#GB$__someFields.field1:float=1 [line 14, column 36]\n *&#GB$__someFields.field2:float=2 [line 14, column 36]\n *&#GB$__someFields.field3:float=3 [line 14, column 36]\n EXIT_SCOPE(n$0); [line 14, column 36]\n APPLY_ABSTRACTION; [line 14, column 36]\n " shape="box"] "__infer_globals_initializer___someFields#305cac08d8197bd145f7f55cc8a06d16.794b83eea8b5794c71808060b1f3b5c7_3" -> "__infer_globals_initializer___someFields#305cac08d8197bd145f7f55cc8a06d16.794b83eea8b5794c71808060b1f3b5c7_2" ;