From 0cb6c98acf6c192f969afc30ef76f13c0d1127ac Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Thu, 18 Jul 2024 16:41:27 -0400 Subject: [PATCH 01/17] direct assignment for params --- src/analysis_and_optimization/Optimize.ml | 35 +- src/frontend/Ast_to_Mir.ml | 13 +- src/middle/Stmt.ml | 25 +- src/middle/Stmt.mli | 3 +- src/stan_math_backend/Lower_stmt.ml | 23 +- src/stan_math_backend/Transform_Mir.ml | 30 +- test/integration/good/code-gen/cpp.expected | 16 - test/integration/good/code-gen/lir.expected | 8 - test/integration/good/code-gen/mir.expected | 508 ++++---- .../profiling/transformed_mir.expected | 51 +- .../good/code-gen/transformed_mir.expected | 796 ++++++------ .../good/compiler-optimizations/cpp.expected | 77 +- .../compiler-optimizations/cppO1.expected | 55 +- .../mem_patterns/transformed_mir.expected | 1127 +++++++++-------- test/integration/good/decl_assign.stan | 3 + test/integration/good/pretty.expected | 5 + .../good/tuples/transformed_mir.expected | 877 ++++++------- test/unit/Ast_to_Mir_tests.ml | 12 +- test/unit/Dataflow_utils.ml | 2 +- test/unit/Debug_data_generation_tests.ml | 20 +- test/unit/Optimize.ml | 18 +- 21 files changed, 1861 insertions(+), 1843 deletions(-) create mode 100644 test/integration/good/decl_assign.stan diff --git a/src/analysis_and_optimization/Optimize.ml b/src/analysis_and_optimization/Optimize.ml index 985d03217..91f43df9a 100644 --- a/src/analysis_and_optimization/Optimize.ml +++ b/src/analysis_and_optimization/Optimize.ml @@ -84,13 +84,14 @@ let gen_inline_var (name : string) (id_var : string) = let replace_fresh_local_vars (fname : string) stmt = let f (m : (string, string) Core.Map.Poly.t) = function - | Stmt.Fixed.Pattern.Decl {decl_adtype; decl_type; decl_id; initialize} -> + | Stmt.Fixed.Pattern.Decl + {decl_adtype; decl_type; decl_id; initialize; assignment} -> let new_name = match Map.Poly.find m decl_id with | Some existing -> existing | None -> gen_inline_var fname decl_id in ( Stmt.Fixed.Pattern.Decl - {decl_adtype; decl_id= new_name; decl_type; initialize} + {decl_adtype; decl_id= new_name; decl_type; initialize; assignment} , Map.Poly.set m ~key:decl_id ~data:new_name ) | Stmt.Fixed.Pattern.For {loopvar; lower; upper; body} -> let new_name = @@ -201,20 +202,16 @@ let handle_early_returns (fname : string) opt_var stmt = { decl_adtype= DataOnly ; decl_id= returned ; decl_type= Sized SInt - ; initialize= true } - ; meta= Location_span.empty } - ; Stmt.Fixed. - { pattern= - Assignment - ( Stmt.Helpers.lvariable returned - , UInt - , Expr.Fixed. - { pattern= Lit (Int, "0") - ; meta= - Expr.Typed.Meta. - { type_= UInt - ; adlevel= DataOnly - ; loc= Location_span.empty } } ) + ; initialize= true + ; assignment= + Some + Expr.Fixed. + { pattern= Lit (Int, "0") + ; meta= + Expr.Typed.Meta. + { type_= UInt + ; adlevel= DataOnly + ; loc= Location_span.empty } } } ; meta= Location_span.empty } ; Stmt.Fixed. { pattern= @@ -294,7 +291,8 @@ let rec inline_function_expression propto adt fim (Expr.Fixed.{pattern; _} as e) (Type.to_unsized decl_type) ; decl_id= inline_return_name ; decl_type - ; initialize= false } ] + ; initialize= false + ; assignment= None } ] (* We should minimize the code that's having its variables replaced to avoid conflict with the (two) new dummy variables introduced by inlining *) @@ -972,7 +970,8 @@ let lazy_code_motion ?(preserve_stability = false) (mir : Program.Typed.t) = { decl_adtype= Expr.Typed.adlevel_of key ; decl_id= data ; decl_type= Type.Unsized (Expr.Typed.type_of key) - ; initialize= true } + ; initialize= true + ; assignment= None } ; meta= Location_span.empty } :: accum) in let lazy_code_motion_base i stmt = diff --git a/src/frontend/Ast_to_Mir.ml b/src/frontend/Ast_to_Mir.ml index dd64369d1..52598bf98 100644 --- a/src/frontend/Ast_to_Mir.ml +++ b/src/frontend/Ast_to_Mir.ml @@ -458,7 +458,9 @@ let create_decl_with_assign decl_id declc decl_type initial_value transform () } in let decl = Stmt. - { Fixed.pattern= Decl {decl_adtype; decl_id; decl_type; initialize= true} + { Fixed.pattern= + Decl + {decl_adtype; decl_id; decl_type; initialize= true; assignment= None} ; meta= smeta } in let rhs_assignment = Option.map @@ -583,7 +585,8 @@ let rec trans_stmt ud_dists (declc : decl_context) (ts : Ast.typed_statement) = { decl_adtype= Expr.Typed.adlevel_of iteratee' ; decl_id= loopvar.name ; decl_type= Unsized decl_type - ; initialize= true } } in + ; initialize= true + ; assignment= None } } in let assignment var = Stmt.Fixed. { pattern= @@ -629,7 +632,8 @@ and trans_packed_assign loc trans_stmt lvals rhs assign_op = { decl_adtype= rhs.emeta.ad_level ; decl_id= sym ; decl_type= Unsized rhs_type - ; initialize= false } + ; initialize= false + ; assignment= None } ; meta= rhs.emeta.loc } in let assign = { temp with @@ -743,7 +747,8 @@ let rec trans_sizedtype_decl declc tr name st = { decl_type= Sized SInt ; decl_id ; decl_adtype= DataOnly - ; initialize= true } + ; initialize= true + ; assignment= None } ; meta= e.meta.loc } in let assign = { Stmt.Fixed.pattern= diff --git a/src/middle/Stmt.ml b/src/middle/Stmt.ml index 5e51355ab..16bc101bf 100644 --- a/src/middle/Stmt.ml +++ b/src/middle/Stmt.ml @@ -25,7 +25,8 @@ module Fixed = struct { decl_adtype: UnsizedType.autodifftype ; decl_id: string ; decl_type: 'a Type.t - ; initialize: bool } + ; initialize: bool + ; assignment: 'a option } [@@deriving sexp, hash, map, fold, compare] and 'e lvalue = 'e lbase * 'e Index.t list @@ -70,9 +71,15 @@ module Fixed = struct | Block stmts -> Fmt.pf ppf "{@;<1 2>@[%a@]@;}" Fmt.(list pp_s ~sep:cut) stmts | SList stmts -> Fmt.(list pp_s ~sep:cut |> vbox) ppf stmts - | Decl {decl_adtype; decl_id; decl_type; _} -> - Fmt.pf ppf "@[%a%a@ %s;@]" UnsizedType.pp_autodifftype - decl_adtype (Type.pp pp_e) decl_type decl_id + (*TODO(Steve): Need a new one for decl with assign*) + | Decl {decl_adtype; decl_id; decl_type; assignment; _} -> ( + match assignment with + | Some e -> + Fmt.pf ppf "@[%a%a@ %s = %a;@]" UnsizedType.pp_autodifftype + decl_adtype (Type.pp pp_e) decl_type decl_id pp_e e + | None -> + Fmt.pf ppf "@[%a%a@ %s;@]" UnsizedType.pp_autodifftype + decl_adtype (Type.pp pp_e) decl_type decl_id) include Foldable.Make2 (struct type nonrec ('a, 'b) t = ('a, 'b) t @@ -143,14 +150,10 @@ module Helpers = struct { decl_adtype= Expr.Typed.adlevel_of e ; decl_id= sym ; decl_type= Unsized (Expr.Typed.type_of e) - ; initialize= true } + ; initialize= true + ; assignment= Some e } ; meta= e.meta.loc } in - let assign = - { decl with - Fixed.pattern= - Assignment ((LVariable sym, []), Expr.Typed.type_of e, e) } - in - loop es (Gensym.generate ()) (decl :: assign :: inits) + loop es (Gensym.generate ()) (decl :: inits) ({e with pattern= Var sym} :: vars) in let setups, exprs = loop (List.rev exprs) sym [] [] in (setups, exprs, reset) diff --git a/src/middle/Stmt.mli b/src/middle/Stmt.mli index 95d91ad38..f847878fc 100644 --- a/src/middle/Stmt.mli +++ b/src/middle/Stmt.mli @@ -23,7 +23,8 @@ module Fixed : sig { decl_adtype: UnsizedType.autodifftype ; decl_id: string ; decl_type: 'a Type.t - ; initialize: bool } + ; initialize: bool + ; assignment: 'a option } [@@deriving sexp, hash, compare] and 'e lvalue = 'e lbase * 'e Index.t list diff --git a/src/stan_math_backend/Lower_stmt.ml b/src/stan_math_backend/Lower_stmt.ml index 227e4a518..198dc14b3 100644 --- a/src/stan_math_backend/Lower_stmt.ml +++ b/src/stan_math_backend/Lower_stmt.ml @@ -91,8 +91,10 @@ let rec initialize_value st adtype = (adtype : UnsizedType.autodifftype)] (*Initialize an object of a given size.*) -let lower_assign_sized st adtype initialize = - if initialize then Some (initialize_value st adtype) else None +let lower_assign_sized st adtype initialize assignment = + match assignment with + | Some e -> Some (lower_expr e) + | None -> if initialize then Some (initialize_value st adtype) else None let lower_unsized_decl name ut adtype = let type_ = @@ -112,16 +114,17 @@ let lower_possibly_opencl_decl name st adtype = | true, UArray UInt -> TypeLiteral "matrix_cl" | true, _ -> TypeLiteral "matrix_cl" -let lower_sized_decl name st adtype initialize = +let lower_sized_decl name st adtype initialize assignment = let type_ = lower_possibly_opencl_decl name st adtype in let init = - lower_assign_sized st adtype initialize + lower_assign_sized st adtype initialize assignment |> Option.value_map ~default:Uninitialized ~f:(fun i -> Assignment i) in make_variable_defn ~type_ ~name ~init () -let lower_decl vident pst adtype initialize = +let lower_decl vident pst adtype initialize assignment = match pst with - | Type.Sized st -> VariableDefn (lower_sized_decl vident st adtype initialize) + | Type.Sized st -> + VariableDefn (lower_sized_decl vident st adtype initialize assignment) | Unsized ut -> VariableDefn (lower_unsized_decl vident ut adtype) let lower_profile name body = @@ -320,8 +323,8 @@ let rec lower_statement Stmt.Fixed.{pattern; meta} : stmt list = | Return e -> [Return (Option.map ~f:lower_expr e)] | Block ls -> [Stmts.block (lower_statements ls)] | SList ls -> lower_statements ls - | Decl {decl_adtype; decl_id; decl_type; initialize; _} -> - [lower_decl decl_id decl_type decl_adtype initialize] + | Decl {decl_adtype; decl_id; decl_type; initialize; assignment} -> + [lower_decl decl_id decl_type decl_adtype initialize assignment] | Profile (name, ls) -> [lower_profile name (lower_statements ls)] and lower_statements = List.concat_map ~f:lower_statement @@ -333,7 +336,7 @@ module Testing = struct (Fmt.option Cpp.Printing.pp_expr) (lower_assign_sized (SArray (SArray (SMatrix (AoS, int 2, int 3), int 4), int 5)) - DataOnly false) + DataOnly false None) |> print_endline; [%expect {| |}] @@ -343,7 +346,7 @@ module Testing = struct (Fmt.option Cpp.Printing.pp_expr) (lower_assign_sized (SArray (SArray (SMatrix (AoS, int 2, int 3), int 4), int 5)) - DataOnly true) + DataOnly true None) |> print_endline; [%expect {| diff --git a/src/stan_math_backend/Transform_Mir.ml b/src/stan_math_backend/Transform_Mir.ml index 6126efd4d..d5e1b1019 100644 --- a/src/stan_math_backend/Transform_Mir.ml +++ b/src/stan_math_backend/Transform_Mir.ml @@ -322,7 +322,8 @@ let rec var_context_read_inside_tuple enclosing_tuple_name origin_type (SizedType.to_unsized t) ; decl_id= make_tuple_temp name ; decl_type= Sized t - ; initialize= true } + ; initialize= true + ; assignment= None } |> swrap) tuple_component_names tuple_types in let loop = @@ -369,7 +370,8 @@ let rec var_context_read_inside_tuple enclosing_tuple_name origin_type { decl_adtype= AutoDiffable ; decl_id= decl_id_flat ; decl_type= Unsized flat_type - ; initialize= true } + ; initialize= true + ; assignment= None } |> swrap , Assignment (Stmt.Helpers.lvariable decl_id_flat, flat_type, origin) |> swrap @@ -473,7 +475,8 @@ let rec var_context_read { decl_adtype= AutoDiffable ; decl_id= variable_name ; decl_type= Unsized array_type - ; initialize= true } + ; initialize= true + ; assignment= None } |> swrap_noloc ; Assignment ( Stmt.Helpers.lvariable variable_name @@ -484,7 +487,8 @@ let rec var_context_read { decl_adtype= DataOnly ; decl_id= variable_name ^ "pos__" ; decl_type= Unsized UInt - ; initialize= true } + ; initialize= true + ; assignment= None } |> swrap_noloc ; Stmt.Fixed.Pattern.Assignment ( Stmt.Helpers.lvariable (variable_name ^ "pos__") @@ -512,7 +516,8 @@ let rec var_context_read (SizedType.to_unsized t) ; decl_id= make_tuple_temp name ; decl_type= Sized t - ; initialize= true } + ; initialize= true + ; assignment= None } |> swrap_noloc) tuple_component_names tuple_types in let loop = @@ -559,7 +564,8 @@ let rec var_context_read { decl_adtype= AutoDiffable ; decl_id= decl_id_flat ; decl_type= Unsized flat_type - ; initialize= false } + ; initialize= false + ; assignment= None } |> swrap , Assignment ( Stmt.Helpers.lvariable decl_id_flat @@ -872,7 +878,8 @@ let var_context_unconstrain_transform (decl_id, smeta, outvar) = (SizedType.to_unsized st) ; decl_id ; decl_type= Type.Sized st - ; initialize= true } + ; initialize= true + ; assignment= None } ; meta= smeta } :: var_context_read (Stmt.Helpers.lvariable decl_id, smeta, st) @ param_serializer_write ~unconstrain:true (decl_id, outvar) @@ -888,7 +895,8 @@ let array_unconstrain_transform (decl_id, smeta, outvar) = (SizedType.to_unsized outvar.Program.out_constrained_st) ; decl_id ; decl_type= Type.Sized outvar.Program.out_constrained_st - ; initialize= true } + ; initialize= true + ; assignment= None } ; meta= smeta } in let rec read (lval, st) = match st with @@ -1028,7 +1036,8 @@ let trans_prog (p : Program.Typed.t) = { decl_adtype= DataOnly ; decl_id= pos ; decl_type= Sized SInt - ; initialize= true } + ; initialize= true + ; assignment= None } ; Assignment (Stmt.Helpers.lvariable pos, UInt, Expr.Helpers.loop_bottom) ] |> List.map ~f:(fun pattern -> Stmt.Fixed.{pattern; meta= Location_span.empty}) in @@ -1145,7 +1154,8 @@ let trans_prog (p : Program.Typed.t) = { decl_adtype= DataOnly ; decl_id= vident ; decl_type= Type.Unsized type_of_input_var - ; initialize= true } + ; initialize= true + ; assignment= None } ; meta= Location_span.empty } ; { pattern= Assignment diff --git a/test/integration/good/code-gen/cpp.expected b/test/integration/good/code-gen/cpp.expected index 04b256c34..d2f1d5f2a 100644 --- a/test/integration/good/code-gen/cpp.expected +++ b/test/integration/good/code-gen/cpp.expected @@ -12045,10 +12045,6 @@ class mother_model final : public model_base_crtp { "assigning variable indices"); { std::vector sym1__; - current_statement__ = 354; - stan::model::assign(sym1__, - stan::model::rvalue(indices, "indices", - stan::model::index_min_max(1, 3)), "assigning variable sym1__"); current_statement__ = 355; for (int sym3__ = 1; sym3__ <= stan::math::size(sym1__); ++sym3__) { int i; @@ -49550,13 +49546,7 @@ class vector_truncate_model final : public model_base_crtp sym2__; - current_statement__ = 78; - stan::model::assign(sym2__, stan::math::multiply(vector_mu, 4), - "assigning variable sym2__"); Eigen::Matrix sym1__; - current_statement__ = 79; - stan::model::assign(sym1__, stan::math::add(vector_sigma, 1), - "assigning variable sym1__"); current_statement__ = 80; for (int sym4__ = 1; sym4__ <= stan::math::size(sym2__); ++sym4__) { current_statement__ = 80; @@ -50073,13 +50063,7 @@ class vector_truncate_model final : public model_base_crtp sym2__; - current_statement__ = 78; - stan::model::assign(sym2__, stan::math::multiply(vector_mu, 4), - "assigning variable sym2__"); Eigen::Matrix sym1__; - current_statement__ = 79; - stan::model::assign(sym1__, stan::math::add(vector_sigma, 1), - "assigning variable sym1__"); current_statement__ = 80; for (int sym4__ = 1; sym4__ <= stan::math::size(sym2__); ++sym4__) { current_statement__ = 80; diff --git a/test/integration/good/code-gen/lir.expected b/test/integration/good/code-gen/lir.expected index 7cec74102..23dcc6aed 100644 --- a/test/integration/good/code-gen/lir.expected +++ b/test/integration/good/code-gen/lir.expected @@ -19203,14 +19203,6 @@ ((VariableDefn ((static false) (constexpr false) (type_ (StdVector Int)) (name sym1__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 354))) - (Expression - (FunCall stan::model::assign () - ((Var sym1__) - (FunCall stan::model::rvalue () - ((Var indices) (Literal "\"indices\"") - (FunCall stan::model::index_min_max () ((Literal 1) (Literal 3))))) - (Literal "\"assigning variable sym1__\"")))) (Expression (Assign (Var current_statement__) (Literal 355))) (For ((static false) (constexpr false) (type_ Int) (name sym3__) diff --git a/test/integration/good/code-gen/mir.expected b/test/integration/good/code-gen/mir.expected index 6a27e3c6e..9a7f6a04e 100644 --- a/test/integration/good/code-gen/mir.expected +++ b/test/integration/good/code-gen/mir.expected @@ -56,7 +56,7 @@ (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -334,7 +334,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id b) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable b) ()) UInt @@ -412,11 +412,11 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -438,7 +438,8 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized (UArray UInt))) (initialize true))) + (decl_type (Unsized (UArray UInt))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) (UArray UInt) @@ -485,7 +486,8 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized (UArray UInt))) (initialize true))) + (decl_type (Unsized (UArray UInt))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) (UArray UInt) @@ -532,7 +534,8 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized (UArray UInt))) (initialize true))) + (decl_type (Unsized (UArray UInt))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) (UArray UInt) @@ -571,7 +574,7 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id vv) (decl_type (Unsized UInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable vv) ()) UInt @@ -619,7 +622,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id vs) @@ -630,7 +633,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -676,7 +679,7 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) (decl_type (Unsized UReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -763,7 +766,7 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) (decl_type (Unsized UReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -810,7 +813,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id vs) @@ -819,7 +822,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -839,7 +842,8 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true))) + (decl_type (Unsized UReal)) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -889,7 +893,8 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true))) + (decl_type (Unsized UReal)) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -926,7 +931,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id vs) @@ -935,7 +940,7 @@ (SRowVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -956,7 +961,8 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true))) + (decl_type (Unsized UReal)) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -1007,7 +1013,8 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true))) + (decl_type (Unsized UReal)) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -1044,7 +1051,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id b) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable b) ()) UInt @@ -1055,7 +1062,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id c) - (decl_type (Sized SInt)) (initialize true))) + (decl_type (Sized SInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable c) ()) UInt @@ -1085,11 +1092,11 @@ (SArray SInt ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id y) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -1109,7 +1116,8 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UInt @@ -1205,11 +1213,11 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id abs_diff) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id avg_scale) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable abs_diff) ()) UReal @@ -1435,7 +1443,7 @@ (((pattern (Var mat)) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable o) ()) UMatrix @@ -1728,11 +1736,11 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id a) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id b) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id c) @@ -1744,7 +1752,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 20)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ar_mat) @@ -1761,7 +1769,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 60)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -2196,7 +2204,7 @@ (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable l) ()) UVector @@ -2227,7 +2235,7 @@ (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable l) ()) UVector @@ -2341,7 +2349,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -2418,7 +2426,7 @@ (SVector AoS ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -2733,7 +2741,8 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (prepare_data (((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -2747,7 +2756,8 @@ (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -2761,7 +2771,8 @@ (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -2806,7 +2817,7 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -2852,7 +2863,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -2869,8 +2880,8 @@ (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id J) (decl_type (Sized SReal)) - (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id J) (decl_type (Sized SReal)) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -2919,7 +2930,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -2952,7 +2963,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -2967,7 +2978,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -2991,7 +3002,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3033,7 +3044,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3048,7 +3059,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3072,7 +3083,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3114,7 +3125,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_ar_mat) @@ -3129,7 +3140,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -3170,7 +3181,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -3203,7 +3214,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -3254,7 +3265,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -3273,7 +3284,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -3291,7 +3302,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -3318,7 +3329,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -3331,7 +3342,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_int) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3347,7 +3358,7 @@ (Sized (SArray SInt ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3365,7 +3376,7 @@ (SArray SInt ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3386,11 +3397,11 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_real) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3406,7 +3417,7 @@ (Sized (SArray SReal ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3424,7 +3435,7 @@ (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3445,7 +3456,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3470,7 +3481,7 @@ (SMatrix AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3505,7 +3516,7 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3544,7 +3555,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3586,7 +3597,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3602,7 +3613,7 @@ (Sized (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3628,7 +3639,7 @@ (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3657,7 +3668,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3689,7 +3700,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3705,7 +3716,7 @@ (Sized (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3731,7 +3742,7 @@ (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3760,7 +3771,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3792,11 +3803,11 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_int) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3811,7 +3822,7 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3826,7 +3837,7 @@ (Sized (SArray SInt ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable td_1dk) ()) (UArray UInt) @@ -3838,7 +3849,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_a) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable td_a) ()) UInt @@ -3846,7 +3857,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_b) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable td_b) ()) UReal @@ -3862,7 +3873,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_c) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable td_c) ()) UReal @@ -3884,7 +3895,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3899,7 +3910,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3923,7 +3934,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3965,7 +3976,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_cfcov_54) @@ -3974,7 +3985,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_cfcov_33) @@ -3983,7 +3994,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x) @@ -3991,7 +4002,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id y) @@ -3999,7 +4010,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id dat) @@ -4007,7 +4018,7 @@ (Sized (SArray SReal ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id dat_int) @@ -4015,7 +4026,7 @@ (Sized (SArray SInt ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x_r) @@ -4025,7 +4036,7 @@ (SArray SReal ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x_i) @@ -4035,7 +4046,7 @@ (SArray SInt ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable td_int) ()) UInt @@ -4293,7 +4304,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable l_mat) ()) UMatrix @@ -4374,7 +4385,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id z) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id blocked_tdata_vs) @@ -4383,7 +4394,7 @@ (SRowVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -4403,7 +4414,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) (decl_type (Unsized UReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -4435,7 +4446,7 @@ (SArray SInt ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable indices) ()) (UArray UInt) @@ -4455,20 +4466,18 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id sym1__) - (decl_type (Unsized (UArray UInt))) (initialize true))) - (meta )) - ((pattern - (Assignment ((LVariable sym1__) ()) (UArray UInt) - ((pattern - (Indexed - ((pattern (Var indices)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Between - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (decl_type (Unsized (UArray UInt))) (initialize true) + (assignment + (((pattern + (Indexed + ((pattern (Var indices)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Between + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (For (loopvar sym3__) @@ -4488,7 +4497,8 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id i) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable i) ()) UInt @@ -4574,7 +4584,7 @@ (SArray SInt ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -4597,7 +4607,7 @@ (Sized (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x_mul_ind) ()) (UArray UReal) @@ -4619,7 +4629,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id transformed_data_real) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4635,7 +4645,7 @@ (Sized (SArray SReal ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4653,7 +4663,7 @@ (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4674,7 +4684,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4699,7 +4709,7 @@ (SMatrix AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4734,7 +4744,7 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4773,7 +4783,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4815,7 +4825,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4831,7 +4841,7 @@ (Sized (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4857,7 +4867,7 @@ (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4886,7 +4896,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4918,7 +4928,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4934,7 +4944,7 @@ (Sized (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4960,7 +4970,7 @@ (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4989,7 +4999,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -5021,7 +5031,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable transformed_data_real) ()) UReal @@ -6792,15 +6802,15 @@ (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id offset_multiplier) @@ -6808,7 +6818,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id no_offset_multiplier) @@ -6816,7 +6826,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id offset_no_multiplier) @@ -6824,7 +6834,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real_1d_ar) @@ -6832,7 +6842,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real_3d_ar) @@ -6844,7 +6854,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_vec) @@ -6852,7 +6862,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_vec) @@ -6862,7 +6872,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_vec) @@ -6876,7 +6886,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_row_vec) @@ -6884,7 +6894,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_row_vec) @@ -6894,7 +6904,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_row_vec) @@ -6908,7 +6918,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_mat) @@ -6917,7 +6927,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_ar_mat) @@ -6932,7 +6942,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_simplex) @@ -6940,7 +6950,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_simplex) @@ -6950,7 +6960,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_simplex) @@ -6964,7 +6974,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_54) @@ -6973,7 +6983,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_33) @@ -6982,7 +6992,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_33_ar) @@ -6993,7 +7003,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id x_p) @@ -7001,7 +7011,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id y_p) @@ -7009,7 +7019,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_1d_ar) @@ -7017,7 +7027,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_3d_ar) @@ -7029,7 +7039,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_vec) @@ -7037,7 +7047,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_vec) @@ -7047,7 +7057,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_vec) @@ -7061,7 +7071,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_row_vec) @@ -7069,7 +7079,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_row_vec) @@ -7079,7 +7089,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_row_vec) @@ -7093,7 +7103,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_mat) @@ -7102,7 +7112,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_ar_mat) @@ -7117,7 +7127,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_simplex) @@ -7125,7 +7135,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_simplex) @@ -7135,7 +7145,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_simplex) @@ -7149,7 +7159,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_54) @@ -7158,7 +7168,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_33) @@ -7167,7 +7177,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_33_ar) @@ -7178,7 +7188,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta_p) @@ -7186,11 +7196,11 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_real_1d_ar) ()) (UArray UReal) @@ -7751,7 +7761,7 @@ (SVector AoS ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tmp2) @@ -7763,11 +7773,11 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id r1) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable r1) ()) UReal @@ -7779,7 +7789,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id r2) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable r2) ()) UReal @@ -8544,15 +8554,15 @@ (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id offset_multiplier) @@ -8560,7 +8570,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id no_offset_multiplier) @@ -8568,7 +8578,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id offset_no_multiplier) @@ -8576,7 +8586,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_real_1d_ar) @@ -8584,7 +8594,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_real_3d_ar) @@ -8596,7 +8606,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_vec) @@ -8604,7 +8614,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_1d_vec) @@ -8614,7 +8624,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_3d_vec) @@ -8628,7 +8638,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_row_vec) @@ -8636,7 +8646,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_1d_row_vec) @@ -8646,7 +8656,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_3d_row_vec) @@ -8660,7 +8670,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_mat) @@ -8669,7 +8679,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_ar_mat) @@ -8684,7 +8694,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_simplex) @@ -8692,7 +8702,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_1d_simplex) @@ -8702,7 +8712,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_3d_simplex) @@ -8716,7 +8726,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_cfcov_54) @@ -8725,7 +8735,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_cfcov_33) @@ -8734,7 +8744,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_cfcov_33_ar) @@ -8745,7 +8755,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x_p) @@ -8753,7 +8763,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id y_p) @@ -8761,7 +8771,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_1d_ar) @@ -8769,7 +8779,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_3d_ar) @@ -8781,7 +8791,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_vec) @@ -8789,7 +8799,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_1d_vec) @@ -8799,7 +8809,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_3d_vec) @@ -8813,7 +8823,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_row_vec) @@ -8821,7 +8831,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_1d_row_vec) @@ -8831,7 +8841,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_3d_row_vec) @@ -8845,7 +8855,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_mat) @@ -8854,7 +8864,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_ar_mat) @@ -8869,7 +8879,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_simplex) @@ -8877,7 +8887,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_1d_simplex) @@ -8887,7 +8897,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_3d_simplex) @@ -8901,7 +8911,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_cfcov_54) @@ -8910,7 +8920,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_cfcov_33) @@ -8919,7 +8929,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_cfcov_33_ar) @@ -8930,7 +8940,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id theta_p) @@ -8938,11 +8948,11 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (IfElse @@ -9515,7 +9525,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_r1) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable gq_r1) ()) UReal @@ -9527,7 +9537,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_r2) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable gq_r2) ()) UReal @@ -9542,7 +9552,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_real_3d_ar) @@ -9554,7 +9564,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_vec) @@ -9562,7 +9572,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_1d_vec) @@ -9572,7 +9582,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_3d_vec) @@ -9586,7 +9596,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_row_vec) @@ -9594,7 +9604,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_1d_row_vec) @@ -9604,7 +9614,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_3d_row_vec) @@ -9618,7 +9628,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_ar_mat) @@ -9633,7 +9643,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_simplex) @@ -9641,7 +9651,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_1d_simplex) @@ -9651,7 +9661,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_3d_simplex) @@ -9665,7 +9675,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_cfcov_54) @@ -9674,7 +9684,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_cfcov_33) @@ -9683,7 +9693,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_cfcov_33_ar) @@ -9694,7 +9704,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id indices) @@ -9702,7 +9712,7 @@ (Sized (SArray SInt ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable indices) ()) (UArray UInt) @@ -9722,7 +9732,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res1) @@ -9733,7 +9743,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res2) @@ -9744,7 +9754,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res3) @@ -9755,7 +9765,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res11) @@ -9766,7 +9776,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res21) @@ -9777,7 +9787,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res31) @@ -9788,7 +9798,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res4) @@ -9798,7 +9808,7 @@ (SRowVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res5) @@ -9808,7 +9818,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable gq_real_1d_ar) ()) (UArray UReal) diff --git a/test/integration/good/code-gen/profiling/transformed_mir.expected b/test/integration/good/code-gen/profiling/transformed_mir.expected index c55c98aad..c30b4250a 100644 --- a/test/integration/good/code-gen/profiling/transformed_mir.expected +++ b/test/integration/good/code-gen/profiling/transformed_mir.expected @@ -24,14 +24,15 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -70,7 +71,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x) ()) (UArray UReal) @@ -92,13 +93,13 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id y_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable y_flat__) ()) (UArray UReal) @@ -153,7 +154,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sum_y) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Profile "\"sum\"" @@ -169,7 +170,7 @@ (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id rho) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable rho) ()) UReal @@ -187,7 +188,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -205,7 +206,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -246,7 +247,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -271,7 +272,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Profile "\"cov_exp_quad\"" @@ -406,7 +407,7 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id rho) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable rho) ()) UReal @@ -424,7 +425,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -442,7 +443,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -483,7 +484,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -508,7 +509,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Profile "\"cov_exp_quad\"" @@ -643,7 +644,7 @@ (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id rho) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable rho) ()) UReal @@ -661,7 +662,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -679,7 +680,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -745,7 +746,7 @@ (transform_inits (((pattern (Decl (decl_adtype AutoDiffable) (decl_id rho) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable rho) ()) UReal @@ -775,7 +776,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -805,7 +806,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -836,7 +837,7 @@ (unconstrain_array (((pattern (Decl (decl_adtype AutoDiffable) (decl_id rho) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable rho) ()) UReal @@ -857,7 +858,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -878,7 +879,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal diff --git a/test/integration/good/code-gen/transformed_mir.expected b/test/integration/good/code-gen/transformed_mir.expected index ffb30e428..792d31ddc 100644 --- a/test/integration/good/code-gen/transformed_mir.expected +++ b/test/integration/good/code-gen/transformed_mir.expected @@ -59,7 +59,7 @@ (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -337,7 +337,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id b) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable b) ()) UInt @@ -425,11 +425,11 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -451,7 +451,8 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized (UArray UInt))) (initialize true))) + (decl_type (Unsized (UArray UInt))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) (UArray UInt) @@ -498,7 +499,8 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized (UArray UInt))) (initialize true))) + (decl_type (Unsized (UArray UInt))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) (UArray UInt) @@ -545,7 +547,8 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized (UArray UInt))) (initialize true))) + (decl_type (Unsized (UArray UInt))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) (UArray UInt) @@ -584,7 +587,7 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id vv) (decl_type (Unsized UInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable vv) ()) UInt @@ -632,7 +635,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id vs) @@ -643,7 +646,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -689,7 +692,7 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) (decl_type (Unsized UReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -776,7 +779,7 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) (decl_type (Unsized UReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -823,7 +826,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id vs) @@ -832,7 +835,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -852,7 +855,8 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true))) + (decl_type (Unsized UReal)) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -902,7 +906,8 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true))) + (decl_type (Unsized UReal)) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -939,7 +944,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id vs) @@ -948,7 +953,7 @@ (SRowVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -969,7 +974,8 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true))) + (decl_type (Unsized UReal)) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -1020,7 +1026,8 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true))) + (decl_type (Unsized UReal)) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -1057,7 +1064,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id b) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable b) ()) UInt @@ -1068,7 +1075,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id c) - (decl_type (Sized SInt)) (initialize true))) + (decl_type (Sized SInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable c) ()) UInt @@ -1098,11 +1105,11 @@ (SArray SInt ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id y) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -1122,7 +1129,8 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UInt @@ -1218,11 +1226,11 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id abs_diff) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id avg_scale) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable abs_diff) ()) UReal @@ -1454,7 +1462,7 @@ (((pattern (Var mat)) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable o) ()) UMatrix @@ -1747,11 +1755,11 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id a) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id b) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id c) @@ -1763,7 +1771,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 20)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ar_mat) @@ -1780,7 +1788,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 60)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -2215,7 +2223,7 @@ (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable l) ()) UVector @@ -2246,7 +2254,7 @@ (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable l) ()) UVector @@ -2360,7 +2368,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -2437,7 +2445,7 @@ (SVector AoS ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -2753,14 +2761,15 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -2788,7 +2797,8 @@ (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable M) ()) UInt @@ -2816,7 +2826,8 @@ (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable K) ()) UInt @@ -2875,7 +2886,7 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_int_1d_ar) ()) (UArray UInt) @@ -2929,13 +2940,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_int_3d_ar_flat__) - (decl_type (Unsized (UArray UInt))) (initialize false))) + (decl_type (Unsized (UArray UInt))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_int_3d_ar_flat__) ()) (UArray UInt) @@ -3047,8 +3058,8 @@ (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id J) (decl_type (Sized SReal)) - (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id J) (decl_type (Sized SReal)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable J) ()) UReal @@ -3111,7 +3122,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_real_1d_ar) ()) (UArray UReal) @@ -3152,13 +3163,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_real_3d_ar_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_real_3d_ar_flat__) ()) (UArray UReal) @@ -3268,13 +3279,13 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_vec_flat__) ()) (UArray UReal) @@ -3349,13 +3360,13 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_1d_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_1d_vec_flat__) ()) (UArray UReal) @@ -3465,13 +3476,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_3d_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_3d_vec_flat__) ()) (UArray UReal) @@ -3609,13 +3620,13 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_row_vec_flat__) ()) (UArray UReal) @@ -3690,13 +3701,13 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_1d_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_1d_row_vec_flat__) ()) (UArray UReal) @@ -3806,13 +3817,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_3d_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_3d_row_vec_flat__) ()) (UArray UReal) @@ -3950,13 +3961,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_ar_mat_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_ar_mat_flat__) ()) (UArray UReal) @@ -4120,13 +4131,13 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_simplex_flat__) ()) (UArray UReal) @@ -4210,13 +4221,13 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_1d_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_1d_simplex_flat__) ()) (UArray UReal) @@ -4335,13 +4346,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_3d_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_3d_simplex_flat__) ()) (UArray UReal) @@ -4483,13 +4494,13 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_cfcov_54_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_cfcov_54_flat__) ()) (UArray UReal) @@ -4576,13 +4587,13 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_cfcov_33_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_cfcov_33_flat__) ()) (UArray UReal) @@ -4678,13 +4689,13 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_cfcov_33_ar_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_cfcov_33_ar_flat__) ()) (UArray UReal) @@ -4791,7 +4802,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_int) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_int) ()) UInt @@ -4821,7 +4832,7 @@ (Sized (SArray SInt ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_int_array) ()) (UArray UInt) @@ -4847,13 +4858,13 @@ (SArray SInt ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_int_array_2d_flat__) - (decl_type (Unsized (UArray UInt))) (initialize false))) + (decl_type (Unsized (UArray UInt))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_int_array_2d_flat__) ()) (UArray UInt) @@ -4943,13 +4954,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_int_array_3d_flat__) - (decl_type (Unsized (UArray UInt))) (initialize false))) + (decl_type (Unsized (UArray UInt))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_int_array_3d_flat__) ()) (UArray UInt) @@ -5049,7 +5060,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_real) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_real) ()) UReal @@ -5079,7 +5090,7 @@ (Sized (SArray SReal ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_real_array) ()) (UArray UReal) @@ -5105,13 +5116,13 @@ (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_real_array_2d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_real_array_2d_flat__) ()) (UArray UReal) @@ -5201,13 +5212,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_real_array_3d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_real_array_3d_flat__) ()) (UArray UReal) @@ -5328,13 +5339,13 @@ (SMatrix AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_matrix_flat__) ()) (UArray UReal) @@ -5438,13 +5449,13 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_array_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_matrix_array_flat__) ()) (UArray UReal) @@ -5577,13 +5588,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_array_2d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_matrix_array_2d_flat__) ()) (UArray UReal) @@ -5748,13 +5759,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_array_3d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_matrix_array_3d_flat__) ()) (UArray UReal) @@ -5926,13 +5937,13 @@ (Sized (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_vector_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_vector_flat__) ()) (UArray UReal) @@ -6010,13 +6021,13 @@ (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_vector_array_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_vector_array_flat__) ()) (UArray UReal) @@ -6114,13 +6125,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_vector_array_2d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_vector_array_2d_flat__) ()) (UArray UReal) @@ -6247,13 +6258,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_vector_array_3d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_vector_array_3d_flat__) ()) (UArray UReal) @@ -6393,13 +6404,13 @@ (Sized (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_row_vector_flat__) ()) (UArray UReal) @@ -6477,13 +6488,13 @@ (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_array_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_row_vector_array_flat__) ()) (UArray UReal) @@ -6581,13 +6592,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_array_2d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_row_vector_array_2d_flat__) ()) (UArray UReal) @@ -6714,13 +6725,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_array_3d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d_row_vector_array_3d_flat__) ()) (UArray UReal) @@ -6849,7 +6860,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_int) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -6864,7 +6875,7 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -6879,7 +6890,7 @@ (Sized (SArray SInt ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable td_1dk) ()) (UArray UInt) @@ -6891,7 +6902,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_a) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable td_a) ()) UInt @@ -6899,7 +6910,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_b) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable td_b) ()) UReal @@ -6915,7 +6926,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_c) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable td_c) ()) UReal @@ -6937,7 +6948,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -6952,7 +6963,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -6976,7 +6987,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7018,7 +7029,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_cfcov_54) @@ -7027,7 +7038,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_cfcov_33) @@ -7036,7 +7047,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x) @@ -7044,7 +7055,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id y) @@ -7052,7 +7063,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id dat) @@ -7060,7 +7071,7 @@ (Sized (SArray SReal ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id dat_int) @@ -7068,7 +7079,7 @@ (Sized (SArray SInt ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x_r) @@ -7078,7 +7089,7 @@ (SArray SReal ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x_i) @@ -7088,7 +7099,7 @@ (SArray SInt ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable td_int) ()) UInt @@ -7346,7 +7357,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable l_mat) ()) UMatrix @@ -7427,7 +7438,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id z) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id blocked_tdata_vs) @@ -7436,7 +7447,7 @@ (SRowVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -7456,7 +7467,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) (decl_type (Unsized UReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -7488,7 +7499,7 @@ (SArray SInt ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable indices) ()) (UArray UInt) @@ -7508,20 +7519,18 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id sym1__) - (decl_type (Unsized (UArray UInt))) (initialize true))) - (meta )) - ((pattern - (Assignment ((LVariable sym1__) ()) (UArray UInt) - ((pattern - (Indexed - ((pattern (Var indices)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Between - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (decl_type (Unsized (UArray UInt))) (initialize true) + (assignment + (((pattern + (Indexed + ((pattern (Var indices)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Between + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (For (loopvar sym3__) @@ -7541,7 +7550,8 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id i) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable i) ()) UInt @@ -7627,7 +7637,7 @@ (SArray SInt ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -7650,7 +7660,7 @@ (Sized (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x_mul_ind) ()) (UArray UReal) @@ -7672,7 +7682,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id transformed_data_real) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7688,7 +7698,7 @@ (Sized (SArray SReal ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7706,7 +7716,7 @@ (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7727,7 +7737,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7752,7 +7762,7 @@ (SMatrix AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7787,7 +7797,7 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7826,7 +7836,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7868,7 +7878,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7884,7 +7894,7 @@ (Sized (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7910,7 +7920,7 @@ (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7939,7 +7949,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7971,7 +7981,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7987,7 +7997,7 @@ (Sized (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -8013,7 +8023,7 @@ (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -8042,7 +8052,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -8074,7 +8084,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable transformed_data_real) ()) UReal @@ -9845,7 +9855,7 @@ (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_real) ()) UReal @@ -9858,7 +9868,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_upper) ()) UReal @@ -9876,7 +9886,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_lower) ()) UReal @@ -9898,7 +9908,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_multiplier) ()) (UArray UReal) @@ -9925,7 +9935,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable no_offset_multiplier) ()) (UArray UReal) @@ -9950,7 +9960,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_no_multiplier) ()) (UArray UReal) @@ -9975,7 +9985,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_real_1d_ar) ()) (UArray UReal) @@ -10003,7 +10013,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_real_3d_ar) ()) (UArray (UArray (UArray UReal))) @@ -10030,7 +10040,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_vec) ()) UVector @@ -10056,7 +10066,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_1d_vec) ()) (UArray UVector) @@ -10083,7 +10093,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_3d_vec) ()) (UArray (UArray (UArray UVector))) @@ -10108,7 +10118,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_row_vec) ()) URowVector @@ -10130,7 +10140,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_1d_row_vec) ()) (UArray URowVector) @@ -10157,7 +10167,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_3d_row_vec) ()) (UArray (UArray (UArray URowVector))) @@ -10183,7 +10193,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_mat) ()) UMatrix @@ -10213,7 +10223,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_ar_mat) ()) (UArray (UArray UMatrix)) @@ -10246,7 +10256,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_simplex) ()) UVector @@ -10268,7 +10278,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_1d_simplex) ()) (UArray UVector) @@ -10295,7 +10305,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_3d_simplex) ()) (UArray (UArray (UArray UVector))) @@ -10321,7 +10331,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_54) ()) UMatrix @@ -10345,7 +10355,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_33) ()) UMatrix @@ -10371,7 +10381,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_33_ar) ()) (UArray UMatrix) @@ -10395,7 +10405,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x_p) ()) UVector @@ -10416,7 +10426,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable y_p) ()) UVector @@ -10437,7 +10447,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_3d_ar) @@ -10449,7 +10459,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_vec) @@ -10457,7 +10467,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_vec) @@ -10467,7 +10477,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_vec) @@ -10481,7 +10491,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_row_vec) @@ -10489,7 +10499,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_row_vec) @@ -10499,7 +10509,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_row_vec) @@ -10513,7 +10523,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_mat) @@ -10522,7 +10532,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_ar_mat) @@ -10537,7 +10547,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_simplex) @@ -10545,7 +10555,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_simplex) @@ -10555,7 +10565,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_simplex) @@ -10569,7 +10579,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_54) @@ -10578,7 +10588,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_33) @@ -10587,7 +10597,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_33_ar) @@ -10598,7 +10608,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta_p) @@ -10606,11 +10616,11 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_real_1d_ar) ()) (UArray UReal) @@ -11171,7 +11181,7 @@ (SVector AoS ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tmp2) @@ -11183,11 +11193,11 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id r1) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable r1) ()) UReal @@ -11199,7 +11209,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id r2) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable r2) ()) UReal @@ -11963,7 +11973,7 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_real) ()) UReal @@ -11976,7 +11986,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_upper) ()) UReal @@ -11994,7 +12004,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_lower) ()) UReal @@ -12016,7 +12026,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_multiplier) ()) (UArray UReal) @@ -12043,7 +12053,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable no_offset_multiplier) ()) (UArray UReal) @@ -12068,7 +12078,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_no_multiplier) ()) (UArray UReal) @@ -12093,7 +12103,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_real_1d_ar) ()) (UArray UReal) @@ -12121,7 +12131,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_real_3d_ar) ()) (UArray (UArray (UArray UReal))) @@ -12148,7 +12158,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_vec) ()) UVector @@ -12174,7 +12184,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_1d_vec) ()) (UArray UVector) @@ -12201,7 +12211,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_3d_vec) ()) (UArray (UArray (UArray UVector))) @@ -12226,7 +12236,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_row_vec) ()) URowVector @@ -12248,7 +12258,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_1d_row_vec) ()) (UArray URowVector) @@ -12275,7 +12285,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_3d_row_vec) ()) (UArray (UArray (UArray URowVector))) @@ -12301,7 +12311,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_mat) ()) UMatrix @@ -12331,7 +12341,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_ar_mat) ()) (UArray (UArray UMatrix)) @@ -12364,7 +12374,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_simplex) ()) UVector @@ -12386,7 +12396,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_1d_simplex) ()) (UArray UVector) @@ -12413,7 +12423,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_3d_simplex) ()) (UArray (UArray (UArray UVector))) @@ -12439,7 +12449,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_54) ()) UMatrix @@ -12463,7 +12473,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_33) ()) UMatrix @@ -12489,7 +12499,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_33_ar) ()) (UArray UMatrix) @@ -12513,7 +12523,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x_p) ()) UVector @@ -12534,7 +12544,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable y_p) ()) UVector @@ -12555,7 +12565,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_3d_ar) @@ -12567,7 +12577,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_vec) @@ -12575,7 +12585,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_vec) @@ -12585,7 +12595,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_vec) @@ -12599,7 +12609,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_row_vec) @@ -12607,7 +12617,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_row_vec) @@ -12617,7 +12627,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_row_vec) @@ -12631,7 +12641,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_mat) @@ -12640,7 +12650,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_ar_mat) @@ -12655,7 +12665,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_simplex) @@ -12663,7 +12673,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_simplex) @@ -12673,7 +12683,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_simplex) @@ -12687,7 +12697,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_54) @@ -12696,7 +12706,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_33) @@ -12705,7 +12715,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_33_ar) @@ -12716,7 +12726,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta_p) @@ -12724,11 +12734,11 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_real_1d_ar) ()) (UArray UReal) @@ -13289,7 +13299,7 @@ (SVector AoS ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tmp2) @@ -13301,11 +13311,11 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id r1) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable r1) ()) UReal @@ -13317,7 +13327,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id r2) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable r2) ()) UReal @@ -14081,7 +14091,7 @@ (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_real) ()) UReal @@ -14094,7 +14104,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_upper) ()) UReal @@ -14112,7 +14122,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_lower) ()) UReal @@ -14134,7 +14144,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_multiplier) ()) (UArray UReal) @@ -14161,7 +14171,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable no_offset_multiplier) ()) (UArray UReal) @@ -14186,7 +14196,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_no_multiplier) ()) (UArray UReal) @@ -14211,7 +14221,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_real_1d_ar) ()) (UArray UReal) @@ -14239,7 +14249,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_real_3d_ar) ()) (UArray (UArray (UArray UReal))) @@ -14266,7 +14276,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_vec) ()) UVector @@ -14292,7 +14302,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_1d_vec) ()) (UArray UVector) @@ -14319,7 +14329,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_3d_vec) ()) (UArray (UArray (UArray UVector))) @@ -14344,7 +14354,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_row_vec) ()) URowVector @@ -14366,7 +14376,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_1d_row_vec) ()) (UArray URowVector) @@ -14393,7 +14403,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_3d_row_vec) ()) (UArray (UArray (UArray URowVector))) @@ -14419,7 +14429,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_mat) ()) UMatrix @@ -14449,7 +14459,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_ar_mat) ()) (UArray (UArray UMatrix)) @@ -14482,7 +14492,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_simplex) ()) UVector @@ -14504,7 +14514,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_1d_simplex) ()) (UArray UVector) @@ -14531,7 +14541,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_3d_simplex) ()) (UArray (UArray (UArray UVector))) @@ -14557,7 +14567,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_54) ()) UMatrix @@ -14581,7 +14591,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_33) ()) UMatrix @@ -14607,7 +14617,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_33_ar) ()) (UArray UMatrix) @@ -14631,7 +14641,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x_p) ()) UVector @@ -14652,7 +14662,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable y_p) ()) UVector @@ -14673,7 +14683,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_3d_ar) @@ -14685,7 +14695,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_vec) @@ -14693,7 +14703,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_1d_vec) @@ -14703,7 +14713,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_3d_vec) @@ -14717,7 +14727,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_row_vec) @@ -14725,7 +14735,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_1d_row_vec) @@ -14735,7 +14745,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_3d_row_vec) @@ -14749,7 +14759,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_mat) @@ -14758,7 +14768,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_ar_mat) @@ -14773,7 +14783,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_simplex) @@ -14781,7 +14791,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_1d_simplex) @@ -14791,7 +14801,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_3d_simplex) @@ -14805,7 +14815,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_cfcov_54) @@ -14814,7 +14824,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_cfcov_33) @@ -14823,7 +14833,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_cfcov_33_ar) @@ -14834,7 +14844,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id theta_p) @@ -14842,11 +14852,11 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -16901,7 +16911,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_r1) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable gq_r1) ()) UReal @@ -16913,7 +16923,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_r2) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable gq_r2) ()) UReal @@ -16928,7 +16938,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_real_3d_ar) @@ -16940,7 +16950,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_vec) @@ -16948,7 +16958,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_1d_vec) @@ -16958,7 +16968,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_3d_vec) @@ -16972,7 +16982,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_row_vec) @@ -16980,7 +16990,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_1d_row_vec) @@ -16990,7 +17000,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_3d_row_vec) @@ -17004,7 +17014,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_ar_mat) @@ -17019,7 +17029,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_simplex) @@ -17027,7 +17037,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_1d_simplex) @@ -17037,7 +17047,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_3d_simplex) @@ -17051,7 +17061,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_cfcov_54) @@ -17060,7 +17070,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_cfcov_33) @@ -17069,7 +17079,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_cfcov_33_ar) @@ -17080,7 +17090,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id indices) @@ -17088,7 +17098,7 @@ (Sized (SArray SInt ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable indices) ()) (UArray UInt) @@ -17108,7 +17118,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res1) @@ -17119,7 +17129,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res2) @@ -17130,7 +17140,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res3) @@ -17141,7 +17151,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res11) @@ -17152,7 +17162,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res21) @@ -17163,7 +17173,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res31) @@ -17174,7 +17184,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res4) @@ -17184,7 +17194,7 @@ (SRowVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res5) @@ -17194,7 +17204,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable gq_real_1d_ar) ()) (UArray UReal) @@ -19246,7 +19256,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -19254,7 +19264,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_real) ()) UReal @@ -19281,7 +19291,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_upper) ()) UReal @@ -19312,7 +19322,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_lower) ()) UReal @@ -19347,7 +19357,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_multiplier) ()) (UArray UReal) @@ -19378,7 +19388,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable no_offset_multiplier) ()) (UArray UReal) @@ -19407,7 +19417,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_no_multiplier) ()) (UArray UReal) @@ -19436,7 +19446,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_real_1d_ar) ()) (UArray UReal) @@ -19469,13 +19479,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real_3d_ar_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_real_3d_ar_flat__) ()) (UArray UReal) @@ -19592,13 +19602,13 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_vec_flat__) ()) (UArray UReal) @@ -19672,13 +19682,13 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_1d_vec_flat__) ()) (UArray UReal) @@ -19769,13 +19779,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_3d_vec_flat__) ()) (UArray UReal) @@ -19916,13 +19926,13 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_row_vec_flat__) ()) (UArray UReal) @@ -19992,13 +20002,13 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_1d_row_vec_flat__) ()) (UArray UReal) @@ -20089,13 +20099,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_3d_row_vec_flat__) ()) (UArray UReal) @@ -20238,13 +20248,13 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_mat_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_mat_flat__) ()) (UArray UReal) @@ -20337,13 +20347,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_ar_mat_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_ar_mat_flat__) ()) (UArray UReal) @@ -20489,13 +20499,13 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_simplex_flat__) ()) (UArray UReal) @@ -20565,13 +20575,13 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_1d_simplex_flat__) ()) (UArray UReal) @@ -20662,13 +20672,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_3d_simplex_flat__) ()) (UArray UReal) @@ -20810,13 +20820,13 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_54_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_54_flat__) ()) (UArray UReal) @@ -20903,13 +20913,13 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_33_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_33_flat__) ()) (UArray UReal) @@ -20998,13 +21008,13 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_33_ar_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_33_ar_flat__) ()) (UArray UReal) @@ -21115,13 +21125,13 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x_p_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x_p_flat__) ()) (UArray UReal) @@ -21189,13 +21199,13 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id y_p_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable y_p_flat__) ()) (UArray UReal) @@ -21260,7 +21270,7 @@ (unconstrain_array (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_real) ()) UReal @@ -21278,7 +21288,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_upper) ()) UReal @@ -21300,7 +21310,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_lower) ()) UReal @@ -21326,7 +21336,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_multiplier) ()) (UArray UReal) @@ -21356,7 +21366,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable no_offset_multiplier) ()) (UArray UReal) @@ -21384,7 +21394,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_no_multiplier) ()) (UArray UReal) @@ -21412,7 +21422,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_real_1d_ar) ()) (UArray UReal) @@ -21444,7 +21454,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -21520,7 +21530,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_vec) ()) UVector @@ -21550,7 +21560,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -21609,7 +21619,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -21706,7 +21716,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_row_vec) ()) URowVector @@ -21732,7 +21742,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -21791,7 +21801,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -21890,7 +21900,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_mat) ()) UMatrix @@ -21922,7 +21932,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -22025,7 +22035,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_simplex) ()) UVector @@ -22051,7 +22061,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -22110,7 +22120,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -22208,7 +22218,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_54) ()) UMatrix @@ -22234,7 +22244,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_33) ()) UMatrix @@ -22262,7 +22272,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -22334,7 +22344,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x_p) ()) UVector @@ -22357,7 +22367,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable y_p) ()) UVector diff --git a/test/integration/good/compiler-optimizations/cpp.expected b/test/integration/good/compiler-optimizations/cpp.expected index e50e1b63a..a94acd537 100644 --- a/test/integration/good/compiler-optimizations/cpp.expected +++ b/test/integration/good/compiler-optimizations/cpp.expected @@ -18272,8 +18272,7 @@ class expr_prop_fail6_model final : public model_base_crtp::min(); int inline_first_capture_return_sym10__; - int inline_first_capture_early_ret_check_sym12__; - inline_first_capture_early_ret_check_sym12__ = 0; + int inline_first_capture_early_ret_check_sym12__ = 0; for (int inline_first_capture_iterator_sym13__ = 1; inline_first_capture_iterator_sym13__ <= 1; ++inline_first_capture_iterator_sym13__) { lcm_sym169__ = stan::math::size( @@ -18306,8 +18305,7 @@ class expr_prop_fail6_model final : public model_base_crtp::min(); int inline_first_capture_return_sym10__; - int inline_first_capture_early_ret_check_sym12__; - inline_first_capture_early_ret_check_sym12__ = 0; + int inline_first_capture_early_ret_check_sym12__ = 0; for (int inline_first_capture_iterator_sym13__ = 1; inline_first_capture_iterator_sym13__ <= 1; ++inline_first_capture_iterator_sym13__) { lcm_sym168__ = stan::math::size( @@ -23619,7 +23617,7 @@ class function_in_function_loops_model final : public model_base_crtp::min(); + 0; for (int inline_summer_inline_do_something_iterator_sym6___sym20__ = 1; inline_summer_inline_do_something_iterator_sym6___sym20__ @@ -23637,7 +23635,7 @@ class function_in_function_loops_model final : public model_base_crtp::min(); + 0; for (int inline_summer_inline_do_something_iterator_sym6___sym20__ = 1; inline_summer_inline_do_something_iterator_sym6___sym20__ @@ -23715,7 +23713,7 @@ class function_in_function_loops_model final : public model_base_crtp::min(); + 0; for (int inline_summer_inline_do_something_iterator_sym6___sym12__ = 1; inline_summer_inline_do_something_iterator_sym6___sym12__ @@ -23733,7 +23731,7 @@ class function_in_function_loops_model final : public model_base_crtp::min(); + 0; for (int inline_summer_inline_do_something_iterator_sym6___sym12__ = 1; inline_summer_inline_do_something_iterator_sym6___sym12__ @@ -25172,8 +25170,7 @@ class inline_functions_varmat_model final : public model_base_crtp::Constant(5, DUMMY_VAR__); Eigen::Matrix inline_multi_ret_fun_return_sym15__; - int inline_multi_ret_fun_early_ret_check_sym17__ = - std::numeric_limits::min(); + int inline_multi_ret_fun_early_ret_check_sym17__ = 0; for (int inline_multi_ret_fun_iterator_sym18__ = 1; inline_multi_ret_fun_iterator_sym18__ <= 1; ++inline_multi_ret_fun_iterator_sym18__) { Eigen::Matrix inline_multi_ret_fun_B_sym16__ = @@ -25250,8 +25247,7 @@ class inline_functions_varmat_model final : public model_base_crtp> inline_multi_ret_fun_return_sym9__; - int inline_multi_ret_fun_early_ret_check_sym11__ = - std::numeric_limits::min(); + int inline_multi_ret_fun_early_ret_check_sym11__ = 0; for (int inline_multi_ret_fun_iterator_sym12__ = 1; inline_multi_ret_fun_iterator_sym12__ <= 1; ++inline_multi_ret_fun_iterator_sym12__) { stan::math::var_value> @@ -25345,8 +25341,7 @@ class inline_functions_varmat_model final : public model_base_crtp inline_multi_ret_fun_return_sym3__; - int inline_multi_ret_fun_early_ret_check_sym5__ = - std::numeric_limits::min(); + int inline_multi_ret_fun_early_ret_check_sym5__ = 0; for (int inline_multi_ret_fun_iterator_sym6__ = 1; inline_multi_ret_fun_iterator_sym6__ <= 1; ++inline_multi_ret_fun_iterator_sym6__) { Eigen::Matrix inline_multi_ret_fun_B_sym4__ = @@ -30176,8 +30171,7 @@ class inlining_fail2_model final : public model_base_crtp if (lcm_sym143__) { int f = std::numeric_limits::min(); int inline_first_capture_return_sym16__; - int inline_first_capture_early_ret_check_sym18__; - inline_first_capture_early_ret_check_sym18__ = 0; + int inline_first_capture_early_ret_check_sym18__ = 0; for (int inline_first_capture_iterator_sym19__ = 1; inline_first_capture_iterator_sym19__ <= 1; ++inline_first_capture_iterator_sym19__) { lcm_sym190__ = stan::math::size( @@ -30210,8 +30204,7 @@ class inlining_fail2_model final : public model_base_crtp for (int i = 2; i <= M; ++i) { int f = std::numeric_limits::min(); int inline_first_capture_return_sym16__; - int inline_first_capture_early_ret_check_sym18__; - inline_first_capture_early_ret_check_sym18__ = 0; + int inline_first_capture_early_ret_check_sym18__ = 0; for (int inline_first_capture_iterator_sym19__ = 1; inline_first_capture_iterator_sym19__ <= 1; ++inline_first_capture_iterator_sym19__) { lcm_sym189__ = stan::math::size( @@ -36629,8 +36622,7 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } int inline_rfun_return_sym29__; - int inline_rfun_early_ret_check_sym30__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym30__ = 0; for (int inline_rfun_iterator_sym31__ = 1; inline_rfun_iterator_sym31__ <= 1; ++inline_rfun_iterator_sym31__) { { @@ -36645,8 +36637,7 @@ class optimizations_model final : public model_base_crtp { *(pstream__) << std::endl; } int inline_rfun_return_sym32__; - int inline_rfun_early_ret_check_sym33__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym33__ = 0; for (int inline_rfun_iterator_sym34__ = 1; inline_rfun_iterator_sym34__ <= 1; ++inline_rfun_iterator_sym34__) { { @@ -36665,8 +36656,7 @@ class optimizations_model final : public model_base_crtp { } int inline_rfun_return_sym35__; int inline_rfun_return_sym38__; - int inline_rfun_early_ret_check_sym36__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym36__ = 0; for (int inline_rfun_iterator_sym37__ = 1; inline_rfun_iterator_sym37__ <= 1; ++inline_rfun_iterator_sym37__) { { @@ -36676,8 +36666,7 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym35__ = 9; break; } - int inline_rfun_early_ret_check_sym39__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym39__ = 0; for (int inline_rfun_iterator_sym40__ = 1; inline_rfun_iterator_sym40__ <= 1; ++inline_rfun_iterator_sym40__) { { @@ -36691,8 +36680,7 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym35__)) { { int inline_rfun_return_sym41__; - int inline_rfun_early_ret_check_sym42__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym42__ = 0; for (int inline_rfun_iterator_sym43__ = 1; inline_rfun_iterator_sym43__ <= 1; ++inline_rfun_iterator_sym43__) { { @@ -36708,8 +36696,7 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } } - int inline_rfun_early_ret_check_sym39__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym39__ = 0; lcm_sym101__ = (inline_rfun_return_sym35__ + 1); for (int inline_rfun_iterator_sym40__ = 1; inline_rfun_iterator_sym40__ <= 1; ++inline_rfun_iterator_sym40__) { @@ -36725,8 +36712,7 @@ class optimizations_model final : public model_base_crtp { for (int i = lcm_sym101__; i <= inline_rfun_return_sym38__; ++i) { { int inline_rfun_return_sym41__; - int inline_rfun_early_ret_check_sym42__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym42__ = 0; for (int inline_rfun_iterator_sym43__ = 1; inline_rfun_iterator_sym43__ <= 1; ++inline_rfun_iterator_sym43__) { { @@ -36742,8 +36728,7 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } } - int inline_rfun_early_ret_check_sym39__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym39__ = 0; for (int inline_rfun_iterator_sym40__ = 1; inline_rfun_iterator_sym40__ <= 1; ++inline_rfun_iterator_sym40__) { { @@ -37168,8 +37153,7 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } int inline_rfun_return_sym2__; - int inline_rfun_early_ret_check_sym3__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym3__ = 0; for (int inline_rfun_iterator_sym4__ = 1; inline_rfun_iterator_sym4__ <= 1; ++inline_rfun_iterator_sym4__) { { @@ -37184,8 +37168,7 @@ class optimizations_model final : public model_base_crtp { *(pstream__) << std::endl; } int inline_rfun_return_sym5__; - int inline_rfun_early_ret_check_sym6__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym6__ = 0; for (int inline_rfun_iterator_sym7__ = 1; inline_rfun_iterator_sym7__ <= 1; ++inline_rfun_iterator_sym7__) { { @@ -37204,8 +37187,7 @@ class optimizations_model final : public model_base_crtp { } int inline_rfun_return_sym8__; int inline_rfun_return_sym11__; - int inline_rfun_early_ret_check_sym9__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym9__ = 0; for (int inline_rfun_iterator_sym10__ = 1; inline_rfun_iterator_sym10__ <= 1; ++inline_rfun_iterator_sym10__) { { @@ -37215,8 +37197,7 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym8__ = 9; break; } - int inline_rfun_early_ret_check_sym12__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym12__ = 0; for (int inline_rfun_iterator_sym13__ = 1; inline_rfun_iterator_sym13__ <= 1; ++inline_rfun_iterator_sym13__) { { @@ -37230,8 +37211,7 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym8__)) { { int inline_rfun_return_sym14__; - int inline_rfun_early_ret_check_sym15__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym15__ = 0; for (int inline_rfun_iterator_sym16__ = 1; inline_rfun_iterator_sym16__ <= 1; ++inline_rfun_iterator_sym16__) { { @@ -37247,8 +37227,7 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } } - int inline_rfun_early_ret_check_sym12__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym12__ = 0; lcm_sym77__ = (inline_rfun_return_sym8__ + 1); for (int inline_rfun_iterator_sym13__ = 1; inline_rfun_iterator_sym13__ <= 1; ++inline_rfun_iterator_sym13__) { @@ -37264,8 +37243,7 @@ class optimizations_model final : public model_base_crtp { for (int i = lcm_sym77__; i <= inline_rfun_return_sym11__; ++i) { { int inline_rfun_return_sym14__; - int inline_rfun_early_ret_check_sym15__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym15__ = 0; for (int inline_rfun_iterator_sym16__ = 1; inline_rfun_iterator_sym16__ <= 1; ++inline_rfun_iterator_sym16__) { { @@ -37281,8 +37259,7 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } } - int inline_rfun_early_ret_check_sym12__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym12__ = 0; for (int inline_rfun_iterator_sym13__ = 1; inline_rfun_iterator_sym13__ <= 1; ++inline_rfun_iterator_sym13__) { { diff --git a/test/integration/good/compiler-optimizations/cppO1.expected b/test/integration/good/compiler-optimizations/cppO1.expected index 204ff01a4..ae3108494 100644 --- a/test/integration/good/compiler-optimizations/cppO1.expected +++ b/test/integration/good/compiler-optimizations/cppO1.expected @@ -11734,8 +11734,7 @@ class expr_prop_fail6_model final : public model_base_crtp::min(); int inline_first_capture_return_sym10__; - int inline_first_capture_early_ret_check_sym12__; - inline_first_capture_early_ret_check_sym12__ = 0; + int inline_first_capture_early_ret_check_sym12__ = 0; for (int inline_first_capture_iterator_sym13__ = 1; inline_first_capture_iterator_sym13__ <= 1; ++inline_first_capture_iterator_sym13__) { for (int inline_first_capture_k_sym11__ = 1; inline_first_capture_k_sym11__ @@ -15532,7 +15531,7 @@ class function_in_function_loops_model final : public model_base_crtp::min(); + 0; for (int inline_summer_inline_do_something_iterator_sym6___sym20__ = 1; inline_summer_inline_do_something_iterator_sym6___sym20__ @@ -15602,7 +15601,7 @@ class function_in_function_loops_model final : public model_base_crtp::min(); + 0; for (int inline_summer_inline_do_something_iterator_sym6___sym12__ = 1; inline_summer_inline_do_something_iterator_sym6___sym12__ @@ -16848,8 +16847,7 @@ class inline_functions_varmat_model final : public model_base_crtp::Constant(5, DUMMY_VAR__); Eigen::Matrix inline_multi_ret_fun_return_sym15__; - int inline_multi_ret_fun_early_ret_check_sym17__ = - std::numeric_limits::min(); + int inline_multi_ret_fun_early_ret_check_sym17__ = 0; for (int inline_multi_ret_fun_iterator_sym18__ = 1; inline_multi_ret_fun_iterator_sym18__ <= 1; ++inline_multi_ret_fun_iterator_sym18__) { Eigen::Matrix inline_multi_ret_fun_B_sym16__ = @@ -16924,8 +16922,7 @@ class inline_functions_varmat_model final : public model_base_crtp> inline_multi_ret_fun_return_sym9__; - int inline_multi_ret_fun_early_ret_check_sym11__ = - std::numeric_limits::min(); + int inline_multi_ret_fun_early_ret_check_sym11__ = 0; for (int inline_multi_ret_fun_iterator_sym12__ = 1; inline_multi_ret_fun_iterator_sym12__ <= 1; ++inline_multi_ret_fun_iterator_sym12__) { stan::math::var_value> @@ -17017,8 +17014,7 @@ class inline_functions_varmat_model final : public model_base_crtp inline_multi_ret_fun_return_sym3__; - int inline_multi_ret_fun_early_ret_check_sym5__ = - std::numeric_limits::min(); + int inline_multi_ret_fun_early_ret_check_sym5__ = 0; for (int inline_multi_ret_fun_iterator_sym6__ = 1; inline_multi_ret_fun_iterator_sym6__ <= 1; ++inline_multi_ret_fun_iterator_sym6__) { Eigen::Matrix inline_multi_ret_fun_B_sym4__ = @@ -20104,8 +20100,7 @@ class inlining_fail2_model final : public model_base_crtp for (int i = 1; i <= M; ++i) { int f = std::numeric_limits::min(); int inline_first_capture_return_sym16__; - int inline_first_capture_early_ret_check_sym18__; - inline_first_capture_early_ret_check_sym18__ = 0; + int inline_first_capture_early_ret_check_sym18__ = 0; for (int inline_first_capture_iterator_sym19__ = 1; inline_first_capture_iterator_sym19__ <= 1; ++inline_first_capture_iterator_sym19__) { for (int inline_first_capture_k_sym17__ = 1; inline_first_capture_k_sym17__ @@ -25339,8 +25334,7 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } int inline_rfun_return_sym29__; - int inline_rfun_early_ret_check_sym30__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym30__ = 0; for (int inline_rfun_iterator_sym31__ = 1; inline_rfun_iterator_sym31__ <= 1; ++inline_rfun_iterator_sym31__) { { @@ -25355,8 +25349,7 @@ class optimizations_model final : public model_base_crtp { *(pstream__) << std::endl; } int inline_rfun_return_sym32__; - int inline_rfun_early_ret_check_sym33__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym33__ = 0; for (int inline_rfun_iterator_sym34__ = 1; inline_rfun_iterator_sym34__ <= 1; ++inline_rfun_iterator_sym34__) { { @@ -25375,8 +25368,7 @@ class optimizations_model final : public model_base_crtp { } int inline_rfun_return_sym35__; int inline_rfun_return_sym38__; - int inline_rfun_early_ret_check_sym36__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym36__ = 0; for (int inline_rfun_iterator_sym37__ = 1; inline_rfun_iterator_sym37__ <= 1; ++inline_rfun_iterator_sym37__) { { @@ -25386,8 +25378,7 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym35__ = 9; break; } - int inline_rfun_early_ret_check_sym39__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym39__ = 0; for (int inline_rfun_iterator_sym40__ = 1; inline_rfun_iterator_sym40__ <= 1; ++inline_rfun_iterator_sym40__) { { @@ -25401,8 +25392,7 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym38__; ++i) { { int inline_rfun_return_sym41__; - int inline_rfun_early_ret_check_sym42__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym42__ = 0; for (int inline_rfun_iterator_sym43__ = 1; inline_rfun_iterator_sym43__ <= 1; ++inline_rfun_iterator_sym43__) { { @@ -25418,8 +25408,7 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } } - int inline_rfun_early_ret_check_sym39__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym39__ = 0; for (int inline_rfun_iterator_sym40__ = 1; inline_rfun_iterator_sym40__ <= 1; ++inline_rfun_iterator_sym40__) { { @@ -25672,8 +25661,7 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } int inline_rfun_return_sym2__; - int inline_rfun_early_ret_check_sym3__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym3__ = 0; for (int inline_rfun_iterator_sym4__ = 1; inline_rfun_iterator_sym4__ <= 1; ++inline_rfun_iterator_sym4__) { { @@ -25688,8 +25676,7 @@ class optimizations_model final : public model_base_crtp { *(pstream__) << std::endl; } int inline_rfun_return_sym5__; - int inline_rfun_early_ret_check_sym6__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym6__ = 0; for (int inline_rfun_iterator_sym7__ = 1; inline_rfun_iterator_sym7__ <= 1; ++inline_rfun_iterator_sym7__) { { @@ -25708,8 +25695,7 @@ class optimizations_model final : public model_base_crtp { } int inline_rfun_return_sym8__; int inline_rfun_return_sym11__; - int inline_rfun_early_ret_check_sym9__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym9__ = 0; for (int inline_rfun_iterator_sym10__ = 1; inline_rfun_iterator_sym10__ <= 1; ++inline_rfun_iterator_sym10__) { { @@ -25719,8 +25705,7 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym8__ = 9; break; } - int inline_rfun_early_ret_check_sym12__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym12__ = 0; for (int inline_rfun_iterator_sym13__ = 1; inline_rfun_iterator_sym13__ <= 1; ++inline_rfun_iterator_sym13__) { { @@ -25734,8 +25719,7 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym11__; ++i) { { int inline_rfun_return_sym14__; - int inline_rfun_early_ret_check_sym15__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym15__ = 0; for (int inline_rfun_iterator_sym16__ = 1; inline_rfun_iterator_sym16__ <= 1; ++inline_rfun_iterator_sym16__) { { @@ -25751,8 +25735,7 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } } - int inline_rfun_early_ret_check_sym12__ = - std::numeric_limits::min(); + int inline_rfun_early_ret_check_sym12__ = 0; for (int inline_rfun_iterator_sym13__ = 1; inline_rfun_iterator_sym13__ <= 1; ++inline_rfun_iterator_sym13__) { { diff --git a/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected b/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected index 32f3aaf2e..b9dcab53c 100644 --- a/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected +++ b/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected @@ -38,14 +38,15 @@ matrix[2, 2] aos_mat_from_vecs: AoS (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -82,13 +83,13 @@ matrix[2, 2] aos_mat_from_vecs: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id X_data_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_data_flat__) ()) (UArray UReal) @@ -171,13 +172,13 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id y_data_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable y_data_flat__) ()) (UArray UReal) @@ -239,7 +240,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -252,7 +253,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -269,7 +270,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable beta) ()) UVector @@ -299,7 +300,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_simple) ()) UVector @@ -335,7 +336,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_deep) ()) UVector @@ -382,7 +383,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_dual_rep) ()) UVector @@ -421,7 +422,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_data_rep) ()) UVector @@ -461,7 +462,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_mix) ()) UVector @@ -495,7 +496,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_from_data) ()) UVector @@ -557,7 +558,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_mat_rep) ()) UMatrix @@ -617,7 +618,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_mat_rep_vec) ()) UMatrix @@ -672,7 +673,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_mat_rep) ()) UMatrix @@ -706,7 +707,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_mat_from_vecs) ()) UMatrix @@ -818,7 +819,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -831,7 +832,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -848,7 +849,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable beta) ()) UVector @@ -878,7 +879,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_simple) ()) UVector @@ -914,7 +915,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_deep) ()) UVector @@ -961,7 +962,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_dual_rep) ()) UVector @@ -1000,7 +1001,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_data_rep) ()) UVector @@ -1040,7 +1041,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_mix) ()) UVector @@ -1074,7 +1075,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_from_data) ()) UVector @@ -1136,7 +1137,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_mat_rep) ()) UMatrix @@ -1196,7 +1197,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_mat_rep_vec) ()) UMatrix @@ -1251,7 +1252,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_mat_rep) ()) UMatrix @@ -1285,7 +1286,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_mat_from_vecs) ()) UMatrix @@ -1397,7 +1398,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -1410,7 +1411,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -1427,7 +1428,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable beta) ()) UVector @@ -1492,7 +1493,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -1500,7 +1501,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -1526,7 +1527,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -1556,13 +1557,13 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id beta_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable beta_flat__) ()) (UArray UReal) @@ -1627,7 +1628,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (unconstrain_array (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -1644,7 +1645,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -1665,7 +1666,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable beta) ()) UVector @@ -1725,7 +1726,7 @@ matrix[10, 10] A_p: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable A_p) ()) UMatrix @@ -1749,7 +1750,7 @@ matrix[10, 10] A_p: AoS (SComplexMatrix ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable A_complex_tp) ()) UComplexMatrix @@ -1768,7 +1769,7 @@ matrix[10, 10] A_p: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable A_p) ()) UMatrix @@ -1792,7 +1793,7 @@ matrix[10, 10] A_p: AoS (SComplexMatrix ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable A_complex_tp) ()) UComplexMatrix @@ -1811,7 +1812,7 @@ matrix[10, 10] A_p: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable A_p) ()) UMatrix @@ -1835,7 +1836,7 @@ matrix[10, 10] A_p: AoS (SComplexMatrix ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -1898,7 +1899,7 @@ matrix[10, 10] A_p: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -1911,13 +1912,13 @@ matrix[10, 10] A_p: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id A_p_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable A_p_flat__) ()) (UArray UReal) @@ -2004,7 +2005,7 @@ matrix[10, 10] A_p: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable A_p) ()) UMatrix @@ -2154,14 +2155,15 @@ vector[Nr] h_sigma: SoA (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -2189,7 +2191,8 @@ vector[Nr] h_sigma: SoA (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable K) ()) UInt @@ -2229,13 +2232,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id diff_low_mid_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable diff_low_mid_flat__) ()) (UArray UReal) @@ -2301,13 +2304,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id diff_high_mid_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable diff_high_mid_flat__) ()) (UArray UReal) @@ -2373,13 +2376,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id mid_price_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable mid_price_flat__) ()) (UArray UReal) @@ -2453,13 +2456,13 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id X_all_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_all_flat__) ()) (UArray UReal) @@ -2531,7 +2534,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi_prior_a) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable phi_prior_a) ()) UReal @@ -2562,7 +2565,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi_prior_b) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable phi_prior_b) ()) UReal @@ -2593,7 +2596,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id mu_prior_mu) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable mu_prior_mu) ()) UReal @@ -2611,7 +2614,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id mu_prior_sigma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable mu_prior_sigma) ()) UReal @@ -2642,7 +2645,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma_prior_shape) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma_prior_shape) ()) UReal @@ -2673,7 +2676,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma_prior_rate) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma_prior_rate) ()) UReal @@ -2703,8 +2706,8 @@ vector[Nr] h_sigma: SoA (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id Nr) (decl_type (Sized SInt)) - (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id Nr) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable Nr) ()) UInt @@ -2915,7 +2918,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable high_low_est) ()) UVector @@ -2967,7 +2970,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable b) ()) UVector @@ -2987,7 +2990,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable h) ()) UVector @@ -3007,7 +3010,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ar) ()) UVector @@ -3024,7 +3027,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ma) ()) UReal @@ -3037,7 +3040,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi_beta) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable phi_beta) ()) UReal @@ -3057,7 +3060,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma2) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma2) ()) UReal @@ -3075,7 +3078,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id Intercept) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable Intercept) ()) UReal @@ -3092,7 +3095,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable mean_price) ()) UVector @@ -3112,7 +3115,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma_price) ()) UVector @@ -3132,7 +3135,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable theta) ()) UReal @@ -3149,7 +3152,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable upper_test) ()) UVector @@ -3173,7 +3176,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable lower_upper_test) ()) UVector @@ -3225,7 +3228,7 @@ vector[Nr] h_sigma: SoA (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable row_vec_lower_upper_test) ()) URowVector @@ -3289,7 +3292,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_mult_test) ()) UVector @@ -3341,7 +3344,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ordered_test) ()) UVector @@ -3361,7 +3364,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable unit_vec_test) ()) UVector @@ -3381,7 +3384,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos_ordered_test) ()) UVector @@ -3402,7 +3405,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable corr_matrix_test) ()) UMatrix @@ -3423,7 +3426,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable cov_matrix_test) ()) UMatrix @@ -3444,7 +3447,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable chol_fac_cov_test) ()) UMatrix @@ -3466,7 +3469,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable chol_fac_corr_test) ()) UMatrix @@ -3482,7 +3485,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable phi) ()) UReal @@ -3501,7 +3504,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -3517,7 +3520,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable prices) ()) UVector @@ -3535,7 +3538,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable prices_diff) ()) UVector @@ -3574,7 +3577,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable mu) ()) UVector @@ -3597,7 +3600,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable err) ()) UVector @@ -3742,7 +3745,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id h_i_sigma) @@ -3750,7 +3753,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -3870,7 +3873,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable h_sigma) ()) UVector @@ -4137,7 +4140,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable high_low_est) ()) UVector @@ -4189,7 +4192,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable b) ()) UVector @@ -4209,7 +4212,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable h) ()) UVector @@ -4229,7 +4232,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ar) ()) UVector @@ -4246,7 +4249,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ma) ()) UReal @@ -4259,7 +4262,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi_beta) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable phi_beta) ()) UReal @@ -4279,7 +4282,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma2) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma2) ()) UReal @@ -4297,7 +4300,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id Intercept) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable Intercept) ()) UReal @@ -4314,7 +4317,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable mean_price) ()) UVector @@ -4334,7 +4337,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma_price) ()) UVector @@ -4354,7 +4357,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable theta) ()) UReal @@ -4371,7 +4374,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable upper_test) ()) UVector @@ -4395,7 +4398,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable lower_upper_test) ()) UVector @@ -4447,7 +4450,7 @@ vector[Nr] h_sigma: SoA (Sized (SRowVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable row_vec_lower_upper_test) ()) URowVector @@ -4511,7 +4514,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_mult_test) ()) UVector @@ -4563,7 +4566,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ordered_test) ()) UVector @@ -4583,7 +4586,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable unit_vec_test) ()) UVector @@ -4603,7 +4606,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos_ordered_test) ()) UVector @@ -4624,7 +4627,7 @@ vector[Nr] h_sigma: SoA (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable corr_matrix_test) ()) UMatrix @@ -4645,7 +4648,7 @@ vector[Nr] h_sigma: SoA (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable cov_matrix_test) ()) UMatrix @@ -4666,7 +4669,7 @@ vector[Nr] h_sigma: SoA (SMatrix SoA ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable chol_fac_cov_test) ()) UMatrix @@ -4688,7 +4691,7 @@ vector[Nr] h_sigma: SoA (SMatrix SoA ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable chol_fac_corr_test) ()) UMatrix @@ -4704,7 +4707,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable phi) ()) UReal @@ -4723,7 +4726,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -4739,7 +4742,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable prices) ()) UVector @@ -4757,7 +4760,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable prices_diff) ()) UVector @@ -4796,7 +4799,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable mu) ()) UVector @@ -4819,7 +4822,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable err) ()) UVector @@ -4964,7 +4967,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id h_i_sigma) @@ -4972,7 +4975,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -5092,7 +5095,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable h_sigma) ()) UVector @@ -5359,7 +5362,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable high_low_est) ()) UVector @@ -5411,7 +5414,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable b) ()) UVector @@ -5431,7 +5434,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable h) ()) UVector @@ -5451,7 +5454,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ar) ()) UVector @@ -5468,7 +5471,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id ma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ma) ()) UReal @@ -5481,7 +5484,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi_beta) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable phi_beta) ()) UReal @@ -5501,7 +5504,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma2) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma2) ()) UReal @@ -5519,7 +5522,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id Intercept) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable Intercept) ()) UReal @@ -5536,7 +5539,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable mean_price) ()) UVector @@ -5556,7 +5559,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma_price) ()) UVector @@ -5576,7 +5579,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id theta) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable theta) ()) UReal @@ -5593,7 +5596,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable upper_test) ()) UVector @@ -5617,7 +5620,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable lower_upper_test) ()) UVector @@ -5669,7 +5672,7 @@ vector[Nr] h_sigma: SoA (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable row_vec_lower_upper_test) ()) URowVector @@ -5733,7 +5736,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_mult_test) ()) UVector @@ -5785,7 +5788,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ordered_test) ()) UVector @@ -5805,7 +5808,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable unit_vec_test) ()) UVector @@ -5825,7 +5828,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos_ordered_test) ()) UVector @@ -5846,7 +5849,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable corr_matrix_test) ()) UMatrix @@ -5867,7 +5870,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable cov_matrix_test) ()) UMatrix @@ -5888,7 +5891,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable chol_fac_cov_test) ()) UMatrix @@ -5910,7 +5913,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable chol_fac_corr_test) ()) UMatrix @@ -5926,11 +5929,11 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id prices) @@ -5938,7 +5941,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id prices_diff) @@ -5946,7 +5949,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id mu) @@ -5954,7 +5957,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id err) @@ -5962,7 +5965,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id h_i_mean) @@ -5970,7 +5973,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id h_i_sigma) @@ -5978,7 +5981,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id h_sigma) @@ -5986,7 +5989,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -6715,7 +6718,7 @@ vector[Nr] h_sigma: SoA (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -6727,13 +6730,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id high_low_est_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable high_low_est_flat__) ()) (UArray UReal) @@ -6807,13 +6810,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id b_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable b_flat__) ()) (UArray UReal) @@ -6880,13 +6883,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id h_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable h_flat__) ()) (UArray UReal) @@ -6953,13 +6956,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id ar_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ar_flat__) ()) (UArray UReal) @@ -7023,7 +7026,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ma) ()) UReal @@ -7049,7 +7052,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi_beta) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable phi_beta) ()) UReal @@ -7082,7 +7085,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma2) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma2) ()) UReal @@ -7113,7 +7116,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id Intercept) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable Intercept) ()) UReal @@ -7144,13 +7147,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id mean_price_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable mean_price_flat__) ()) (UArray UReal) @@ -7218,13 +7221,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma_price_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma_price_flat__) ()) (UArray UReal) @@ -7292,7 +7295,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable theta) ()) UReal @@ -7322,13 +7325,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id upper_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable upper_test_flat__) ()) (UArray UReal) @@ -7400,13 +7403,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id lower_upper_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable lower_upper_test_flat__) ()) (UArray UReal) @@ -7480,13 +7483,13 @@ vector[Nr] h_sigma: SoA (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id row_vec_lower_upper_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable row_vec_lower_upper_test_flat__) ()) @@ -7567,13 +7570,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id offset_mult_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_mult_test_flat__) ()) (UArray UReal) @@ -7647,13 +7650,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id ordered_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ordered_test_flat__) ()) (UArray UReal) @@ -7721,13 +7724,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id unit_vec_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable unit_vec_test_flat__) ()) (UArray UReal) @@ -7795,13 +7798,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id pos_ordered_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos_ordered_test_flat__) ()) (UArray UReal) @@ -7870,13 +7873,13 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id corr_matrix_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable corr_matrix_test_flat__) ()) (UArray UReal) @@ -7962,13 +7965,13 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id cov_matrix_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable cov_matrix_test_flat__) ()) (UArray UReal) @@ -8054,13 +8057,13 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id chol_fac_cov_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable chol_fac_cov_test_flat__) ()) (UArray UReal) @@ -8146,13 +8149,13 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id chol_fac_corr_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable chol_fac_corr_test_flat__) ()) (UArray UReal) @@ -8238,7 +8241,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable high_low_est) ()) UVector @@ -8268,7 +8271,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable b) ()) UVector @@ -8291,7 +8294,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable h) ()) UVector @@ -8314,7 +8317,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ar) ()) UVector @@ -8333,7 +8336,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ma) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ma) ()) UReal @@ -8350,7 +8353,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi_beta) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable phi_beta) ()) UReal @@ -8374,7 +8377,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma2) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma2) ()) UReal @@ -8396,7 +8399,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id Intercept) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable Intercept) ()) UReal @@ -8418,7 +8421,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable mean_price) ()) UVector @@ -8442,7 +8445,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sigma_price) ()) UVector @@ -8466,7 +8469,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable theta) ()) UReal @@ -8487,7 +8490,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable upper_test) ()) UVector @@ -8515,7 +8518,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable lower_upper_test) ()) UVector @@ -8545,7 +8548,7 @@ vector[Nr] h_sigma: SoA (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable row_vec_lower_upper_test) ()) URowVector @@ -8581,7 +8584,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable offset_mult_test) ()) UVector @@ -8611,7 +8614,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ordered_test) ()) UVector @@ -8635,7 +8638,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable unit_vec_test) ()) UVector @@ -8659,7 +8662,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos_ordered_test) ()) UVector @@ -8684,7 +8687,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable corr_matrix_test) ()) UMatrix @@ -8710,7 +8713,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable cov_matrix_test) ()) UMatrix @@ -8736,7 +8739,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable chol_fac_cov_test) ()) UMatrix @@ -8762,7 +8765,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable chol_fac_corr_test) ()) UMatrix @@ -9286,7 +9289,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_p) ()) UMatrix @@ -9310,7 +9313,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_tp1) ()) UMatrix @@ -9327,7 +9330,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_tp2) ()) UMatrix @@ -9344,7 +9347,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_tp3) ()) UMatrix @@ -9361,7 +9364,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_tp4) ()) UMatrix @@ -9378,7 +9381,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_tp5) ()) UMatrix @@ -9395,7 +9398,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_tp6) ()) UMatrix @@ -9412,7 +9415,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_tp7) ()) UMatrix @@ -9480,7 +9483,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_p) ()) UMatrix @@ -9504,7 +9507,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_tp1) ()) UMatrix @@ -9521,7 +9524,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_tp2) ()) UMatrix @@ -9538,7 +9541,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_tp3) ()) UMatrix @@ -9555,7 +9558,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_tp4) ()) UMatrix @@ -9572,7 +9575,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_tp5) ()) UMatrix @@ -9589,7 +9592,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_tp6) ()) UMatrix @@ -9606,7 +9609,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_tp7) ()) UMatrix @@ -9674,7 +9677,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_p) ()) UMatrix @@ -9698,7 +9701,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id X_tp2) @@ -9707,7 +9710,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id X_tp3) @@ -9716,7 +9719,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id X_tp4) @@ -9725,7 +9728,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id X_tp5) @@ -9734,7 +9737,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id X_tp6) @@ -9743,7 +9746,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id X_tp7) @@ -9752,7 +9755,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -9966,7 +9969,7 @@ matrix[10, 10] X_tp7: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -9979,13 +9982,13 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id X_p_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_p_flat__) ()) (UArray UReal) @@ -10072,7 +10075,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable X_p) ()) UMatrix @@ -10288,14 +10291,15 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -10312,7 +10316,8 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable M) ()) UInt @@ -10349,13 +10354,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id dat_x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable dat_x_flat__) ()) (UArray UReal) @@ -10437,13 +10442,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id y_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable y_flat__) ()) (UArray UReal) @@ -10509,7 +10514,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable idx_tester) ()) (UArray UInt) @@ -10760,7 +10765,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -10777,7 +10782,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_vec_v) ()) UVector @@ -10798,7 +10803,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_mat) ()) UMatrix @@ -10821,7 +10826,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_arr_vec_v) ()) (UArray UVector) @@ -10844,7 +10849,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_mat_uni_col_idx) ()) UMatrix @@ -10865,7 +10870,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_vec_uni_idx) ()) UVector @@ -10886,7 +10891,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_loop_mat_uni_col_idx) ()) UMatrix @@ -10907,7 +10912,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_lhs_loop_mul) ()) URowVector @@ -10927,7 +10932,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_rhs_loop_mul) ()) UVector @@ -10947,7 +10952,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_used_with_aos_in_excluded_fun) ()) UVector @@ -10968,7 +10973,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_loop_mat_multi_uni_uni_idx) ()) UMatrix @@ -10989,7 +10994,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_vec_v_assign_to_aos) ()) UVector @@ -11009,7 +11014,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_vec_v_tp_fails_func) ()) UVector @@ -11029,7 +11034,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_vec_v_uni_idx) ()) UVector @@ -11049,7 +11054,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_fail_assign_from_top_idx) ()) UVector @@ -11070,7 +11075,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_mat_uni_uni_idx) ()) UMatrix @@ -11092,7 +11097,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat) ()) UMatrix @@ -11114,7 +11119,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed1) ()) UMatrix @@ -11136,7 +11141,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed2) ()) UMatrix @@ -11158,7 +11163,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx1) ()) UMatrix @@ -11180,7 +11185,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx2) ()) UMatrix @@ -11197,7 +11202,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_aos) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_real_from_aos) ()) UReal @@ -11216,7 +11221,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_aos_vec_v) ()) UVector @@ -11232,7 +11237,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -11268,7 +11273,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_aos_fail_func_vec_v) ()) UVector @@ -11296,7 +11301,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -11329,7 +11334,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_soa_used_with_aos_in_excluded_fun) ()) UVector @@ -11574,7 +11579,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -11600,7 +11605,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -11969,7 +11974,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -11985,7 +11990,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar i) @@ -12148,7 +12153,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -12165,7 +12170,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_vec_v) ()) UVector @@ -12186,7 +12191,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_mat) ()) UMatrix @@ -12209,7 +12214,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_arr_vec_v) ()) (UArray UVector) @@ -12232,7 +12237,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_mat_uni_col_idx) ()) UMatrix @@ -12253,7 +12258,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_vec_uni_idx) ()) UVector @@ -12274,7 +12279,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_loop_mat_uni_col_idx) ()) UMatrix @@ -12295,7 +12300,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SRowVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_lhs_loop_mul) ()) URowVector @@ -12315,7 +12320,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_rhs_loop_mul) ()) UVector @@ -12335,7 +12340,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_used_with_aos_in_excluded_fun) ()) UVector @@ -12356,7 +12361,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_loop_mat_multi_uni_uni_idx) ()) UMatrix @@ -12377,7 +12382,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_vec_v_assign_to_aos) ()) UVector @@ -12397,7 +12402,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_vec_v_tp_fails_func) ()) UVector @@ -12417,7 +12422,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_vec_v_uni_idx) ()) UVector @@ -12437,7 +12442,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_fail_assign_from_top_idx) ()) UVector @@ -12458,7 +12463,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_mat_uni_uni_idx) ()) UMatrix @@ -12480,7 +12485,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat) ()) UMatrix @@ -12502,7 +12507,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed1) ()) UMatrix @@ -12524,7 +12529,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed2) ()) UMatrix @@ -12546,7 +12551,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx1) ()) UMatrix @@ -12568,7 +12573,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx2) ()) UMatrix @@ -12585,7 +12590,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_aos) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_real_from_aos) ()) UReal @@ -12604,7 +12609,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_aos_vec_v) ()) UVector @@ -12620,7 +12625,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -12656,7 +12661,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_aos_fail_func_vec_v) ()) UVector @@ -12684,7 +12689,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -12717,7 +12722,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_soa_used_with_aos_in_excluded_fun) ()) UVector @@ -12962,7 +12967,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -12988,7 +12993,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -13357,7 +13362,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -13373,7 +13378,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar i) @@ -13536,7 +13541,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -13553,7 +13558,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_vec_v) ()) UVector @@ -13574,7 +13579,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_mat) ()) UMatrix @@ -13597,7 +13602,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_arr_vec_v) ()) (UArray UVector) @@ -13620,7 +13625,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_mat_uni_col_idx) ()) UMatrix @@ -13641,7 +13646,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_vec_uni_idx) ()) UVector @@ -13662,7 +13667,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_loop_mat_uni_col_idx) ()) UMatrix @@ -13683,7 +13688,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_lhs_loop_mul) ()) URowVector @@ -13703,7 +13708,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_rhs_loop_mul) ()) UVector @@ -13723,7 +13728,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_used_with_aos_in_excluded_fun) ()) UVector @@ -13744,7 +13749,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_loop_mat_multi_uni_uni_idx) ()) UMatrix @@ -13765,7 +13770,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_vec_v_assign_to_aos) ()) UVector @@ -13785,7 +13790,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_vec_v_tp_fails_func) ()) UVector @@ -13805,7 +13810,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_vec_v_uni_idx) ()) UVector @@ -13825,7 +13830,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_fail_assign_from_top_idx) ()) UVector @@ -13846,7 +13851,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_mat_uni_uni_idx) ()) UMatrix @@ -13868,7 +13873,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat) ()) UMatrix @@ -13890,7 +13895,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed1) ()) UMatrix @@ -13912,7 +13917,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed2) ()) UMatrix @@ -13934,7 +13939,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx1) ()) UMatrix @@ -13956,7 +13961,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx2) ()) UMatrix @@ -13973,7 +13978,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_from_aos) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_aos_vec_v) @@ -13981,7 +13986,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_soa_single_idx_uninit) @@ -13989,7 +13994,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_aos_fail_func_vec_v) @@ -13997,7 +14002,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_aos_fail_assign_from_top_idx) @@ -14005,7 +14010,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -14391,7 +14396,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -14399,7 +14404,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -14429,13 +14434,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_vec_v_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_vec_v_flat__) ()) (UArray UReal) @@ -14504,13 +14509,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_mat_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_mat_flat__) ()) (UArray UReal) @@ -14597,13 +14602,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_arr_vec_v_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_arr_vec_v_flat__) ()) (UArray UReal) @@ -14689,13 +14694,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_mat_uni_col_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_mat_uni_col_idx_flat__) ()) (UArray UReal) @@ -14780,13 +14785,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_vec_uni_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_vec_uni_idx_flat__) ()) (UArray UReal) @@ -14855,13 +14860,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_loop_mat_uni_col_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_loop_mat_uni_col_idx_flat__) ()) @@ -14947,13 +14952,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_lhs_loop_mul_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_lhs_loop_mul_flat__) ()) (UArray UReal) @@ -15021,13 +15026,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_rhs_loop_mul_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_rhs_loop_mul_flat__) ()) (UArray UReal) @@ -15095,14 +15100,14 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_used_with_aos_in_excluded_fun_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_used_with_aos_in_excluded_fun_flat__) ()) @@ -15172,14 +15177,14 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_loop_mat_multi_uni_uni_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_loop_mat_multi_uni_uni_idx_flat__) ()) @@ -15265,13 +15270,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_vec_v_assign_to_aos_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_vec_v_assign_to_aos_flat__) ()) @@ -15340,13 +15345,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_vec_v_tp_fails_func_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_vec_v_tp_fails_func_flat__) ()) @@ -15415,13 +15420,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_loop_vec_v_uni_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_vec_v_uni_idx_flat__) ()) @@ -15490,13 +15495,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_fail_assign_from_top_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_fail_assign_from_top_idx_flat__) ()) @@ -15566,13 +15571,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_loop_mat_uni_uni_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_mat_uni_uni_idx_flat__) ()) @@ -15659,13 +15664,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_flat__) ()) (UArray UReal) @@ -15751,14 +15756,14 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_pass_func_outer_single_indexed1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed1_flat__) ()) @@ -15846,14 +15851,14 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_pass_func_outer_single_indexed2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed2_flat__) ()) @@ -15941,13 +15946,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_fail_uni_uni_idx1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx1_flat__) ()) @@ -16034,13 +16039,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_fail_uni_uni_idx2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx2_flat__) ()) @@ -16123,7 +16128,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (unconstrain_array (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -16144,7 +16149,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_vec_v) ()) UVector @@ -16169,7 +16174,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_mat) ()) UMatrix @@ -16196,7 +16201,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -16250,7 +16255,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_mat_uni_col_idx) ()) UMatrix @@ -16275,7 +16280,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_vec_uni_idx) ()) UVector @@ -16300,7 +16305,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_loop_mat_uni_col_idx) ()) UMatrix @@ -16325,7 +16330,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_lhs_loop_mul) ()) URowVector @@ -16349,7 +16354,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_rhs_loop_mul) ()) UVector @@ -16373,7 +16378,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_used_with_aos_in_excluded_fun) ()) UVector @@ -16398,7 +16403,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_soa_loop_mat_multi_uni_uni_idx) ()) UMatrix @@ -16423,7 +16428,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_vec_v_assign_to_aos) ()) UVector @@ -16447,7 +16452,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_vec_v_tp_fails_func) ()) UVector @@ -16471,7 +16476,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_vec_v_uni_idx) ()) UVector @@ -16495,7 +16500,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_fail_assign_from_top_idx) ()) UVector @@ -16520,7 +16525,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_mat_uni_uni_idx) ()) UMatrix @@ -16546,7 +16551,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat) ()) UMatrix @@ -16572,7 +16577,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed1) ()) UMatrix @@ -16598,7 +16603,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed2) ()) UMatrix @@ -16624,7 +16629,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx1) ()) UMatrix @@ -16650,7 +16655,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx2) ()) UMatrix @@ -16966,7 +16971,8 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (prepare_data (((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -16983,7 +16989,8 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable M) ()) UInt @@ -17011,7 +17018,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable Idx) ()) (UArray UInt) @@ -17024,7 +17031,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -17041,7 +17048,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_single_idx) ()) UVector @@ -17072,7 +17079,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_soa_multi_idx_assign_in_loop) ()) UVector @@ -17126,7 +17133,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar i) @@ -17163,7 +17170,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -17180,7 +17187,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_single_idx) ()) UVector @@ -17211,7 +17218,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_soa_multi_idx_assign_in_loop) ()) UVector @@ -17265,7 +17272,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar i) @@ -17302,7 +17309,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -17319,7 +17326,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_single_idx) ()) UVector @@ -17377,7 +17384,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -17385,7 +17392,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -17415,13 +17422,13 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_loop_single_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_single_idx_flat__) ()) (UArray UReal) @@ -17487,7 +17494,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (unconstrain_array (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -17508,7 +17515,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_single_idx) ()) UVector @@ -17590,7 +17597,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id data_r) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable data_r) ()) UReal @@ -17614,7 +17621,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_x) ()) UMatrix @@ -17638,7 +17645,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_x) ()) UMatrix @@ -17662,7 +17669,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_y) ()) UMatrix @@ -17681,7 +17688,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_soa) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_real_from_soa) ()) UReal @@ -17714,7 +17721,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_aos_from_mix) ()) UMatrix @@ -17751,7 +17758,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_from_udf_reduced_soa) ()) UMatrix @@ -17774,7 +17781,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix SoA ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_x) ()) UMatrix @@ -17798,7 +17805,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_x) ()) UMatrix @@ -17822,7 +17829,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_y) ()) UMatrix @@ -17841,7 +17848,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_soa) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_real_from_soa) ()) UReal @@ -17874,7 +17881,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_aos_from_mix) ()) UMatrix @@ -17911,7 +17918,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_from_udf_reduced_soa) ()) UMatrix @@ -17934,7 +17941,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_x) ()) UMatrix @@ -17958,7 +17965,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_x) ()) UMatrix @@ -17982,7 +17989,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_y) ()) UMatrix @@ -18001,7 +18008,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_from_soa) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_matrix_aos_from_mix) @@ -18010,7 +18017,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_matrix_from_udf_reduced_soa) @@ -18019,7 +18026,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -18175,7 +18182,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -18188,13 +18195,13 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id soa_x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_x_flat__) ()) (UArray UReal) @@ -18281,13 +18288,13 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id aos_x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_x_flat__) ()) (UArray UReal) @@ -18374,13 +18381,13 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id aos_y_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_y_flat__) ()) (UArray UReal) @@ -18468,7 +18475,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_x) ()) UMatrix @@ -18495,7 +18502,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_x) ()) UMatrix @@ -18522,7 +18529,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_y) ()) UMatrix @@ -18644,7 +18651,7 @@ matrix[10, 10] mul_two_aos: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Return @@ -18674,7 +18681,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable row_soa) ()) UMatrix @@ -18698,7 +18705,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable udf_input_aos) ()) UMatrix @@ -18722,7 +18729,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable user_func_aos) ()) UMatrix @@ -18739,7 +18746,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable empty_user_func_aos) ()) UMatrix @@ -18753,7 +18760,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable inner_empty_user_func_aos) ()) UMatrix @@ -18772,7 +18779,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable int_aos_mul_aos) ()) UMatrix @@ -18798,7 +18805,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable mul_two_aos) ()) UMatrix @@ -18833,7 +18840,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix SoA ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable row_soa) ()) UMatrix @@ -18857,7 +18864,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable udf_input_aos) ()) UMatrix @@ -18881,7 +18888,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable user_func_aos) ()) UMatrix @@ -18898,7 +18905,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable empty_user_func_aos) ()) UMatrix @@ -18912,7 +18919,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable inner_empty_user_func_aos) ()) UMatrix @@ -18931,7 +18938,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable int_aos_mul_aos) ()) UMatrix @@ -18957,7 +18964,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable mul_two_aos) ()) UMatrix @@ -18992,7 +18999,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable row_soa) ()) UMatrix @@ -19016,7 +19023,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable udf_input_aos) ()) UMatrix @@ -19040,7 +19047,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id empty_user_func_aos) @@ -19049,7 +19056,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id inner_empty_user_func_aos) @@ -19058,7 +19065,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id int_aos_mul_aos) @@ -19067,7 +19074,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id mul_two_aos) @@ -19076,7 +19083,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -19241,7 +19248,7 @@ matrix[10, 10] mul_two_aos: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -19254,13 +19261,13 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id row_soa_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable row_soa_flat__) ()) (UArray UReal) @@ -19347,13 +19354,13 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id udf_input_aos_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable udf_input_aos_flat__) ()) (UArray UReal) @@ -19441,7 +19448,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable row_soa) ()) UMatrix @@ -19469,7 +19476,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable udf_input_aos) ()) UMatrix @@ -19619,7 +19626,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_p) ()) UMatrix @@ -19643,7 +19650,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_p) ()) UMatrix @@ -19662,7 +19669,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_soa) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_real_from_soa) ()) UReal @@ -19694,7 +19701,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SRowVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_row_vector_from_soa_loop) ()) URowVector @@ -19721,7 +19728,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_from_soa_loop) ()) UMatrix @@ -19752,7 +19759,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_p) ()) UMatrix @@ -19776,7 +19783,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix SoA ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_p) ()) UMatrix @@ -19795,7 +19802,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_soa) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_real_from_soa) ()) UReal @@ -19827,7 +19834,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SRowVector SoA ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_row_vector_from_soa_loop) ()) URowVector @@ -19854,7 +19861,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_from_soa_loop) ()) UMatrix @@ -19885,7 +19892,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_p) ()) UMatrix @@ -19909,7 +19916,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_p) ()) UMatrix @@ -19928,7 +19935,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_from_soa) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -19992,7 +19999,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SRowVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_row_vector_from_soa_loop) ()) URowVector @@ -20019,7 +20026,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_from_soa_loop) ()) UMatrix @@ -20072,7 +20079,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -20085,13 +20092,13 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id aos_p_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_p_flat__) ()) (UArray UReal) @@ -20178,13 +20185,13 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id soa_p_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_p_flat__) ()) (UArray UReal) @@ -20272,7 +20279,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_p) ()) UMatrix @@ -20300,7 +20307,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable soa_p) ()) UMatrix @@ -20400,7 +20407,7 @@ matrix[5, 10] tp_matrix_aos: AoS (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id data_r) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable data_r) ()) UReal @@ -20424,7 +20431,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable first_pass_soa_x) ()) UMatrix @@ -20448,7 +20455,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_x) ()) UMatrix @@ -20472,7 +20479,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_aos) ()) UMatrix @@ -20495,7 +20502,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable first_pass_soa_x) ()) UMatrix @@ -20519,7 +20526,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_x) ()) UMatrix @@ -20543,7 +20550,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_aos) ()) UMatrix @@ -20566,7 +20573,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable first_pass_soa_x) ()) UMatrix @@ -20590,7 +20597,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_x) ()) UMatrix @@ -20614,7 +20621,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -20691,7 +20698,7 @@ matrix[5, 10] tp_matrix_aos: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -20704,13 +20711,13 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id first_pass_soa_x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable first_pass_soa_x_flat__) ()) (UArray UReal) @@ -20797,13 +20804,13 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id aos_x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_x_flat__) ()) (UArray UReal) @@ -20891,7 +20898,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable first_pass_soa_x) ()) UMatrix @@ -20918,7 +20925,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable aos_x) ()) UMatrix @@ -21048,7 +21055,7 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable xx) ()) 1) ()) (UArray UMatrix) @@ -21104,7 +21111,7 @@ matrix[1, 1] x: AoS (SMatrix AoS ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x) ()) UMatrix @@ -21148,7 +21155,7 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable xx) ()) 1) ()) (UArray UMatrix) @@ -21204,7 +21211,7 @@ matrix[1, 1] x: AoS (SMatrix AoS ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x) ()) UMatrix @@ -21247,7 +21254,7 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable xx) ()) 1) ()) (UArray UMatrix) @@ -21303,7 +21310,7 @@ matrix[1, 1] x: AoS (SMatrix AoS ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -21467,7 +21474,7 @@ matrix[1, 1] x: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -21497,13 +21504,13 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id xx_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable xx_dot_1_flat__) ()) (UArray UReal) @@ -21603,7 +21610,7 @@ matrix[1, 1] x: AoS (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id xx_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable xx_dot_2_flat__) ()) (UArray UReal) @@ -21678,7 +21685,7 @@ matrix[1, 1] x: AoS (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id xx_dot_3_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable xx_dot_3_flat__) ()) (UArray UReal) @@ -21819,7 +21826,7 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -21998,7 +22005,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -22011,13 +22018,13 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x_flat__) ()) (UArray UReal) @@ -22096,7 +22103,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m1) ()) UMatrix @@ -22120,7 +22127,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m2) ()) UMatrix @@ -22154,7 +22161,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable temp) ()) (UTuple (UMatrix UMatrix)) @@ -22204,7 +22211,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m1) ()) UMatrix @@ -22228,7 +22235,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m2) ()) UMatrix @@ -22262,7 +22269,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable temp) ()) (UTuple (UMatrix UMatrix)) @@ -22312,7 +22319,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m1) ()) UMatrix @@ -22336,7 +22343,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m2) ()) UMatrix @@ -22395,7 +22402,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -22408,13 +22415,13 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id m1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m1_flat__) ()) (UArray UReal) @@ -22500,13 +22507,13 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id m2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m2_flat__) ()) (UArray UReal) @@ -22593,7 +22600,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m1) ()) UMatrix @@ -22618,7 +22625,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m2) ()) UMatrix diff --git a/test/integration/good/decl_assign.stan b/test/integration/good/decl_assign.stan new file mode 100644 index 000000000..0d06814cf --- /dev/null +++ b/test/integration/good/decl_assign.stan @@ -0,0 +1,3 @@ +parameters { + vector[10] xx_param; +} \ No newline at end of file diff --git a/test/integration/good/pretty.expected b/test/integration/good/pretty.expected index bf61c47b8..022c89f94 100644 --- a/test/integration/good/pretty.expected +++ b/test/integration/good/pretty.expected @@ -1455,6 +1455,11 @@ model { x ~ normal(0, linspaced_array(size(x), 1.0, 10.0)); } + $ ../../../../install/default/bin/stanc --auto-format decl_assign.stan +parameters { + vector[10] xx_param; +} + $ ../../../../install/default/bin/stanc --auto-format declarations.stan data { int a0; diff --git a/test/integration/good/tuples/transformed_mir.expected b/test/integration/good/tuples/transformed_mir.expected index bac3d3307..96a89fe0b 100644 --- a/test/integration/good/tuples/transformed_mir.expected +++ b/test/integration/good/tuples/transformed_mir.expected @@ -107,7 +107,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -122,7 +122,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable basic) ()) 1) ()) (UArray UReal) @@ -158,7 +158,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_tuple) ()) 1) ()) UInt @@ -194,7 +194,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id tuple_tuple_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tuple_tuple_dot_2_dot_2_flat__) ()) @@ -264,13 +264,13 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_dot_1_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true))) + (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_dot_1_flat__) ()) UInt @@ -284,7 +284,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_dot_1_flat__pos__) ()) UInt @@ -292,7 +292,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_dot_2_flat__) ()) (UArray UReal) @@ -306,7 +306,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_dot_2_flat__pos__) ()) UInt @@ -314,7 +314,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_dot_3_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_dot_3_flat__) ()) UVector @@ -328,7 +328,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_3_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_dot_3_flat__pos__) ()) UInt @@ -336,7 +336,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_1_temp__) - (decl_type (Sized SInt)) (initialize true))) + (decl_type (Sized SInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_2_temp__) @@ -345,7 +345,7 @@ (SArray SReal ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_3_temp__) @@ -354,7 +354,7 @@ (SVector AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -430,7 +430,8 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_dot_3_temp___flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_dot_3_temp___flat__) ()) @@ -560,7 +561,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple) ()) 1) ()) @@ -589,7 +590,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_dot_3_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_1_flat__) ()) UReal @@ -603,7 +604,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_1_flat__pos__) ()) UInt @@ -611,7 +612,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_dot_3_dot_2_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true))) + (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_2_flat__) ()) @@ -626,7 +627,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_2_flat__pos__) ()) UInt @@ -634,7 +635,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_2_temp__) @@ -643,7 +644,7 @@ (SArray SInt ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -753,13 +754,13 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_1_flat__) ()) UReal @@ -774,7 +775,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_1_flat__pos__) ()) UInt @@ -782,7 +783,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_2_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true))) + (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_2_flat__) ()) UInt @@ -797,7 +798,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_2_flat__pos__) ()) UInt @@ -805,7 +806,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_3_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_1_flat__) ()) UReal @@ -820,7 +821,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_3_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_1_flat__pos__) ()) UInt @@ -829,7 +830,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_3_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true))) + (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_1_flat__) ()) UInt @@ -845,7 +846,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__) ()) UInt @@ -854,7 +855,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_3_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_2_flat__) ()) UVector @@ -870,7 +871,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__) ()) UInt @@ -878,11 +879,11 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_2_temp__) - (decl_type (Sized SInt)) (initialize true))) + (decl_type (Sized SInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) @@ -896,7 +897,7 @@ (SVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -1020,7 +1021,8 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment @@ -1169,13 +1171,13 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_dot_1_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true))) + (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_dot_1_flat__) ()) UInt @@ -1189,7 +1191,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_dot_1_flat__pos__) ()) UInt @@ -1198,7 +1200,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_1_flat__) ()) @@ -1214,7 +1216,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__) ()) UInt @@ -1223,7 +1225,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_2_flat__) ()) @@ -1239,7 +1241,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__) ()) UInt @@ -1247,7 +1249,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_dot_1_temp__) - (decl_type (Sized SInt)) (initialize true))) + (decl_type (Sized SInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) @@ -1262,7 +1264,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -1301,7 +1303,7 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_dot_2_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) @@ -1311,7 +1313,7 @@ (SVector AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym2__) @@ -1363,7 +1365,7 @@ (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__) (decl_type (Unsized (UArray UReal))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -1565,13 +1567,13 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_1_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true))) + (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_1_flat__) ()) UInt @@ -1588,7 +1590,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_1_flat__pos__) ()) UInt @@ -1596,7 +1598,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_2_dot_1_flat__) ()) (UArray UReal) @@ -1613,7 +1615,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_2_dot_1_flat__pos__) ()) UInt @@ -1621,7 +1623,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_2_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UComplex))) (initialize true))) + (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_2_dot_2_dot_1_flat__) ()) @@ -1639,7 +1641,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_2_dot_2_dot_1_flat__pos__) ()) UInt @@ -1647,7 +1649,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_2_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_2_dot_2_dot_2_flat__) ()) @@ -1665,7 +1667,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_2_dot_2_dot_2_flat__pos__) ()) UInt @@ -1673,7 +1675,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_1_temp__) - (decl_type (Sized SInt)) (initialize true))) + (decl_type (Sized SInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) @@ -1695,7 +1697,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -1733,7 +1735,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) @@ -1750,7 +1752,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym2__) @@ -1796,7 +1798,8 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_2_dot_1_temp__) - (decl_type (Sized SComplex)) (initialize true))) + (decl_type (Sized SComplex)) (initialize true) + (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) @@ -1810,7 +1813,7 @@ ((pattern (Lit Int 7)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym3__) @@ -1877,7 +1880,7 @@ (decl_id very_deep_dot_2_dot_2_dot_2_temp___flat__) (decl_type (Unsized (UArray UReal))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -2183,7 +2186,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) @@ -2219,7 +2222,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal @@ -2271,7 +2274,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -2363,7 +2366,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) @@ -2457,7 +2460,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -2591,7 +2594,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -2709,7 +2712,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -2868,7 +2871,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) @@ -2904,7 +2907,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal @@ -2956,7 +2959,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -3048,7 +3051,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) @@ -3142,7 +3145,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -3276,7 +3279,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -3394,7 +3397,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -3553,7 +3556,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) @@ -3589,7 +3592,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal @@ -3640,7 +3643,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -3730,7 +3733,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) @@ -3822,7 +3825,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -3956,7 +3959,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -4073,7 +4076,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -5117,7 +5120,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -5132,7 +5135,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) @@ -5196,7 +5199,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal @@ -5232,7 +5235,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id tuple_tuple_p_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tuple_tuple_p_dot_2_dot_2_flat__) ()) @@ -5356,13 +5359,13 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_p_dot_1_flat__) - (decl_type (Unsized (UArray UComplex))) (initialize true))) + (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_p_dot_1_flat__) ()) UComplex @@ -5376,7 +5379,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_p_dot_1_flat__pos__) ()) UInt @@ -5384,7 +5387,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_p_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_p_dot_2_flat__) ()) (UArray UReal) @@ -5398,7 +5401,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_p_dot_2_flat__pos__) ()) UInt @@ -5406,7 +5409,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_p_dot_3_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_p_dot_3_flat__) ()) UVector @@ -5420,7 +5423,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_3_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_p_dot_3_flat__pos__) ()) UInt @@ -5428,7 +5431,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_1_temp__) - (decl_type (Sized SComplex)) (initialize true))) + (decl_type (Sized SComplex)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_2_temp__) @@ -5437,7 +5440,7 @@ (SArray SReal ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_3_temp__) @@ -5446,7 +5449,7 @@ (SVector AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -5523,7 +5526,8 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_p_dot_3_temp___flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_p_dot_3_temp___flat__) ()) @@ -5735,7 +5739,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) @@ -5764,7 +5768,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_p_dot_3_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_1_flat__) ()) UReal @@ -5778,7 +5782,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_1_flat__pos__) ()) UInt @@ -5786,7 +5790,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_p_dot_3_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_2_flat__) ()) @@ -5801,7 +5805,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_2_flat__pos__) ()) UInt @@ -5809,7 +5813,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_2_temp__) @@ -5818,7 +5822,7 @@ (SArray SReal ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -6038,13 +6042,13 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_1_flat__) ()) UReal @@ -6060,7 +6064,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_1_flat__pos__) ()) UInt @@ -6068,7 +6072,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_2_flat__) ()) UReal @@ -6084,7 +6088,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_2_flat__pos__) ()) UInt @@ -6092,7 +6096,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_3_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_1_flat__) ()) UReal @@ -6108,7 +6112,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_3_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_1_flat__pos__) ()) UInt @@ -6117,7 +6121,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UComplex))) (initialize true))) + (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__) ()) UComplex @@ -6134,7 +6138,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__pos__) ()) @@ -6144,7 +6148,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__) ()) UVector @@ -6161,7 +6165,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__) ()) @@ -6170,11 +6174,11 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_2_temp__) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) @@ -6188,7 +6192,7 @@ (SVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -6313,7 +6317,8 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_3_temp___dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment @@ -6652,13 +6657,13 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_p_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_1_flat__) ()) UReal @@ -6672,7 +6677,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_p_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_1_flat__pos__) ()) UInt @@ -6681,7 +6686,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_p_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_1_flat__) ()) @@ -6697,7 +6702,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_p_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_1_flat__pos__) ()) UInt @@ -6706,7 +6711,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_p_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_2_flat__) ()) @@ -6722,7 +6727,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__) ()) UInt @@ -6730,7 +6735,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_p_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) @@ -6745,7 +6750,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -6785,7 +6790,7 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_p_dot_2_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) @@ -6795,7 +6800,7 @@ (SVector AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym2__) @@ -6849,7 +6854,7 @@ (decl_id arr_tuple_arr_tuple_p_dot_2_dot_2_temp___flat__) (decl_type (Unsized (UArray UReal))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -7187,13 +7192,13 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_1_flat__) ()) UReal @@ -7211,7 +7216,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_1_flat__pos__) ()) UInt @@ -7219,7 +7224,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_2_dot_1_flat__) ()) @@ -7238,7 +7243,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_2_dot_1_flat__pos__) ()) UInt @@ -7246,7 +7251,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_2_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UComplex))) (initialize true))) + (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_1_flat__) ()) @@ -7265,7 +7270,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_1_flat__pos__) ()) UInt @@ -7273,7 +7278,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_2_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_2_flat__) ()) @@ -7292,7 +7297,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_2_flat__pos__) ()) UInt @@ -7300,7 +7305,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) @@ -7322,7 +7327,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -7361,7 +7366,7 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_1_temp__) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) @@ -7378,7 +7383,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym2__) @@ -7424,7 +7429,8 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_2_dot_1_temp__) - (decl_type (Sized SComplex)) (initialize true))) + (decl_type (Sized SComplex)) (initialize true) + (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) @@ -7438,7 +7444,7 @@ ((pattern (Lit Int 7)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym3__) @@ -7506,7 +7512,7 @@ (decl_id very_deep_p_dot_2_dot_2_dot_2_temp___flat__) (decl_type (Unsized (UArray UReal))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -8100,7 +8106,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) @@ -8155,7 +8161,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal @@ -8246,7 +8252,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -8404,7 +8410,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) @@ -8586,7 +8592,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -8883,7 +8889,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -9120,7 +9126,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -9761,14 +9767,16 @@ ((functions_block ()) (input_vars ()) (prepare_data (((pattern - (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x) ()) UInt ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id y) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id y) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable y) ()) UInt @@ -9783,7 +9791,8 @@ (Block (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false))) + (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) @@ -9829,7 +9838,8 @@ (Block (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false))) + (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) @@ -9873,7 +9883,8 @@ (Block (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false))) + (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) @@ -9912,7 +9923,8 @@ (Block (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false))) + (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) @@ -9979,7 +9991,7 @@ (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x) ()) UReal @@ -9999,7 +10011,7 @@ (SArray (STuple (SReal SReal)) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable z) ()) (UArray (UTuple (UReal UReal))) @@ -10047,7 +10059,7 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x) ()) UReal @@ -10067,7 +10079,7 @@ (SArray (STuple (SReal SReal)) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable z) ()) (UArray (UTuple (UReal UReal))) @@ -10114,8 +10126,8 @@ (meta )))) (generate_quantities (((pattern - (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SReal)) - (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SReal)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x) ()) UReal @@ -10160,7 +10172,7 @@ (transform_inits (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x) ()) UReal @@ -10187,7 +10199,7 @@ (unconstrain_array (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x) ()) UReal @@ -10232,7 +10244,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -10257,7 +10269,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) SInt)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable complicated) ()) 1) ()) @@ -10288,7 +10300,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_2_dot_2_flat__) ()) @@ -10378,11 +10390,11 @@ (SArray SReal ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id y) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) @@ -10391,7 +10403,7 @@ (SVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id w) @@ -10400,11 +10412,11 @@ (SArray SReal ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id i) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block @@ -10418,7 +10430,7 @@ (decl_type (Unsized (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt)))) - (initialize false))) + (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) @@ -10456,7 +10468,7 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) (decl_id sym2__) (decl_type (Unsized (UTuple (UReal UVector (UArray UReal))))) - (initialize false))) + (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym2__) ()) @@ -10545,11 +10557,11 @@ (SArray SReal ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id y) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) @@ -10558,7 +10570,7 @@ (SVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id w) @@ -10567,11 +10579,11 @@ (SArray SReal ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id i) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block @@ -10585,7 +10597,7 @@ (decl_type (Unsized (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt)))) - (initialize false))) + (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) @@ -10623,7 +10635,7 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) (decl_id sym2__) (decl_type (Unsized (UTuple (UReal UVector (UArray UReal))))) - (initialize false))) + (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym2__) ()) @@ -10741,7 +10753,8 @@ SInt))) (prepare_data (((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -10769,7 +10782,8 @@ (((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable M) ()) UInt @@ -10816,7 +10830,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable A) ()) UMatrix @@ -10856,7 +10870,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -10881,14 +10895,14 @@ (SMatrix AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id sym1__) (decl_type (Unsized (UTuple (UMatrix UMatrix)))) - (initialize false))) + (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UMatrix UMatrix)) @@ -10951,7 +10965,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable A) ()) UMatrix @@ -10991,7 +11005,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -11016,14 +11030,14 @@ (SMatrix AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id sym1__) (decl_type (Unsized (UTuple (UMatrix UMatrix)))) - (initialize false))) + (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UMatrix UMatrix)) @@ -11086,7 +11100,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable A) ()) UMatrix @@ -11135,7 +11149,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -11148,13 +11162,13 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id A_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable A_flat__) ()) (UArray UReal) @@ -11240,7 +11254,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable A) ()) UMatrix @@ -11277,7 +11291,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -11285,7 +11299,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id x) - (decl_type (Sized (STuple (SReal SInt)))) (initialize true))) + (decl_type (Sized (STuple (SReal SInt)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x) ()) (UTuple (UReal UInt)) @@ -11341,7 +11355,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -11356,7 +11370,7 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x) ()) (UTuple ((UArray UReal) UInt)) @@ -11423,7 +11437,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -11441,7 +11455,7 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x) ()) (UTuple ((UArray (UArray UReal)) UInt)) @@ -11560,7 +11574,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -11569,7 +11583,7 @@ ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) (decl_id y) (decl_type (Sized (STuple (SInt (STuple (SReal SInt)))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable y) ()) 1) ()) UInt @@ -11699,7 +11713,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable x) ()) 1) ()) UInt @@ -11733,7 +11747,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x_dot_3_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x_dot_3_flat__) ()) (UArray UReal) @@ -11858,13 +11872,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable z_dot_1_flat__) ()) UReal @@ -11878,7 +11892,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id z_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable z_dot_1_flat__pos__) ()) UInt @@ -11886,7 +11900,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id z_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable z_dot_2_flat__) ()) UVector @@ -11900,7 +11914,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id z_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable z_dot_2_flat__pos__) ()) UInt @@ -11908,7 +11922,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id z_dot_1_temp__) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id z_dot_2_temp__) @@ -11917,7 +11931,7 @@ (SVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -11970,7 +11984,8 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z_dot_2_temp___flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable z_dot_2_temp___flat__) ()) @@ -12265,7 +12280,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id indicator) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable indicator) ()) UInt @@ -12309,7 +12324,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id complicated_brack_dot2_1dim__) - (decl_type (Sized SInt)) (initialize true))) + (decl_type (Sized SInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable complicated_brack_dot2_1dim__) ()) UInt @@ -12342,7 +12357,7 @@ (log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -12385,7 +12400,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -12462,7 +12477,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id t) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable t) ()) UReal @@ -12516,7 +12531,7 @@ ((pattern (Var complicated_brack_dot2_1dim__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -12638,7 +12653,7 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -12681,7 +12696,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -12758,7 +12773,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id t) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable t) ()) UReal @@ -12812,7 +12827,7 @@ ((pattern (Var complicated_brack_dot2_1dim__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -12934,7 +12949,7 @@ (generate_quantities (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -12977,7 +12992,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -13053,8 +13068,8 @@ (meta ))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id t) (decl_type (Sized SReal)) - (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id t) (decl_type (Sized SReal)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable t) ()) UReal @@ -13106,7 +13121,7 @@ ((pattern (Var complicated_brack_dot2_1dim__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -13542,7 +13557,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -13550,7 +13565,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -13627,13 +13642,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id ps2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ps2_dot_1_flat__) ()) UReal @@ -13647,7 +13662,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id ps2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ps2_dot_1_flat__pos__) ()) UInt @@ -13655,7 +13670,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ps2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ps2_dot_2_flat__) ()) UVector @@ -13669,7 +13684,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id ps2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ps2_dot_2_flat__pos__) ()) UInt @@ -13677,7 +13692,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id ps2_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id ps2_dot_2_temp__) @@ -13686,7 +13701,7 @@ (SVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -13739,7 +13754,8 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id ps2_dot_2_temp___flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ps2_dot_2_temp___flat__) ()) @@ -13953,7 +13969,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id t) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable t) ()) UReal @@ -14019,13 +14035,13 @@ ((pattern (Var complicated_brack_dot2_1dim__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_1_flat__) ()) UReal @@ -14040,7 +14056,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id complicated_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_1_flat__pos__) ()) UInt @@ -14048,7 +14064,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_2_dot_1_flat__) ()) @@ -14064,7 +14080,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id complicated_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_2_dot_1_flat__pos__) ()) UInt @@ -14072,7 +14088,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_2_dot_2_flat__) ()) @@ -14088,7 +14104,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id complicated_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_2_dot_2_flat__pos__) ()) UInt @@ -14096,7 +14112,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_2_dot_3_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true))) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_2_dot_3_flat__) ()) @@ -14112,7 +14128,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id complicated_dot_2_dot_3_flat__pos__) - (decl_type (Unsized UInt)) (initialize true))) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_2_dot_3_flat__pos__) ()) UInt @@ -14120,7 +14136,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id complicated_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly DataOnly))) @@ -14140,7 +14156,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Var complicated_brack_dot2_1dim__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -14179,7 +14195,7 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id complicated_dot_2_dot_1_temp__) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) @@ -14189,7 +14205,7 @@ (SVector AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) @@ -14201,7 +14217,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym2__) @@ -14248,7 +14264,7 @@ (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_2_dot_2_temp___flat__) (decl_type (Unsized (UArray UReal))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -14378,7 +14394,7 @@ (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_2_dot_3_temp___flat__) (decl_type (Unsized (UArray UReal))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -14783,7 +14799,7 @@ (unconstrain_array (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -14842,7 +14858,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -14985,7 +15001,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id t) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable t) ()) UReal @@ -15042,7 +15058,7 @@ ((pattern (Var complicated_brack_dot2_1dim__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -15600,7 +15616,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -15608,7 +15624,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id d) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable d) ()) 1) ()) UReal @@ -15946,7 +15962,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -15959,7 +15975,7 @@ (SArray (STuple (SReal SReal)) ((pattern (Lit Int 100)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) @@ -15980,7 +15996,8 @@ (Block (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id t) - (decl_type (Unsized (UTuple (UReal UReal)))) (initialize true))) + (decl_type (Unsized (UTuple (UReal UReal)))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable t) ()) (UTuple (UReal UReal)) @@ -16043,7 +16060,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -16063,7 +16080,7 @@ (SArray SInt ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ds) ()) 1) ()) UInt @@ -16144,7 +16161,7 @@ (log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -16273,7 +16290,7 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -16402,7 +16419,7 @@ (generate_quantities (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -16484,7 +16501,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -16492,7 +16509,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -16559,7 +16576,7 @@ (unconstrain_array (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -16623,7 +16640,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -16631,7 +16648,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id x) - (decl_type (Sized (STuple (SInt SInt)))) (initialize true))) + (decl_type (Sized (STuple (SInt SInt)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable x) ()) 1) ()) UInt @@ -16669,7 +16686,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -16684,7 +16701,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -16726,7 +16743,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -16738,7 +16755,7 @@ (Sized (SArray (STuple (SInt SInt)) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -16784,7 +16801,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -16805,7 +16822,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment @@ -16851,7 +16868,7 @@ (log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -16885,7 +16902,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal @@ -16925,7 +16942,7 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -16959,7 +16976,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal @@ -16999,7 +17016,7 @@ (generate_quantities (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17033,7 +17050,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal @@ -17175,7 +17192,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -17183,7 +17200,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17253,7 +17270,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal @@ -17288,7 +17305,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id ps2_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable ps2_dot_2_dot_2_flat__) ()) (UArray UReal) @@ -17416,7 +17433,7 @@ (unconstrain_array (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17468,7 +17485,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal @@ -17588,7 +17605,7 @@ (log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17616,7 +17633,7 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17644,7 +17661,7 @@ (generate_quantities (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17721,7 +17738,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -17729,7 +17746,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17792,7 +17809,7 @@ (unconstrain_array (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17910,7 +17927,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -17922,13 +17939,13 @@ (Sized (SVector AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id V_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable V_flat__) ()) (UArray UReal) @@ -17993,7 +18010,7 @@ (SArray SInt ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable d) ()) 1) ()) (UArray UInt) @@ -18022,7 +18039,7 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl @@ -18043,7 +18060,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id basic) @@ -18054,7 +18071,7 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SComplex)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable basic) ()) (UTuple ((UArray UReal) UComplex)) @@ -18094,7 +18111,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable CV) ()) (UTuple (UComplexVector UReal)) @@ -18125,7 +18142,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable V2) ()) (UTuple (UVector UInt)) @@ -18151,8 +18168,8 @@ (adlevel (TupleAD (DataOnly DataOnly)))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id t) (decl_type (Sized SReal)) - (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id t) (decl_type (Sized SReal)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable t) ()) UReal @@ -18182,7 +18199,7 @@ (SArray SComplex ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d2) ()) (UTuple ((UArray UComplex) (UArray UComplex))) @@ -18206,7 +18223,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable V3) ()) (UTuple (UVector UReal)) @@ -18232,7 +18249,7 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arrs2) ()) (UArray (UTuple (UReal (UArray UComplex)))) @@ -18268,7 +18285,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable nested2) ()) @@ -18317,7 +18334,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable nested3) ()) @@ -18357,7 +18374,7 @@ (SArray SComplex ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable d2) ()) (UTuple ((UArray UComplex) (UArray UComplex))) @@ -18381,7 +18398,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable V3) ()) (UTuple (UVector UReal)) @@ -18407,7 +18424,7 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable arrs2) ()) (UArray (UTuple (UReal (UArray UComplex)))) @@ -18443,7 +18460,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable nested2) ()) @@ -18492,7 +18509,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable nested3) ()) @@ -18532,7 +18549,7 @@ (SArray SComplex ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id V3) @@ -18543,7 +18560,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id arrs2) @@ -18556,7 +18573,7 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl @@ -18577,7 +18594,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl @@ -18598,7 +18615,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (IfElse @@ -19175,7 +19192,8 @@ ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id y) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id y) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable y) ()) UInt @@ -19183,7 +19201,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id x) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x) ()) (UTuple (UReal UReal)) @@ -19206,7 +19224,8 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id z) - (decl_type (Sized (STuple (SComplex SReal)))) (initialize true))) + (decl_type (Sized (STuple (SComplex SReal)))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable z) ()) (UTuple (UComplex UReal)) @@ -19223,7 +19242,8 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id z2) - (decl_type (Sized (STuple (SComplex SReal)))) (initialize true))) + (decl_type (Sized (STuple (SComplex SReal)))) (initialize true) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable z2) ()) (UTuple (UComplex UReal)) @@ -19634,14 +19654,15 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -19676,13 +19697,13 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id m1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m1_flat__) ()) (UArray UReal) @@ -19771,13 +19792,13 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id m2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m2_flat__) ()) (UArray UReal) @@ -19859,7 +19880,7 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable a1) ()) (UArray UInt) @@ -19881,7 +19902,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable a2) ()) (UArray UReal) @@ -19934,8 +19955,8 @@ (adlevel (TupleAD (DataOnly DataOnly))))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id s) (decl_type (Sized SReal)) - (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id s) (decl_type (Sized SReal)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable s) ()) UReal @@ -20264,7 +20285,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -20277,13 +20298,13 @@ (SMatrix AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x_flat__) ()) (UArray UReal) @@ -20360,7 +20381,7 @@ (Sized (SArray SReal ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable y) ()) (UArray UReal) @@ -20383,7 +20404,7 @@ (SArray SReal ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )))) (log_prob (((pattern @@ -20393,7 +20414,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m1) ()) UMatrix @@ -20417,7 +20438,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m2) ()) UMatrix @@ -20451,7 +20472,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable temp) ()) (UTuple (UMatrix UMatrix)) @@ -20509,7 +20530,7 @@ (SArray SReal ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable temp2) ()) (UTuple (UMatrix UInt (UArray UReal))) @@ -20573,7 +20594,7 @@ (SArray SReal ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable temp3) ()) @@ -20654,7 +20675,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m1) ()) UMatrix @@ -20678,7 +20699,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m2) ()) UMatrix @@ -20712,7 +20733,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable temp) ()) (UTuple (UMatrix UMatrix)) @@ -20770,7 +20791,7 @@ (SArray SReal ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable temp2) ()) (UTuple (UMatrix UInt (UArray UReal))) @@ -20834,7 +20855,7 @@ (SArray SReal ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable temp3) ()) @@ -20915,7 +20936,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m1) ()) UMatrix @@ -20939,7 +20960,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m2) ()) UMatrix @@ -20998,7 +21019,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -21011,13 +21032,13 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id m1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m1_flat__) ()) (UArray UReal) @@ -21103,13 +21124,13 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id m2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m2_flat__) ()) (UArray UReal) @@ -21196,7 +21217,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m1) ()) UMatrix @@ -21221,7 +21242,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m2) ()) UMatrix @@ -21297,14 +21318,16 @@ ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x) ()) UInt ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id y) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id y) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable y) ()) UInt @@ -21312,7 +21335,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id z) (decl_type (Sized SComplex)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id foo) @@ -21321,7 +21344,7 @@ (SMatrix AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnPrint) @@ -21498,14 +21521,15 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -21534,7 +21558,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable data_y) ()) (UArray UReal) @@ -21559,7 +21583,7 @@ (SReal (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable data_m) ()) 1) ()) UReal @@ -21585,7 +21609,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sum1) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sum1) ()) UReal @@ -21622,7 +21646,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable param_y) ()) (UArray UReal) @@ -21638,7 +21662,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sum2) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sum2) ()) UReal @@ -21668,7 +21692,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable param_y) ()) (UArray UReal) @@ -21684,7 +21708,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sum2) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sum2) ()) UReal @@ -21714,7 +21738,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable param_y) ()) (UArray UReal) @@ -21730,7 +21754,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sum2) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -21810,7 +21834,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable param_y) ()) (UArray UReal) @@ -21836,7 +21860,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable param_y) ()) (UArray UReal) @@ -22253,7 +22277,7 @@ (SMatrix AoS ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable m) ()) UMatrix @@ -22277,7 +22301,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable t) ()) (UTuple (UReal UMatrix)) @@ -22307,7 +22331,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable s) ()) (UTuple (UReal UMatrix)) @@ -22467,14 +22491,15 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) (initialize true))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -22513,13 +22538,13 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable x_flat__) ()) (UArray UReal) @@ -22584,7 +22609,7 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable y) ()) (UArray UInt) @@ -22615,7 +22640,7 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable td) ()) (UTuple ((UArray UInt) UVector)) @@ -22649,7 +22674,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) (UArray UReal) @@ -22669,7 +22694,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable theta) ()) UVector @@ -22699,7 +22724,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -22715,7 +22740,7 @@ (Sized (SArray SComplex ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -22731,7 +22756,7 @@ (Sized (SComplexVector ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block @@ -22739,7 +22764,7 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id sym1__) (decl_type (Unsized (UTuple ((UArray UReal) UComplexVector)))) - (initialize false))) + (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple ((UArray UReal) UComplexVector)) @@ -22791,7 +22816,7 @@ (decl_id sym1__) (decl_type (Unsized (UTuple ((UArray UReal) (UArray UComplex) UComplexVector)))) - (initialize false))) + (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) @@ -22870,7 +22895,7 @@ (decl_id sym1__) (decl_type (Unsized (UTuple ((UArray UReal) (UArray UComplex) UComplexVector)))) - (initialize false))) + (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) @@ -22961,13 +22986,14 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UComplexVector UInt)))) (initialize false))) + (decl_type (Unsized (UTuple (UComplexVector UInt)))) (initialize false) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UComplexVector UInt)) @@ -23023,7 +23049,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) (UArray UReal) @@ -23043,7 +23069,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable theta) ()) UVector @@ -23073,7 +23099,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -23089,7 +23115,7 @@ (Sized (SArray SComplex ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -23105,7 +23131,7 @@ (Sized (SComplexVector ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block @@ -23113,7 +23139,7 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id sym1__) (decl_type (Unsized (UTuple ((UArray UReal) UComplexVector)))) - (initialize false))) + (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple ((UArray UReal) UComplexVector)) @@ -23165,7 +23191,7 @@ (decl_id sym1__) (decl_type (Unsized (UTuple ((UArray UReal) (UArray UComplex) UComplexVector)))) - (initialize false))) + (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) @@ -23244,7 +23270,7 @@ (decl_id sym1__) (decl_type (Unsized (UTuple ((UArray UReal) (UArray UComplex) UComplexVector)))) - (initialize false))) + (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) @@ -23335,13 +23361,14 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UComplexVector UInt)))) (initialize false))) + (decl_type (Unsized (UTuple (UComplexVector UInt)))) (initialize false) + (assignment ()))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UComplexVector UInt)) @@ -23397,7 +23424,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) (UArray UReal) @@ -23417,7 +23444,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable theta) ()) UVector @@ -23475,7 +23502,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -23487,7 +23514,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) (UArray UReal) @@ -23512,13 +23539,13 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false))) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable theta_flat__) ()) (UArray UReal) @@ -23587,7 +23614,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) (UArray UReal) @@ -23611,7 +23638,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Assignment ((LVariable theta) ()) UVector diff --git a/test/unit/Ast_to_Mir_tests.ml b/test/unit/Ast_to_Mir_tests.ml index 9d19def14..35f3a2a1e 100644 --- a/test/unit/Ast_to_Mir_tests.ml +++ b/test/unit/Ast_to_Mir_tests.ml @@ -41,7 +41,7 @@ let%expect_test "Prefix-Op-Example" = (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id i) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (IfElse @@ -81,7 +81,7 @@ let%expect_test "read data" = (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta ))) |}] let%expect_test "read param" = @@ -103,7 +103,7 @@ let%expect_test "read param" = (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta ))) |}] let%expect_test "gen quant" = @@ -148,7 +148,7 @@ let%expect_test "gen quant" = (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -178,7 +178,7 @@ let%expect_test "read data - constraint " = (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -215,7 +215,7 @@ let%expect_test "read data - tuple" = (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (For (loopvar sym1__) diff --git a/test/unit/Dataflow_utils.ml b/test/unit/Dataflow_utils.ml index ae0022254..adce1eba6 100644 --- a/test/unit/Dataflow_utils.ml +++ b/test/unit/Dataflow_utils.ml @@ -180,7 +180,7 @@ let%expect_test "Statement label map example" = ((1 (Block (2))) (2 (Block (3 4 5))) (3 (Decl (decl_adtype AutoDiffable) (decl_id i) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (4 (Assignment ((LVariable i) ()) UInt ((pattern (Lit Int 0)) diff --git a/test/unit/Debug_data_generation_tests.ml b/test/unit/Debug_data_generation_tests.ml index cc0a5d590..d3ea01ad3 100644 --- a/test/unit/Debug_data_generation_tests.ml +++ b/test/unit/Debug_data_generation_tests.ml @@ -147,29 +147,29 @@ let%expect_test "whole program data generation check" = 0.43780890273186973 ], [ - 0.30070059205259525, 1.0, 0.45065011470838873, 0.40347551006498511, + 0.30070059205259525, 1.0, 0.45065011470838867, 0.40347551006498511, 0.7742535367378276 ], [ - 0.1780531358185751, 0.45065011470838873, 1.0000000000000002, - 0.47627710137758322, 0.69085242407984848 + 0.1780531358185751, 0.45065011470838867, 1.0000000000000002, + 0.47627710137758322, 0.69085242407984859 ], [ - 0.59291090874043639, 0.40347551006498511, 0.47627710137758322, 1.0, - 0.72199384900826991 + 0.59291090874043639, 0.40347551006498511, 0.47627710137758322, + 0.99999999999999989, 0.72199384900826991 ], [ - 0.43780890273186973, 0.7742535367378276, 0.69085242407984848, + 0.43780890273186973, 0.7742535367378276, 0.69085242407984859, 0.72199384900826991, 1.0 ] ], "e": [ [ - 3.5187841056791589, 3.0801270965354863, 2.6613103589944083, + 3.5187841056791589, 3.0801270965354859, 2.6613103589944083, 3.0708651420825221 ], [ - 3.0801270965354863, 4.1445739878716106, 1.7318254997563731, + 3.0801270965354859, 4.1445739878716106, 1.7318254997563731, 3.284008881887432 ], [ @@ -195,8 +195,8 @@ let%expect_test "whole program data generation check" = [ 0.8680809071847051, 0.49642274180518731, 0.0, 0.0 ], [ 0.84564151733440152, 0.45763410086289852, 0.27470248249292828, 0.0 ], [ - 0.797502080028714, 0.46262393314442579, 0.38391964675632256, - 0.050746760156257148 + 0.79750208002871426, 0.46262393314442585, 0.38391964675632262, + 0.050746760156257162 ] ], "h": [ diff --git a/test/unit/Optimize.ml b/test/unit/Optimize.ml index 11aa71b48..13aeafece 100644 --- a/test/unit/Optimize.ml +++ b/test/unit/Optimize.ml @@ -336,7 +336,7 @@ let%expect_test "list collapsing" = (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id inline_g_return_sym2__) - (decl_type (Sized SReal)) (initialize false))) + (decl_type (Sized SReal)) (initialize false) (assignment ()))) (meta )) ((pattern (Block @@ -434,8 +434,7 @@ let%expect_test "recursive functions" = log_prob { { int inline_fib_return_sym1__; - data int inline_fib_early_ret_check_sym2__; - inline_fib_early_ret_check_sym2__ = 0; + data int inline_fib_early_ret_check_sym2__ = 0; for(inline_fib_iterator_sym3__ in 1:1) { if((5 == 0)) ; else { @@ -911,8 +910,7 @@ let%expect_test "inline function multiple returns " = log_prob { { int inline_f_return_sym1__; - data int inline_f_early_ret_check_sym2__; - inline_f_early_ret_check_sym2__ = 0; + data int inline_f_early_ret_check_sym2__ = 0; for(inline_f_iterator_sym3__ in 1:1) { if(2) { FnPrint__("f"); @@ -3289,25 +3287,25 @@ let%expect_test "adlevel_optimization expressions" = {| (((pattern (Decl (decl_adtype AutoDiffable) (decl_id w) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SInt)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id y) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SReal)) - (initialize true))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id z_data) - (decl_type (Sized SReal)) (initialize true))) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) (meta )) ((pattern (IfElse From 92e240ff88c5d4ae1ae87dfe8b43d6dcc179a6a1 Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Thu, 18 Jul 2024 16:47:38 -0400 Subject: [PATCH 02/17] adds declassign for params --- src/stan_math_backend/Transform_Mir.ml | 16 +- test/integration/good/code-gen/cl.expected | 191 +- .../code-gen/complex_numbers/cpp.expected | 638 +- test/integration/good/code-gen/cpp.expected | 4503 +--- .../good/code-gen/expressions/cpp.expected | 112 +- test/integration/good/code-gen/lir.expected | 2151 +- .../good/code-gen/ode/cpp.expected | 158 +- .../good/code-gen/opencl/cpp.expected | 238 +- .../good/code-gen/profiling/cpp.expected | 78 +- .../profiling/transformed_mir.expected | 353 +- .../good/code-gen/transformed_mir.expected | 5935 ++--- .../good/compiler-optimizations/cpp.expected | 8845 ++----- .../compiler-optimizations/cppO0.expected | 2480 +- .../compiler-optimizations/cppO1.expected | 2567 +- .../mem_patterns/cpp.expected | 1321 +- .../mem_patterns/transformed_mir.expected | 6209 ++--- test/integration/good/tuples/cpp.expected | 1238 +- .../good/tuples/transformed_mir.expected | 21258 ++++++---------- 18 files changed, 17785 insertions(+), 40506 deletions(-) diff --git a/src/stan_math_backend/Transform_Mir.ml b/src/stan_math_backend/Transform_Mir.ml index d5e1b1019..20efdddd1 100644 --- a/src/stan_math_backend/Transform_Mir.ml +++ b/src/stan_math_backend/Transform_Mir.ml @@ -770,9 +770,21 @@ let add_reads vars mkread stmts = let var_names = String.Map.of_alist_exn vars in let add_read_to_decl (Stmt.Fixed.{pattern; _} as stmt) = match pattern with - | Decl {decl_id; _} when Map.mem var_names decl_id -> + | Decl {decl_id; decl_adtype; decl_type; initialize; _} + when Map.mem var_names decl_id -> ( let loc, out = Map.find_exn var_names decl_id in - stmt :: mkread (Stmt.Helpers.lvariable decl_id, loc, out) + let blah = mkread (Stmt.Helpers.lvariable decl_id, loc, out) in + match blah with + | [Stmt.Fixed.{pattern= Stmt.Fixed.Pattern.Assignment (_, _, e); _}] -> + [ { stmt with + pattern= + Stmt.Fixed.Pattern.Decl + { decl_id + ; decl_adtype + ; decl_type + ; initialize + ; assignment= Some e } } ] + | _ -> [stmt]) | _ -> [stmt] in List.concat_map ~f:add_read_to_decl stmts diff --git a/test/integration/good/code-gen/cl.expected b/test/integration/good/code-gen/cl.expected index b2cbd4a1d..fc8eb53a5 100644 --- a/test/integration/good/code-gen/cl.expected +++ b/test/integration/good/code-gen/cl.expected @@ -283,16 +283,12 @@ class optimize_glm_model final : public model_base_crtp { std::vector{}); k = std::numeric_limits::min(); current_statement__ = 176; - k = context__.vals_i("k")[(1 - 1)]; - current_statement__ = 176; stan::math::check_greater_or_equal(function__, "k", k, 1); current_statement__ = 177; context__.validate_dims("data initialization", "n", "int", std::vector{}); n = std::numeric_limits::min(); current_statement__ = 177; - n = context__.vals_i("n")[(1 - 1)]; - current_statement__ = 177; stan::math::check_greater_or_equal(function__, "n", n, 0); current_statement__ = 178; stan::math::validate_non_negative_index("X_d", "n", n); @@ -305,20 +301,6 @@ class optimize_glm_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&X_d) Eigen::Map>(X_d_data__.data(), n, k); - { - std::vector X_d_flat__; - current_statement__ = 180; - X_d_flat__ = context__.vals_r("X_d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= k; ++sym1__) { - for (int sym2__ = 1; sym2__ <= n; ++sym2__) { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 181; stan::math::validate_non_negative_index("X_d_a", "n", n); current_statement__ = 182; @@ -330,23 +312,6 @@ class optimize_glm_model final : public model_base_crtp { X_d_a = std::vector>(2, Eigen::Matrix::Constant(n, k, std::numeric_limits::quiet_NaN())); - { - std::vector X_d_a_flat__; - current_statement__ = 183; - X_d_a_flat__ = context__.vals_r("X_d_a"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= k; ++sym1__) { - for (int sym2__ = 1; sym2__ <= n; ++sym2__) { - for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { - stan::model::assign(X_d_a, X_d_a_flat__[(pos__ - 1)], - "assigning variable X_d_a", stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 184; stan::math::validate_non_negative_index("y_v_d", "n", n); current_statement__ = 185; @@ -356,17 +321,6 @@ class optimize_glm_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&y_v_d) Eigen::Map>(y_v_d_data__.data(), n); - { - std::vector y_v_d_flat__; - current_statement__ = 185; - y_v_d_flat__ = context__.vals_r("y_v_d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n; ++sym1__) { - stan::model::assign(y_v_d, y_v_d_flat__[(pos__ - 1)], - "assigning variable y_v_d", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 186; stan::math::validate_non_negative_index("X_rv_d", "n", n); current_statement__ = 187; @@ -376,45 +330,26 @@ class optimize_glm_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&X_rv_d) Eigen::Map>(X_rv_d_data__.data(), n); - { - std::vector X_rv_d_flat__; - current_statement__ = 187; - X_rv_d_flat__ = context__.vals_r("X_rv_d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n; ++sym1__) { - stan::model::assign(X_rv_d, X_rv_d_flat__[(pos__ - 1)], - "assigning variable X_rv_d", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 188; stan::math::validate_non_negative_index("y_vi_d", "n", n); current_statement__ = 189; context__.validate_dims("data initialization", "y_vi_d", "int", std::vector{static_cast(n)}); y_vi_d = std::vector(n, std::numeric_limits::min()); - current_statement__ = 189; - y_vi_d = context__.vals_i("y_vi_d"); current_statement__ = 190; stan::math::validate_non_negative_index("y2_vi_d", "n", n); current_statement__ = 191; context__.validate_dims("data initialization", "y2_vi_d", "int", std::vector{static_cast(n)}); y2_vi_d = std::vector(n, std::numeric_limits::min()); - current_statement__ = 191; - y2_vi_d = context__.vals_i("y2_vi_d"); current_statement__ = 192; context__.validate_dims("data initialization", "y_s_d", "int", std::vector{}); y_s_d = std::numeric_limits::min(); - current_statement__ = 192; - y_s_d = context__.vals_i("y_s_d")[(1 - 1)]; current_statement__ = 193; context__.validate_dims("data initialization", "y_r_d", "double", std::vector{}); y_r_d = std::numeric_limits::quiet_NaN(); - current_statement__ = 193; - y_r_d = context__.vals_r("y_r_d")[(1 - 1)]; current_statement__ = 194; k_td = std::numeric_limits::min(); current_statement__ = 195; @@ -517,40 +452,22 @@ class optimize_glm_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix alpha_v = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 1; - alpha_v = in__.template read>(k); + in__.template read>(k); Eigen::Matrix beta = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 2; - beta = in__.template read>(k); + in__.template read>(k); Eigen::Matrix cuts = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 3; - cuts = in__.template read>(k); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 4; - sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ alpha = DUMMY_VAR__; - current_statement__ = 5; - alpha = in__.template read(); - local_scalar_t__ phi = DUMMY_VAR__; - current_statement__ = 6; - phi = in__.template read(); + in__.template read>(k); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ alpha = in__.template read(); + local_scalar_t__ phi = in__.template read(); Eigen::Matrix X_p = - Eigen::Matrix::Constant(n, k, DUMMY_VAR__); - current_statement__ = 7; - X_p = in__.template read>(n, k); + in__.template read>(n, k); Eigen::Matrix beta_m = - Eigen::Matrix::Constant(n, k, DUMMY_VAR__); - current_statement__ = 8; - beta_m = in__.template read>(n, - k); + in__.template read>(n, k); Eigen::Matrix X_rv_p = - Eigen::Matrix::Constant(n, DUMMY_VAR__); - current_statement__ = 9; - X_rv_p = in__.template read>(n); + in__.template read>(n); { current_statement__ = 10; lp_accum__.add(stan::math::normal_id_glm_lpdf(y_v_d_opencl__, @@ -1234,40 +1151,22 @@ class optimize_glm_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix alpha_v = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 1; - alpha_v = in__.template read>(k); + in__.template read>(k); Eigen::Matrix beta = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 2; - beta = in__.template read>(k); + in__.template read>(k); Eigen::Matrix cuts = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 3; - cuts = in__.template read>(k); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 4; - sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ alpha = DUMMY_VAR__; - current_statement__ = 5; - alpha = in__.template read(); - local_scalar_t__ phi = DUMMY_VAR__; - current_statement__ = 6; - phi = in__.template read(); + in__.template read>(k); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ alpha = in__.template read(); + local_scalar_t__ phi = in__.template read(); Eigen::Matrix X_p = - Eigen::Matrix::Constant(n, k, DUMMY_VAR__); - current_statement__ = 7; - X_p = in__.template read>(n, k); + in__.template read>(n, k); Eigen::Matrix beta_m = - Eigen::Matrix::Constant(n, k, DUMMY_VAR__); - current_statement__ = 8; - beta_m = in__.template read>(n, - k); + in__.template read>(n, k); Eigen::Matrix X_rv_p = - Eigen::Matrix::Constant(n, DUMMY_VAR__); - current_statement__ = 9; - X_rv_p = in__.template read>(n); + in__.template read>(n); { current_statement__ = 10; lp_accum__.add(stan::math::normal_id_glm_lpdf(y_v_d_opencl__, @@ -1962,46 +1861,22 @@ class optimize_glm_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix alpha_v = - Eigen::Matrix::Constant(k, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - alpha_v = in__.template read>(k); + in__.template read>(k); Eigen::Matrix beta = - Eigen::Matrix::Constant(k, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - beta = in__.template read>(k); + in__.template read>(k); Eigen::Matrix cuts = - Eigen::Matrix::Constant(k, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - cuts = in__.template read>(k); - double sigma = std::numeric_limits::quiet_NaN(); - current_statement__ = 4; - sigma = in__.template read_constrain_lb(0, lp__); - double alpha = std::numeric_limits::quiet_NaN(); - current_statement__ = 5; - alpha = in__.template read(); - double phi = std::numeric_limits::quiet_NaN(); - current_statement__ = 6; - phi = in__.template read(); + in__.template read>(k); + double sigma = + in__.template read_constrain_lb(0, + lp__); + double alpha = in__.template read(); + double phi = in__.template read(); Eigen::Matrix X_p = - Eigen::Matrix::Constant(n, k, - std::numeric_limits::quiet_NaN()); - current_statement__ = 7; - X_p = in__.template read>(n, k); + in__.template read>(n, k); Eigen::Matrix beta_m = - Eigen::Matrix::Constant(n, k, - std::numeric_limits::quiet_NaN()); - current_statement__ = 8; - beta_m = in__.template read>(n, - k); + in__.template read>(n, k); Eigen::Matrix X_rv_p = - Eigen::Matrix::Constant(n, - std::numeric_limits::quiet_NaN()); - current_statement__ = 9; - X_rv_p = in__.template read>(n); + in__.template read>(n); out__.write(alpha_v); out__.write(beta); out__.write(cuts); diff --git a/test/integration/good/code-gen/complex_numbers/cpp.expected b/test/integration/good/code-gen/complex_numbers/cpp.expected index 4f092f441..223e76846 100644 --- a/test/integration/good/code-gen/complex_numbers/cpp.expected +++ b/test/integration/good/code-gen/complex_numbers/cpp.expected @@ -173,8 +173,6 @@ class basic_op_param_model final : public model_base_crtp context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); - current_statement__ = 125; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 126; stan::math::validate_non_negative_index("cmat", "N", N); current_statement__ = 127; @@ -241,42 +239,23 @@ class basic_op_param_model final : public model_base_crtp (void) function__; try { Eigen::Matrix,-1,-1> cmat = - Eigen::Matrix,-1,-1>::Constant(N, N, - std::complex(DUMMY_VAR__, DUMMY_VAR__)); - current_statement__ = 1; - cmat = in__.template read< - Eigen::Matrix,-1,-1>>(N, N); + in__.template read< + Eigen::Matrix,-1,-1>>(N, N); Eigen::Matrix,-1,1> cvec = - Eigen::Matrix,-1,1>::Constant(N, - std::complex(DUMMY_VAR__, DUMMY_VAR__)); - current_statement__ = 2; - cvec = in__.template read< - Eigen::Matrix,-1,1>>(N); + in__.template read< + Eigen::Matrix,-1,1>>(N); Eigen::Matrix,1,-1> crowvec = - Eigen::Matrix,1,-1>::Constant(N, - std::complex(DUMMY_VAR__, DUMMY_VAR__)); - current_statement__ = 3; - crowvec = in__.template read< - Eigen::Matrix,1,-1>>(N); + in__.template read< + Eigen::Matrix,1,-1>>(N); std::complex z = - std::complex(DUMMY_VAR__, DUMMY_VAR__); - current_statement__ = 4; - z = in__.template read>(); + in__.template read>(); Eigen::Matrix mat = - Eigen::Matrix::Constant(N, N, DUMMY_VAR__); - current_statement__ = 5; - mat = in__.template read>(N, N); + in__.template read>(N, N); Eigen::Matrix vec = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 6; - vec = in__.template read>(N); + in__.template read>(N); Eigen::Matrix rowvec = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 7; - rowvec = in__.template read>(N); - local_scalar_t__ r = DUMMY_VAR__; - current_statement__ = 8; - r = in__.template read(); + in__.template read>(N); + local_scalar_t__ r = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, std::complex(DUMMY_VAR__, DUMMY_VAR__)); @@ -782,42 +761,23 @@ class basic_op_param_model final : public model_base_crtp (void) function__; try { Eigen::Matrix,-1,-1> cmat = - Eigen::Matrix,-1,-1>::Constant(N, N, - std::complex(DUMMY_VAR__, DUMMY_VAR__)); - current_statement__ = 1; - cmat = in__.template read< - Eigen::Matrix,-1,-1>>(N, N); + in__.template read< + Eigen::Matrix,-1,-1>>(N, N); Eigen::Matrix,-1,1> cvec = - Eigen::Matrix,-1,1>::Constant(N, - std::complex(DUMMY_VAR__, DUMMY_VAR__)); - current_statement__ = 2; - cvec = in__.template read< - Eigen::Matrix,-1,1>>(N); + in__.template read< + Eigen::Matrix,-1,1>>(N); Eigen::Matrix,1,-1> crowvec = - Eigen::Matrix,1,-1>::Constant(N, - std::complex(DUMMY_VAR__, DUMMY_VAR__)); - current_statement__ = 3; - crowvec = in__.template read< - Eigen::Matrix,1,-1>>(N); + in__.template read< + Eigen::Matrix,1,-1>>(N); std::complex z = - std::complex(DUMMY_VAR__, DUMMY_VAR__); - current_statement__ = 4; - z = in__.template read>(); + in__.template read>(); Eigen::Matrix mat = - Eigen::Matrix::Constant(N, N, DUMMY_VAR__); - current_statement__ = 5; - mat = in__.template read>(N, N); + in__.template read>(N, N); Eigen::Matrix vec = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 6; - vec = in__.template read>(N); + in__.template read>(N); Eigen::Matrix rowvec = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 7; - rowvec = in__.template read>(N); - local_scalar_t__ r = DUMMY_VAR__; - current_statement__ = 8; - r = in__.template read(); + in__.template read>(N); + local_scalar_t__ r = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, std::complex(DUMMY_VAR__, DUMMY_VAR__)); @@ -1334,49 +1294,23 @@ class basic_op_param_model final : public model_base_crtp (void) function__; try { Eigen::Matrix,-1,-1> cmat = - Eigen::Matrix,-1,-1>::Constant(N, N, - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN())); - current_statement__ = 1; - cmat = in__.template read< - Eigen::Matrix,-1,-1>>(N, N); + in__.template read< + Eigen::Matrix,-1,-1>>(N, N); Eigen::Matrix,-1,1> cvec = - Eigen::Matrix,-1,1>::Constant(N, - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN())); - current_statement__ = 2; - cvec = in__.template read< - Eigen::Matrix,-1,1>>(N); + in__.template read< + Eigen::Matrix,-1,1>>(N); Eigen::Matrix,1,-1> crowvec = - Eigen::Matrix,1,-1>::Constant(N, - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN())); - current_statement__ = 3; - crowvec = in__.template read< - Eigen::Matrix,1,-1>>(N); + in__.template read< + Eigen::Matrix,1,-1>>(N); std::complex z = - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - z = in__.template read>(); + in__.template read>(); Eigen::Matrix mat = - Eigen::Matrix::Constant(N, N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - mat = in__.template read>(N, N); + in__.template read>(N, N); Eigen::Matrix vec = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 6; - vec = in__.template read>(N); + in__.template read>(N); Eigen::Matrix rowvec = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 7; - rowvec = in__.template read>(N); - double r = std::numeric_limits::quiet_NaN(); - current_statement__ = 8; - r = in__.template read(); + in__.template read>(N); + double r = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, std::complex(std::numeric_limits::quiet_NaN(), @@ -2615,8 +2549,6 @@ class basic_operations_model final : public model_base_crtp{}); N = std::numeric_limits::min(); - current_statement__ = 116; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 117; stan::math::validate_non_negative_index("cmat", "N", N); current_statement__ = 118; @@ -2632,20 +2564,6 @@ class basic_operations_model final : public model_base_crtp,-1,-1>>(cmat_data__.data(), N, N); - { - std::vector> cmat_flat__; - current_statement__ = 119; - cmat_flat__ = context__.vals_c("cmat"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(cmat, cmat_flat__[(pos__ - 1)], - "assigning variable cmat", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 120; stan::math::validate_non_negative_index("cvec", "N", N); current_statement__ = 121; @@ -2658,17 +2576,6 @@ class basic_operations_model final : public model_base_crtp,-1,1>>(cvec_data__.data(), N); - { - std::vector> cvec_flat__; - current_statement__ = 121; - cvec_flat__ = context__.vals_c("cvec"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(cvec, cvec_flat__[(pos__ - 1)], - "assigning variable cvec", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 122; stan::math::validate_non_negative_index("crowvec", "N", N); current_statement__ = 123; @@ -2681,24 +2588,11 @@ class basic_operations_model final : public model_base_crtp,1,-1>>(crowvec_data__.data(), N); - { - std::vector> crowvec_flat__; - current_statement__ = 123; - crowvec_flat__ = context__.vals_c("crowvec"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(crowvec, crowvec_flat__[(pos__ - 1)], - "assigning variable crowvec", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 124; context__.validate_dims("data initialization", "z", "double", std::vector{static_cast(2)}); z = std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()); - current_statement__ = 124; - z = context__.vals_c("z")[(1 - 1)]; current_statement__ = 125; stan::math::validate_non_negative_index("mat", "N", N); current_statement__ = 126; @@ -2710,20 +2604,6 @@ class basic_operations_model final : public model_base_crtp::quiet_NaN()); new (&mat) Eigen::Map>(mat_data__.data(), N, N); - { - std::vector mat_flat__; - current_statement__ = 127; - mat_flat__ = context__.vals_r("mat"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(mat, mat_flat__[(pos__ - 1)], - "assigning variable mat", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 128; stan::math::validate_non_negative_index("vec", "N", N); current_statement__ = 129; @@ -2732,17 +2612,6 @@ class basic_operations_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&vec) Eigen::Map>(vec_data__.data(), N); - { - std::vector vec_flat__; - current_statement__ = 129; - vec_flat__ = context__.vals_r("vec"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(vec, vec_flat__[(pos__ - 1)], - "assigning variable vec", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 130; stan::math::validate_non_negative_index("rowvec", "N", N); current_statement__ = 131; @@ -2752,23 +2621,10 @@ class basic_operations_model final : public model_base_crtp::quiet_NaN()); new (&rowvec) Eigen::Map>(rowvec_data__.data(), N); - { - std::vector rowvec_flat__; - current_statement__ = 131; - rowvec_flat__ = context__.vals_r("rowvec"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(rowvec, rowvec_flat__[(pos__ - 1)], - "assigning variable rowvec", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 132; context__.validate_dims("data initialization", "r", "double", std::vector{}); r = std::numeric_limits::quiet_NaN(); - current_statement__ = 132; - r = context__.vals_r("r")[(1 - 1)]; current_statement__ = 133; stan::math::validate_non_negative_index("gq_c_matrix", "N", N); current_statement__ = 134; @@ -3839,8 +3695,6 @@ class basic_ops_mix_model final : public model_base_crtp { context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); - current_statement__ = 146; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 147; stan::math::validate_non_negative_index("cmat", "N", N); current_statement__ = 148; @@ -3856,20 +3710,6 @@ class basic_ops_mix_model final : public model_base_crtp { new (&cmat) Eigen::Map,-1,-1>>(cmat_data__.data(), N, N); - { - std::vector> cmat_flat__; - current_statement__ = 149; - cmat_flat__ = context__.vals_c("cmat"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(cmat, cmat_flat__[(pos__ - 1)], - "assigning variable cmat", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 150; stan::math::validate_non_negative_index("cvec", "N", N); current_statement__ = 151; @@ -3882,17 +3722,6 @@ class basic_ops_mix_model final : public model_base_crtp { new (&cvec) Eigen::Map,-1,1>>(cvec_data__.data(), N); - { - std::vector> cvec_flat__; - current_statement__ = 151; - cvec_flat__ = context__.vals_c("cvec"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(cvec, cvec_flat__[(pos__ - 1)], - "assigning variable cvec", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 152; stan::math::validate_non_negative_index("crowvec", "N", N); current_statement__ = 153; @@ -3905,24 +3734,11 @@ class basic_ops_mix_model final : public model_base_crtp { new (&crowvec) Eigen::Map,1,-1>>(crowvec_data__.data(), N); - { - std::vector> crowvec_flat__; - current_statement__ = 153; - crowvec_flat__ = context__.vals_c("crowvec"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(crowvec, crowvec_flat__[(pos__ - 1)], - "assigning variable crowvec", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 154; context__.validate_dims("data initialization", "z", "double", std::vector{static_cast(2)}); z = std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()); - current_statement__ = 154; - z = context__.vals_c("z")[(1 - 1)]; current_statement__ = 155; stan::math::validate_non_negative_index("mat", "N", N); current_statement__ = 156; @@ -3934,20 +3750,6 @@ class basic_ops_mix_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&mat) Eigen::Map>(mat_data__.data(), N, N); - { - std::vector mat_flat__; - current_statement__ = 157; - mat_flat__ = context__.vals_r("mat"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(mat, mat_flat__[(pos__ - 1)], - "assigning variable mat", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 158; stan::math::validate_non_negative_index("vec", "N", N); current_statement__ = 159; @@ -3956,17 +3758,6 @@ class basic_ops_mix_model final : public model_base_crtp { vec_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&vec) Eigen::Map>(vec_data__.data(), N); - { - std::vector vec_flat__; - current_statement__ = 159; - vec_flat__ = context__.vals_r("vec"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(vec, vec_flat__[(pos__ - 1)], - "assigning variable vec", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 160; stan::math::validate_non_negative_index("rowvec", "N", N); current_statement__ = 161; @@ -3976,23 +3767,10 @@ class basic_ops_mix_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&rowvec) Eigen::Map>(rowvec_data__.data(), N); - { - std::vector rowvec_flat__; - current_statement__ = 161; - rowvec_flat__ = context__.vals_r("rowvec"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(rowvec, rowvec_flat__[(pos__ - 1)], - "assigning variable rowvec", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 162; context__.validate_dims("data initialization", "r", "double", std::vector{}); r = std::numeric_limits::quiet_NaN(); - current_statement__ = 162; - r = context__.vals_r("r")[(1 - 1)]; current_statement__ = 163; stan::math::validate_non_negative_index("cvmat", "N", N); current_statement__ = 164; @@ -4059,42 +3837,23 @@ class basic_ops_mix_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix,-1,-1> cvmat = - Eigen::Matrix,-1,-1>::Constant(N, N, - std::complex(DUMMY_VAR__, DUMMY_VAR__)); - current_statement__ = 1; - cvmat = in__.template read< - Eigen::Matrix,-1,-1>>(N, N); + in__.template read< + Eigen::Matrix,-1,-1>>(N, N); Eigen::Matrix,-1,1> cvvec = - Eigen::Matrix,-1,1>::Constant(N, - std::complex(DUMMY_VAR__, DUMMY_VAR__)); - current_statement__ = 2; - cvvec = in__.template read< - Eigen::Matrix,-1,1>>(N); + in__.template read< + Eigen::Matrix,-1,1>>(N); Eigen::Matrix,1,-1> cvrowvec = - Eigen::Matrix,1,-1>::Constant(N, - std::complex(DUMMY_VAR__, DUMMY_VAR__)); - current_statement__ = 3; - cvrowvec = in__.template read< - Eigen::Matrix,1,-1>>(N); + in__.template read< + Eigen::Matrix,1,-1>>(N); std::complex zv = - std::complex(DUMMY_VAR__, DUMMY_VAR__); - current_statement__ = 4; - zv = in__.template read>(); + in__.template read>(); Eigen::Matrix vmat = - Eigen::Matrix::Constant(N, N, DUMMY_VAR__); - current_statement__ = 5; - vmat = in__.template read>(N, N); + in__.template read>(N, N); Eigen::Matrix vvec = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 6; - vvec = in__.template read>(N); + in__.template read>(N); Eigen::Matrix vrowvec = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 7; - vrowvec = in__.template read>(N); - local_scalar_t__ v = DUMMY_VAR__; - current_statement__ = 8; - v = in__.template read(); + in__.template read>(N); + local_scalar_t__ v = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, std::complex(DUMMY_VAR__, DUMMY_VAR__)); @@ -4688,42 +4447,23 @@ class basic_ops_mix_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix,-1,-1> cvmat = - Eigen::Matrix,-1,-1>::Constant(N, N, - std::complex(DUMMY_VAR__, DUMMY_VAR__)); - current_statement__ = 1; - cvmat = in__.template read< - Eigen::Matrix,-1,-1>>(N, N); + in__.template read< + Eigen::Matrix,-1,-1>>(N, N); Eigen::Matrix,-1,1> cvvec = - Eigen::Matrix,-1,1>::Constant(N, - std::complex(DUMMY_VAR__, DUMMY_VAR__)); - current_statement__ = 2; - cvvec = in__.template read< - Eigen::Matrix,-1,1>>(N); + in__.template read< + Eigen::Matrix,-1,1>>(N); Eigen::Matrix,1,-1> cvrowvec = - Eigen::Matrix,1,-1>::Constant(N, - std::complex(DUMMY_VAR__, DUMMY_VAR__)); - current_statement__ = 3; - cvrowvec = in__.template read< - Eigen::Matrix,1,-1>>(N); + in__.template read< + Eigen::Matrix,1,-1>>(N); std::complex zv = - std::complex(DUMMY_VAR__, DUMMY_VAR__); - current_statement__ = 4; - zv = in__.template read>(); + in__.template read>(); Eigen::Matrix vmat = - Eigen::Matrix::Constant(N, N, DUMMY_VAR__); - current_statement__ = 5; - vmat = in__.template read>(N, N); + in__.template read>(N, N); Eigen::Matrix vvec = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 6; - vvec = in__.template read>(N); + in__.template read>(N); Eigen::Matrix vrowvec = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 7; - vrowvec = in__.template read>(N); - local_scalar_t__ v = DUMMY_VAR__; - current_statement__ = 8; - v = in__.template read(); + in__.template read>(N); + local_scalar_t__ v = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, std::complex(DUMMY_VAR__, DUMMY_VAR__)); @@ -5328,49 +5068,23 @@ class basic_ops_mix_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix,-1,-1> cvmat = - Eigen::Matrix,-1,-1>::Constant(N, N, - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN())); - current_statement__ = 1; - cvmat = in__.template read< - Eigen::Matrix,-1,-1>>(N, N); + in__.template read< + Eigen::Matrix,-1,-1>>(N, N); Eigen::Matrix,-1,1> cvvec = - Eigen::Matrix,-1,1>::Constant(N, - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN())); - current_statement__ = 2; - cvvec = in__.template read< - Eigen::Matrix,-1,1>>(N); + in__.template read< + Eigen::Matrix,-1,1>>(N); Eigen::Matrix,1,-1> cvrowvec = - Eigen::Matrix,1,-1>::Constant(N, - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN())); - current_statement__ = 3; - cvrowvec = in__.template read< - Eigen::Matrix,1,-1>>(N); + in__.template read< + Eigen::Matrix,1,-1>>(N); std::complex zv = - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - zv = in__.template read>(); + in__.template read>(); Eigen::Matrix vmat = - Eigen::Matrix::Constant(N, N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - vmat = in__.template read>(N, N); + in__.template read>(N, N); Eigen::Matrix vvec = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 6; - vvec = in__.template read>(N); + in__.template read>(N); Eigen::Matrix vrowvec = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 7; - vrowvec = in__.template read>(N); - double v = std::numeric_limits::quiet_NaN(); - current_statement__ = 8; - v = in__.template read(); + in__.template read>(N); + double v = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, std::complex(std::numeric_limits::quiet_NaN(), @@ -6584,15 +6298,11 @@ class complex_data_model final : public model_base_crtp { context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); - current_statement__ = 1; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 2; context__.validate_dims("data initialization", "z", "double", std::vector{static_cast(2)}); z = std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - z = context__.vals_c("z")[(1 - 1)]; current_statement__ = 3; stan::math::validate_non_negative_index("z1", "N", N); current_statement__ = 4; @@ -6605,17 +6315,6 @@ class complex_data_model final : public model_base_crtp { new (&z1) Eigen::Map,-1,1>>(z1_data__.data(), N); - { - std::vector> z1_flat__; - current_statement__ = 4; - z1_flat__ = context__.vals_c("z1"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(z1, z1_flat__[(pos__ - 1)], - "assigning variable z1", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 5; stan::math::validate_non_negative_index("z2", "N", N); current_statement__ = 6; @@ -6628,17 +6327,6 @@ class complex_data_model final : public model_base_crtp { new (&z2) Eigen::Map,1,-1>>(z2_data__.data(), N); - { - std::vector> z2_flat__; - current_statement__ = 6; - z2_flat__ = context__.vals_c("z2"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(z2, z2_flat__[(pos__ - 1)], - "assigning variable z2", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 7; stan::math::validate_non_negative_index("z3", "N", N); current_statement__ = 8; @@ -6654,26 +6342,10 @@ class complex_data_model final : public model_base_crtp { new (&z3) Eigen::Map,-1,-1>>(z3_data__.data(), N, N); - { - std::vector> z3_flat__; - current_statement__ = 9; - z3_flat__ = context__.vals_c("z3"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(z3, z3_flat__[(pos__ - 1)], - "assigning variable z3", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 10; context__.validate_dims("data initialization", "M", "int", std::vector{}); M = std::numeric_limits::min(); - current_statement__ = 10; - M = context__.vals_i("M")[(1 - 1)]; current_statement__ = 11; stan::math::validate_non_negative_index("z4", "M", M); current_statement__ = 12; @@ -6682,17 +6354,6 @@ class complex_data_model final : public model_base_crtp { z4 = std::vector>(M, std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN())); - { - std::vector> z4_flat__; - current_statement__ = 12; - z4_flat__ = context__.vals_c("z4"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= M; ++sym1__) { - stan::model::assign(z4, z4_flat__[(pos__ - 1)], - "assigning variable z4", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 13; stan::math::validate_non_negative_index("z5", "M", M); current_statement__ = 14; @@ -6705,20 +6366,6 @@ class complex_data_model final : public model_base_crtp { Eigen::Matrix,-1,1>::Constant(N, std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()))); - { - std::vector> z5_flat__; - current_statement__ = 15; - z5_flat__ = context__.vals_c("z5"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= M; ++sym2__) { - stan::model::assign(z5, z5_flat__[(pos__ - 1)], - "assigning variable z5", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 16; stan::math::validate_non_negative_index("z6", "M", M); current_statement__ = 17; @@ -6731,20 +6378,6 @@ class complex_data_model final : public model_base_crtp { Eigen::Matrix,1,-1>::Constant(N, std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()))); - { - std::vector> z6_flat__; - current_statement__ = 18; - z6_flat__ = context__.vals_c("z6"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= M; ++sym2__) { - stan::model::assign(z6, z6_flat__[(pos__ - 1)], - "assigning variable z6", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 19; stan::math::validate_non_negative_index("z7", "M", M); current_statement__ = 20; @@ -6759,23 +6392,6 @@ class complex_data_model final : public model_base_crtp { Eigen::Matrix,-1,-1>::Constant(N, N, std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()))); - { - std::vector> z7_flat__; - current_statement__ = 22; - z7_flat__ = context__.vals_c("z7"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - for (int sym3__ = 1; sym3__ <= M; ++sym3__) { - stan::model::assign(z7, z7_flat__[(pos__ - 1)], - "assigning variable z7", stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 23; stan::math::validate_non_negative_index("z8", "N", N); current_statement__ = 24; @@ -6791,20 +6407,6 @@ class complex_data_model final : public model_base_crtp { new (&z8) Eigen::Map,-1,-1>>(z8_data__.data(), N, M); - { - std::vector> z8_flat__; - current_statement__ = 25; - z8_flat__ = context__.vals_c("z8"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= M; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(z8, z8_flat__[(pos__ - 1)], - "assigning variable z8", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -7935,21 +7537,15 @@ class complex_scalar_model final : public model_base_crtp context__.validate_dims("data initialization", "d_i", "int", std::vector{}); d_i = std::numeric_limits::min(); - current_statement__ = 345; - d_i = context__.vals_i("d_i")[(1 - 1)]; current_statement__ = 346; context__.validate_dims("data initialization", "d_r", "double", std::vector{}); d_r = std::numeric_limits::quiet_NaN(); - current_statement__ = 346; - d_r = context__.vals_r("d_r")[(1 - 1)]; current_statement__ = 347; context__.validate_dims("data initialization", "d_complex", "double", std::vector{static_cast(2)}); d_complex = std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()); - current_statement__ = 347; - d_complex = context__.vals_c("d_complex")[(1 - 1)]; current_statement__ = 348; context__.validate_dims("data initialization", "d_complex_array", "double", @@ -7958,18 +7554,6 @@ class complex_scalar_model final : public model_base_crtp std::complex(std::numeric_limits::quiet_NaN( ), std::numeric_limits::quiet_NaN())); - { - std::vector> d_complex_array_flat__; - current_statement__ = 348; - d_complex_array_flat__ = context__.vals_c("d_complex_array"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - stan::model::assign(d_complex_array, d_complex_array_flat__[(pos__ - - 1)], "assigning variable d_complex_array", - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 349; context__.validate_dims("data initialization", "d_complex_array_2d", "double", @@ -7980,21 +7564,6 @@ class complex_scalar_model final : public model_base_crtp std::complex(std::numeric_limits::quiet_NaN( ), std::numeric_limits::quiet_NaN()))); - { - std::vector> d_complex_array_2d_flat__; - current_statement__ = 349; - d_complex_array_2d_flat__ = context__.vals_c("d_complex_array_2d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { - stan::model::assign(d_complex_array_2d, - d_complex_array_2d_flat__[(pos__ - 1)], - "assigning variable d_complex_array_2d", - stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 350; td_i = std::numeric_limits::min(); current_statement__ = 350; @@ -8208,29 +7777,15 @@ class complex_scalar_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ p_r = DUMMY_VAR__; - current_statement__ = 1; - p_r = in__.template read(); + local_scalar_t__ p_r = in__.template read(); std::complex p_complex = - std::complex(DUMMY_VAR__, DUMMY_VAR__); - current_statement__ = 2; - p_complex = in__.template read>(); + in__.template read>(); std::vector> p_complex_array = - std::vector>(2, - std::complex(DUMMY_VAR__, DUMMY_VAR__)); - current_statement__ = 3; - p_complex_array = in__.template read< - std::vector>>(2); + in__.template read>>(2); std::vector>> p_complex_array_2d = - std::vector>>(2, - std::vector>(3, - std::complex(DUMMY_VAR__, DUMMY_VAR__))); - current_statement__ = 4; - p_complex_array_2d = in__.template read< - std::vector< - std::vector>>>(2, - 3); + in__.template read< + std::vector>>>(2, 3); local_scalar_t__ tp_r = DUMMY_VAR__; current_statement__ = 5; tp_r = 1.1; @@ -8469,29 +8024,15 @@ class complex_scalar_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ p_r = DUMMY_VAR__; - current_statement__ = 1; - p_r = in__.template read(); + local_scalar_t__ p_r = in__.template read(); std::complex p_complex = - std::complex(DUMMY_VAR__, DUMMY_VAR__); - current_statement__ = 2; - p_complex = in__.template read>(); + in__.template read>(); std::vector> p_complex_array = - std::vector>(2, - std::complex(DUMMY_VAR__, DUMMY_VAR__)); - current_statement__ = 3; - p_complex_array = in__.template read< - std::vector>>(2); + in__.template read>>(2); std::vector>> p_complex_array_2d = - std::vector>>(2, - std::vector>(3, - std::complex(DUMMY_VAR__, DUMMY_VAR__))); - current_statement__ = 4; - p_complex_array_2d = in__.template read< - std::vector< - std::vector>>>(2, - 3); + in__.template read< + std::vector>>>(2, 3); local_scalar_t__ tp_r = DUMMY_VAR__; current_statement__ = 5; tp_r = 1.1; @@ -8741,31 +8282,14 @@ class complex_scalar_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double p_r = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - p_r = in__.template read(); + double p_r = in__.template read(); std::complex p_complex = - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - p_complex = in__.template read>(); + in__.template read>(); std::vector> p_complex_array = - std::vector>(2, - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN())); - current_statement__ = 3; - p_complex_array = in__.template read< - std::vector>>(2); + in__.template read>>(2); std::vector>> p_complex_array_2d = - std::vector>>(2, - std::vector>(3, - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN()))); - current_statement__ = 4; - p_complex_array_2d = in__.template read< - std::vector< - std::vector>>>(2, - 3); + in__.template read< + std::vector>>>(2, 3); double tp_r = std::numeric_limits::quiet_NaN(); std::complex tp_complex = std::complex(std::numeric_limits::quiet_NaN(), diff --git a/test/integration/good/code-gen/cpp.expected b/test/integration/good/code-gen/cpp.expected index d2f1d5f2a..d105e15c4 100644 --- a/test/integration/good/code-gen/cpp.expected +++ b/test/integration/good/code-gen/cpp.expected @@ -52,8 +52,6 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> std::vector{}); J = std::numeric_limits::min(); current_statement__ = 9; - J = context__.vals_i("J")[(1 - 1)]; - current_statement__ = 9; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 10; stan::math::validate_non_negative_index("y", "J", J); @@ -61,8 +59,6 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> context__.validate_dims("data initialization", "y", "double", std::vector{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); - current_statement__ = 11; - y = context__.vals_r("y"); current_statement__ = 12; stan::math::validate_non_negative_index("sigma", "J", J); current_statement__ = 13; @@ -71,8 +67,6 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> sigma = std::vector(J, std::numeric_limits::quiet_NaN()); current_statement__ = 13; - sigma = context__.vals_r("sigma"); - current_statement__ = 13; stan::math::check_greater_or_equal(function__, "sigma", sigma, 0); current_statement__ = 14; stan::math::validate_non_negative_index("theta_tilde", "J", J); @@ -114,18 +108,12 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> // suppress unused var warning (void) function__; try { - local_scalar_t__ mu = DUMMY_VAR__; - current_statement__ = 1; - mu = in__.template read(); - local_scalar_t__ tau = DUMMY_VAR__; - current_statement__ = 2; - tau = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ mu = in__.template read(); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix theta_tilde = - Eigen::Matrix::Constant(J, DUMMY_VAR__); - current_statement__ = 3; - theta_tilde = in__.template read< - Eigen::Matrix>(J); + in__.template read>(J); Eigen::Matrix theta = Eigen::Matrix::Constant(J, DUMMY_VAR__); current_statement__ = 4; @@ -172,18 +160,12 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> // suppress unused var warning (void) function__; try { - local_scalar_t__ mu = DUMMY_VAR__; - current_statement__ = 1; - mu = in__.template read(); - local_scalar_t__ tau = DUMMY_VAR__; - current_statement__ = 2; - tau = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ mu = in__.template read(); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix theta_tilde = - Eigen::Matrix::Constant(J, DUMMY_VAR__); - current_statement__ = 3; - theta_tilde = in__.template read< - Eigen::Matrix>(J); + in__.template read>(J); Eigen::Matrix theta = Eigen::Matrix::Constant(J, DUMMY_VAR__); current_statement__ = 4; @@ -241,19 +223,12 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> // suppress unused var warning (void) function__; try { - double mu = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - mu = in__.template read(); - double tau = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - tau = in__.template read_constrain_lb(0, - lp__); + double mu = in__.template read(); + double tau = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix theta_tilde = - Eigen::Matrix::Constant(J, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - theta_tilde = in__.template read< - Eigen::Matrix>(J); + in__.template read>(J); Eigen::Matrix theta = Eigen::Matrix::Constant(J, std::numeric_limits::quiet_NaN()); @@ -567,8 +542,6 @@ class _8start_with_number_model final : public model_base_crtp<_8start_with_numb context__.validate_dims("data initialization", "good_model", "int", std::vector{}); good_model = std::numeric_limits::min(); - current_statement__ = 2; - good_model = context__.vals_i("good_model")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -605,9 +578,7 @@ class _8start_with_number_model final : public model_base_crtp<_8start_with_numb // suppress unused var warning (void) function__; try { - local_scalar_t__ bar = DUMMY_VAR__; - current_statement__ = 1; - bar = in__.template read(); + local_scalar_t__ bar = in__.template read(); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -638,9 +609,7 @@ class _8start_with_number_model final : public model_base_crtp<_8start_with_numb // suppress unused var warning (void) function__; try { - local_scalar_t__ bar = DUMMY_VAR__; - current_statement__ = 1; - bar = in__.template read(); + local_scalar_t__ bar = in__.template read(); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -682,9 +651,7 @@ class _8start_with_number_model final : public model_base_crtp<_8start_with_numb // suppress unused var warning (void) function__; try { - double bar = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - bar = in__.template read(); + double bar = in__.template read(); out__.write(bar); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -1413,9 +1380,7 @@ class container_promotion_model final : public model_base_crtp(); + local_scalar_t__ y = in__.template read(); Eigen::Matrix V = Eigen::Matrix::Constant(2, DUMMY_VAR__); current_statement__ = 8; @@ -1515,9 +1480,7 @@ class container_promotion_model final : public model_base_crtp(); + local_scalar_t__ y = in__.template read(); Eigen::Matrix V = Eigen::Matrix::Constant(2, DUMMY_VAR__); current_statement__ = 8; @@ -1628,9 +1591,7 @@ class container_promotion_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - y = in__.template read(); + double y = in__.template read(); Eigen::Matrix V = Eigen::Matrix::Constant(2, std::numeric_limits::quiet_NaN()); @@ -2387,74 +2348,50 @@ class cpp_reserved_words_model final : public model_base_crtp{}); _stan_class = std::numeric_limits::quiet_NaN(); - current_statement__ = 64; - _stan_class = context__.vals_r("class")[(1 - 1)]; current_statement__ = 65; context__.validate_dims("data initialization", "compl", "double", std::vector{}); _stan_compl = std::numeric_limits::quiet_NaN(); - current_statement__ = 65; - _stan_compl = context__.vals_r("compl")[(1 - 1)]; current_statement__ = 66; context__.validate_dims("data initialization", "const", "double", std::vector{}); _stan_const = std::numeric_limits::quiet_NaN(); - current_statement__ = 66; - _stan_const = context__.vals_r("const")[(1 - 1)]; current_statement__ = 67; context__.validate_dims("data initialization", "constexpr", "double", std::vector{}); _stan_constexpr = std::numeric_limits::quiet_NaN(); - current_statement__ = 67; - _stan_constexpr = context__.vals_r("constexpr")[(1 - 1)]; current_statement__ = 68; context__.validate_dims("data initialization", "const_cast", "double", std::vector{}); _stan_const_cast = std::numeric_limits::quiet_NaN(); - current_statement__ = 68; - _stan_const_cast = context__.vals_r("const_cast")[(1 - 1)]; current_statement__ = 69; context__.validate_dims("data initialization", "decltype", "double", std::vector{}); _stan_decltype = std::numeric_limits::quiet_NaN(); - current_statement__ = 69; - _stan_decltype = context__.vals_r("decltype")[(1 - 1)]; current_statement__ = 70; context__.validate_dims("data initialization", "default", "double", std::vector{}); _stan_default = std::numeric_limits::quiet_NaN(); - current_statement__ = 70; - _stan_default = context__.vals_r("default")[(1 - 1)]; current_statement__ = 71; context__.validate_dims("data initialization", "delete", "double", std::vector{}); _stan_delete = std::numeric_limits::quiet_NaN(); - current_statement__ = 71; - _stan_delete = context__.vals_r("delete")[(1 - 1)]; current_statement__ = 72; context__.validate_dims("data initialization", "do", "double", std::vector{}); _stan_do = std::numeric_limits::quiet_NaN(); - current_statement__ = 72; - _stan_do = context__.vals_r("do")[(1 - 1)]; current_statement__ = 73; context__.validate_dims("data initialization", "double", "double", std::vector{}); _stan_double = std::numeric_limits::quiet_NaN(); - current_statement__ = 73; - _stan_double = context__.vals_r("double")[(1 - 1)]; current_statement__ = 74; context__.validate_dims("data initialization", "dynamic_cast", "double", std::vector{}); _stan_dynamic_cast = std::numeric_limits::quiet_NaN(); - current_statement__ = 74; - _stan_dynamic_cast = context__.vals_r("dynamic_cast")[(1 - 1)]; current_statement__ = 75; context__.validate_dims("data initialization", "enum", "double", std::vector{}); _stan_enum = std::numeric_limits::quiet_NaN(); - current_statement__ = 75; - _stan_enum = context__.vals_r("enum")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -2492,51 +2429,25 @@ class cpp_reserved_words_model final : public model_base_crtp(); - local_scalar_t__ _stan_float = DUMMY_VAR__; - current_statement__ = 2; - _stan_float = in__.template read(); - local_scalar_t__ _stan_friend = DUMMY_VAR__; - current_statement__ = 3; - _stan_friend = in__.template read(); - local_scalar_t__ _stan_goto = DUMMY_VAR__; - current_statement__ = 4; - _stan_goto = in__.template read(); - local_scalar_t__ _stan_inline = DUMMY_VAR__; - current_statement__ = 5; - _stan_inline = in__.template read(); - local_scalar_t__ _stan_long = DUMMY_VAR__; - current_statement__ = 6; - _stan_long = in__.template read(); - local_scalar_t__ _stan_mutable = DUMMY_VAR__; - current_statement__ = 7; - _stan_mutable = in__.template read(); - local_scalar_t__ _stan_namespace = DUMMY_VAR__; - current_statement__ = 8; - _stan_namespace = in__.template read(); - local_scalar_t__ _stan_new = DUMMY_VAR__; - current_statement__ = 9; - _stan_new = in__.template read(); - local_scalar_t__ _stan_noexcept = DUMMY_VAR__; - current_statement__ = 10; - _stan_noexcept = in__.template read(); - local_scalar_t__ _stan_not = DUMMY_VAR__; - current_statement__ = 11; - _stan_not = in__.template read(); - local_scalar_t__ _stan_not_eq = DUMMY_VAR__; - current_statement__ = 12; - _stan_not_eq = in__.template read(); - local_scalar_t__ _stan_nullptr = DUMMY_VAR__; - current_statement__ = 13; - _stan_nullptr = in__.template read(); - local_scalar_t__ _stan_operator = DUMMY_VAR__; - current_statement__ = 14; - _stan_operator = in__.template read(); - local_scalar_t__ _stan_or = DUMMY_VAR__; - current_statement__ = 15; - _stan_or = in__.template read(); + local_scalar_t__ _stan_explicit = + in__.template read(); + local_scalar_t__ _stan_float = in__.template read(); + local_scalar_t__ _stan_friend = in__.template read(); + local_scalar_t__ _stan_goto = in__.template read(); + local_scalar_t__ _stan_inline = in__.template read(); + local_scalar_t__ _stan_long = in__.template read(); + local_scalar_t__ _stan_mutable = in__.template read(); + local_scalar_t__ _stan_namespace = + in__.template read(); + local_scalar_t__ _stan_new = in__.template read(); + local_scalar_t__ _stan_noexcept = + in__.template read(); + local_scalar_t__ _stan_not = in__.template read(); + local_scalar_t__ _stan_not_eq = in__.template read(); + local_scalar_t__ _stan_nullptr = in__.template read(); + local_scalar_t__ _stan_operator = + in__.template read(); + local_scalar_t__ _stan_or = in__.template read(); { local_scalar_t__ _stan_or_eq = DUMMY_VAR__; local_scalar_t__ _stan_private = DUMMY_VAR__; @@ -2584,51 +2495,25 @@ class cpp_reserved_words_model final : public model_base_crtp(); - local_scalar_t__ _stan_float = DUMMY_VAR__; - current_statement__ = 2; - _stan_float = in__.template read(); - local_scalar_t__ _stan_friend = DUMMY_VAR__; - current_statement__ = 3; - _stan_friend = in__.template read(); - local_scalar_t__ _stan_goto = DUMMY_VAR__; - current_statement__ = 4; - _stan_goto = in__.template read(); - local_scalar_t__ _stan_inline = DUMMY_VAR__; - current_statement__ = 5; - _stan_inline = in__.template read(); - local_scalar_t__ _stan_long = DUMMY_VAR__; - current_statement__ = 6; - _stan_long = in__.template read(); - local_scalar_t__ _stan_mutable = DUMMY_VAR__; - current_statement__ = 7; - _stan_mutable = in__.template read(); - local_scalar_t__ _stan_namespace = DUMMY_VAR__; - current_statement__ = 8; - _stan_namespace = in__.template read(); - local_scalar_t__ _stan_new = DUMMY_VAR__; - current_statement__ = 9; - _stan_new = in__.template read(); - local_scalar_t__ _stan_noexcept = DUMMY_VAR__; - current_statement__ = 10; - _stan_noexcept = in__.template read(); - local_scalar_t__ _stan_not = DUMMY_VAR__; - current_statement__ = 11; - _stan_not = in__.template read(); - local_scalar_t__ _stan_not_eq = DUMMY_VAR__; - current_statement__ = 12; - _stan_not_eq = in__.template read(); - local_scalar_t__ _stan_nullptr = DUMMY_VAR__; - current_statement__ = 13; - _stan_nullptr = in__.template read(); - local_scalar_t__ _stan_operator = DUMMY_VAR__; - current_statement__ = 14; - _stan_operator = in__.template read(); - local_scalar_t__ _stan_or = DUMMY_VAR__; - current_statement__ = 15; - _stan_or = in__.template read(); + local_scalar_t__ _stan_explicit = + in__.template read(); + local_scalar_t__ _stan_float = in__.template read(); + local_scalar_t__ _stan_friend = in__.template read(); + local_scalar_t__ _stan_goto = in__.template read(); + local_scalar_t__ _stan_inline = in__.template read(); + local_scalar_t__ _stan_long = in__.template read(); + local_scalar_t__ _stan_mutable = in__.template read(); + local_scalar_t__ _stan_namespace = + in__.template read(); + local_scalar_t__ _stan_new = in__.template read(); + local_scalar_t__ _stan_noexcept = + in__.template read(); + local_scalar_t__ _stan_not = in__.template read(); + local_scalar_t__ _stan_not_eq = in__.template read(); + local_scalar_t__ _stan_nullptr = in__.template read(); + local_scalar_t__ _stan_operator = + in__.template read(); + local_scalar_t__ _stan_or = in__.template read(); { local_scalar_t__ _stan_or_eq = DUMMY_VAR__; local_scalar_t__ _stan_private = DUMMY_VAR__; @@ -2687,51 +2572,21 @@ class cpp_reserved_words_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - _stan_explicit = in__.template read(); - double _stan_float = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - _stan_float = in__.template read(); - double _stan_friend = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - _stan_friend = in__.template read(); - double _stan_goto = std::numeric_limits::quiet_NaN(); - current_statement__ = 4; - _stan_goto = in__.template read(); - double _stan_inline = std::numeric_limits::quiet_NaN(); - current_statement__ = 5; - _stan_inline = in__.template read(); - double _stan_long = std::numeric_limits::quiet_NaN(); - current_statement__ = 6; - _stan_long = in__.template read(); - double _stan_mutable = std::numeric_limits::quiet_NaN(); - current_statement__ = 7; - _stan_mutable = in__.template read(); - double _stan_namespace = std::numeric_limits::quiet_NaN(); - current_statement__ = 8; - _stan_namespace = in__.template read(); - double _stan_new = std::numeric_limits::quiet_NaN(); - current_statement__ = 9; - _stan_new = in__.template read(); - double _stan_noexcept = std::numeric_limits::quiet_NaN(); - current_statement__ = 10; - _stan_noexcept = in__.template read(); - double _stan_not = std::numeric_limits::quiet_NaN(); - current_statement__ = 11; - _stan_not = in__.template read(); - double _stan_not_eq = std::numeric_limits::quiet_NaN(); - current_statement__ = 12; - _stan_not_eq = in__.template read(); - double _stan_nullptr = std::numeric_limits::quiet_NaN(); - current_statement__ = 13; - _stan_nullptr = in__.template read(); - double _stan_operator = std::numeric_limits::quiet_NaN(); - current_statement__ = 14; - _stan_operator = in__.template read(); - double _stan_or = std::numeric_limits::quiet_NaN(); - current_statement__ = 15; - _stan_or = in__.template read(); + double _stan_explicit = in__.template read(); + double _stan_float = in__.template read(); + double _stan_friend = in__.template read(); + double _stan_goto = in__.template read(); + double _stan_inline = in__.template read(); + double _stan_long = in__.template read(); + double _stan_mutable = in__.template read(); + double _stan_namespace = in__.template read(); + double _stan_new = in__.template read(); + double _stan_noexcept = in__.template read(); + double _stan_not = in__.template read(); + double _stan_not_eq = in__.template read(); + double _stan_nullptr = in__.template read(); + double _stan_operator = in__.template read(); + double _stan_or = in__.template read(); out__.write(_stan_explicit); out__.write(_stan_float); out__.write(_stan_friend); @@ -3554,8 +3409,6 @@ class data_only_functions_model final : public model_base_crtp{}); N = std::numeric_limits::min(); - current_statement__ = 8; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 9; stan::math::validate_non_negative_index("d", "N", N); current_statement__ = 10; @@ -3566,20 +3419,6 @@ class data_only_functions_model final : public model_base_crtp::Constant(N, N, std::numeric_limits::quiet_NaN()); new (&d) Eigen::Map>(d_data__.data(), N, N); - { - std::vector d_flat__; - current_statement__ = 11; - d_flat__ = context__.vals_r("d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(d, d_flat__[(pos__ - 1)], - "assigning variable d", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 12; stan::math::validate_non_negative_index("p", "N", N); current_statement__ = 13; @@ -3621,9 +3460,7 @@ class data_only_functions_model final : public model_base_crtp p = - Eigen::Matrix::Constant(N, N, DUMMY_VAR__); - current_statement__ = 1; - p = in__.template read>(N, N); + in__.template read>(N, N); { current_statement__ = 2; lp_accum__.add(baz(d, pstream__)); @@ -3682,9 +3519,7 @@ class data_only_functions_model final : public model_base_crtp p = - Eigen::Matrix::Constant(N, N, DUMMY_VAR__); - current_statement__ = 1; - p = in__.template read>(N, N); + in__.template read>(N, N); { current_statement__ = 2; lp_accum__.add(baz(d, pstream__)); @@ -3754,10 +3589,7 @@ class data_only_functions_model final : public model_base_crtp p = - Eigen::Matrix::Constant(N, N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - p = in__.template read>(N, N); + in__.template read>(N, N); out__.write(p); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -4771,8 +4603,6 @@ class eight_schools_ncp_model final : public model_base_crtp{}); J = std::numeric_limits::min(); current_statement__ = 9; - J = context__.vals_i("J")[(1 - 1)]; - current_statement__ = 9; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 10; stan::math::validate_non_negative_index("y", "J", J); @@ -4780,8 +4610,6 @@ class eight_schools_ncp_model final : public model_base_crtp{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); - current_statement__ = 11; - y = context__.vals_r("y"); current_statement__ = 12; stan::math::validate_non_negative_index("sigma", "J", J); current_statement__ = 13; @@ -4790,8 +4618,6 @@ class eight_schools_ncp_model final : public model_base_crtp(J, std::numeric_limits::quiet_NaN()); current_statement__ = 13; - sigma = context__.vals_r("sigma"); - current_statement__ = 13; stan::math::check_greater_or_equal(function__, "sigma", sigma, 0); current_statement__ = 14; stan::math::validate_non_negative_index("theta_tilde", "J", J); @@ -4833,18 +4659,12 @@ class eight_schools_ncp_model final : public model_base_crtp(); - local_scalar_t__ tau = DUMMY_VAR__; - current_statement__ = 2; - tau = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ mu = in__.template read(); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix theta_tilde = - Eigen::Matrix::Constant(J, DUMMY_VAR__); - current_statement__ = 3; - theta_tilde = in__.template read< - Eigen::Matrix>(J); + in__.template read>(J); Eigen::Matrix theta = Eigen::Matrix::Constant(J, DUMMY_VAR__); current_statement__ = 4; @@ -4891,18 +4711,12 @@ class eight_schools_ncp_model final : public model_base_crtp(); - local_scalar_t__ tau = DUMMY_VAR__; - current_statement__ = 2; - tau = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ mu = in__.template read(); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix theta_tilde = - Eigen::Matrix::Constant(J, DUMMY_VAR__); - current_statement__ = 3; - theta_tilde = in__.template read< - Eigen::Matrix>(J); + in__.template read>(J); Eigen::Matrix theta = Eigen::Matrix::Constant(J, DUMMY_VAR__); current_statement__ = 4; @@ -4960,19 +4774,12 @@ class eight_schools_ncp_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - mu = in__.template read(); - double tau = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - tau = in__.template read_constrain_lb(0, - lp__); + double mu = in__.template read(); + double tau = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix theta_tilde = - Eigen::Matrix::Constant(J, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - theta_tilde = in__.template read< - Eigen::Matrix>(J); + in__.template read>(J); Eigen::Matrix theta = Eigen::Matrix::Constant(J, std::numeric_limits::quiet_NaN()); @@ -5799,14 +5606,10 @@ class jacobian_pe_model final : public model_base_crtp { context__.validate_dims("data initialization", "ub", "double", std::vector{}); ub = std::numeric_limits::quiet_NaN(); - current_statement__ = 8; - ub = context__.vals_r("ub")[(1 - 1)]; current_statement__ = 9; context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); - current_statement__ = 9; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 10; stan::math::validate_non_negative_index("b_vec_raw", "N", N); current_statement__ = 11; @@ -5847,16 +5650,10 @@ class jacobian_pe_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ b_raw = DUMMY_VAR__; - current_statement__ = 1; - b_raw = in__.template read(); + local_scalar_t__ b_raw = in__.template read(); Eigen::Matrix b_vec_raw = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 2; - b_vec_raw = in__.template read>(N); - local_scalar_t__ b_direct_raw = DUMMY_VAR__; - current_statement__ = 3; - b_direct_raw = in__.template read(); + in__.template read>(N); + local_scalar_t__ b_direct_raw = in__.template read(); local_scalar_t__ b = DUMMY_VAR__; current_statement__ = 4; b = upper_bound_jacobian(b_raw, ub, lp__, lp_accum__, @@ -5904,16 +5701,10 @@ class jacobian_pe_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ b_raw = DUMMY_VAR__; - current_statement__ = 1; - b_raw = in__.template read(); + local_scalar_t__ b_raw = in__.template read(); Eigen::Matrix b_vec_raw = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 2; - b_vec_raw = in__.template read>(N); - local_scalar_t__ b_direct_raw = DUMMY_VAR__; - current_statement__ = 3; - b_direct_raw = in__.template read(); + in__.template read>(N); + local_scalar_t__ b_direct_raw = in__.template read(); local_scalar_t__ b = DUMMY_VAR__; current_statement__ = 4; b = upper_bound_jacobian(b_raw, ub, lp__, lp_accum__, @@ -5972,17 +5763,10 @@ class jacobian_pe_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double b_raw = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - b_raw = in__.template read(); + double b_raw = in__.template read(); Eigen::Matrix b_vec_raw = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - b_vec_raw = in__.template read>(N); - double b_direct_raw = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - b_direct_raw = in__.template read(); + in__.template read>(N); + double b_direct_raw = in__.template read(); double b = std::numeric_limits::quiet_NaN(); Eigen::Matrix bvec = Eigen::Matrix::Constant(N, @@ -6355,9 +6139,7 @@ class mixed_type_arrays_model final : public model_base_crtp xx = - std::vector(3, DUMMY_VAR__); - current_statement__ = 1; - xx = in__.template read>(3); + in__.template read>(3); std::vector> y = std::vector>(3, std::vector(3, DUMMY_VAR__)); @@ -6414,9 +6196,7 @@ class mixed_type_arrays_model final : public model_base_crtp xx = - std::vector(3, DUMMY_VAR__); - current_statement__ = 1; - xx = in__.template read>(3); + in__.template read>(3); std::vector> y = std::vector>(3, std::vector(3, DUMMY_VAR__)); @@ -6484,9 +6264,7 @@ class mixed_type_arrays_model final : public model_base_crtp xx = - std::vector(3, std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - xx = in__.template read>(3); + in__.template read>(3); std::vector> y = std::vector>(3, std::vector(3, std::numeric_limits::quiet_NaN())); @@ -10817,24 +10595,18 @@ class mother_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 190; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 190; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 191; context__.validate_dims("data initialization", "M", "int", std::vector{}); M = std::numeric_limits::min(); current_statement__ = 191; - M = context__.vals_i("M")[(1 - 1)]; - current_statement__ = 191; stan::math::check_greater_or_equal(function__, "M", M, 0); current_statement__ = 192; context__.validate_dims("data initialization", "K", "int", std::vector{}); K = std::numeric_limits::min(); current_statement__ = 192; - K = context__.vals_i("K")[(1 - 1)]; - current_statement__ = 192; stan::math::check_greater_or_equal(function__, "K", K, 0); current_statement__ = 192; stan::math::check_less_or_equal(function__, "K", K, (N * M)); @@ -10845,8 +10617,6 @@ class mother_model final : public model_base_crtp { std::vector{static_cast(N)}); d_int_1d_ar = std::vector(N, std::numeric_limits::min()); current_statement__ = 194; - d_int_1d_ar = context__.vals_i("d_int_1d_ar"); - current_statement__ = 194; stan::math::check_less_or_equal(function__, "d_int_1d_ar", d_int_1d_ar, N); current_statement__ = 195; @@ -10862,24 +10632,6 @@ class mother_model final : public model_base_crtp { d_int_3d_ar = std::vector>>(N, std::vector>(M, std::vector(K, std::numeric_limits::min()))); - { - std::vector d_int_3d_ar_flat__; - current_statement__ = 198; - d_int_3d_ar_flat__ = context__.vals_i("d_int_3d_ar"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= K; ++sym1__) { - for (int sym2__ = 1; sym2__ <= M; ++sym2__) { - for (int sym3__ = 1; sym3__ <= N; ++sym3__) { - stan::model::assign(d_int_3d_ar, d_int_3d_ar_flat__[(pos__ - - 1)], "assigning variable d_int_3d_ar", - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 198; stan::math::check_less_or_equal(function__, "d_int_3d_ar", d_int_3d_ar, N); @@ -10888,8 +10640,6 @@ class mother_model final : public model_base_crtp { std::vector{}); J = std::numeric_limits::quiet_NaN(); current_statement__ = 199; - J = context__.vals_r("J")[(1 - 1)]; - current_statement__ = 199; stan::math::check_greater_or_equal(function__, "J", J, -(2.0)); current_statement__ = 199; stan::math::check_less_or_equal(function__, "J", J, 2.0); @@ -10900,8 +10650,6 @@ class mother_model final : public model_base_crtp { "double", std::vector{static_cast(N)}); d_real_1d_ar = std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 201; - d_real_1d_ar = context__.vals_r("d_real_1d_ar"); current_statement__ = 202; stan::math::validate_non_negative_index("d_real_3d_ar", "N", N); current_statement__ = 203; @@ -10917,24 +10665,6 @@ class mother_model final : public model_base_crtp { std::vector>(M, std::vector(K, std::numeric_limits::quiet_NaN()))); - { - std::vector d_real_3d_ar_flat__; - current_statement__ = 205; - d_real_3d_ar_flat__ = context__.vals_r("d_real_3d_ar"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= K; ++sym1__) { - for (int sym2__ = 1; sym2__ <= M; ++sym2__) { - for (int sym3__ = 1; sym3__ <= N; ++sym3__) { - stan::model::assign(d_real_3d_ar, d_real_3d_ar_flat__[(pos__ - - 1)], "assigning variable d_real_3d_ar", - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 206; stan::math::validate_non_negative_index("d_vec", "N", N); current_statement__ = 207; @@ -10944,17 +10674,6 @@ class mother_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&d_vec) Eigen::Map>(d_vec_data__.data(), N); - { - std::vector d_vec_flat__; - current_statement__ = 207; - d_vec_flat__ = context__.vals_r("d_vec"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(d_vec, d_vec_flat__[(pos__ - 1)], - "assigning variable d_vec", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 208; stan::math::validate_non_negative_index("d_1d_vec", "N", N); current_statement__ = 209; @@ -10965,20 +10684,6 @@ class mother_model final : public model_base_crtp { d_1d_vec = std::vector>(N, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())); - { - std::vector d_1d_vec_flat__; - current_statement__ = 210; - d_1d_vec_flat__ = context__.vals_r("d_1d_vec"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(d_1d_vec, d_1d_vec_flat__[(pos__ - 1)], - "assigning variable d_1d_vec", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 211; stan::math::validate_non_negative_index("d_3d_vec", "N", N); current_statement__ = 212; @@ -10997,27 +10702,6 @@ class mother_model final : public model_base_crtp { std::vector>(K, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())))); - { - std::vector d_3d_vec_flat__; - current_statement__ = 215; - d_3d_vec_flat__ = context__.vals_r("d_3d_vec"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= K; ++sym2__) { - for (int sym3__ = 1; sym3__ <= M; ++sym3__) { - for (int sym4__ = 1; sym4__ <= N; ++sym4__) { - stan::model::assign(d_3d_vec, d_3d_vec_flat__[(pos__ - 1)], - "assigning variable d_3d_vec", - stan::model::index_uni(sym4__), - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } - } current_statement__ = 216; stan::math::validate_non_negative_index("d_row_vec", "N", N); current_statement__ = 217; @@ -11027,17 +10711,6 @@ class mother_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&d_row_vec) Eigen::Map>(d_row_vec_data__.data(), N); - { - std::vector d_row_vec_flat__; - current_statement__ = 217; - d_row_vec_flat__ = context__.vals_r("d_row_vec"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(d_row_vec, d_row_vec_flat__[(pos__ - 1)], - "assigning variable d_row_vec", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 218; stan::math::validate_non_negative_index("d_1d_row_vec", "N", N); current_statement__ = 219; @@ -11049,20 +10722,6 @@ class mother_model final : public model_base_crtp { d_1d_row_vec = std::vector>(N, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())); - { - std::vector d_1d_row_vec_flat__; - current_statement__ = 220; - d_1d_row_vec_flat__ = context__.vals_r("d_1d_row_vec"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(d_1d_row_vec, d_1d_row_vec_flat__[(pos__ - - 1)], "assigning variable d_1d_row_vec", - stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 221; stan::math::validate_non_negative_index("d_3d_row_vec", "N", N); current_statement__ = 222; @@ -11082,27 +10741,6 @@ class mother_model final : public model_base_crtp { std::vector>(K, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())))); - { - std::vector d_3d_row_vec_flat__; - current_statement__ = 225; - d_3d_row_vec_flat__ = context__.vals_r("d_3d_row_vec"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= K; ++sym2__) { - for (int sym3__ = 1; sym3__ <= M; ++sym3__) { - for (int sym4__ = 1; sym4__ <= N; ++sym4__) { - stan::model::assign(d_3d_row_vec, d_3d_row_vec_flat__[(pos__ - - 1)], "assigning variable d_3d_row_vec", - stan::model::index_uni(sym4__), - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } - } current_statement__ = 226; context__.validate_dims("data initialization", "d_ar_mat", "double", std::vector{static_cast(4), static_cast(5), @@ -11111,27 +10749,6 @@ class mother_model final : public model_base_crtp { std::vector>(5, Eigen::Matrix::Constant(2, 3, std::numeric_limits::quiet_NaN()))); - { - std::vector d_ar_mat_flat__; - current_statement__ = 226; - d_ar_mat_flat__ = context__.vals_r("d_ar_mat"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { - for (int sym3__ = 1; sym3__ <= 5; ++sym3__) { - for (int sym4__ = 1; sym4__ <= 4; ++sym4__) { - stan::model::assign(d_ar_mat, d_ar_mat_flat__[(pos__ - 1)], - "assigning variable d_ar_mat", - stan::model::index_uni(sym4__), - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } - } current_statement__ = 226; stan::math::check_greater_or_equal(function__, "d_ar_mat", d_ar_mat, 0); current_statement__ = 226; @@ -11145,17 +10762,6 @@ class mother_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&d_simplex) Eigen::Map>(d_simplex_data__.data(), N); - { - std::vector d_simplex_flat__; - current_statement__ = 228; - d_simplex_flat__ = context__.vals_r("d_simplex"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(d_simplex, d_simplex_flat__[(pos__ - 1)], - "assigning variable d_simplex", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 228; stan::math::check_simplex(function__, "d_simplex", d_simplex); current_statement__ = 229; @@ -11169,20 +10775,6 @@ class mother_model final : public model_base_crtp { d_1d_simplex = std::vector>(N, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())); - { - std::vector d_1d_simplex_flat__; - current_statement__ = 231; - d_1d_simplex_flat__ = context__.vals_r("d_1d_simplex"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(d_1d_simplex, d_1d_simplex_flat__[(pos__ - - 1)], "assigning variable d_1d_simplex", - stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 231; stan::math::check_simplex(function__, "d_1d_simplex", d_1d_simplex); current_statement__ = 232; @@ -11204,27 +10796,6 @@ class mother_model final : public model_base_crtp { std::vector>(K, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())))); - { - std::vector d_3d_simplex_flat__; - current_statement__ = 236; - d_3d_simplex_flat__ = context__.vals_r("d_3d_simplex"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= K; ++sym2__) { - for (int sym3__ = 1; sym3__ <= M; ++sym3__) { - for (int sym4__ = 1; sym4__ <= N; ++sym4__) { - stan::model::assign(d_3d_simplex, d_3d_simplex_flat__[(pos__ - - 1)], "assigning variable d_3d_simplex", - stan::model::index_uni(sym4__), - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } - } current_statement__ = 236; stan::math::check_simplex(function__, "d_3d_simplex", d_3d_simplex); current_statement__ = 237; @@ -11235,20 +10806,6 @@ class mother_model final : public model_base_crtp { new (&d_cfcov_54) Eigen::Map>(d_cfcov_54_data__.data(), 5, 4); - { - std::vector d_cfcov_54_flat__; - current_statement__ = 237; - d_cfcov_54_flat__ = context__.vals_r("d_cfcov_54"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 4; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 5; ++sym2__) { - stan::model::assign(d_cfcov_54, d_cfcov_54_flat__[(pos__ - 1)], - "assigning variable d_cfcov_54", - stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 237; stan::math::check_cholesky_factor(function__, "d_cfcov_54", d_cfcov_54); current_statement__ = 238; @@ -11259,20 +10816,6 @@ class mother_model final : public model_base_crtp { new (&d_cfcov_33) Eigen::Map>(d_cfcov_33_data__.data(), 3, 3); - { - std::vector d_cfcov_33_flat__; - current_statement__ = 238; - d_cfcov_33_flat__ = context__.vals_r("d_cfcov_33"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { - stan::model::assign(d_cfcov_33, d_cfcov_33_flat__[(pos__ - 1)], - "assigning variable d_cfcov_33", - stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 238; stan::math::check_cholesky_factor(function__, "d_cfcov_33", d_cfcov_33); current_statement__ = 239; @@ -11285,24 +10828,6 @@ class mother_model final : public model_base_crtp { d_cfcov_33_ar = std::vector>(K, Eigen::Matrix::Constant(3, 3, std::numeric_limits::quiet_NaN())); - { - std::vector d_cfcov_33_ar_flat__; - current_statement__ = 240; - d_cfcov_33_ar_flat__ = context__.vals_r("d_cfcov_33_ar"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { - for (int sym3__ = 1; sym3__ <= K; ++sym3__) { - stan::model::assign(d_cfcov_33_ar, d_cfcov_33_ar_flat__[(pos__ - - 1)], "assigning variable d_cfcov_33_ar", - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 240; stan::math::check_cholesky_factor(function__, "d_cfcov_33_ar", d_cfcov_33_ar); @@ -11310,16 +10835,12 @@ class mother_model final : public model_base_crtp { context__.validate_dims("data initialization", "d_int", "int", std::vector{}); d_int = std::numeric_limits::min(); - current_statement__ = 241; - d_int = context__.vals_i("d_int")[(1 - 1)]; current_statement__ = 242; stan::math::validate_non_negative_index("d_int_array", "d_int", d_int); current_statement__ = 243; context__.validate_dims("data initialization", "d_int_array", "int", std::vector{static_cast(d_int)}); d_int_array = std::vector(d_int, std::numeric_limits::min()); - current_statement__ = 243; - d_int_array = context__.vals_i("d_int_array"); current_statement__ = 244; stan::math::validate_non_negative_index("d_int_array_2d", "d_int", d_int); @@ -11329,20 +10850,6 @@ class mother_model final : public model_base_crtp { static_cast(2)}); d_int_array_2d = std::vector>(d_int, std::vector(2, std::numeric_limits::min())); - { - std::vector d_int_array_2d_flat__; - current_statement__ = 245; - d_int_array_2d_flat__ = context__.vals_i("d_int_array_2d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { - stan::model::assign(d_int_array_2d, d_int_array_2d_flat__[(pos__ - - 1)], "assigning variable d_int_array_2d", - stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 246; stan::math::validate_non_negative_index("d_int_array_3d", "d_int", d_int); @@ -11354,31 +10861,10 @@ class mother_model final : public model_base_crtp { std::vector>(2, std::vector(3, std::numeric_limits::min()))); - { - std::vector d_int_array_3d_flat__; - current_statement__ = 247; - d_int_array_3d_flat__ = context__.vals_i("d_int_array_3d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { - for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { - stan::model::assign(d_int_array_3d, - d_int_array_3d_flat__[(pos__ - 1)], - "assigning variable d_int_array_3d", - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 248; context__.validate_dims("data initialization", "d_real", "double", std::vector{}); d_real = std::numeric_limits::quiet_NaN(); - current_statement__ = 248; - d_real = context__.vals_r("d_real")[(1 - 1)]; current_statement__ = 249; stan::math::validate_non_negative_index("d_real_array", "d_int", d_int); current_statement__ = 250; @@ -11386,8 +10872,6 @@ class mother_model final : public model_base_crtp { "double", std::vector{static_cast(d_int)}); d_real_array = std::vector(d_int, std::numeric_limits::quiet_NaN()); - current_statement__ = 250; - d_real_array = context__.vals_r("d_real_array"); current_statement__ = 251; stan::math::validate_non_negative_index("d_real_array_2d", "d_int", d_int); @@ -11399,21 +10883,6 @@ class mother_model final : public model_base_crtp { d_real_array_2d = std::vector>(d_int, std::vector(2, std::numeric_limits::quiet_NaN())); - { - std::vector d_real_array_2d_flat__; - current_statement__ = 252; - d_real_array_2d_flat__ = context__.vals_r("d_real_array_2d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { - stan::model::assign(d_real_array_2d, - d_real_array_2d_flat__[(pos__ - 1)], - "assigning variable d_real_array_2d", - stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 253; stan::math::validate_non_negative_index("d_real_array_3d", "d_int", d_int); @@ -11426,25 +10895,6 @@ class mother_model final : public model_base_crtp { std::vector>(2, std::vector(3, std::numeric_limits::quiet_NaN()))); - { - std::vector d_real_array_3d_flat__; - current_statement__ = 254; - d_real_array_3d_flat__ = context__.vals_r("d_real_array_3d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { - for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { - stan::model::assign(d_real_array_3d, - d_real_array_3d_flat__[(pos__ - 1)], - "assigning variable d_real_array_3d", - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 255; stan::math::validate_non_negative_index("d_matrix", "d_int", d_int); current_statement__ = 256; @@ -11458,20 +10908,6 @@ class mother_model final : public model_base_crtp { new (&d_matrix) Eigen::Map>(d_matrix_data__.data(), d_int, d_int); - { - std::vector d_matrix_flat__; - current_statement__ = 257; - d_matrix_flat__ = context__.vals_r("d_matrix"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { - stan::model::assign(d_matrix, d_matrix_flat__[(pos__ - 1)], - "assigning variable d_matrix", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 258; stan::math::validate_non_negative_index("d_matrix_array", "d_int", d_int); @@ -11489,25 +10925,6 @@ class mother_model final : public model_base_crtp { d_matrix_array = std::vector>(d_int, Eigen::Matrix::Constant(d_int, d_int, std::numeric_limits::quiet_NaN())); - { - std::vector d_matrix_array_flat__; - current_statement__ = 261; - d_matrix_array_flat__ = context__.vals_r("d_matrix_array"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { - for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { - stan::model::assign(d_matrix_array, - d_matrix_array_flat__[(pos__ - 1)], - "assigning variable d_matrix_array", - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 262; stan::math::validate_non_negative_index("d_matrix_array_2d", "d_int", d_int); @@ -11529,28 +10946,6 @@ class mother_model final : public model_base_crtp { Eigen::Matrix::Constant(d_int, d_int, std::numeric_limits::quiet_NaN()))); - { - std::vector d_matrix_array_2d_flat__; - current_statement__ = 265; - d_matrix_array_2d_flat__ = context__.vals_r("d_matrix_array_2d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { - for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { - for (int sym4__ = 1; sym4__ <= d_int; ++sym4__) { - stan::model::assign(d_matrix_array_2d, - d_matrix_array_2d_flat__[(pos__ - 1)], - "assigning variable d_matrix_array_2d", - stan::model::index_uni(sym4__), - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } - } current_statement__ = 266; stan::math::validate_non_negative_index("d_matrix_array_3d", "d_int", d_int); @@ -11575,31 +10970,6 @@ class mother_model final : public model_base_crtp { Eigen::Matrix::Constant(d_int, d_int, std::numeric_limits::quiet_NaN())))); - { - std::vector d_matrix_array_3d_flat__; - current_statement__ = 269; - d_matrix_array_3d_flat__ = context__.vals_r("d_matrix_array_3d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { - for (int sym3__ = 1; sym3__ <= 3; ++sym3__) { - for (int sym4__ = 1; sym4__ <= 2; ++sym4__) { - for (int sym5__ = 1; sym5__ <= d_int; ++sym5__) { - stan::model::assign(d_matrix_array_3d, - d_matrix_array_3d_flat__[(pos__ - 1)], - "assigning variable d_matrix_array_3d", - stan::model::index_uni(sym5__), - stan::model::index_uni(sym4__), - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } - } - } current_statement__ = 270; stan::math::validate_non_negative_index("d_vector", "d_int", d_int); current_statement__ = 271; @@ -11609,17 +10979,6 @@ class mother_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&d_vector) Eigen::Map>(d_vector_data__.data(), d_int); - { - std::vector d_vector_flat__; - current_statement__ = 271; - d_vector_flat__ = context__.vals_r("d_vector"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - stan::model::assign(d_vector, d_vector_flat__[(pos__ - 1)], - "assigning variable d_vector", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 272; stan::math::validate_non_negative_index("d_vector_array", "d_int", d_int); @@ -11634,20 +10993,6 @@ class mother_model final : public model_base_crtp { d_vector_array = std::vector>(d_int, Eigen::Matrix::Constant(d_int, std::numeric_limits::quiet_NaN())); - { - std::vector d_vector_array_flat__; - current_statement__ = 274; - d_vector_array_flat__ = context__.vals_r("d_vector_array"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { - stan::model::assign(d_vector_array, d_vector_array_flat__[(pos__ - - 1)], "assigning variable d_vector_array", - stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 275; stan::math::validate_non_negative_index("d_vector_array_2d", "d_int", d_int); @@ -11664,25 +11009,6 @@ class mother_model final : public model_base_crtp { std::vector>(2, Eigen::Matrix::Constant(d_int, std::numeric_limits::quiet_NaN()))); - { - std::vector d_vector_array_2d_flat__; - current_statement__ = 277; - d_vector_array_2d_flat__ = context__.vals_r("d_vector_array_2d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { - for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { - stan::model::assign(d_vector_array_2d, - d_vector_array_2d_flat__[(pos__ - 1)], - "assigning variable d_vector_array_2d", - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 278; stan::math::validate_non_negative_index("d_vector_array_3d", "d_int", d_int); @@ -11703,28 +11029,6 @@ class mother_model final : public model_base_crtp { std::vector>(3, Eigen::Matrix::Constant(d_int, std::numeric_limits::quiet_NaN())))); - { - std::vector d_vector_array_3d_flat__; - current_statement__ = 280; - d_vector_array_3d_flat__ = context__.vals_r("d_vector_array_3d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { - for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { - for (int sym4__ = 1; sym4__ <= d_int; ++sym4__) { - stan::model::assign(d_vector_array_3d, - d_vector_array_3d_flat__[(pos__ - 1)], - "assigning variable d_vector_array_3d", - stan::model::index_uni(sym4__), - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } - } current_statement__ = 281; stan::math::validate_non_negative_index("d_row_vector", "d_int", d_int); current_statement__ = 282; @@ -11735,17 +11039,6 @@ class mother_model final : public model_base_crtp { new (&d_row_vector) Eigen::Map>(d_row_vector_data__.data(), d_int); - { - std::vector d_row_vector_flat__; - current_statement__ = 282; - d_row_vector_flat__ = context__.vals_r("d_row_vector"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - stan::model::assign(d_row_vector, d_row_vector_flat__[(pos__ - 1)], - "assigning variable d_row_vector", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 283; stan::math::validate_non_negative_index("d_row_vector_array", "d_int", d_int); @@ -11760,21 +11053,6 @@ class mother_model final : public model_base_crtp { d_row_vector_array = std::vector>(d_int, Eigen::Matrix::Constant(d_int, std::numeric_limits::quiet_NaN())); - { - std::vector d_row_vector_array_flat__; - current_statement__ = 285; - d_row_vector_array_flat__ = context__.vals_r("d_row_vector_array"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { - stan::model::assign(d_row_vector_array, - d_row_vector_array_flat__[(pos__ - 1)], - "assigning variable d_row_vector_array", - stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 286; stan::math::validate_non_negative_index("d_row_vector_array_2d", "d_int", d_int); @@ -11791,25 +11069,6 @@ class mother_model final : public model_base_crtp { std::vector>(2, Eigen::Matrix::Constant(d_int, std::numeric_limits::quiet_NaN()))); - { - std::vector d_row_vector_array_2d_flat__; - current_statement__ = 288; - d_row_vector_array_2d_flat__ = context__.vals_r("d_row_vector_array_2d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { - for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { - stan::model::assign(d_row_vector_array_2d, - d_row_vector_array_2d_flat__[(pos__ - 1)], - "assigning variable d_row_vector_array_2d", - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 289; stan::math::validate_non_negative_index("d_row_vector_array_3d", "d_int", d_int); @@ -11830,28 +11089,6 @@ class mother_model final : public model_base_crtp { std::vector>(3, Eigen::Matrix::Constant(d_int, std::numeric_limits::quiet_NaN())))); - { - std::vector d_row_vector_array_3d_flat__; - current_statement__ = 291; - d_row_vector_array_3d_flat__ = context__.vals_r("d_row_vector_array_3d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { - for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { - for (int sym4__ = 1; sym4__ <= d_int; ++sym4__) { - stan::model::assign(d_row_vector_array_3d, - d_row_vector_array_3d_flat__[(pos__ - 1)], - "assigning variable d_row_vector_array_3d", - stan::model::index_uni(sym4__), - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } - } current_statement__ = 292; td_int = std::numeric_limits::min(); current_statement__ = 293; @@ -12920,168 +12157,89 @@ class mother_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ p_real = DUMMY_VAR__; - current_statement__ = 1; - p_real = in__.template read(); - local_scalar_t__ p_upper = DUMMY_VAR__; - current_statement__ = 2; - p_upper = in__.template read_constrain_lb(p_real, lp__); - local_scalar_t__ p_lower = DUMMY_VAR__; - current_statement__ = 3; - p_lower = in__.template read_constrain_ub(p_upper, lp__); + local_scalar_t__ p_real = in__.template read(); + local_scalar_t__ p_upper = + in__.template read_constrain_lb(p_real, + lp__); + local_scalar_t__ p_lower = + in__.template read_constrain_ub(p_upper, lp__); std::vector offset_multiplier = - std::vector(5, DUMMY_VAR__); - current_statement__ = 4; - offset_multiplier = in__.template read_constrain_offset_multiplier< - std::vector, jacobian__>(1, 2, - lp__, 5); + in__.template read_constrain_offset_multiplier< + std::vector, jacobian__>(1, 2, lp__, 5); std::vector no_offset_multiplier = - std::vector(5, DUMMY_VAR__); - current_statement__ = 5; - no_offset_multiplier = in__.template read_constrain_offset_multiplier< - std::vector, jacobian__>(0, - 2, lp__, 5); + in__.template read_constrain_offset_multiplier< + std::vector, jacobian__>(0, 2, lp__, 5); std::vector offset_no_multiplier = - std::vector(5, DUMMY_VAR__); - current_statement__ = 6; - offset_no_multiplier = in__.template read_constrain_offset_multiplier< - std::vector, jacobian__>(3, - 1, lp__, 5); + in__.template read_constrain_offset_multiplier< + std::vector, jacobian__>(3, 1, lp__, 5); std::vector p_real_1d_ar = - std::vector(N, DUMMY_VAR__); - current_statement__ = 7; - p_real_1d_ar = in__.template read_constrain_lb< - std::vector, jacobian__>(0, lp__, N); + in__.template read_constrain_lb, + jacobian__>(0, lp__, N); std::vector>> p_real_3d_ar = - std::vector>>(N, - std::vector>(M, - std::vector(K, DUMMY_VAR__))); - current_statement__ = 8; - p_real_3d_ar = in__.template read_constrain_lb< - std::vector< - std::vector>>, - jacobian__>(0, lp__, N, M, K); + in__.template read_constrain_lb< + std::vector>>, + jacobian__>(0, lp__, N, M, K); Eigen::Matrix p_vec = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 9; - p_vec = in__.template read_constrain_lb< - Eigen::Matrix, jacobian__>(0, lp__, N); + in__.template read_constrain_lb, + jacobian__>(0, lp__, N); std::vector> p_1d_vec = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 10; - p_1d_vec = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector< std::vector>>> p_3d_vec = - std::vector< - std::vector>>>(N, - std::vector>>(M, - std::vector>(K, - Eigen::Matrix::Constant(N, DUMMY_VAR__)))); - current_statement__ = 11; - p_3d_vec = in__.template read< - std::vector< - std::vector< - std::vector>>>>(N, - M, K, N); + in__.template read< + std::vector< + std::vector>>>>(N, + M, K, N); Eigen::Matrix p_row_vec = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 12; - p_row_vec = in__.template read>(N); + in__.template read>(N); std::vector> p_1d_row_vec = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 13; - p_1d_row_vec = in__.template read< - std::vector>>(N, - N); + in__.template read< + std::vector>>(N, N); std::vector< std::vector>>> p_3d_row_vec = - std::vector< - std::vector>>>(N, - std::vector>>(M, - std::vector>(K, - Eigen::Matrix::Constant(N, DUMMY_VAR__)))); - current_statement__ = 14; - p_3d_row_vec = in__.template read< - std::vector< - std::vector< - std::vector>>>>(N, - M, K, N); + in__.template read< + std::vector< + std::vector>>>>(N, + M, K, N); Eigen::Matrix p_mat = - Eigen::Matrix::Constant(5, 4, DUMMY_VAR__); - current_statement__ = 15; - p_mat = in__.template read>(5, 4); + in__.template read>(5, 4); std::vector>> p_ar_mat = - std::vector>>(4, - std::vector>(5, - Eigen::Matrix::Constant(2, 3, - DUMMY_VAR__))); - current_statement__ = 16; - p_ar_mat = in__.template read_constrain_lub< - std::vector< - std::vector>>, - jacobian__>(0, 1, lp__, 4, 5, 2, 3); + in__.template read_constrain_lub< + std::vector>>, + jacobian__>(0, 1, lp__, 4, 5, 2, 3); Eigen::Matrix p_simplex = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 17; - p_simplex = in__.template read_constrain_simplex< - Eigen::Matrix, jacobian__>(lp__, - N); + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, N); std::vector> p_1d_simplex = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 18; - p_1d_simplex = in__.template read_constrain_simplex< - std::vector>, - jacobian__>(lp__, N, N); + in__.template read_constrain_simplex< + std::vector>, + jacobian__>(lp__, N, N); std::vector< std::vector>>> p_3d_simplex = - std::vector< - std::vector>>>(N, - std::vector>>(M, - std::vector>(K, - Eigen::Matrix::Constant(N, DUMMY_VAR__)))); - current_statement__ = 19; - p_3d_simplex = in__.template read_constrain_simplex< - std::vector< - std::vector< - std::vector>>>, - jacobian__>(lp__, N, M, K, N); + in__.template read_constrain_simplex< + std::vector< + std::vector>>>, + jacobian__>(lp__, N, M, K, N); Eigen::Matrix p_cfcov_54 = - Eigen::Matrix::Constant(5, 4, DUMMY_VAR__); - current_statement__ = 20; - p_cfcov_54 = in__.template read_constrain_cholesky_factor_cov< - Eigen::Matrix, jacobian__>(lp__, - 5, 4); + in__.template read_constrain_cholesky_factor_cov< + Eigen::Matrix, jacobian__>(lp__, 5, 4); Eigen::Matrix p_cfcov_33 = - Eigen::Matrix::Constant(3, 3, DUMMY_VAR__); - current_statement__ = 21; - p_cfcov_33 = in__.template read_constrain_cholesky_factor_cov< - Eigen::Matrix, jacobian__>(lp__, - 3, 3); + in__.template read_constrain_cholesky_factor_cov< + Eigen::Matrix, jacobian__>(lp__, 3, 3); std::vector> p_cfcov_33_ar = - std::vector>(K, - Eigen::Matrix::Constant(3, 3, DUMMY_VAR__)); - current_statement__ = 22; - p_cfcov_33_ar = in__.template read_constrain_cholesky_factor_cov< - std::vector>, - jacobian__>(lp__, K, 3, 3); + in__.template read_constrain_cholesky_factor_cov< + std::vector>, + jacobian__>(lp__, K, 3, 3); Eigen::Matrix x_p = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 23; - x_p = in__.template read>(2); + in__.template read>(2); Eigen::Matrix y_p = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 24; - y_p = in__.template read>(2); + in__.template read>(2); std::vector tp_real_1d_ar = std::vector(N, DUMMY_VAR__); std::vector>> tp_real_3d_ar = @@ -13443,168 +12601,89 @@ class mother_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ p_real = DUMMY_VAR__; - current_statement__ = 1; - p_real = in__.template read(); - local_scalar_t__ p_upper = DUMMY_VAR__; - current_statement__ = 2; - p_upper = in__.template read_constrain_lb(p_real, lp__); - local_scalar_t__ p_lower = DUMMY_VAR__; - current_statement__ = 3; - p_lower = in__.template read_constrain_ub(p_upper, lp__); + local_scalar_t__ p_real = in__.template read(); + local_scalar_t__ p_upper = + in__.template read_constrain_lb(p_real, + lp__); + local_scalar_t__ p_lower = + in__.template read_constrain_ub(p_upper, lp__); std::vector offset_multiplier = - std::vector(5, DUMMY_VAR__); - current_statement__ = 4; - offset_multiplier = in__.template read_constrain_offset_multiplier< - std::vector, jacobian__>(1, 2, - lp__, 5); + in__.template read_constrain_offset_multiplier< + std::vector, jacobian__>(1, 2, lp__, 5); std::vector no_offset_multiplier = - std::vector(5, DUMMY_VAR__); - current_statement__ = 5; - no_offset_multiplier = in__.template read_constrain_offset_multiplier< - std::vector, jacobian__>(0, - 2, lp__, 5); + in__.template read_constrain_offset_multiplier< + std::vector, jacobian__>(0, 2, lp__, 5); std::vector offset_no_multiplier = - std::vector(5, DUMMY_VAR__); - current_statement__ = 6; - offset_no_multiplier = in__.template read_constrain_offset_multiplier< - std::vector, jacobian__>(3, - 1, lp__, 5); + in__.template read_constrain_offset_multiplier< + std::vector, jacobian__>(3, 1, lp__, 5); std::vector p_real_1d_ar = - std::vector(N, DUMMY_VAR__); - current_statement__ = 7; - p_real_1d_ar = in__.template read_constrain_lb< - std::vector, jacobian__>(0, lp__, N); + in__.template read_constrain_lb, + jacobian__>(0, lp__, N); std::vector>> p_real_3d_ar = - std::vector>>(N, - std::vector>(M, - std::vector(K, DUMMY_VAR__))); - current_statement__ = 8; - p_real_3d_ar = in__.template read_constrain_lb< - std::vector< - std::vector>>, - jacobian__>(0, lp__, N, M, K); + in__.template read_constrain_lb< + std::vector>>, + jacobian__>(0, lp__, N, M, K); Eigen::Matrix p_vec = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 9; - p_vec = in__.template read_constrain_lb< - Eigen::Matrix, jacobian__>(0, lp__, N); + in__.template read_constrain_lb, + jacobian__>(0, lp__, N); std::vector> p_1d_vec = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 10; - p_1d_vec = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector< std::vector>>> p_3d_vec = - std::vector< - std::vector>>>(N, - std::vector>>(M, - std::vector>(K, - Eigen::Matrix::Constant(N, DUMMY_VAR__)))); - current_statement__ = 11; - p_3d_vec = in__.template read< - std::vector< - std::vector< - std::vector>>>>(N, - M, K, N); + in__.template read< + std::vector< + std::vector>>>>(N, + M, K, N); Eigen::Matrix p_row_vec = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 12; - p_row_vec = in__.template read>(N); + in__.template read>(N); std::vector> p_1d_row_vec = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 13; - p_1d_row_vec = in__.template read< - std::vector>>(N, - N); + in__.template read< + std::vector>>(N, N); std::vector< std::vector>>> p_3d_row_vec = - std::vector< - std::vector>>>(N, - std::vector>>(M, - std::vector>(K, - Eigen::Matrix::Constant(N, DUMMY_VAR__)))); - current_statement__ = 14; - p_3d_row_vec = in__.template read< - std::vector< - std::vector< - std::vector>>>>(N, - M, K, N); + in__.template read< + std::vector< + std::vector>>>>(N, + M, K, N); Eigen::Matrix p_mat = - Eigen::Matrix::Constant(5, 4, DUMMY_VAR__); - current_statement__ = 15; - p_mat = in__.template read>(5, 4); + in__.template read>(5, 4); std::vector>> p_ar_mat = - std::vector>>(4, - std::vector>(5, - Eigen::Matrix::Constant(2, 3, - DUMMY_VAR__))); - current_statement__ = 16; - p_ar_mat = in__.template read_constrain_lub< - std::vector< - std::vector>>, - jacobian__>(0, 1, lp__, 4, 5, 2, 3); + in__.template read_constrain_lub< + std::vector>>, + jacobian__>(0, 1, lp__, 4, 5, 2, 3); Eigen::Matrix p_simplex = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 17; - p_simplex = in__.template read_constrain_simplex< - Eigen::Matrix, jacobian__>(lp__, - N); + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, N); std::vector> p_1d_simplex = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 18; - p_1d_simplex = in__.template read_constrain_simplex< - std::vector>, - jacobian__>(lp__, N, N); + in__.template read_constrain_simplex< + std::vector>, + jacobian__>(lp__, N, N); std::vector< std::vector>>> p_3d_simplex = - std::vector< - std::vector>>>(N, - std::vector>>(M, - std::vector>(K, - Eigen::Matrix::Constant(N, DUMMY_VAR__)))); - current_statement__ = 19; - p_3d_simplex = in__.template read_constrain_simplex< - std::vector< - std::vector< - std::vector>>>, - jacobian__>(lp__, N, M, K, N); + in__.template read_constrain_simplex< + std::vector< + std::vector>>>, + jacobian__>(lp__, N, M, K, N); Eigen::Matrix p_cfcov_54 = - Eigen::Matrix::Constant(5, 4, DUMMY_VAR__); - current_statement__ = 20; - p_cfcov_54 = in__.template read_constrain_cholesky_factor_cov< - Eigen::Matrix, jacobian__>(lp__, - 5, 4); + in__.template read_constrain_cholesky_factor_cov< + Eigen::Matrix, jacobian__>(lp__, 5, 4); Eigen::Matrix p_cfcov_33 = - Eigen::Matrix::Constant(3, 3, DUMMY_VAR__); - current_statement__ = 21; - p_cfcov_33 = in__.template read_constrain_cholesky_factor_cov< - Eigen::Matrix, jacobian__>(lp__, - 3, 3); + in__.template read_constrain_cholesky_factor_cov< + Eigen::Matrix, jacobian__>(lp__, 3, 3); std::vector> p_cfcov_33_ar = - std::vector>(K, - Eigen::Matrix::Constant(3, 3, DUMMY_VAR__)); - current_statement__ = 22; - p_cfcov_33_ar = in__.template read_constrain_cholesky_factor_cov< - std::vector>, - jacobian__>(lp__, K, 3, 3); + in__.template read_constrain_cholesky_factor_cov< + std::vector>, + jacobian__>(lp__, K, 3, 3); Eigen::Matrix x_p = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 23; - x_p = in__.template read>(2); + in__.template read>(2); Eigen::Matrix y_p = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 24; - y_p = in__.template read>(2); + in__.template read>(2); std::vector tp_real_1d_ar = std::vector(N, DUMMY_VAR__); std::vector>> tp_real_3d_ar = @@ -13977,176 +13056,85 @@ class mother_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double p_real = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - p_real = in__.template read(); - double p_upper = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - p_upper = in__.template read_constrain_lb(p_real, lp__); - double p_lower = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - p_lower = in__.template read_constrain_ub(p_upper, lp__); + double p_real = in__.template read(); + double p_upper = + in__.template read_constrain_lb(p_real, + lp__); + double p_lower = + in__.template read_constrain_ub(p_upper, lp__); std::vector offset_multiplier = - std::vector(5, std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - offset_multiplier = in__.template read_constrain_offset_multiplier< - std::vector, jacobian__>(1, 2, - lp__, 5); + in__.template read_constrain_offset_multiplier< + std::vector, jacobian__>(1, 2, lp__, 5); std::vector no_offset_multiplier = - std::vector(5, std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - no_offset_multiplier = in__.template read_constrain_offset_multiplier< - std::vector, jacobian__>(0, - 2, lp__, 5); + in__.template read_constrain_offset_multiplier< + std::vector, jacobian__>(0, 2, lp__, 5); std::vector offset_no_multiplier = - std::vector(5, std::numeric_limits::quiet_NaN()); - current_statement__ = 6; - offset_no_multiplier = in__.template read_constrain_offset_multiplier< - std::vector, jacobian__>(3, - 1, lp__, 5); + in__.template read_constrain_offset_multiplier< + std::vector, jacobian__>(3, 1, lp__, 5); std::vector p_real_1d_ar = - std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 7; - p_real_1d_ar = in__.template read_constrain_lb< - std::vector, jacobian__>(0, lp__, N); + in__.template read_constrain_lb, + jacobian__>(0, lp__, N); std::vector>> p_real_3d_ar = - std::vector>>(N, - std::vector>(M, - std::vector(K, std::numeric_limits::quiet_NaN()))); - current_statement__ = 8; - p_real_3d_ar = in__.template read_constrain_lb< - std::vector< - std::vector>>, - jacobian__>(0, lp__, N, M, K); + in__.template read_constrain_lb< + std::vector>>, + jacobian__>(0, lp__, N, M, K); Eigen::Matrix p_vec = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 9; - p_vec = in__.template read_constrain_lb< - Eigen::Matrix, jacobian__>(0, lp__, N); + in__.template read_constrain_lb, + jacobian__>(0, lp__, N); std::vector> p_1d_vec = - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN())); - current_statement__ = 10; - p_1d_vec = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector>>> p_3d_vec = - std::vector>>>(N, - std::vector>>(M, - std::vector>(K, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN())))); - current_statement__ = 11; - p_3d_vec = in__.template read< - std::vector< - std::vector< - std::vector>>>>(N, - M, K, N); + in__.template read< + std::vector< + std::vector>>>>(N, + M, K, N); Eigen::Matrix p_row_vec = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 12; - p_row_vec = in__.template read>(N); + in__.template read>(N); std::vector> p_1d_row_vec = - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN())); - current_statement__ = 13; - p_1d_row_vec = in__.template read< - std::vector>>(N, - N); + in__.template read< + std::vector>>(N, N); std::vector>>> p_3d_row_vec = - std::vector>>>(N, - std::vector>>(M, - std::vector>(K, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN())))); - current_statement__ = 14; - p_3d_row_vec = in__.template read< - std::vector< - std::vector< - std::vector>>>>(N, - M, K, N); + in__.template read< + std::vector< + std::vector>>>>(N, + M, K, N); Eigen::Matrix p_mat = - Eigen::Matrix::Constant(5, 4, - std::numeric_limits::quiet_NaN()); - current_statement__ = 15; - p_mat = in__.template read>(5, 4); + in__.template read>(5, 4); std::vector>> p_ar_mat = - std::vector>>(4, - std::vector>(5, - Eigen::Matrix::Constant(2, 3, - std::numeric_limits::quiet_NaN()))); - current_statement__ = 16; - p_ar_mat = in__.template read_constrain_lub< - std::vector< - std::vector>>, - jacobian__>(0, 1, lp__, 4, 5, 2, 3); + in__.template read_constrain_lub< + std::vector>>, + jacobian__>(0, 1, lp__, 4, 5, 2, 3); Eigen::Matrix p_simplex = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 17; - p_simplex = in__.template read_constrain_simplex< - Eigen::Matrix, jacobian__>(lp__, - N); + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, N); std::vector> p_1d_simplex = - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN())); - current_statement__ = 18; - p_1d_simplex = in__.template read_constrain_simplex< - std::vector>, - jacobian__>(lp__, N, N); + in__.template read_constrain_simplex< + std::vector>, + jacobian__>(lp__, N, N); std::vector>>> p_3d_simplex = - std::vector>>>(N, - std::vector>>(M, - std::vector>(K, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN())))); - current_statement__ = 19; - p_3d_simplex = in__.template read_constrain_simplex< - std::vector< - std::vector< - std::vector>>>, - jacobian__>(lp__, N, M, K, N); + in__.template read_constrain_simplex< + std::vector< + std::vector>>>, + jacobian__>(lp__, N, M, K, N); Eigen::Matrix p_cfcov_54 = - Eigen::Matrix::Constant(5, 4, - std::numeric_limits::quiet_NaN()); - current_statement__ = 20; - p_cfcov_54 = in__.template read_constrain_cholesky_factor_cov< - Eigen::Matrix, jacobian__>(lp__, - 5, 4); + in__.template read_constrain_cholesky_factor_cov< + Eigen::Matrix, jacobian__>(lp__, 5, 4); Eigen::Matrix p_cfcov_33 = - Eigen::Matrix::Constant(3, 3, - std::numeric_limits::quiet_NaN()); - current_statement__ = 21; - p_cfcov_33 = in__.template read_constrain_cholesky_factor_cov< - Eigen::Matrix, jacobian__>(lp__, - 3, 3); + in__.template read_constrain_cholesky_factor_cov< + Eigen::Matrix, jacobian__>(lp__, 3, 3); std::vector> p_cfcov_33_ar = - std::vector>(K, - Eigen::Matrix::Constant(3, 3, - std::numeric_limits::quiet_NaN())); - current_statement__ = 22; - p_cfcov_33_ar = in__.template read_constrain_cholesky_factor_cov< - std::vector>, - jacobian__>(lp__, K, 3, 3); + in__.template read_constrain_cholesky_factor_cov< + std::vector>, + jacobian__>(lp__, K, 3, 3); Eigen::Matrix x_p = - Eigen::Matrix::Constant(2, - std::numeric_limits::quiet_NaN()); - current_statement__ = 23; - x_p = in__.template read>(2); + in__.template read>(2); Eigen::Matrix y_p = - Eigen::Matrix::Constant(2, - std::numeric_limits::quiet_NaN()); - current_statement__ = 24; - y_p = in__.template read>(2); + in__.template read>(2); std::vector tp_real_1d_ar = std::vector(N, std::numeric_limits::quiet_NaN()); std::vector>> tp_real_3d_ar = @@ -17732,61 +16720,43 @@ class motherHOF_model final : public model_base_crtp { std::vector{}); T = std::numeric_limits::min(); current_statement__ = 123; - T = context__.vals_i("T")[(1 - 1)]; - current_statement__ = 123; stan::math::check_greater_or_equal(function__, "T", T, 1); current_statement__ = 124; context__.validate_dims("data initialization", "y0_d", "double", std::vector{static_cast(2)}); y0_d = std::vector(2, std::numeric_limits::quiet_NaN()); - current_statement__ = 124; - y0_d = context__.vals_r("y0_d"); current_statement__ = 125; context__.validate_dims("data initialization", "t0", "double", std::vector{}); t0 = std::numeric_limits::quiet_NaN(); - current_statement__ = 125; - t0 = context__.vals_r("t0")[(1 - 1)]; current_statement__ = 126; stan::math::validate_non_negative_index("ts", "T", T); current_statement__ = 127; context__.validate_dims("data initialization", "ts", "double", std::vector{static_cast(T)}); ts = std::vector(T, std::numeric_limits::quiet_NaN()); - current_statement__ = 127; - ts = context__.vals_r("ts"); current_statement__ = 128; context__.validate_dims("data initialization", "theta_d", "double", std::vector{static_cast(1)}); theta_d = std::vector(1, std::numeric_limits::quiet_NaN()); - current_statement__ = 128; - theta_d = context__.vals_r("theta_d"); current_statement__ = 129; context__.validate_dims("data initialization", "x", "double", std::vector{static_cast(0)}); x = std::vector(0, std::numeric_limits::quiet_NaN()); - current_statement__ = 129; - x = context__.vals_r("x"); current_statement__ = 130; context__.validate_dims("data initialization", "x_int", "int", std::vector{static_cast(0)}); x_int = std::vector(0, std::numeric_limits::min()); - current_statement__ = 130; - x_int = context__.vals_i("x_int"); current_statement__ = 131; context__.validate_dims("data initialization", "x_d_r", "double", std::vector{static_cast(0)}); x_d_r = std::vector(0, std::numeric_limits::quiet_NaN()); - current_statement__ = 131; - x_d_r = context__.vals_r("x_d_r"); current_statement__ = 132; context__.validate_dims("data initialization", "x_d_i", "int", std::vector{static_cast(0)}); x_d_i = std::vector(0, std::numeric_limits::min()); - current_statement__ = 132; - x_d_i = context__.vals_i("x_d_i"); current_statement__ = 133; context__.validate_dims("data initialization", "shared_params_d", "double", std::vector{static_cast(3)}); @@ -17795,18 +16765,6 @@ class motherHOF_model final : public model_base_crtp { new (&shared_params_d) Eigen::Map>(shared_params_d_data__.data(), 3); - { - std::vector shared_params_d_flat__; - current_statement__ = 133; - shared_params_d_flat__ = context__.vals_r("shared_params_d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - stan::model::assign(shared_params_d, shared_params_d_flat__[(pos__ - - 1)], "assigning variable shared_params_d", - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 134; context__.validate_dims("data initialization", "job_params_d", "double", @@ -17814,59 +16772,17 @@ class motherHOF_model final : public model_base_crtp { job_params_d = std::vector>(3, Eigen::Matrix::Constant(3, std::numeric_limits::quiet_NaN())); - { - std::vector job_params_d_flat__; - current_statement__ = 134; - job_params_d_flat__ = context__.vals_r("job_params_d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { - stan::model::assign(job_params_d, job_params_d_flat__[(pos__ - - 1)], "assigning variable job_params_d", - stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 135; context__.validate_dims("data initialization", "data_r", "double", std::vector{static_cast(3), static_cast(3)}); data_r = std::vector>(3, std::vector(3, std::numeric_limits::quiet_NaN())); - { - std::vector data_r_flat__; - current_statement__ = 135; - data_r_flat__ = context__.vals_r("data_r"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { - stan::model::assign(data_r, data_r_flat__[(pos__ - 1)], - "assigning variable data_r", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 136; context__.validate_dims("data initialization", "data_i", "int", std::vector{static_cast(3), static_cast(3)}); data_i = std::vector>(3, std::vector(3, std::numeric_limits::min())); - { - std::vector data_i_flat__; - current_statement__ = 136; - data_i_flat__ = context__.vals_i("data_i"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { - stan::model::assign(data_i, data_i_flat__[(pos__ - 1)], - "assigning variable data_i", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 137; stan::math::validate_non_negative_index("theta_p", "1", 1); current_statement__ = 138; @@ -17910,36 +16826,19 @@ class motherHOF_model final : public model_base_crtp { (void) function__; try { std::vector y0_p = - std::vector(2, DUMMY_VAR__); - current_statement__ = 1; - y0_p = in__.template read>(2); + in__.template read>(2); std::vector theta_p = - std::vector(1, DUMMY_VAR__); - current_statement__ = 2; - theta_p = in__.template read>(1); + in__.template read>(1); std::vector x_p = - std::vector(1, DUMMY_VAR__); - current_statement__ = 3; - x_p = in__.template read>(1); + in__.template read>(1); Eigen::Matrix x_p_v = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 4; - x_p_v = in__.template read>(2); + in__.template read>(2); Eigen::Matrix shared_params_p = - Eigen::Matrix::Constant(3, DUMMY_VAR__); - current_statement__ = 5; - shared_params_p = in__.template read< - Eigen::Matrix>(3); + in__.template read>(3); std::vector> job_params_p = - std::vector>(3, - Eigen::Matrix::Constant(3, DUMMY_VAR__)); - current_statement__ = 6; - job_params_p = in__.template read< - std::vector>>(3, - 3); - local_scalar_t__ x_r = DUMMY_VAR__; - current_statement__ = 7; - x_r = in__.template read(); + in__.template read< + std::vector>>(3, 3); + local_scalar_t__ x_r = in__.template read(); local_scalar_t__ abc1_p = DUMMY_VAR__; current_statement__ = 8; abc1_p = 3; @@ -18237,36 +17136,19 @@ class motherHOF_model final : public model_base_crtp { (void) function__; try { std::vector y0_p = - std::vector(2, DUMMY_VAR__); - current_statement__ = 1; - y0_p = in__.template read>(2); + in__.template read>(2); std::vector theta_p = - std::vector(1, DUMMY_VAR__); - current_statement__ = 2; - theta_p = in__.template read>(1); + in__.template read>(1); std::vector x_p = - std::vector(1, DUMMY_VAR__); - current_statement__ = 3; - x_p = in__.template read>(1); + in__.template read>(1); Eigen::Matrix x_p_v = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 4; - x_p_v = in__.template read>(2); + in__.template read>(2); Eigen::Matrix shared_params_p = - Eigen::Matrix::Constant(3, DUMMY_VAR__); - current_statement__ = 5; - shared_params_p = in__.template read< - Eigen::Matrix>(3); + in__.template read>(3); std::vector> job_params_p = - std::vector>(3, - Eigen::Matrix::Constant(3, DUMMY_VAR__)); - current_statement__ = 6; - job_params_p = in__.template read< - std::vector>>(3, - 3); - local_scalar_t__ x_r = DUMMY_VAR__; - current_statement__ = 7; - x_r = in__.template read(); + in__.template read< + std::vector>>(3, 3); + local_scalar_t__ x_r = in__.template read(); local_scalar_t__ abc1_p = DUMMY_VAR__; current_statement__ = 8; abc1_p = 3; @@ -18572,39 +17454,19 @@ class motherHOF_model final : public model_base_crtp { (void) function__; try { std::vector y0_p = - std::vector(2, std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - y0_p = in__.template read>(2); + in__.template read>(2); std::vector theta_p = - std::vector(1, std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - theta_p = in__.template read>(1); + in__.template read>(1); std::vector x_p = - std::vector(1, std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - x_p = in__.template read>(1); + in__.template read>(1); Eigen::Matrix x_p_v = - Eigen::Matrix::Constant(2, - std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - x_p_v = in__.template read>(2); + in__.template read>(2); Eigen::Matrix shared_params_p = - Eigen::Matrix::Constant(3, - std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - shared_params_p = in__.template read< - Eigen::Matrix>(3); + in__.template read>(3); std::vector> job_params_p = - std::vector>(3, - Eigen::Matrix::Constant(3, - std::numeric_limits::quiet_NaN())); - current_statement__ = 6; - job_params_p = in__.template read< - std::vector>>(3, - 3); - double x_r = std::numeric_limits::quiet_NaN(); - current_statement__ = 7; - x_r = in__.template read(); + in__.template read< + std::vector>>(3, 3); + double x_r = in__.template read(); double abc1_p = std::numeric_limits::quiet_NaN(); double abc2_p = std::numeric_limits::quiet_NaN(); double abc3_p = std::numeric_limits::quiet_NaN(); @@ -20389,28 +19251,20 @@ class new_integrate_interface_model final : public model_base_crtp{}); N = std::numeric_limits::min(); - current_statement__ = 601; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 602; context__.validate_dims("data initialization", "id", "int", std::vector{}); id = std::numeric_limits::min(); - current_statement__ = 602; - id = context__.vals_i("id")[(1 - 1)]; current_statement__ = 603; context__.validate_dims("data initialization", "rd", "double", std::vector{}); rd = std::numeric_limits::quiet_NaN(); - current_statement__ = 603; - rd = context__.vals_r("rd")[(1 - 1)]; current_statement__ = 604; stan::math::validate_non_negative_index("rad", "N", N); current_statement__ = 605; context__.validate_dims("data initialization", "rad", "double", std::vector{static_cast(N)}); rad = std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 605; - rad = context__.vals_r("rad"); current_statement__ = 606; stan::math::validate_non_negative_index("vd", "N", N); current_statement__ = 607; @@ -20419,17 +19273,6 @@ class new_integrate_interface_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&vd) Eigen::Map>(vd_data__.data(), N); - { - std::vector vd_flat__; - current_statement__ = 607; - vd_flat__ = context__.vals_r("vd"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(vd, vd_flat__[(pos__ - 1)], - "assigning variable vd", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 608; stan::math::validate_non_negative_index("zd", "N", N); current_statement__ = 609; @@ -20540,17 +19383,11 @@ class new_integrate_interface_model final : public model_base_crtp(); + local_scalar_t__ r = in__.template read(); std::vector ra = - std::vector(N, DUMMY_VAR__); - current_statement__ = 2; - ra = in__.template read>(N); + in__.template read>(N); Eigen::Matrix v = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 3; - v = in__.template read>(N); + in__.template read>(N); std::vector> z = std::vector>(N, Eigen::Matrix::Constant(N, DUMMY_VAR__)); @@ -22191,17 +21028,11 @@ class new_integrate_interface_model final : public model_base_crtp(); + local_scalar_t__ r = in__.template read(); std::vector ra = - std::vector(N, DUMMY_VAR__); - current_statement__ = 2; - ra = in__.template read>(N); + in__.template read>(N); Eigen::Matrix v = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 3; - v = in__.template read>(N); + in__.template read>(N); std::vector> z = std::vector>(N, Eigen::Matrix::Constant(N, DUMMY_VAR__)); @@ -23853,18 +22684,11 @@ class new_integrate_interface_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - r = in__.template read(); + double r = in__.template read(); std::vector ra = - std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - ra = in__.template read>(N); + in__.template read>(N); Eigen::Matrix v = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - v = in__.template read>(N); + in__.template read>(N); std::vector> z = std::vector>(N, Eigen::Matrix::Constant(N, @@ -25991,8 +24815,6 @@ class old_integrate_interface_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 18; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 18; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 19; stan::math::validate_non_negative_index("ts", "N", N); @@ -26000,15 +24822,11 @@ class old_integrate_interface_model final : public model_base_crtp{static_cast(N)}); ts = std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 20; - ts = context__.vals_r("ts"); current_statement__ = 21; context__.validate_dims("data initialization", "y_init", "double", std::vector{static_cast(2)}); y_init = std::vector(2, std::numeric_limits::quiet_NaN()); - current_statement__ = 21; - y_init = context__.vals_r("y_init"); current_statement__ = 22; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 23; @@ -26016,20 +24834,6 @@ class old_integrate_interface_model final : public model_base_crtp{static_cast(N), static_cast(2)}); y = std::vector>(N, std::vector(2, std::numeric_limits::quiet_NaN())); - { - std::vector y_flat__; - current_statement__ = 23; - y_flat__ = context__.vals_r("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 23; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 24; @@ -26070,32 +24874,24 @@ class old_integrate_interface_model final : public model_base_crtp(0, lp__); - local_scalar_t__ beta = DUMMY_VAR__; - current_statement__ = 2; - beta = in__.template read_constrain_lb(0, - lp__); - local_scalar_t__ gamma = DUMMY_VAR__; - current_statement__ = 3; - gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ delta = DUMMY_VAR__; - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ alpha = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ beta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ gamma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ delta = + in__.template read_constrain_lb(0, + lp__); std::vector z_init = - std::vector(2, DUMMY_VAR__); - current_statement__ = 5; - z_init = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); std::vector sigma = - std::vector(2, DUMMY_VAR__); - current_statement__ = 6; - sigma = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); std::vector> z = std::vector>(N, std::vector(2, DUMMY_VAR__)); @@ -26174,32 +24970,24 @@ class old_integrate_interface_model final : public model_base_crtp(0, lp__); - local_scalar_t__ beta = DUMMY_VAR__; - current_statement__ = 2; - beta = in__.template read_constrain_lb(0, - lp__); - local_scalar_t__ gamma = DUMMY_VAR__; - current_statement__ = 3; - gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ delta = DUMMY_VAR__; - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ alpha = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ beta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ gamma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ delta = + in__.template read_constrain_lb(0, + lp__); std::vector z_init = - std::vector(2, DUMMY_VAR__); - current_statement__ = 5; - z_init = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); std::vector sigma = - std::vector(2, DUMMY_VAR__); - current_statement__ = 6; - sigma = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); std::vector> z = std::vector>(N, std::vector(2, DUMMY_VAR__)); @@ -26289,32 +25077,24 @@ class old_integrate_interface_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - alpha = in__.template read_constrain_lb(0, lp__); - double beta = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - beta = in__.template read_constrain_lb(0, - lp__); - double gamma = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - gamma = in__.template read_constrain_lb(0, lp__); - double delta = std::numeric_limits::quiet_NaN(); - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + double alpha = + in__.template read_constrain_lb(0, + lp__); + double beta = + in__.template read_constrain_lb(0, + lp__); + double gamma = + in__.template read_constrain_lb(0, + lp__); + double delta = + in__.template read_constrain_lb(0, + lp__); std::vector z_init = - std::vector(2, std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - z_init = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); std::vector sigma = - std::vector(2, std::numeric_limits::quiet_NaN()); - current_statement__ = 6; - sigma = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); std::vector> z = std::vector>(N, std::vector(2, std::numeric_limits::quiet_NaN())); @@ -26929,16 +25709,12 @@ class optimize_glm_model final : public model_base_crtp { std::vector{}); k = std::numeric_limits::min(); current_statement__ = 176; - k = context__.vals_i("k")[(1 - 1)]; - current_statement__ = 176; stan::math::check_greater_or_equal(function__, "k", k, 1); current_statement__ = 177; context__.validate_dims("data initialization", "n", "int", std::vector{}); n = std::numeric_limits::min(); current_statement__ = 177; - n = context__.vals_i("n")[(1 - 1)]; - current_statement__ = 177; stan::math::check_greater_or_equal(function__, "n", n, 0); current_statement__ = 178; stan::math::validate_non_negative_index("X_d", "n", n); @@ -26951,20 +25727,6 @@ class optimize_glm_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&X_d) Eigen::Map>(X_d_data__.data(), n, k); - { - std::vector X_d_flat__; - current_statement__ = 180; - X_d_flat__ = context__.vals_r("X_d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= k; ++sym1__) { - for (int sym2__ = 1; sym2__ <= n; ++sym2__) { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 181; stan::math::validate_non_negative_index("X_d_a", "n", n); current_statement__ = 182; @@ -26976,23 +25738,6 @@ class optimize_glm_model final : public model_base_crtp { X_d_a = std::vector>(2, Eigen::Matrix::Constant(n, k, std::numeric_limits::quiet_NaN())); - { - std::vector X_d_a_flat__; - current_statement__ = 183; - X_d_a_flat__ = context__.vals_r("X_d_a"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= k; ++sym1__) { - for (int sym2__ = 1; sym2__ <= n; ++sym2__) { - for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { - stan::model::assign(X_d_a, X_d_a_flat__[(pos__ - 1)], - "assigning variable X_d_a", stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 184; stan::math::validate_non_negative_index("y_v_d", "n", n); current_statement__ = 185; @@ -27002,17 +25747,6 @@ class optimize_glm_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&y_v_d) Eigen::Map>(y_v_d_data__.data(), n); - { - std::vector y_v_d_flat__; - current_statement__ = 185; - y_v_d_flat__ = context__.vals_r("y_v_d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n; ++sym1__) { - stan::model::assign(y_v_d, y_v_d_flat__[(pos__ - 1)], - "assigning variable y_v_d", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 186; stan::math::validate_non_negative_index("X_rv_d", "n", n); current_statement__ = 187; @@ -27022,45 +25756,26 @@ class optimize_glm_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&X_rv_d) Eigen::Map>(X_rv_d_data__.data(), n); - { - std::vector X_rv_d_flat__; - current_statement__ = 187; - X_rv_d_flat__ = context__.vals_r("X_rv_d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n; ++sym1__) { - stan::model::assign(X_rv_d, X_rv_d_flat__[(pos__ - 1)], - "assigning variable X_rv_d", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 188; stan::math::validate_non_negative_index("y_vi_d", "n", n); current_statement__ = 189; context__.validate_dims("data initialization", "y_vi_d", "int", std::vector{static_cast(n)}); y_vi_d = std::vector(n, std::numeric_limits::min()); - current_statement__ = 189; - y_vi_d = context__.vals_i("y_vi_d"); current_statement__ = 190; stan::math::validate_non_negative_index("y2_vi_d", "n", n); current_statement__ = 191; context__.validate_dims("data initialization", "y2_vi_d", "int", std::vector{static_cast(n)}); y2_vi_d = std::vector(n, std::numeric_limits::min()); - current_statement__ = 191; - y2_vi_d = context__.vals_i("y2_vi_d"); current_statement__ = 192; context__.validate_dims("data initialization", "y_s_d", "int", std::vector{}); y_s_d = std::numeric_limits::min(); - current_statement__ = 192; - y_s_d = context__.vals_i("y_s_d")[(1 - 1)]; current_statement__ = 193; context__.validate_dims("data initialization", "y_r_d", "double", std::vector{}); y_r_d = std::numeric_limits::quiet_NaN(); - current_statement__ = 193; - y_r_d = context__.vals_r("y_r_d")[(1 - 1)]; current_statement__ = 194; k_td = std::numeric_limits::min(); current_statement__ = 195; @@ -27157,40 +25872,22 @@ class optimize_glm_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix alpha_v = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 1; - alpha_v = in__.template read>(k); + in__.template read>(k); Eigen::Matrix beta = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 2; - beta = in__.template read>(k); + in__.template read>(k); Eigen::Matrix cuts = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 3; - cuts = in__.template read>(k); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 4; - sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ alpha = DUMMY_VAR__; - current_statement__ = 5; - alpha = in__.template read(); - local_scalar_t__ phi = DUMMY_VAR__; - current_statement__ = 6; - phi = in__.template read(); + in__.template read>(k); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ alpha = in__.template read(); + local_scalar_t__ phi = in__.template read(); Eigen::Matrix X_p = - Eigen::Matrix::Constant(n, k, DUMMY_VAR__); - current_statement__ = 7; - X_p = in__.template read>(n, k); + in__.template read>(n, k); Eigen::Matrix beta_m = - Eigen::Matrix::Constant(n, k, DUMMY_VAR__); - current_statement__ = 8; - beta_m = in__.template read>(n, - k); + in__.template read>(n, k); Eigen::Matrix X_rv_p = - Eigen::Matrix::Constant(n, DUMMY_VAR__); - current_statement__ = 9; - X_rv_p = in__.template read>(n); + in__.template read>(n); { current_statement__ = 10; lp_accum__.add(stan::math::normal_id_glm_lpdf(y_v_d, X_d, @@ -27724,40 +26421,22 @@ class optimize_glm_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix alpha_v = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 1; - alpha_v = in__.template read>(k); + in__.template read>(k); Eigen::Matrix beta = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 2; - beta = in__.template read>(k); + in__.template read>(k); Eigen::Matrix cuts = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 3; - cuts = in__.template read>(k); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 4; - sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ alpha = DUMMY_VAR__; - current_statement__ = 5; - alpha = in__.template read(); - local_scalar_t__ phi = DUMMY_VAR__; - current_statement__ = 6; - phi = in__.template read(); + in__.template read>(k); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ alpha = in__.template read(); + local_scalar_t__ phi = in__.template read(); Eigen::Matrix X_p = - Eigen::Matrix::Constant(n, k, DUMMY_VAR__); - current_statement__ = 7; - X_p = in__.template read>(n, k); + in__.template read>(n, k); Eigen::Matrix beta_m = - Eigen::Matrix::Constant(n, k, DUMMY_VAR__); - current_statement__ = 8; - beta_m = in__.template read>(n, - k); + in__.template read>(n, k); Eigen::Matrix X_rv_p = - Eigen::Matrix::Constant(n, DUMMY_VAR__); - current_statement__ = 9; - X_rv_p = in__.template read>(n); + in__.template read>(n); { current_statement__ = 10; lp_accum__.add(stan::math::normal_id_glm_lpdf(y_v_d, X_d, @@ -28302,46 +26981,22 @@ class optimize_glm_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix alpha_v = - Eigen::Matrix::Constant(k, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - alpha_v = in__.template read>(k); + in__.template read>(k); Eigen::Matrix beta = - Eigen::Matrix::Constant(k, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - beta = in__.template read>(k); + in__.template read>(k); Eigen::Matrix cuts = - Eigen::Matrix::Constant(k, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - cuts = in__.template read>(k); - double sigma = std::numeric_limits::quiet_NaN(); - current_statement__ = 4; - sigma = in__.template read_constrain_lb(0, lp__); - double alpha = std::numeric_limits::quiet_NaN(); - current_statement__ = 5; - alpha = in__.template read(); - double phi = std::numeric_limits::quiet_NaN(); - current_statement__ = 6; - phi = in__.template read(); + in__.template read>(k); + double sigma = + in__.template read_constrain_lb(0, + lp__); + double alpha = in__.template read(); + double phi = in__.template read(); Eigen::Matrix X_p = - Eigen::Matrix::Constant(n, k, - std::numeric_limits::quiet_NaN()); - current_statement__ = 7; - X_p = in__.template read>(n, k); + in__.template read>(n, k); Eigen::Matrix beta_m = - Eigen::Matrix::Constant(n, k, - std::numeric_limits::quiet_NaN()); - current_statement__ = 8; - beta_m = in__.template read>(n, - k); + in__.template read>(n, k); Eigen::Matrix X_rv_p = - Eigen::Matrix::Constant(n, - std::numeric_limits::quiet_NaN()); - current_statement__ = 9; - X_rv_p = in__.template read>(n); + in__.template read>(n); out__.write(alpha_v); out__.write(beta); out__.write(cuts); @@ -29256,12 +27911,8 @@ class overloading_templating_model final : public model_base_crtp(); - local_scalar_t__ z = DUMMY_VAR__; - current_statement__ = 2; - z = in__.template read(); + local_scalar_t__ y = in__.template read(); + local_scalar_t__ z = in__.template read(); { current_statement__ = 3; lp_accum__.add(stan::math::normal_lpdf(y, @@ -29339,12 +27990,8 @@ class overloading_templating_model final : public model_base_crtp(); - local_scalar_t__ z = DUMMY_VAR__; - current_statement__ = 2; - z = in__.template read(); + local_scalar_t__ y = in__.template read(); + local_scalar_t__ z = in__.template read(); { current_statement__ = 3; lp_accum__.add(stan::math::normal_lpdf(y, @@ -29433,12 +28080,8 @@ class overloading_templating_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - y = in__.template read(); - double z = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - z = in__.template read(); + double y = in__.template read(); + double z = in__.template read(); out__.write(y); out__.write(z); if (stan::math::logical_negation( @@ -29692,14 +28335,10 @@ class param_constraint_model final : public model_base_crtp{}); nt = std::numeric_limits::min(); - current_statement__ = 3; - nt = context__.vals_i("nt")[(1 - 1)]; current_statement__ = 4; context__.validate_dims("data initialization", "NS", "int", std::vector{}); NS = std::numeric_limits::min(); - current_statement__ = 4; - NS = context__.vals_i("NS")[(1 - 1)]; current_statement__ = 5; stan::math::validate_non_negative_index("L_Omega", "nt", nt); current_statement__ = 6; @@ -29741,21 +28380,14 @@ class param_constraint_model final : public model_base_crtp> L_Omega = - std::vector>(nt, - Eigen::Matrix::Constant(2, 2, DUMMY_VAR__)); - current_statement__ = 1; - L_Omega = in__.template read_constrain_cholesky_factor_corr< - std::vector>, - jacobian__>(lp__, nt, 2); + in__.template read_constrain_cholesky_factor_corr< + std::vector>, + jacobian__>(lp__, nt, 2); Eigen::Matrix z1 = - Eigen::Matrix::Constant(NS, DUMMY_VAR__); - current_statement__ = 2; - z1 = in__.template read_constrain_lb< - Eigen::Matrix, - jacobian__>(stan::model::rvalue(L_Omega, "L_Omega", - stan::model::index_uni(1), - stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, NS); + in__.template read_constrain_lb, + jacobian__>(stan::model::rvalue(L_Omega, "L_Omega", + stan::model::index_uni(1), stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, NS); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -29787,21 +28419,14 @@ class param_constraint_model final : public model_base_crtp> L_Omega = - std::vector>(nt, - Eigen::Matrix::Constant(2, 2, DUMMY_VAR__)); - current_statement__ = 1; - L_Omega = in__.template read_constrain_cholesky_factor_corr< - std::vector>, - jacobian__>(lp__, nt, 2); + in__.template read_constrain_cholesky_factor_corr< + std::vector>, + jacobian__>(lp__, nt, 2); Eigen::Matrix z1 = - Eigen::Matrix::Constant(NS, DUMMY_VAR__); - current_statement__ = 2; - z1 = in__.template read_constrain_lb< - Eigen::Matrix, - jacobian__>(stan::model::rvalue(L_Omega, "L_Omega", - stan::model::index_uni(1), - stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, NS); + in__.template read_constrain_lb, + jacobian__>(stan::model::rvalue(L_Omega, "L_Omega", + stan::model::index_uni(1), stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, NS); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -29844,23 +28469,14 @@ class param_constraint_model final : public model_base_crtp> L_Omega = - std::vector>(nt, - Eigen::Matrix::Constant(2, 2, - std::numeric_limits::quiet_NaN())); - current_statement__ = 1; - L_Omega = in__.template read_constrain_cholesky_factor_corr< - std::vector>, - jacobian__>(lp__, nt, 2); + in__.template read_constrain_cholesky_factor_corr< + std::vector>, + jacobian__>(lp__, nt, 2); Eigen::Matrix z1 = - Eigen::Matrix::Constant(NS, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - z1 = in__.template read_constrain_lb< - Eigen::Matrix, - jacobian__>(stan::model::rvalue(L_Omega, "L_Omega", - stan::model::index_uni(1), - stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, NS); + in__.template read_constrain_lb, + jacobian__>(stan::model::rvalue(L_Omega, "L_Omega", + stan::model::index_uni(1), stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, NS); current_statement__ = 1; for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { @@ -31347,14 +29963,10 @@ class recursive_slicing_model final : public model_base_crtp{}); N = std::numeric_limits::min(); - current_statement__ = 4; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 5; context__.validate_dims("data initialization", "times", "int", std::vector{}); times = std::numeric_limits::min(); - current_statement__ = 5; - times = context__.vals_i("times")[(1 - 1)]; current_statement__ = 6; stan::math::validate_non_negative_index("gamma", "times", times); current_statement__ = 7; @@ -31396,9 +30008,7 @@ class recursive_slicing_model final : public model_base_crtp gamma = - Eigen::Matrix::Constant(times, DUMMY_VAR__); - current_statement__ = 1; - gamma = in__.template read>(times); + in__.template read>(times); Eigen::Matrix z_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 2; @@ -31441,9 +30051,7 @@ class recursive_slicing_model final : public model_base_crtp gamma = - Eigen::Matrix::Constant(times, DUMMY_VAR__); - current_statement__ = 1; - gamma = in__.template read>(times); + in__.template read>(times); Eigen::Matrix z_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 2; @@ -31497,10 +30105,7 @@ class recursive_slicing_model final : public model_base_crtp gamma = - Eigen::Matrix::Constant(times, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - gamma = in__.template read>(times); + in__.template read>(times); Eigen::Matrix z_hat = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); @@ -32055,17 +30660,11 @@ class reduce_sum_m1_model final : public model_base_crtp { (void) function__; try { std::vector y1 = - std::vector(N, DUMMY_VAR__); - current_statement__ = 1; - y1 = in__.template read>(N); + in__.template read>(N); std::vector y2 = - std::vector(N, DUMMY_VAR__); - current_statement__ = 2; - y2 = in__.template read>(N); + in__.template read>(N); std::vector y3 = - std::vector(N, DUMMY_VAR__); - current_statement__ = 3; - y3 = in__.template read>(N); + in__.template read>(N); { current_statement__ = 4; lp_accum__.add(stan::math::reduce_sum(y1, 1, pstream__)); @@ -32110,17 +30709,11 @@ class reduce_sum_m1_model final : public model_base_crtp { (void) function__; try { std::vector y1 = - std::vector(N, DUMMY_VAR__); - current_statement__ = 1; - y1 = in__.template read>(N); + in__.template read>(N); std::vector y2 = - std::vector(N, DUMMY_VAR__); - current_statement__ = 2; - y2 = in__.template read>(N); + in__.template read>(N); std::vector y3 = - std::vector(N, DUMMY_VAR__); - current_statement__ = 3; - y3 = in__.template read>(N); + in__.template read>(N); { current_statement__ = 4; lp_accum__.add(stan::math::reduce_sum(y1, 1, pstream__)); @@ -32176,17 +30769,11 @@ class reduce_sum_m1_model final : public model_base_crtp { (void) function__; try { std::vector y1 = - std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - y1 = in__.template read>(N); + in__.template read>(N); std::vector y2 = - std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - y2 = in__.template read>(N); + in__.template read>(N); std::vector y3 = - std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - y3 = in__.template read>(N); + in__.template read>(N); out__.write(y1); out__.write(y2); out__.write(y3); @@ -33961,111 +32548,55 @@ class reduce_sum_m2_model final : public model_base_crtp { (void) function__; try { std::vector>> a8 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, N, - DUMMY_VAR__))); - current_statement__ = 1; - a8 = in__.template read< - std::vector>>>(N, - N, N, N); + in__.template read< + std::vector>>>(N, + N, N, N); std::vector>> a7 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__))); - current_statement__ = 2; - a7 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector>> a6 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__))); - current_statement__ = 3; - a6 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector> a5 = - std::vector>(N, - std::vector(N, DUMMY_VAR__)); - current_statement__ = 4; - a5 = in__.template read>>(N, - N); + in__.template read>>(N, N); std::vector> a4 = - std::vector>(N, - Eigen::Matrix::Constant(N, N, DUMMY_VAR__)); - current_statement__ = 5; - a4 = in__.template read< - std::vector>>(N, N, N); + in__.template read< + std::vector>>(N, N, N); std::vector> a3 = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 6; - a3 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector> a2 = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 7; - a2 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector a1 = - std::vector(N, DUMMY_VAR__); - current_statement__ = 8; - a1 = in__.template read>(N); + in__.template read>(N); std::vector>> y8 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, N, - DUMMY_VAR__))); - current_statement__ = 9; - y8 = in__.template read< - std::vector>>>(N, - N, N, N); + in__.template read< + std::vector>>>(N, + N, N, N); std::vector>> y7 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__))); - current_statement__ = 10; - y7 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector>> y6 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__))); - current_statement__ = 11; - y6 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector> y5 = - std::vector>(N, - std::vector(N, DUMMY_VAR__)); - current_statement__ = 12; - y5 = in__.template read>>(N, - N); + in__.template read>>(N, N); std::vector> y4 = - std::vector>(N, - Eigen::Matrix::Constant(N, N, DUMMY_VAR__)); - current_statement__ = 13; - y4 = in__.template read< - std::vector>>(N, N, N); + in__.template read< + std::vector>>(N, N, N); std::vector> y3 = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 14; - y3 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector> y2 = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 15; - y2 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector y1 = - std::vector(N, DUMMY_VAR__); - current_statement__ = 16; - y1 = in__.template read>(N); + in__.template read>(N); { current_statement__ = 17; lp_accum__.add(stan::math::reduce_sum(x, 1, @@ -34147,111 +32678,55 @@ class reduce_sum_m2_model final : public model_base_crtp { (void) function__; try { std::vector>> a8 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, N, - DUMMY_VAR__))); - current_statement__ = 1; - a8 = in__.template read< - std::vector>>>(N, - N, N, N); + in__.template read< + std::vector>>>(N, + N, N, N); std::vector>> a7 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__))); - current_statement__ = 2; - a7 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector>> a6 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__))); - current_statement__ = 3; - a6 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector> a5 = - std::vector>(N, - std::vector(N, DUMMY_VAR__)); - current_statement__ = 4; - a5 = in__.template read>>(N, - N); + in__.template read>>(N, N); std::vector> a4 = - std::vector>(N, - Eigen::Matrix::Constant(N, N, DUMMY_VAR__)); - current_statement__ = 5; - a4 = in__.template read< - std::vector>>(N, N, N); + in__.template read< + std::vector>>(N, N, N); std::vector> a3 = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 6; - a3 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector> a2 = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 7; - a2 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector a1 = - std::vector(N, DUMMY_VAR__); - current_statement__ = 8; - a1 = in__.template read>(N); + in__.template read>(N); std::vector>> y8 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, N, - DUMMY_VAR__))); - current_statement__ = 9; - y8 = in__.template read< - std::vector>>>(N, - N, N, N); + in__.template read< + std::vector>>>(N, + N, N, N); std::vector>> y7 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__))); - current_statement__ = 10; - y7 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector>> y6 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__))); - current_statement__ = 11; - y6 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector> y5 = - std::vector>(N, - std::vector(N, DUMMY_VAR__)); - current_statement__ = 12; - y5 = in__.template read>>(N, - N); + in__.template read>>(N, N); std::vector> y4 = - std::vector>(N, - Eigen::Matrix::Constant(N, N, DUMMY_VAR__)); - current_statement__ = 13; - y4 = in__.template read< - std::vector>>(N, N, N); + in__.template read< + std::vector>>(N, N, N); std::vector> y3 = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 14; - y3 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector> y2 = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 15; - y2 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector y1 = - std::vector(N, DUMMY_VAR__); - current_statement__ = 16; - y1 = in__.template read>(N); + in__.template read>(N); { current_statement__ = 17; lp_accum__.add(stan::math::reduce_sum(x, 1, @@ -34344,121 +32819,55 @@ class reduce_sum_m2_model final : public model_base_crtp { (void) function__; try { std::vector>> a8 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, N, - std::numeric_limits::quiet_NaN()))); - current_statement__ = 1; - a8 = in__.template read< - std::vector>>>(N, - N, N, N); + in__.template read< + std::vector>>>(N, + N, N, N); std::vector>> a7 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()))); - current_statement__ = 2; - a7 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector>> a6 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()))); - current_statement__ = 3; - a6 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector> a5 = - std::vector>(N, - std::vector(N, std::numeric_limits::quiet_NaN())); - current_statement__ = 4; - a5 = in__.template read>>(N, - N); + in__.template read>>(N, N); std::vector> a4 = - std::vector>(N, - Eigen::Matrix::Constant(N, N, - std::numeric_limits::quiet_NaN())); - current_statement__ = 5; - a4 = in__.template read< - std::vector>>(N, N, N); + in__.template read< + std::vector>>(N, N, N); std::vector> a3 = - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN())); - current_statement__ = 6; - a3 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector> a2 = - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN())); - current_statement__ = 7; - a2 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector a1 = - std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 8; - a1 = in__.template read>(N); + in__.template read>(N); std::vector>> y8 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, N, - std::numeric_limits::quiet_NaN()))); - current_statement__ = 9; - y8 = in__.template read< - std::vector>>>(N, - N, N, N); + in__.template read< + std::vector>>>(N, + N, N, N); std::vector>> y7 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()))); - current_statement__ = 10; - y7 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector>> y6 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()))); - current_statement__ = 11; - y6 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector> y5 = - std::vector>(N, - std::vector(N, std::numeric_limits::quiet_NaN())); - current_statement__ = 12; - y5 = in__.template read>>(N, - N); + in__.template read>>(N, N); std::vector> y4 = - std::vector>(N, - Eigen::Matrix::Constant(N, N, - std::numeric_limits::quiet_NaN())); - current_statement__ = 13; - y4 = in__.template read< - std::vector>>(N, N, N); + in__.template read< + std::vector>>(N, N, N); std::vector> y3 = - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN())); - current_statement__ = 14; - y3 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector> y2 = - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN())); - current_statement__ = 15; - y2 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector y1 = - std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 16; - y1 = in__.template read>(N); + in__.template read>(N); current_statement__ = 1; for (int sym1__ = 1; sym1__ <= N; ++sym1__) { for (int sym2__ = 1; sym2__ <= N; ++sym2__) { @@ -38180,16 +36589,12 @@ class reduce_sum_m3_model final : public model_base_crtp { context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); - current_statement__ = 67; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 68; stan::math::validate_non_negative_index("y1d", "N", N); current_statement__ = 69; context__.validate_dims("data initialization", "y1d", "double", std::vector{static_cast(N)}); y1d = std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 69; - y1d = context__.vals_r("y1d"); current_statement__ = 70; stan::math::validate_non_negative_index("y2d", "N", N); current_statement__ = 71; @@ -38200,20 +36605,6 @@ class reduce_sum_m3_model final : public model_base_crtp { y2d = std::vector>(N, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())); - { - std::vector y2d_flat__; - current_statement__ = 72; - y2d_flat__ = context__.vals_r("y2d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(y2d, y2d_flat__[(pos__ - 1)], - "assigning variable y2d", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 73; stan::math::validate_non_negative_index("y3d", "N", N); current_statement__ = 74; @@ -38224,20 +36615,6 @@ class reduce_sum_m3_model final : public model_base_crtp { y3d = std::vector>(N, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())); - { - std::vector y3d_flat__; - current_statement__ = 75; - y3d_flat__ = context__.vals_r("y3d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(y3d, y3d_flat__[(pos__ - 1)], - "assigning variable y3d", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 76; stan::math::validate_non_negative_index("y4d", "N", N); current_statement__ = 77; @@ -38251,23 +36628,6 @@ class reduce_sum_m3_model final : public model_base_crtp { y4d = std::vector>(N, Eigen::Matrix::Constant(N, N, std::numeric_limits::quiet_NaN())); - { - std::vector y4d_flat__; - current_statement__ = 79; - y4d_flat__ = context__.vals_r("y4d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - for (int sym3__ = 1; sym3__ <= N; ++sym3__) { - stan::model::assign(y4d, y4d_flat__[(pos__ - 1)], - "assigning variable y4d", stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 80; stan::math::validate_non_negative_index("y5d", "N", N); current_statement__ = 81; @@ -38278,20 +36638,6 @@ class reduce_sum_m3_model final : public model_base_crtp { y5d = std::vector>(N, std::vector(N, std::numeric_limits::quiet_NaN())); - { - std::vector y5d_flat__; - current_statement__ = 82; - y5d_flat__ = context__.vals_r("y5d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(y5d, y5d_flat__[(pos__ - 1)], - "assigning variable y5d", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 83; stan::math::validate_non_negative_index("y6d", "N", N); current_statement__ = 84; @@ -38306,23 +36652,6 @@ class reduce_sum_m3_model final : public model_base_crtp { std::vector>(N, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()))); - { - std::vector y6d_flat__; - current_statement__ = 86; - y6d_flat__ = context__.vals_r("y6d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - for (int sym3__ = 1; sym3__ <= N; ++sym3__) { - stan::model::assign(y6d, y6d_flat__[(pos__ - 1)], - "assigning variable y6d", stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 87; stan::math::validate_non_negative_index("y7d", "N", N); current_statement__ = 88; @@ -38337,23 +36666,6 @@ class reduce_sum_m3_model final : public model_base_crtp { std::vector>(N, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()))); - { - std::vector y7d_flat__; - current_statement__ = 90; - y7d_flat__ = context__.vals_r("y7d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - for (int sym3__ = 1; sym3__ <= N; ++sym3__) { - stan::model::assign(y7d, y7d_flat__[(pos__ - 1)], - "assigning variable y7d", stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 91; stan::math::validate_non_negative_index("y8d", "N", N); current_statement__ = 92; @@ -38370,32 +36682,10 @@ class reduce_sum_m3_model final : public model_base_crtp { std::vector>(N, Eigen::Matrix::Constant(N, N, std::numeric_limits::quiet_NaN()))); - { - std::vector y8d_flat__; - current_statement__ = 95; - y8d_flat__ = context__.vals_r("y8d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - for (int sym3__ = 1; sym3__ <= N; ++sym3__) { - for (int sym4__ = 1; sym4__ <= N; ++sym4__) { - stan::model::assign(y8d, y8d_flat__[(pos__ - 1)], - "assigning variable y8d", stan::model::index_uni(sym4__), - stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } - } current_statement__ = 96; context__.validate_dims("data initialization", "y9d", "double", std::vector{}); y9d = std::numeric_limits::quiet_NaN(); - current_statement__ = 96; - y9d = context__.vals_r("y9d")[(1 - 1)]; current_statement__ = 97; stan::math::validate_non_negative_index("y10d", "N", N); current_statement__ = 98; @@ -38405,17 +36695,6 @@ class reduce_sum_m3_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&y10d) Eigen::Map>(y10d_data__.data(), N); - { - std::vector y10d_flat__; - current_statement__ = 98; - y10d_flat__ = context__.vals_r("y10d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(y10d, y10d_flat__[(pos__ - 1)], - "assigning variable y10d", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 99; stan::math::validate_non_negative_index("y11d", "N", N); current_statement__ = 100; @@ -38425,17 +36704,6 @@ class reduce_sum_m3_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&y11d) Eigen::Map>(y11d_data__.data(), N); - { - std::vector y11d_flat__; - current_statement__ = 100; - y11d_flat__ = context__.vals_r("y11d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(y11d, y11d_flat__[(pos__ - 1)], - "assigning variable y11d", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 101; stan::math::validate_non_negative_index("y12d", "N", N); current_statement__ = 102; @@ -38447,34 +36715,16 @@ class reduce_sum_m3_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&y12d) Eigen::Map>(y12d_data__.data(), N, N); - { - std::vector y12d_flat__; - current_statement__ = 103; - y12d_flat__ = context__.vals_r("y12d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(y12d, y12d_flat__[(pos__ - 1)], - "assigning variable y12d", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 104; context__.validate_dims("data initialization", "y13d", "int", std::vector{}); y13d = std::numeric_limits::min(); - current_statement__ = 104; - y13d = context__.vals_i("y13d")[(1 - 1)]; current_statement__ = 105; stan::math::validate_non_negative_index("y14d", "N", N); current_statement__ = 106; context__.validate_dims("data initialization", "y14d", "int", std::vector{static_cast(N)}); y14d = std::vector(N, std::numeric_limits::min()); - current_statement__ = 106; - y14d = context__.vals_i("y14d"); current_statement__ = 107; stan::math::validate_non_negative_index("y15d", "N", N); current_statement__ = 108; @@ -38484,20 +36734,6 @@ class reduce_sum_m3_model final : public model_base_crtp { std::vector{static_cast(N), static_cast(N)}); y15d = std::vector>(N, std::vector(N, std::numeric_limits::min())); - { - std::vector y15d_flat__; - current_statement__ = 109; - y15d_flat__ = context__.vals_i("y15d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(y15d, y15d_flat__[(pos__ - 1)], - "assigning variable y15d", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 110; stan::math::validate_non_negative_index("y16d", "N", N); current_statement__ = 111; @@ -38511,23 +36747,6 @@ class reduce_sum_m3_model final : public model_base_crtp { y16d = std::vector>>(N, std::vector>(N, std::vector(N, std::numeric_limits::min()))); - { - std::vector y16d_flat__; - current_statement__ = 113; - y16d_flat__ = context__.vals_i("y16d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - for (int sym3__ = 1; sym3__ <= N; ++sym3__) { - stan::model::assign(y16d, y16d_flat__[(pos__ - 1)], - "assigning variable y16d", stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 114; stan::math::validate_non_negative_index("y17d", "N", N); current_statement__ = 115; @@ -38542,23 +36761,6 @@ class reduce_sum_m3_model final : public model_base_crtp { std::vector>(N, std::vector(N, std::numeric_limits::quiet_NaN()))); - { - std::vector y17d_flat__; - current_statement__ = 117; - y17d_flat__ = context__.vals_r("y17d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - for (int sym3__ = 1; sym3__ <= N; ++sym3__) { - stan::model::assign(y17d, y17d_flat__[(pos__ - 1)], - "assigning variable y17d", stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 118; td1 = std::numeric_limits::quiet_NaN(); current_statement__ = 118; @@ -38759,81 +36961,40 @@ class reduce_sum_m3_model final : public model_base_crtp { (void) function__; try { std::vector y1 = - std::vector(N, DUMMY_VAR__); - current_statement__ = 1; - y1 = in__.template read>(N); + in__.template read>(N); std::vector> y2 = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 2; - y2 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector> y3 = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 3; - y3 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector> y4 = - std::vector>(N, - Eigen::Matrix::Constant(N, N, DUMMY_VAR__)); - current_statement__ = 4; - y4 = in__.template read< - std::vector>>(N, N, N); + in__.template read< + std::vector>>(N, N, N); std::vector> y5 = - std::vector>(N, - std::vector(N, DUMMY_VAR__)); - current_statement__ = 5; - y5 = in__.template read>>(N, - N); + in__.template read>>(N, N); std::vector>> y6 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__))); - current_statement__ = 6; - y6 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector>> y7 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__))); - current_statement__ = 7; - y7 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector>> y8 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, N, - DUMMY_VAR__))); - current_statement__ = 8; - y8 = in__.template read< - std::vector>>>(N, - N, N, N); - local_scalar_t__ y9 = DUMMY_VAR__; - current_statement__ = 9; - y9 = in__.template read(); + in__.template read< + std::vector>>>(N, + N, N, N); + local_scalar_t__ y9 = in__.template read(); Eigen::Matrix y10 = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 10; - y10 = in__.template read>(N); + in__.template read>(N); Eigen::Matrix y11 = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 11; - y11 = in__.template read>(N); + in__.template read>(N); Eigen::Matrix y12 = - Eigen::Matrix::Constant(N, N, DUMMY_VAR__); - current_statement__ = 12; - y12 = in__.template read>(N, N); + in__.template read>(N, N); std::vector>> y17 = - std::vector>>(N, - std::vector>(N, - std::vector(N, DUMMY_VAR__))); - current_statement__ = 13; - y17 = in__.template read< - std::vector>>>(N, N, - N); + in__.template read< + std::vector>>>(N, N, N); { local_scalar_t__ t1 = DUMMY_VAR__; current_statement__ = 40; @@ -38951,81 +37112,40 @@ class reduce_sum_m3_model final : public model_base_crtp { (void) function__; try { std::vector y1 = - std::vector(N, DUMMY_VAR__); - current_statement__ = 1; - y1 = in__.template read>(N); + in__.template read>(N); std::vector> y2 = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 2; - y2 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector> y3 = - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 3; - y3 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector> y4 = - std::vector>(N, - Eigen::Matrix::Constant(N, N, DUMMY_VAR__)); - current_statement__ = 4; - y4 = in__.template read< - std::vector>>(N, N, N); + in__.template read< + std::vector>>(N, N, N); std::vector> y5 = - std::vector>(N, - std::vector(N, DUMMY_VAR__)); - current_statement__ = 5; - y5 = in__.template read>>(N, - N); + in__.template read>>(N, N); std::vector>> y6 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__))); - current_statement__ = 6; - y6 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector>> y7 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, DUMMY_VAR__))); - current_statement__ = 7; - y7 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector>> y8 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, N, - DUMMY_VAR__))); - current_statement__ = 8; - y8 = in__.template read< - std::vector>>>(N, - N, N, N); - local_scalar_t__ y9 = DUMMY_VAR__; - current_statement__ = 9; - y9 = in__.template read(); + in__.template read< + std::vector>>>(N, + N, N, N); + local_scalar_t__ y9 = in__.template read(); Eigen::Matrix y10 = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 10; - y10 = in__.template read>(N); + in__.template read>(N); Eigen::Matrix y11 = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 11; - y11 = in__.template read>(N); + in__.template read>(N); Eigen::Matrix y12 = - Eigen::Matrix::Constant(N, N, DUMMY_VAR__); - current_statement__ = 12; - y12 = in__.template read>(N, N); + in__.template read>(N, N); std::vector>> y17 = - std::vector>>(N, - std::vector>(N, - std::vector(N, DUMMY_VAR__))); - current_statement__ = 13; - y17 = in__.template read< - std::vector>>>(N, N, - N); + in__.template read< + std::vector>>>(N, N, N); { local_scalar_t__ t1 = DUMMY_VAR__; current_statement__ = 40; @@ -39154,89 +37274,40 @@ class reduce_sum_m3_model final : public model_base_crtp { (void) function__; try { std::vector y1 = - std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - y1 = in__.template read>(N); + in__.template read>(N); std::vector> y2 = - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN())); - current_statement__ = 2; - y2 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector> y3 = - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN())); - current_statement__ = 3; - y3 = in__.template read< - std::vector>>(N, N); + in__.template read< + std::vector>>(N, N); std::vector> y4 = - std::vector>(N, - Eigen::Matrix::Constant(N, N, - std::numeric_limits::quiet_NaN())); - current_statement__ = 4; - y4 = in__.template read< - std::vector>>(N, N, N); + in__.template read< + std::vector>>(N, N, N); std::vector> y5 = - std::vector>(N, - std::vector(N, std::numeric_limits::quiet_NaN())); - current_statement__ = 5; - y5 = in__.template read>>(N, - N); + in__.template read>>(N, N); std::vector>> y6 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()))); - current_statement__ = 6; - y6 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector>> y7 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()))); - current_statement__ = 7; - y7 = in__.template read< - std::vector>>>(N, - N, N); + in__.template read< + std::vector>>>(N, + N, N); std::vector>> y8 = - std::vector>>(N, - std::vector>(N, - Eigen::Matrix::Constant(N, N, - std::numeric_limits::quiet_NaN()))); - current_statement__ = 8; - y8 = in__.template read< - std::vector>>>(N, - N, N, N); - double y9 = std::numeric_limits::quiet_NaN(); - current_statement__ = 9; - y9 = in__.template read(); + in__.template read< + std::vector>>>(N, + N, N, N); + double y9 = in__.template read(); Eigen::Matrix y10 = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 10; - y10 = in__.template read>(N); + in__.template read>(N); Eigen::Matrix y11 = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 11; - y11 = in__.template read>(N); + in__.template read>(N); Eigen::Matrix y12 = - Eigen::Matrix::Constant(N, N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 12; - y12 = in__.template read>(N, N); + in__.template read>(N, N); std::vector>> y17 = - std::vector>>(N, - std::vector>(N, - std::vector(N, std::numeric_limits::quiet_NaN()))); - current_statement__ = 13; - y17 = in__.template read< - std::vector>>>(N, N, - N); + in__.template read< + std::vector>>>(N, N, N); out__.write(y1); current_statement__ = 2; for (int sym1__ = 1; sym1__ <= N; ++sym1__) { @@ -40341,20 +38412,6 @@ class reject_exit_model final : public model_base_crtp { A_data__ = Eigen::Matrix::Constant(3, 3, std::numeric_limits::quiet_NaN()); new (&A) Eigen::Map>(A_data__.data(), 3, 3); - { - std::vector A_flat__; - current_statement__ = 6; - A_flat__ = context__.vals_r("A"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { - stan::model::assign(A, A_flat__[(pos__ - 1)], - "assigning variable A", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -40391,9 +38448,7 @@ class reject_exit_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ x = DUMMY_VAR__; - current_statement__ = 1; - x = in__.template read(); + local_scalar_t__ x = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(x, 0, 1)); @@ -40448,9 +38503,7 @@ class reject_exit_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ x = DUMMY_VAR__; - current_statement__ = 1; - x = in__.template read(); + local_scalar_t__ x = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(x, 0, 1)); @@ -40516,9 +38569,7 @@ class reject_exit_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double x = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - x = in__.template read(); + double x = in__.template read(); out__.write(x); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -40879,9 +38930,7 @@ class return_position_types_model final : public model_base_crtp(); + local_scalar_t__ a = in__.template read(); { std::vector z = std::vector(1, DUMMY_VAR__); @@ -40928,9 +38977,7 @@ class return_position_types_model final : public model_base_crtp(); + local_scalar_t__ a = in__.template read(); { std::vector z = std::vector(1, DUMMY_VAR__); @@ -40988,9 +39035,7 @@ class return_position_types_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - a = in__.template read(); + double a = in__.template read(); out__.write(a); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -41715,17 +39760,6 @@ class shadowing_model final : public model_base_crtp { x_data__ = Eigen::Matrix::Constant(4, std::numeric_limits::quiet_NaN()); new (&x) Eigen::Map>(x_data__.data(), 4); - { - std::vector x_flat__; - current_statement__ = 47; - x_flat__ = context__.vals_r("x"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 4; ++sym1__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 48; stan::math::validate_non_negative_index("called", "1", 1); current_statement__ = 49; @@ -41773,113 +39807,52 @@ class shadowing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ e = DUMMY_VAR__; - current_statement__ = 1; - e = in__.template read(); - local_scalar_t__ pi = DUMMY_VAR__; - current_statement__ = 2; - pi = in__.template read(); - local_scalar_t__ log2 = DUMMY_VAR__; - current_statement__ = 3; - log2 = in__.template read(); - local_scalar_t__ log10 = DUMMY_VAR__; - current_statement__ = 4; - log10 = in__.template read(); - local_scalar_t__ sqrt2 = DUMMY_VAR__; - current_statement__ = 5; - sqrt2 = in__.template read(); - local_scalar_t__ not_a_number = DUMMY_VAR__; - current_statement__ = 6; - not_a_number = in__.template read(); - local_scalar_t__ positive_infinity = DUMMY_VAR__; - current_statement__ = 7; - positive_infinity = in__.template read(); - local_scalar_t__ negative_infinity = DUMMY_VAR__; - current_statement__ = 8; - negative_infinity = in__.template read(); - local_scalar_t__ machine_precision = DUMMY_VAR__; - current_statement__ = 9; - machine_precision = in__.template read(); - local_scalar_t__ inv_logit = DUMMY_VAR__; - current_statement__ = 10; - inv_logit = in__.template read(); - local_scalar_t__ logit = DUMMY_VAR__; - current_statement__ = 11; - logit = in__.template read(); - local_scalar_t__ num_elements = DUMMY_VAR__; - current_statement__ = 12; - num_elements = in__.template read(); - local_scalar_t__ pow = DUMMY_VAR__; - current_statement__ = 13; - pow = in__.template read(); - local_scalar_t__ add = DUMMY_VAR__; - current_statement__ = 14; - add = in__.template read(); - local_scalar_t__ sub = DUMMY_VAR__; - current_statement__ = 15; - sub = in__.template read(); - local_scalar_t__ multiply = DUMMY_VAR__; - current_statement__ = 16; - multiply = in__.template read(); - local_scalar_t__ lchoose = DUMMY_VAR__; - current_statement__ = 17; - lchoose = in__.template read(); - local_scalar_t__ binomial_coefficient_log = DUMMY_VAR__; - current_statement__ = 18; - binomial_coefficient_log = in__.template read(); - local_scalar_t__ read_constrain_lb = DUMMY_VAR__; - current_statement__ = 19; - read_constrain_lb = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ read = DUMMY_VAR__; - current_statement__ = 20; - read = in__.template read(); - local_scalar_t__ validate_non_negative_index = DUMMY_VAR__; - current_statement__ = 21; - validate_non_negative_index = in__.template read(); - local_scalar_t__ length = DUMMY_VAR__; - current_statement__ = 22; - length = in__.template read(); + local_scalar_t__ e = in__.template read(); + local_scalar_t__ pi = in__.template read(); + local_scalar_t__ log2 = in__.template read(); + local_scalar_t__ log10 = in__.template read(); + local_scalar_t__ sqrt2 = in__.template read(); + local_scalar_t__ not_a_number = in__.template read(); + local_scalar_t__ positive_infinity = + in__.template read(); + local_scalar_t__ negative_infinity = + in__.template read(); + local_scalar_t__ machine_precision = + in__.template read(); + local_scalar_t__ inv_logit = in__.template read(); + local_scalar_t__ logit = in__.template read(); + local_scalar_t__ num_elements = in__.template read(); + local_scalar_t__ pow = in__.template read(); + local_scalar_t__ add = in__.template read(); + local_scalar_t__ sub = in__.template read(); + local_scalar_t__ multiply = in__.template read(); + local_scalar_t__ lchoose = in__.template read(); + local_scalar_t__ binomial_coefficient_log = + in__.template read(); + local_scalar_t__ read_constrain_lb = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ read = in__.template read(); + local_scalar_t__ validate_non_negative_index = + in__.template read(); + local_scalar_t__ length = in__.template read(); Eigen::Matrix validate_positive_index = - Eigen::Matrix::Constant(5, DUMMY_VAR__); - current_statement__ = 23; - validate_positive_index = in__.template read_constrain_simplex< - Eigen::Matrix, - jacobian__>(lp__, 5); - local_scalar_t__ profile_map = DUMMY_VAR__; - current_statement__ = 24; - profile_map = in__.template read(); - local_scalar_t__ assign = DUMMY_VAR__; - current_statement__ = 25; - assign = in__.template read(); - local_scalar_t__ rvalue = DUMMY_VAR__; - current_statement__ = 26; - rvalue = in__.template read(); - local_scalar_t__ stan_print = DUMMY_VAR__; - current_statement__ = 27; - stan_print = in__.template read(); - local_scalar_t__ model_base_crtp = DUMMY_VAR__; - current_statement__ = 28; - model_base_crtp = in__.template read(); - local_scalar_t__ index_uni = DUMMY_VAR__; - current_statement__ = 29; - index_uni = in__.template read(); - local_scalar_t__ bernoulli_logit_glm_lpmf = DUMMY_VAR__; - current_statement__ = 30; - bernoulli_logit_glm_lpmf = in__.template read(); - local_scalar_t__ reduce_sum = DUMMY_VAR__; - current_statement__ = 31; - reduce_sum = in__.template read(); + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, 5); + local_scalar_t__ profile_map = in__.template read(); + local_scalar_t__ assign = in__.template read(); + local_scalar_t__ rvalue = in__.template read(); + local_scalar_t__ stan_print = in__.template read(); + local_scalar_t__ model_base_crtp = + in__.template read(); + local_scalar_t__ index_uni = in__.template read(); + local_scalar_t__ bernoulli_logit_glm_lpmf = + in__.template read(); + local_scalar_t__ reduce_sum = in__.template read(); Eigen::Matrix segment = - Eigen::Matrix::Constant(4, DUMMY_VAR__); - current_statement__ = 32; - segment = in__.template read>(4); - local_scalar_t__ ode_bdf = DUMMY_VAR__; - current_statement__ = 33; - ode_bdf = in__.template read(); - local_scalar_t__ ode_bdf_tol = DUMMY_VAR__; - current_statement__ = 34; - ode_bdf_tol = in__.template read(); + in__.template read>(4); + local_scalar_t__ ode_bdf = in__.template read(); + local_scalar_t__ ode_bdf_tol = in__.template read(); local_scalar_t__ mu = DUMMY_VAR__; current_statement__ = 38; mu = ((((((((stan::math::e() + stan::math::pi()) + stan::math::log2()) @@ -41956,113 +39929,52 @@ class shadowing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ e = DUMMY_VAR__; - current_statement__ = 1; - e = in__.template read(); - local_scalar_t__ pi = DUMMY_VAR__; - current_statement__ = 2; - pi = in__.template read(); - local_scalar_t__ log2 = DUMMY_VAR__; - current_statement__ = 3; - log2 = in__.template read(); - local_scalar_t__ log10 = DUMMY_VAR__; - current_statement__ = 4; - log10 = in__.template read(); - local_scalar_t__ sqrt2 = DUMMY_VAR__; - current_statement__ = 5; - sqrt2 = in__.template read(); - local_scalar_t__ not_a_number = DUMMY_VAR__; - current_statement__ = 6; - not_a_number = in__.template read(); - local_scalar_t__ positive_infinity = DUMMY_VAR__; - current_statement__ = 7; - positive_infinity = in__.template read(); - local_scalar_t__ negative_infinity = DUMMY_VAR__; - current_statement__ = 8; - negative_infinity = in__.template read(); - local_scalar_t__ machine_precision = DUMMY_VAR__; - current_statement__ = 9; - machine_precision = in__.template read(); - local_scalar_t__ inv_logit = DUMMY_VAR__; - current_statement__ = 10; - inv_logit = in__.template read(); - local_scalar_t__ logit = DUMMY_VAR__; - current_statement__ = 11; - logit = in__.template read(); - local_scalar_t__ num_elements = DUMMY_VAR__; - current_statement__ = 12; - num_elements = in__.template read(); - local_scalar_t__ pow = DUMMY_VAR__; - current_statement__ = 13; - pow = in__.template read(); - local_scalar_t__ add = DUMMY_VAR__; - current_statement__ = 14; - add = in__.template read(); - local_scalar_t__ sub = DUMMY_VAR__; - current_statement__ = 15; - sub = in__.template read(); - local_scalar_t__ multiply = DUMMY_VAR__; - current_statement__ = 16; - multiply = in__.template read(); - local_scalar_t__ lchoose = DUMMY_VAR__; - current_statement__ = 17; - lchoose = in__.template read(); - local_scalar_t__ binomial_coefficient_log = DUMMY_VAR__; - current_statement__ = 18; - binomial_coefficient_log = in__.template read(); - local_scalar_t__ read_constrain_lb = DUMMY_VAR__; - current_statement__ = 19; - read_constrain_lb = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ read = DUMMY_VAR__; - current_statement__ = 20; - read = in__.template read(); - local_scalar_t__ validate_non_negative_index = DUMMY_VAR__; - current_statement__ = 21; - validate_non_negative_index = in__.template read(); - local_scalar_t__ length = DUMMY_VAR__; - current_statement__ = 22; - length = in__.template read(); + local_scalar_t__ e = in__.template read(); + local_scalar_t__ pi = in__.template read(); + local_scalar_t__ log2 = in__.template read(); + local_scalar_t__ log10 = in__.template read(); + local_scalar_t__ sqrt2 = in__.template read(); + local_scalar_t__ not_a_number = in__.template read(); + local_scalar_t__ positive_infinity = + in__.template read(); + local_scalar_t__ negative_infinity = + in__.template read(); + local_scalar_t__ machine_precision = + in__.template read(); + local_scalar_t__ inv_logit = in__.template read(); + local_scalar_t__ logit = in__.template read(); + local_scalar_t__ num_elements = in__.template read(); + local_scalar_t__ pow = in__.template read(); + local_scalar_t__ add = in__.template read(); + local_scalar_t__ sub = in__.template read(); + local_scalar_t__ multiply = in__.template read(); + local_scalar_t__ lchoose = in__.template read(); + local_scalar_t__ binomial_coefficient_log = + in__.template read(); + local_scalar_t__ read_constrain_lb = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ read = in__.template read(); + local_scalar_t__ validate_non_negative_index = + in__.template read(); + local_scalar_t__ length = in__.template read(); Eigen::Matrix validate_positive_index = - Eigen::Matrix::Constant(5, DUMMY_VAR__); - current_statement__ = 23; - validate_positive_index = in__.template read_constrain_simplex< - Eigen::Matrix, - jacobian__>(lp__, 5); - local_scalar_t__ profile_map = DUMMY_VAR__; - current_statement__ = 24; - profile_map = in__.template read(); - local_scalar_t__ assign = DUMMY_VAR__; - current_statement__ = 25; - assign = in__.template read(); - local_scalar_t__ rvalue = DUMMY_VAR__; - current_statement__ = 26; - rvalue = in__.template read(); - local_scalar_t__ stan_print = DUMMY_VAR__; - current_statement__ = 27; - stan_print = in__.template read(); - local_scalar_t__ model_base_crtp = DUMMY_VAR__; - current_statement__ = 28; - model_base_crtp = in__.template read(); - local_scalar_t__ index_uni = DUMMY_VAR__; - current_statement__ = 29; - index_uni = in__.template read(); - local_scalar_t__ bernoulli_logit_glm_lpmf = DUMMY_VAR__; - current_statement__ = 30; - bernoulli_logit_glm_lpmf = in__.template read(); - local_scalar_t__ reduce_sum = DUMMY_VAR__; - current_statement__ = 31; - reduce_sum = in__.template read(); + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, 5); + local_scalar_t__ profile_map = in__.template read(); + local_scalar_t__ assign = in__.template read(); + local_scalar_t__ rvalue = in__.template read(); + local_scalar_t__ stan_print = in__.template read(); + local_scalar_t__ model_base_crtp = + in__.template read(); + local_scalar_t__ index_uni = in__.template read(); + local_scalar_t__ bernoulli_logit_glm_lpmf = + in__.template read(); + local_scalar_t__ reduce_sum = in__.template read(); Eigen::Matrix segment = - Eigen::Matrix::Constant(4, DUMMY_VAR__); - current_statement__ = 32; - segment = in__.template read>(4); - local_scalar_t__ ode_bdf = DUMMY_VAR__; - current_statement__ = 33; - ode_bdf = in__.template read(); - local_scalar_t__ ode_bdf_tol = DUMMY_VAR__; - current_statement__ = 34; - ode_bdf_tol = in__.template read(); + in__.template read>(4); + local_scalar_t__ ode_bdf = in__.template read(); + local_scalar_t__ ode_bdf_tol = in__.template read(); local_scalar_t__ mu = DUMMY_VAR__; current_statement__ = 38; mu = ((((((((stan::math::e() + stan::math::pi()) + stan::math::log2()) @@ -42150,118 +40062,48 @@ class shadowing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double e = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - e = in__.template read(); - double pi = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - pi = in__.template read(); - double log2 = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - log2 = in__.template read(); - double log10 = std::numeric_limits::quiet_NaN(); - current_statement__ = 4; - log10 = in__.template read(); - double sqrt2 = std::numeric_limits::quiet_NaN(); - current_statement__ = 5; - sqrt2 = in__.template read(); - double not_a_number = std::numeric_limits::quiet_NaN(); - current_statement__ = 6; - not_a_number = in__.template read(); - double positive_infinity = std::numeric_limits::quiet_NaN(); - current_statement__ = 7; - positive_infinity = in__.template read(); - double negative_infinity = std::numeric_limits::quiet_NaN(); - current_statement__ = 8; - negative_infinity = in__.template read(); - double machine_precision = std::numeric_limits::quiet_NaN(); - current_statement__ = 9; - machine_precision = in__.template read(); - double inv_logit = std::numeric_limits::quiet_NaN(); - current_statement__ = 10; - inv_logit = in__.template read(); - double logit = std::numeric_limits::quiet_NaN(); - current_statement__ = 11; - logit = in__.template read(); - double num_elements = std::numeric_limits::quiet_NaN(); - current_statement__ = 12; - num_elements = in__.template read(); - double pow = std::numeric_limits::quiet_NaN(); - current_statement__ = 13; - pow = in__.template read(); - double add = std::numeric_limits::quiet_NaN(); - current_statement__ = 14; - add = in__.template read(); - double sub = std::numeric_limits::quiet_NaN(); - current_statement__ = 15; - sub = in__.template read(); - double multiply = std::numeric_limits::quiet_NaN(); - current_statement__ = 16; - multiply = in__.template read(); - double lchoose = std::numeric_limits::quiet_NaN(); - current_statement__ = 17; - lchoose = in__.template read(); + double e = in__.template read(); + double pi = in__.template read(); + double log2 = in__.template read(); + double log10 = in__.template read(); + double sqrt2 = in__.template read(); + double not_a_number = in__.template read(); + double positive_infinity = in__.template read(); + double negative_infinity = in__.template read(); + double machine_precision = in__.template read(); + double inv_logit = in__.template read(); + double logit = in__.template read(); + double num_elements = in__.template read(); + double pow = in__.template read(); + double add = in__.template read(); + double sub = in__.template read(); + double multiply = in__.template read(); + double lchoose = in__.template read(); double binomial_coefficient_log = - std::numeric_limits::quiet_NaN(); - current_statement__ = 18; - binomial_coefficient_log = in__.template read(); - double read_constrain_lb = std::numeric_limits::quiet_NaN(); - current_statement__ = 19; - read_constrain_lb = in__.template read_constrain_lb(0, lp__); - double read = std::numeric_limits::quiet_NaN(); - current_statement__ = 20; - read = in__.template read(); + in__.template read(); + double read_constrain_lb = + in__.template read_constrain_lb(0, + lp__); + double read = in__.template read(); double validate_non_negative_index = - std::numeric_limits::quiet_NaN(); - current_statement__ = 21; - validate_non_negative_index = in__.template read(); - double length = std::numeric_limits::quiet_NaN(); - current_statement__ = 22; - length = in__.template read(); + in__.template read(); + double length = in__.template read(); Eigen::Matrix validate_positive_index = - Eigen::Matrix::Constant(5, - std::numeric_limits::quiet_NaN()); - current_statement__ = 23; - validate_positive_index = in__.template read_constrain_simplex< - Eigen::Matrix, - jacobian__>(lp__, 5); - double profile_map = std::numeric_limits::quiet_NaN(); - current_statement__ = 24; - profile_map = in__.template read(); - double assign = std::numeric_limits::quiet_NaN(); - current_statement__ = 25; - assign = in__.template read(); - double rvalue = std::numeric_limits::quiet_NaN(); - current_statement__ = 26; - rvalue = in__.template read(); - double stan_print = std::numeric_limits::quiet_NaN(); - current_statement__ = 27; - stan_print = in__.template read(); - double model_base_crtp = std::numeric_limits::quiet_NaN(); - current_statement__ = 28; - model_base_crtp = in__.template read(); - double index_uni = std::numeric_limits::quiet_NaN(); - current_statement__ = 29; - index_uni = in__.template read(); + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, 5); + double profile_map = in__.template read(); + double assign = in__.template read(); + double rvalue = in__.template read(); + double stan_print = in__.template read(); + double model_base_crtp = in__.template read(); + double index_uni = in__.template read(); double bernoulli_logit_glm_lpmf = - std::numeric_limits::quiet_NaN(); - current_statement__ = 30; - bernoulli_logit_glm_lpmf = in__.template read(); - double reduce_sum = std::numeric_limits::quiet_NaN(); - current_statement__ = 31; - reduce_sum = in__.template read(); + in__.template read(); + double reduce_sum = in__.template read(); Eigen::Matrix segment = - Eigen::Matrix::Constant(4, - std::numeric_limits::quiet_NaN()); - current_statement__ = 32; - segment = in__.template read>(4); - double ode_bdf = std::numeric_limits::quiet_NaN(); - current_statement__ = 33; - ode_bdf = in__.template read(); - double ode_bdf_tol = std::numeric_limits::quiet_NaN(); - current_statement__ = 34; - ode_bdf_tol = in__.template read(); + in__.template read>(4); + double ode_bdf = in__.template read(); + double ode_bdf_tol = in__.template read(); double mu = std::numeric_limits::quiet_NaN(); std::vector> called = std::vector>(1, @@ -43584,8 +41426,6 @@ class tilde_block_model final : public model_base_crtp { context__.validate_dims("data initialization", "t", "int", std::vector{}); t = std::numeric_limits::min(); - current_statement__ = 7; - t = context__.vals_i("t")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -43622,10 +41462,9 @@ class tilde_block_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ x = DUMMY_VAR__; - current_statement__ = 1; - x = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ x = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 4; if (t) { @@ -43682,10 +41521,9 @@ class tilde_block_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ x = DUMMY_VAR__; - current_statement__ = 1; - x = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ x = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 4; if (t) { @@ -43753,10 +41591,9 @@ class tilde_block_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double x = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - x = in__.template read_constrain_lb(0, - lp__); + double x = + in__.template read_constrain_lb(0, + lp__); out__.write(x); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -44112,24 +41949,18 @@ class transform_model final : public model_base_crtp { std::vector{}); n = std::numeric_limits::min(); current_statement__ = 37; - n = context__.vals_i("n")[(1 - 1)]; - current_statement__ = 37; stan::math::check_greater_or_equal(function__, "n", n, 1); current_statement__ = 38; context__.validate_dims("data initialization", "m", "int", std::vector{}); m = std::numeric_limits::min(); current_statement__ = 38; - m = context__.vals_i("m")[(1 - 1)]; - current_statement__ = 38; stan::math::check_greater_or_equal(function__, "m", m, 1); current_statement__ = 39; context__.validate_dims("data initialization", "k", "int", std::vector{}); k = std::numeric_limits::min(); current_statement__ = 39; - k = context__.vals_i("k")[(1 - 1)]; - current_statement__ = 39; stan::math::check_greater_or_equal(function__, "k", k, 1); current_statement__ = 40; stan::math::validate_non_negative_index("ds", "n", n); @@ -44145,23 +41976,6 @@ class transform_model final : public model_base_crtp { std::vector>(m, std::vector(k, std::numeric_limits::quiet_NaN()))); - { - std::vector ds_flat__; - current_statement__ = 43; - ds_flat__ = context__.vals_r("ds"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= k; ++sym1__) { - for (int sym2__ = 1; sym2__ <= m; ++sym2__) { - for (int sym3__ = 1; sym3__ <= n; ++sym3__) { - stan::model::assign(ds, ds_flat__[(pos__ - 1)], - "assigning variable ds", stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 44; stan::math::validate_non_negative_index("dv", "n", n); current_statement__ = 45; @@ -44176,23 +41990,6 @@ class transform_model final : public model_base_crtp { std::vector>(m, Eigen::Matrix::Constant(k, std::numeric_limits::quiet_NaN()))); - { - std::vector dv_flat__; - current_statement__ = 47; - dv_flat__ = context__.vals_r("dv"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= k; ++sym1__) { - for (int sym2__ = 1; sym2__ <= m; ++sym2__) { - for (int sym3__ = 1; sym3__ <= n; ++sym3__) { - stan::model::assign(dv, dv_flat__[(pos__ - 1)], - "assigning variable dv", stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 48; stan::math::validate_non_negative_index("dr", "n", n); current_statement__ = 49; @@ -44207,23 +42004,6 @@ class transform_model final : public model_base_crtp { std::vector>(m, Eigen::Matrix::Constant(k, std::numeric_limits::quiet_NaN()))); - { - std::vector dr_flat__; - current_statement__ = 51; - dr_flat__ = context__.vals_r("dr"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= k; ++sym1__) { - for (int sym2__ = 1; sym2__ <= m; ++sym2__) { - for (int sym3__ = 1; sym3__ <= n; ++sym3__) { - stan::model::assign(dr, dr_flat__[(pos__ - 1)], - "assigning variable dr", stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 52; stan::math::validate_non_negative_index("dm", "n", n); current_statement__ = 53; @@ -44237,23 +42017,6 @@ class transform_model final : public model_base_crtp { dm = std::vector>(n, Eigen::Matrix::Constant(m, k, std::numeric_limits::quiet_NaN())); - { - std::vector dm_flat__; - current_statement__ = 55; - dm_flat__ = context__.vals_r("dm"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= k; ++sym1__) { - for (int sym2__ = 1; sym2__ <= m; ++sym2__) { - for (int sym3__ = 1; sym3__ <= n; ++sym3__) { - stan::model::assign(dm, dm_flat__[(pos__ - 1)], - "assigning variable dm", stan::model::index_uni(sym3__), - stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } current_statement__ = 56; stan::math::validate_non_negative_index("p_1", "k", k); current_statement__ = 57; @@ -44413,36 +42176,29 @@ class transform_model final : public model_base_crtp { (void) function__; try { std::vector p_1 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 1; - p_1 = in__.template read_constrain_lb, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), lp__, k); + in__.template read_constrain_lb, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + lp__, k); current_statement__ = 1; stan::math::check_matching_dims("constraint", "p_1", p_1, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_2 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 2; - p_2 = in__.template read_constrain_ub, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), lp__, k); + in__.template read_constrain_ub, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + lp__, k); current_statement__ = 2; stan::math::check_matching_dims("constraint", "p_2", p_2, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_3 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 3; - p_3 = in__.template read_constrain_lub, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), - stan::model::rvalue(ds, "ds", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_lub, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + stan::model::rvalue(ds, "ds", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 3; stan::math::check_matching_dims("constraint", "p_3", p_3, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), @@ -44452,60 +42208,49 @@ class transform_model final : public model_base_crtp { stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector p_4 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 4; - p_4 = in__.template read_constrain_lub, - jacobian__>(0, - stan::model::rvalue(ds, "ds", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_lub, + jacobian__>(0, + stan::model::rvalue(ds, "ds", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 4; stan::math::check_matching_dims("constraint", "p_4", p_4, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector p_5 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 5; - p_5 = in__.template read_constrain_lub, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), 1, lp__, k); + in__.template read_constrain_lub, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + 1, lp__, k); current_statement__ = 5; stan::math::check_matching_dims("constraint", "p_5", p_5, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_6 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 6; - p_6 = in__.template read_constrain_offset_multiplier< - std::vector, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), 1, lp__, k); + in__.template read_constrain_offset_multiplier< + std::vector, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + 1, lp__, k); current_statement__ = 6; stan::math::check_matching_dims("constraint", "p_6", p_6, "offset", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_7 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 7; - p_7 = in__.template read_constrain_offset_multiplier< - std::vector, jacobian__>(0, - stan::model::rvalue(ds, "ds", stan::model::index_uni(1), - stan::model::index_uni(1)), lp__, k); + in__.template read_constrain_offset_multiplier< + std::vector, jacobian__>(0, + stan::model::rvalue(ds, "ds", stan::model::index_uni(1), + stan::model::index_uni(1)), lp__, k); current_statement__ = 7; stan::math::check_matching_dims("constraint", "p_7", p_7, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_8 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 8; - p_8 = in__.template read_constrain_offset_multiplier< - std::vector, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), - stan::model::rvalue(ds, "ds", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_offset_multiplier< + std::vector, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + stan::model::rvalue(ds, "ds", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 8; stan::math::check_matching_dims("constraint", "p_8", p_8, "offset", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), @@ -44515,36 +42260,26 @@ class transform_model final : public model_base_crtp { stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector> p_9 = - std::vector>(m, - std::vector(k, DUMMY_VAR__)); - current_statement__ = 9; - p_9 = in__.template read_constrain_lub< - std::vector>, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1)), 1, lp__, m, k); + in__.template read_constrain_lub< + std::vector>, + jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1)), + 1, lp__, m, k); current_statement__ = 9; stan::math::check_matching_dims("constraint", "p_9", p_9, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1))); std::vector>> p_10 = - std::vector>>(n, - std::vector>(m, - std::vector(k, DUMMY_VAR__))); - current_statement__ = 10; - p_10 = in__.template read_constrain_lub< - std::vector>>, - jacobian__>(0, ds, lp__, n, m, k); + in__.template read_constrain_lub< + std::vector>>, + jacobian__>(0, ds, lp__, n, m, k); current_statement__ = 10; stan::math::check_matching_dims("constraint", "p_10", p_10, "upper", ds); Eigen::Matrix pv_1 = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 11; - pv_1 = in__.template read_constrain_lub< - Eigen::Matrix, - jacobian__>(stan::model::rvalue(dv, "dv", - stan::model::index_uni(1), - stan::model::index_uni(1)), - stan::model::rvalue(dv, "dv", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_lub< + Eigen::Matrix, + jacobian__>(stan::model::rvalue(dv, "dv", + stan::model::index_uni(1), stan::model::index_uni(1)), + stan::model::rvalue(dv, "dv", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 11; stan::math::check_matching_dims("constraint", "pv_1", pv_1, "lower", stan::model::rvalue(dv, "dv", stan::model::index_uni(1), @@ -44554,36 +42289,26 @@ class transform_model final : public model_base_crtp { stan::model::rvalue(dv, "dv", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector> pv_2 = - std::vector>(m, - Eigen::Matrix::Constant(k, DUMMY_VAR__)); - current_statement__ = 12; - pv_2 = in__.template read_constrain_lb< - std::vector>, - jacobian__>(stan::model::rvalue(dv, "dv", - stan::model::index_uni(1)), lp__, m, k); + in__.template read_constrain_lb< + std::vector>, + jacobian__>(stan::model::rvalue(dv, "dv", stan::model::index_uni(1)), + lp__, m, k); current_statement__ = 12; stan::math::check_matching_dims("constraint", "pv_2", pv_2, "lower", stan::model::rvalue(dv, "dv", stan::model::index_uni(1))); std::vector>> pv_3 = - std::vector>>(n, - std::vector>(m, - Eigen::Matrix::Constant(k, DUMMY_VAR__))); - current_statement__ = 13; - pv_3 = in__.template read_constrain_ub< - std::vector>>, - jacobian__>(dv, lp__, n, m, k); + in__.template read_constrain_ub< + std::vector>>, + jacobian__>(dv, lp__, n, m, k); current_statement__ = 13; stan::math::check_matching_dims("constraint", "pv_3", pv_3, "upper", dv); Eigen::Matrix pr_1 = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 14; - pr_1 = in__.template read_constrain_lub< - Eigen::Matrix, - jacobian__>(stan::model::rvalue(dr, "dr", - stan::model::index_uni(1), - stan::model::index_uni(1)), - stan::model::rvalue(dr, "dr", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_lub< + Eigen::Matrix, + jacobian__>(stan::model::rvalue(dr, "dr", + stan::model::index_uni(1), stan::model::index_uni(1)), + stan::model::rvalue(dr, "dr", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 14; stan::math::check_matching_dims("constraint", "pr_1", pr_1, "lower", stan::model::rvalue(dr, "dr", stan::model::index_uni(1), @@ -44593,43 +42318,31 @@ class transform_model final : public model_base_crtp { stan::model::rvalue(dr, "dr", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector> pr_2 = - std::vector>(m, - Eigen::Matrix::Constant(k, DUMMY_VAR__)); - current_statement__ = 15; - pr_2 = in__.template read_constrain_lb< - std::vector>, - jacobian__>(stan::model::rvalue(dr, "dr", - stan::model::index_uni(1)), lp__, m, k); + in__.template read_constrain_lb< + std::vector>, + jacobian__>(stan::model::rvalue(dr, "dr", stan::model::index_uni(1)), + lp__, m, k); current_statement__ = 15; stan::math::check_matching_dims("constraint", "pr_2", pr_2, "lower", stan::model::rvalue(dr, "dr", stan::model::index_uni(1))); std::vector>> pr_3 = - std::vector>>(n, - std::vector>(m, - Eigen::Matrix::Constant(k, DUMMY_VAR__))); - current_statement__ = 16; - pr_3 = in__.template read_constrain_ub< - std::vector>>, - jacobian__>(dr, lp__, n, m, k); + in__.template read_constrain_ub< + std::vector>>, + jacobian__>(dr, lp__, n, m, k); current_statement__ = 16; stan::math::check_matching_dims("constraint", "pr_3", pr_3, "upper", dr); Eigen::Matrix pm_1 = - Eigen::Matrix::Constant(m, k, DUMMY_VAR__); - current_statement__ = 17; - pm_1 = in__.template read_constrain_lb< - Eigen::Matrix, - jacobian__>(stan::model::rvalue(dm, "dm", - stan::model::index_uni(1)), lp__, m, k); + in__.template read_constrain_lb< + Eigen::Matrix, + jacobian__>(stan::model::rvalue(dm, "dm", stan::model::index_uni(1)), + lp__, m, k); current_statement__ = 17; stan::math::check_matching_dims("constraint", "pm_1", pm_1, "lower", stan::model::rvalue(dm, "dm", stan::model::index_uni(1))); std::vector> pm_2 = - std::vector>(n, - Eigen::Matrix::Constant(m, k, DUMMY_VAR__)); - current_statement__ = 18; - pm_2 = in__.template read_constrain_ub< - std::vector>, - jacobian__>(dm, lp__, n, m, k); + in__.template read_constrain_ub< + std::vector>, jacobian__>(dm, + lp__, n, m, k); current_statement__ = 18; stan::math::check_matching_dims("constraint", "pm_2", pm_2, "upper", dm); std::vector tp_1 = @@ -44895,36 +42608,29 @@ class transform_model final : public model_base_crtp { (void) function__; try { std::vector p_1 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 1; - p_1 = in__.template read_constrain_lb, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), lp__, k); + in__.template read_constrain_lb, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + lp__, k); current_statement__ = 1; stan::math::check_matching_dims("constraint", "p_1", p_1, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_2 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 2; - p_2 = in__.template read_constrain_ub, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), lp__, k); + in__.template read_constrain_ub, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + lp__, k); current_statement__ = 2; stan::math::check_matching_dims("constraint", "p_2", p_2, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_3 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 3; - p_3 = in__.template read_constrain_lub, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), - stan::model::rvalue(ds, "ds", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_lub, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + stan::model::rvalue(ds, "ds", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 3; stan::math::check_matching_dims("constraint", "p_3", p_3, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), @@ -44934,60 +42640,49 @@ class transform_model final : public model_base_crtp { stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector p_4 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 4; - p_4 = in__.template read_constrain_lub, - jacobian__>(0, - stan::model::rvalue(ds, "ds", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_lub, + jacobian__>(0, + stan::model::rvalue(ds, "ds", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 4; stan::math::check_matching_dims("constraint", "p_4", p_4, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector p_5 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 5; - p_5 = in__.template read_constrain_lub, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), 1, lp__, k); + in__.template read_constrain_lub, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + 1, lp__, k); current_statement__ = 5; stan::math::check_matching_dims("constraint", "p_5", p_5, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_6 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 6; - p_6 = in__.template read_constrain_offset_multiplier< - std::vector, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), 1, lp__, k); + in__.template read_constrain_offset_multiplier< + std::vector, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + 1, lp__, k); current_statement__ = 6; stan::math::check_matching_dims("constraint", "p_6", p_6, "offset", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_7 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 7; - p_7 = in__.template read_constrain_offset_multiplier< - std::vector, jacobian__>(0, - stan::model::rvalue(ds, "ds", stan::model::index_uni(1), - stan::model::index_uni(1)), lp__, k); + in__.template read_constrain_offset_multiplier< + std::vector, jacobian__>(0, + stan::model::rvalue(ds, "ds", stan::model::index_uni(1), + stan::model::index_uni(1)), lp__, k); current_statement__ = 7; stan::math::check_matching_dims("constraint", "p_7", p_7, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_8 = - std::vector(k, DUMMY_VAR__); - current_statement__ = 8; - p_8 = in__.template read_constrain_offset_multiplier< - std::vector, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), - stan::model::rvalue(ds, "ds", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_offset_multiplier< + std::vector, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + stan::model::rvalue(ds, "ds", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 8; stan::math::check_matching_dims("constraint", "p_8", p_8, "offset", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), @@ -44997,36 +42692,26 @@ class transform_model final : public model_base_crtp { stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector> p_9 = - std::vector>(m, - std::vector(k, DUMMY_VAR__)); - current_statement__ = 9; - p_9 = in__.template read_constrain_lub< - std::vector>, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1)), 1, lp__, m, k); + in__.template read_constrain_lub< + std::vector>, + jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1)), + 1, lp__, m, k); current_statement__ = 9; stan::math::check_matching_dims("constraint", "p_9", p_9, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1))); std::vector>> p_10 = - std::vector>>(n, - std::vector>(m, - std::vector(k, DUMMY_VAR__))); - current_statement__ = 10; - p_10 = in__.template read_constrain_lub< - std::vector>>, - jacobian__>(0, ds, lp__, n, m, k); + in__.template read_constrain_lub< + std::vector>>, + jacobian__>(0, ds, lp__, n, m, k); current_statement__ = 10; stan::math::check_matching_dims("constraint", "p_10", p_10, "upper", ds); Eigen::Matrix pv_1 = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 11; - pv_1 = in__.template read_constrain_lub< - Eigen::Matrix, - jacobian__>(stan::model::rvalue(dv, "dv", - stan::model::index_uni(1), - stan::model::index_uni(1)), - stan::model::rvalue(dv, "dv", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_lub< + Eigen::Matrix, + jacobian__>(stan::model::rvalue(dv, "dv", + stan::model::index_uni(1), stan::model::index_uni(1)), + stan::model::rvalue(dv, "dv", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 11; stan::math::check_matching_dims("constraint", "pv_1", pv_1, "lower", stan::model::rvalue(dv, "dv", stan::model::index_uni(1), @@ -45036,36 +42721,26 @@ class transform_model final : public model_base_crtp { stan::model::rvalue(dv, "dv", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector> pv_2 = - std::vector>(m, - Eigen::Matrix::Constant(k, DUMMY_VAR__)); - current_statement__ = 12; - pv_2 = in__.template read_constrain_lb< - std::vector>, - jacobian__>(stan::model::rvalue(dv, "dv", - stan::model::index_uni(1)), lp__, m, k); + in__.template read_constrain_lb< + std::vector>, + jacobian__>(stan::model::rvalue(dv, "dv", stan::model::index_uni(1)), + lp__, m, k); current_statement__ = 12; stan::math::check_matching_dims("constraint", "pv_2", pv_2, "lower", stan::model::rvalue(dv, "dv", stan::model::index_uni(1))); std::vector>> pv_3 = - std::vector>>(n, - std::vector>(m, - Eigen::Matrix::Constant(k, DUMMY_VAR__))); - current_statement__ = 13; - pv_3 = in__.template read_constrain_ub< - std::vector>>, - jacobian__>(dv, lp__, n, m, k); + in__.template read_constrain_ub< + std::vector>>, + jacobian__>(dv, lp__, n, m, k); current_statement__ = 13; stan::math::check_matching_dims("constraint", "pv_3", pv_3, "upper", dv); Eigen::Matrix pr_1 = - Eigen::Matrix::Constant(k, DUMMY_VAR__); - current_statement__ = 14; - pr_1 = in__.template read_constrain_lub< - Eigen::Matrix, - jacobian__>(stan::model::rvalue(dr, "dr", - stan::model::index_uni(1), - stan::model::index_uni(1)), - stan::model::rvalue(dr, "dr", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_lub< + Eigen::Matrix, + jacobian__>(stan::model::rvalue(dr, "dr", + stan::model::index_uni(1), stan::model::index_uni(1)), + stan::model::rvalue(dr, "dr", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 14; stan::math::check_matching_dims("constraint", "pr_1", pr_1, "lower", stan::model::rvalue(dr, "dr", stan::model::index_uni(1), @@ -45075,43 +42750,31 @@ class transform_model final : public model_base_crtp { stan::model::rvalue(dr, "dr", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector> pr_2 = - std::vector>(m, - Eigen::Matrix::Constant(k, DUMMY_VAR__)); - current_statement__ = 15; - pr_2 = in__.template read_constrain_lb< - std::vector>, - jacobian__>(stan::model::rvalue(dr, "dr", - stan::model::index_uni(1)), lp__, m, k); + in__.template read_constrain_lb< + std::vector>, + jacobian__>(stan::model::rvalue(dr, "dr", stan::model::index_uni(1)), + lp__, m, k); current_statement__ = 15; stan::math::check_matching_dims("constraint", "pr_2", pr_2, "lower", stan::model::rvalue(dr, "dr", stan::model::index_uni(1))); std::vector>> pr_3 = - std::vector>>(n, - std::vector>(m, - Eigen::Matrix::Constant(k, DUMMY_VAR__))); - current_statement__ = 16; - pr_3 = in__.template read_constrain_ub< - std::vector>>, - jacobian__>(dr, lp__, n, m, k); + in__.template read_constrain_ub< + std::vector>>, + jacobian__>(dr, lp__, n, m, k); current_statement__ = 16; stan::math::check_matching_dims("constraint", "pr_3", pr_3, "upper", dr); Eigen::Matrix pm_1 = - Eigen::Matrix::Constant(m, k, DUMMY_VAR__); - current_statement__ = 17; - pm_1 = in__.template read_constrain_lb< - Eigen::Matrix, - jacobian__>(stan::model::rvalue(dm, "dm", - stan::model::index_uni(1)), lp__, m, k); + in__.template read_constrain_lb< + Eigen::Matrix, + jacobian__>(stan::model::rvalue(dm, "dm", stan::model::index_uni(1)), + lp__, m, k); current_statement__ = 17; stan::math::check_matching_dims("constraint", "pm_1", pm_1, "lower", stan::model::rvalue(dm, "dm", stan::model::index_uni(1))); std::vector> pm_2 = - std::vector>(n, - Eigen::Matrix::Constant(m, k, DUMMY_VAR__)); - current_statement__ = 18; - pm_2 = in__.template read_constrain_ub< - std::vector>, - jacobian__>(dm, lp__, n, m, k); + in__.template read_constrain_ub< + std::vector>, jacobian__>(dm, + lp__, n, m, k); current_statement__ = 18; stan::math::check_matching_dims("constraint", "pm_2", pm_2, "upper", dm); std::vector tp_1 = @@ -45388,36 +43051,29 @@ class transform_model final : public model_base_crtp { (void) function__; try { std::vector p_1 = - std::vector(k, std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - p_1 = in__.template read_constrain_lb, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), lp__, k); + in__.template read_constrain_lb, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + lp__, k); current_statement__ = 1; stan::math::check_matching_dims("constraint", "p_1", p_1, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_2 = - std::vector(k, std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - p_2 = in__.template read_constrain_ub, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), lp__, k); + in__.template read_constrain_ub, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + lp__, k); current_statement__ = 2; stan::math::check_matching_dims("constraint", "p_2", p_2, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_3 = - std::vector(k, std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - p_3 = in__.template read_constrain_lub, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), - stan::model::rvalue(ds, "ds", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_lub, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + stan::model::rvalue(ds, "ds", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 3; stan::math::check_matching_dims("constraint", "p_3", p_3, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), @@ -45427,60 +43083,49 @@ class transform_model final : public model_base_crtp { stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector p_4 = - std::vector(k, std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - p_4 = in__.template read_constrain_lub, - jacobian__>(0, - stan::model::rvalue(ds, "ds", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_lub, + jacobian__>(0, + stan::model::rvalue(ds, "ds", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 4; stan::math::check_matching_dims("constraint", "p_4", p_4, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector p_5 = - std::vector(k, std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - p_5 = in__.template read_constrain_lub, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), 1, lp__, k); + in__.template read_constrain_lub, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + 1, lp__, k); current_statement__ = 5; stan::math::check_matching_dims("constraint", "p_5", p_5, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_6 = - std::vector(k, std::numeric_limits::quiet_NaN()); - current_statement__ = 6; - p_6 = in__.template read_constrain_offset_multiplier< - std::vector, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), 1, lp__, k); + in__.template read_constrain_offset_multiplier< + std::vector, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + 1, lp__, k); current_statement__ = 6; stan::math::check_matching_dims("constraint", "p_6", p_6, "offset", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_7 = - std::vector(k, std::numeric_limits::quiet_NaN()); - current_statement__ = 7; - p_7 = in__.template read_constrain_offset_multiplier< - std::vector, jacobian__>(0, - stan::model::rvalue(ds, "ds", stan::model::index_uni(1), - stan::model::index_uni(1)), lp__, k); + in__.template read_constrain_offset_multiplier< + std::vector, jacobian__>(0, + stan::model::rvalue(ds, "ds", stan::model::index_uni(1), + stan::model::index_uni(1)), lp__, k); current_statement__ = 7; stan::math::check_matching_dims("constraint", "p_7", p_7, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); std::vector p_8 = - std::vector(k, std::numeric_limits::quiet_NaN()); - current_statement__ = 8; - p_8 = in__.template read_constrain_offset_multiplier< - std::vector, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1), - stan::model::index_uni(1)), - stan::model::rvalue(ds, "ds", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_offset_multiplier< + std::vector, + jacobian__>(stan::model::rvalue(ds, "ds", + stan::model::index_uni(1), stan::model::index_uni(1)), + stan::model::rvalue(ds, "ds", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 8; stan::math::check_matching_dims("constraint", "p_8", p_8, "offset", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), @@ -45490,37 +43135,26 @@ class transform_model final : public model_base_crtp { stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector> p_9 = - std::vector>(m, - std::vector(k, std::numeric_limits::quiet_NaN())); - current_statement__ = 9; - p_9 = in__.template read_constrain_lub< - std::vector>, - jacobian__>(stan::model::rvalue(ds, "ds", - stan::model::index_uni(1)), 1, lp__, m, k); + in__.template read_constrain_lub< + std::vector>, + jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1)), + 1, lp__, m, k); current_statement__ = 9; stan::math::check_matching_dims("constraint", "p_9", p_9, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1))); std::vector>> p_10 = - std::vector>>(n, - std::vector>(m, - std::vector(k, std::numeric_limits::quiet_NaN()))); - current_statement__ = 10; - p_10 = in__.template read_constrain_lub< - std::vector>>, - jacobian__>(0, ds, lp__, n, m, k); + in__.template read_constrain_lub< + std::vector>>, + jacobian__>(0, ds, lp__, n, m, k); current_statement__ = 10; stan::math::check_matching_dims("constraint", "p_10", p_10, "upper", ds); Eigen::Matrix pv_1 = - Eigen::Matrix::Constant(k, - std::numeric_limits::quiet_NaN()); - current_statement__ = 11; - pv_1 = in__.template read_constrain_lub< - Eigen::Matrix, - jacobian__>(stan::model::rvalue(dv, "dv", - stan::model::index_uni(1), - stan::model::index_uni(1)), - stan::model::rvalue(dv, "dv", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_lub< + Eigen::Matrix, + jacobian__>(stan::model::rvalue(dv, "dv", + stan::model::index_uni(1), stan::model::index_uni(1)), + stan::model::rvalue(dv, "dv", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 11; stan::math::check_matching_dims("constraint", "pv_1", pv_1, "lower", stan::model::rvalue(dv, "dv", stan::model::index_uni(1), @@ -45530,39 +43164,26 @@ class transform_model final : public model_base_crtp { stan::model::rvalue(dv, "dv", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector> pv_2 = - std::vector>(m, - Eigen::Matrix::Constant(k, - std::numeric_limits::quiet_NaN())); - current_statement__ = 12; - pv_2 = in__.template read_constrain_lb< - std::vector>, - jacobian__>(stan::model::rvalue(dv, "dv", - stan::model::index_uni(1)), lp__, m, k); + in__.template read_constrain_lb< + std::vector>, + jacobian__>(stan::model::rvalue(dv, "dv", stan::model::index_uni(1)), + lp__, m, k); current_statement__ = 12; stan::math::check_matching_dims("constraint", "pv_2", pv_2, "lower", stan::model::rvalue(dv, "dv", stan::model::index_uni(1))); std::vector>> pv_3 = - std::vector>>(n, - std::vector>(m, - Eigen::Matrix::Constant(k, - std::numeric_limits::quiet_NaN()))); - current_statement__ = 13; - pv_3 = in__.template read_constrain_ub< - std::vector>>, - jacobian__>(dv, lp__, n, m, k); + in__.template read_constrain_ub< + std::vector>>, + jacobian__>(dv, lp__, n, m, k); current_statement__ = 13; stan::math::check_matching_dims("constraint", "pv_3", pv_3, "upper", dv); Eigen::Matrix pr_1 = - Eigen::Matrix::Constant(k, - std::numeric_limits::quiet_NaN()); - current_statement__ = 14; - pr_1 = in__.template read_constrain_lub< - Eigen::Matrix, - jacobian__>(stan::model::rvalue(dr, "dr", - stan::model::index_uni(1), - stan::model::index_uni(1)), - stan::model::rvalue(dr, "dr", stan::model::index_uni(1), - stan::model::index_uni(2)), lp__, k); + in__.template read_constrain_lub< + Eigen::Matrix, + jacobian__>(stan::model::rvalue(dr, "dr", + stan::model::index_uni(1), stan::model::index_uni(1)), + stan::model::rvalue(dr, "dr", stan::model::index_uni(1), + stan::model::index_uni(2)), lp__, k); current_statement__ = 14; stan::math::check_matching_dims("constraint", "pr_1", pr_1, "lower", stan::model::rvalue(dr, "dr", stan::model::index_uni(1), @@ -45572,47 +43193,31 @@ class transform_model final : public model_base_crtp { stan::model::rvalue(dr, "dr", stan::model::index_uni(1), stan::model::index_uni(2))); std::vector> pr_2 = - std::vector>(m, - Eigen::Matrix::Constant(k, - std::numeric_limits::quiet_NaN())); - current_statement__ = 15; - pr_2 = in__.template read_constrain_lb< - std::vector>, - jacobian__>(stan::model::rvalue(dr, "dr", - stan::model::index_uni(1)), lp__, m, k); + in__.template read_constrain_lb< + std::vector>, + jacobian__>(stan::model::rvalue(dr, "dr", stan::model::index_uni(1)), + lp__, m, k); current_statement__ = 15; stan::math::check_matching_dims("constraint", "pr_2", pr_2, "lower", stan::model::rvalue(dr, "dr", stan::model::index_uni(1))); std::vector>> pr_3 = - std::vector>>(n, - std::vector>(m, - Eigen::Matrix::Constant(k, - std::numeric_limits::quiet_NaN()))); - current_statement__ = 16; - pr_3 = in__.template read_constrain_ub< - std::vector>>, - jacobian__>(dr, lp__, n, m, k); + in__.template read_constrain_ub< + std::vector>>, + jacobian__>(dr, lp__, n, m, k); current_statement__ = 16; stan::math::check_matching_dims("constraint", "pr_3", pr_3, "upper", dr); Eigen::Matrix pm_1 = - Eigen::Matrix::Constant(m, k, - std::numeric_limits::quiet_NaN()); - current_statement__ = 17; - pm_1 = in__.template read_constrain_lb< - Eigen::Matrix, - jacobian__>(stan::model::rvalue(dm, "dm", - stan::model::index_uni(1)), lp__, m, k); + in__.template read_constrain_lb< + Eigen::Matrix, + jacobian__>(stan::model::rvalue(dm, "dm", stan::model::index_uni(1)), + lp__, m, k); current_statement__ = 17; stan::math::check_matching_dims("constraint", "pm_1", pm_1, "lower", stan::model::rvalue(dm, "dm", stan::model::index_uni(1))); std::vector> pm_2 = - std::vector>(n, - Eigen::Matrix::Constant(m, k, - std::numeric_limits::quiet_NaN())); - current_statement__ = 18; - pm_2 = in__.template read_constrain_ub< - std::vector>, - jacobian__>(dm, lp__, n, m, k); + in__.template read_constrain_ub< + std::vector>, jacobian__>(dm, + lp__, n, m, k); current_statement__ = 18; stan::math::check_matching_dims("constraint", "pm_2", pm_2, "upper", dm); std::vector tp_1 = @@ -47220,14 +44825,10 @@ class truncate_model final : public model_base_crtp { context__.validate_dims("data initialization", "n", "int", std::vector{}); n = std::numeric_limits::min(); - current_statement__ = 19; - n = context__.vals_i("n")[(1 - 1)]; current_statement__ = 20; context__.validate_dims("data initialization", "x", "double", std::vector{}); x = std::numeric_limits::quiet_NaN(); - current_statement__ = 20; - x = context__.vals_r("x")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -47264,13 +44865,10 @@ class truncate_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ m = DUMMY_VAR__; - current_statement__ = 1; - m = in__.template read(); - local_scalar_t__ y = DUMMY_VAR__; - current_statement__ = 2; - y = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ m = in__.template read(); + local_scalar_t__ y = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 3; lp_accum__.add(stan::math::normal_lpdf(x, m, 1)); @@ -47383,13 +44981,10 @@ class truncate_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ m = DUMMY_VAR__; - current_statement__ = 1; - m = in__.template read(); - local_scalar_t__ y = DUMMY_VAR__; - current_statement__ = 2; - y = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ m = in__.template read(); + local_scalar_t__ y = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 3; lp_accum__.add(stan::math::normal_lpdf(x, m, 1)); @@ -47513,13 +45108,10 @@ class truncate_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double m = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - m = in__.template read(); - double y = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - y = in__.template read_constrain_lb(0, - lp__); + double m = in__.template read(); + double y = + in__.template read_constrain_lb(0, + lp__); out__.write(m); out__.write(y); if (stan::math::logical_negation( @@ -47824,9 +45416,7 @@ class udf_tilde_stmt_conflict_model final : public model_base_crtp(); + local_scalar_t__ x = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(x, 0, 1)); @@ -47861,9 +45451,7 @@ class udf_tilde_stmt_conflict_model final : public model_base_crtp(); + local_scalar_t__ x = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(x, 0, 1)); @@ -47909,9 +45497,7 @@ class udf_tilde_stmt_conflict_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - x = in__.template read(); + double x = in__.template read(); out__.write(x); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -48207,10 +45793,9 @@ class user_constrain_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ x = DUMMY_VAR__; - current_statement__ = 1; - x = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ x = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 2; lp_accum__.add(stan::math::std_normal_lpdf(x)); @@ -48245,10 +45830,9 @@ class user_constrain_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ x = DUMMY_VAR__; - current_statement__ = 1; - x = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ x = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 2; lp_accum__.add(stan::math::std_normal_lpdf(x)); @@ -48294,10 +45878,9 @@ class user_constrain_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double x = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - x = in__.template read_constrain_lb(0, - lp__); + double x = + in__.template read_constrain_lb(0, + lp__); out__.write(x); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -48540,8 +46123,6 @@ class variable_named_context_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 4; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 4; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 5; stan::math::validate_non_negative_index("context", "N", N); @@ -48552,17 +46133,6 @@ class variable_named_context_model final : public model_base_crtp::quiet_NaN()); new (&context) Eigen::Map>(context_data__.data(), N); - { - std::vector context_flat__; - current_statement__ = 6; - context_flat__ = context__.vals_r("context"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(context, context_flat__[(pos__ - 1)], - "assigning variable context", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -48599,13 +46169,10 @@ class variable_named_context_model final : public model_base_crtp(); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 2; - sigma = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ mu = in__.template read(); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 3; lp_accum__.add(stan::math::normal_lpdf(context, mu, sigma)); @@ -48640,13 +46207,10 @@ class variable_named_context_model final : public model_base_crtp(); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 2; - sigma = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ mu = in__.template read(); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 3; lp_accum__.add(stan::math::normal_lpdf(context, mu, sigma)); @@ -48692,13 +46256,10 @@ class variable_named_context_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - mu = in__.template read(); - double sigma = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - sigma = in__.template read_constrain_lb(0, lp__); + double mu = in__.template read(); + double sigma = + in__.template read_constrain_lb(0, + lp__); out__.write(mu); out__.write(sigma); if (stan::math::logical_negation( @@ -49042,22 +46603,16 @@ class vector_truncate_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 87; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 87; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 88; context__.validate_dims("data initialization", "L", "double", std::vector{}); L = std::numeric_limits::quiet_NaN(); - current_statement__ = 88; - L = context__.vals_r("L")[(1 - 1)]; current_statement__ = 89; context__.validate_dims("data initialization", "U", "double", std::vector{}); U = std::numeric_limits::quiet_NaN(); current_statement__ = 89; - U = context__.vals_r("U")[(1 - 1)]; - current_statement__ = 89; stan::math::check_greater_or_equal(function__, "U", U, L); current_statement__ = 90; stan::math::validate_non_negative_index("y", "N", N); @@ -49066,8 +46621,6 @@ class vector_truncate_model final : public model_base_crtp{static_cast(N)}); y = std::vector(N, std::numeric_limits::quiet_NaN()); current_statement__ = 91; - y = context__.vals_r("y"); - current_statement__ = 91; stan::math::check_greater_or_equal(function__, "y", y, L); current_statement__ = 91; stan::math::check_less_or_equal(function__, "y", y, U); @@ -49111,22 +46664,14 @@ class vector_truncate_model final : public model_base_crtp(); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 2; - sigma = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ mu = in__.template read(); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix vector_mu = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 3; - vector_mu = in__.template read>(N); + in__.template read>(N); Eigen::Matrix vector_sigma = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 4; - vector_sigma = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); { current_statement__ = 5; lp_accum__.add(stan::math::normal_lpdf(y, mu, sigma)); @@ -49628,22 +47173,14 @@ class vector_truncate_model final : public model_base_crtp(); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 2; - sigma = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ mu = in__.template read(); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix vector_mu = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 3; - vector_mu = in__.template read>(N); + in__.template read>(N); Eigen::Matrix vector_sigma = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 4; - vector_sigma = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); { current_statement__ = 5; lp_accum__.add(stan::math::normal_lpdf(y, mu, sigma)); @@ -50156,24 +47693,14 @@ class vector_truncate_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - mu = in__.template read(); - double sigma = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - sigma = in__.template read_constrain_lb(0, lp__); + double mu = in__.template read(); + double sigma = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix vector_mu = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - vector_mu = in__.template read>(N); + in__.template read>(N); Eigen::Matrix vector_sigma = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - vector_sigma = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); out__.write(mu); out__.write(sigma); out__.write(vector_mu); diff --git a/test/integration/good/code-gen/expressions/cpp.expected b/test/integration/good/code-gen/expressions/cpp.expected index a824234b5..03dce0391 100644 --- a/test/integration/good/code-gen/expressions/cpp.expected +++ b/test/integration/good/code-gen/expressions/cpp.expected @@ -54,14 +54,10 @@ class operators_model final : public model_base_crtp { context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); - current_statement__ = 12; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 13; context__.validate_dims("data initialization", "r", "double", std::vector{}); r = std::numeric_limits::quiet_NaN(); - current_statement__ = 13; - r = context__.vals_r("r")[(1 - 1)]; current_statement__ = 14; stan::math::validate_non_negative_index("v", "N", N); current_statement__ = 15; @@ -111,17 +107,11 @@ class operators_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix v = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 1; - v = in__.template read>(N); + in__.template read>(N); Eigen::Matrix rv = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 2; - rv = in__.template read>(N); + in__.template read>(N); Eigen::Matrix A = - Eigen::Matrix::Constant(N, N, DUMMY_VAR__); - current_statement__ = 3; - A = in__.template read>(N, N); + in__.template read>(N, N); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -153,17 +143,11 @@ class operators_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix v = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 1; - v = in__.template read>(N); + in__.template read>(N); Eigen::Matrix rv = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 2; - rv = in__.template read>(N); + in__.template read>(N); Eigen::Matrix A = - Eigen::Matrix::Constant(N, N, DUMMY_VAR__); - current_statement__ = 3; - A = in__.template read>(N, N); + in__.template read>(N, N); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -206,20 +190,11 @@ class operators_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix v = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - v = in__.template read>(N); + in__.template read>(N); Eigen::Matrix rv = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - rv = in__.template read>(N); + in__.template read>(N); Eigen::Matrix A = - Eigen::Matrix::Constant(N, N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - A = in__.template read>(N, N); + in__.template read>(N, N); out__.write(v); out__.write(rv); out__.write(A); @@ -820,8 +795,6 @@ class simple_function_model final : public model_base_crtp{}); N = std::numeric_limits::min(); - current_statement__ = 1; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 2; stan::math::validate_non_negative_index("m", "N", N); current_statement__ = 3; @@ -832,20 +805,6 @@ class simple_function_model final : public model_base_crtp::Constant(N, N, std::numeric_limits::quiet_NaN()); new (&m) Eigen::Map>(m_data__.data(), N, N); - { - std::vector m_flat__; - current_statement__ = 4; - m_flat__ = context__.vals_r("m"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(m, m_flat__[(pos__ - 1)], - "assigning variable m", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -1164,8 +1123,6 @@ class ternary_if_model final : public model_base_crtp { context__.validate_dims("data initialization", "y", "double", std::vector{}); y = std::numeric_limits::quiet_NaN(); - current_statement__ = 10; - y = context__.vals_r("y")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -1203,20 +1160,12 @@ class ternary_if_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix a = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 1; - a = in__.template read>(2); + in__.template read>(2); Eigen::Matrix b = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 2; - b = in__.template read>(2); - local_scalar_t__ r = DUMMY_VAR__; - current_statement__ = 3; - r = in__.template read(); + in__.template read>(2); + local_scalar_t__ r = in__.template read(); std::complex zp = - std::complex(DUMMY_VAR__, DUMMY_VAR__); - current_statement__ = 4; - zp = in__.template read>(); + in__.template read>(); Eigen::Matrix c = Eigen::Matrix::Constant(2, DUMMY_VAR__); current_statement__ = 5; @@ -1281,20 +1230,12 @@ class ternary_if_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix a = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 1; - a = in__.template read>(2); + in__.template read>(2); Eigen::Matrix b = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 2; - b = in__.template read>(2); - local_scalar_t__ r = DUMMY_VAR__; - current_statement__ = 3; - r = in__.template read(); + in__.template read>(2); + local_scalar_t__ r = in__.template read(); std::complex zp = - std::complex(DUMMY_VAR__, DUMMY_VAR__); - current_statement__ = 4; - zp = in__.template read>(); + in__.template read>(); Eigen::Matrix c = Eigen::Matrix::Constant(2, DUMMY_VAR__); current_statement__ = 5; @@ -1370,23 +1311,12 @@ class ternary_if_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix a = - Eigen::Matrix::Constant(2, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - a = in__.template read>(2); + in__.template read>(2); Eigen::Matrix b = - Eigen::Matrix::Constant(2, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - b = in__.template read>(2); - double r = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - r = in__.template read(); + in__.template read>(2); + double r = in__.template read(); std::complex zp = - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - zp = in__.template read>(); + in__.template read>(); Eigen::Matrix c = Eigen::Matrix::Constant(2, std::numeric_limits::quiet_NaN()); diff --git a/test/integration/good/code-gen/lir.expected b/test/integration/good/code-gen/lir.expected index 23dcc6aed..4631d1a74 100644 --- a/test/integration/good/code-gen/lir.expected +++ b/test/integration/good/code-gen/lir.expected @@ -6166,85 +6166,62 @@ (TryCatch ((VariableDefn ((static false) (constexpr false) (type_ (TypeLiteral local_scalar_t__)) - (name p_real) (init (Assignment (Var DUMMY_VAR__))))) - (Expression (Assign (Var current_statement__) (Literal 1))) - (Expression - (Assign (Var p_real) - (MethodCall (Var in__) "template read" ((TypeLiteral local_scalar_t__)) - ()))) + (name p_real) + (init + (Assignment + (MethodCall (Var in__) "template read" ((TypeLiteral local_scalar_t__)) + ()))))) (VariableDefn ((static false) (constexpr false) (type_ (TypeLiteral local_scalar_t__)) - (name p_upper) (init (Assignment (Var DUMMY_VAR__))))) - (Expression (Assign (Var current_statement__) (Literal 2))) - (Expression - (Assign (Var p_upper) - (MethodCall (Var in__) "template read_constrain_lb" - ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) - ((Var p_real) (Var lp__))))) + (name p_upper) + (init + (Assignment + (MethodCall (Var in__) "template read_constrain_lb" + ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) + ((Var p_real) (Var lp__))))))) (VariableDefn ((static false) (constexpr false) (type_ (TypeLiteral local_scalar_t__)) - (name p_lower) (init (Assignment (Var DUMMY_VAR__))))) - (Expression (Assign (Var current_statement__) (Literal 3))) - (Expression - (Assign (Var p_lower) - (MethodCall (Var in__) "template read_constrain_ub" - ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) - ((Var p_upper) (Var lp__))))) + (name p_lower) + (init + (Assignment + (MethodCall (Var in__) "template read_constrain_ub" + ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) + ((Var p_upper) (Var lp__))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (TypeLiteral local_scalar_t__))) (name offset_multiplier) (init (Assignment - (Constructor (StdVector (TypeLiteral local_scalar_t__)) - ((Literal 5) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 4))) - (Expression - (Assign (Var offset_multiplier) - (MethodCall (Var in__) "template read_constrain_offset_multiplier" - ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) - ((Literal 1) (Literal 2) (Var lp__) (Literal 5))))) + (MethodCall (Var in__) "template read_constrain_offset_multiplier" + ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) + ((Literal 1) (Literal 2) (Var lp__) (Literal 5))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (TypeLiteral local_scalar_t__))) (name no_offset_multiplier) (init (Assignment - (Constructor (StdVector (TypeLiteral local_scalar_t__)) - ((Literal 5) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 5))) - (Expression - (Assign (Var no_offset_multiplier) - (MethodCall (Var in__) "template read_constrain_offset_multiplier" - ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) - ((Literal 0) (Literal 2) (Var lp__) (Literal 5))))) + (MethodCall (Var in__) "template read_constrain_offset_multiplier" + ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) + ((Literal 0) (Literal 2) (Var lp__) (Literal 5))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (TypeLiteral local_scalar_t__))) (name offset_no_multiplier) (init (Assignment - (Constructor (StdVector (TypeLiteral local_scalar_t__)) - ((Literal 5) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 6))) - (Expression - (Assign (Var offset_no_multiplier) - (MethodCall (Var in__) "template read_constrain_offset_multiplier" - ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) - ((Literal 3) (Literal 1) (Var lp__) (Literal 5))))) + (MethodCall (Var in__) "template read_constrain_offset_multiplier" + ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) + ((Literal 3) (Literal 1) (Var lp__) (Literal 5))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (TypeLiteral local_scalar_t__))) (name p_real_1d_ar) (init (Assignment - (Constructor (StdVector (TypeLiteral local_scalar_t__)) - ((Var N) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 7))) - (Expression - (Assign (Var p_real_1d_ar) - (MethodCall (Var in__) "template read_constrain_lb" - ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) - ((Literal 0) (Var lp__) (Var N))))) + (MethodCall (Var in__) "template read_constrain_lb" + ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) + ((Literal 0) (Var lp__) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ @@ -6252,52 +6229,29 @@ (name p_real_3d_ar) (init (Assignment - (Constructor - (StdVector (StdVector (StdVector (TypeLiteral local_scalar_t__)))) - ((Var N) - (Constructor (StdVector (StdVector (TypeLiteral local_scalar_t__))) - ((Var M) - (Constructor (StdVector (TypeLiteral local_scalar_t__)) - ((Var K) (Var DUMMY_VAR__))))))))))) - (Expression (Assign (Var current_statement__) (Literal 8))) - (Expression - (Assign (Var p_real_3d_ar) - (MethodCall (Var in__) "template read_constrain_lb" - ((StdVector (StdVector (StdVector (TypeLiteral local_scalar_t__)))) - (TemplateType jacobian__)) - ((Literal 0) (Var lp__) (Var N) (Var M) (Var K))))) + (MethodCall (Var in__) "template read_constrain_lb" + ((StdVector (StdVector (StdVector (TypeLiteral local_scalar_t__)))) + (TemplateType jacobian__)) + ((Literal 0) (Var lp__) (Var N) (Var M) (Var K))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) (name p_vec) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - Constant () ((Var N) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 9))) - (Expression - (Assign (Var p_vec) - (MethodCall (Var in__) "template read_constrain_lb" - ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - (TemplateType jacobian__)) - ((Literal 0) (Var lp__) (Var N))))) + (MethodCall (Var in__) "template read_constrain_lb" + ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) + (TemplateType jacobian__)) + ((Literal 0) (Var lp__) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) (name p_1d_vec) (init (Assignment - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - ((Var N) - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - Constant () ((Var N) (Var DUMMY_VAR__))))))))) - (Expression (Assign (Var current_statement__) (Literal 10))) - (Expression - (Assign (Var p_1d_vec) - (MethodCall (Var in__) "template read" - ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) - ((Var N) (Var N))))) + (MethodCall (Var in__) "template read" + ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) + ((Var N) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ @@ -6307,59 +6261,29 @@ (name p_3d_vec) (init (Assignment - (Constructor - (StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)))) - ((Var N) - (Constructor + (MethodCall (Var in__) "template read" + ((StdVector (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) - ((Var M) - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - ((Var K) - (StaticMethodCall - (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) Constant () - ((Var N) (Var DUMMY_VAR__))))))))))))) - (Expression (Assign (Var current_statement__) (Literal 11))) - (Expression - (Assign (Var p_3d_vec) - (MethodCall (Var in__) "template read" - ((StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) - ((Var N) (Var M) (Var K) (Var N))))) + (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) + ((Var N) (Var M) (Var K) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) (name p_row_vec) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS) - Constant () ((Var N) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 12))) - (Expression - (Assign (Var p_row_vec) - (MethodCall (Var in__) "template read" - ((Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) ((Var N))))) + (MethodCall (Var in__) "template read" + ((Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) + ((Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) (name p_1d_row_vec) (init (Assignment - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) - ((Var N) - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS) - Constant () ((Var N) (Var DUMMY_VAR__))))))))) - (Expression (Assign (Var current_statement__) (Literal 13))) - (Expression - (Assign (Var p_1d_row_vec) - (MethodCall (Var in__) "template read" - ((StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) - ((Var N) (Var N))))) + (MethodCall (Var in__) "template read" + ((StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) + ((Var N) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ @@ -6369,43 +6293,20 @@ (name p_3d_row_vec) (init (Assignment - (Constructor - (StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)))) - ((Var N) - (Constructor + (MethodCall (Var in__) "template read" + ((StdVector (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) - ((Var M) - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) - ((Var K) - (StaticMethodCall - (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS) Constant () - ((Var N) (Var DUMMY_VAR__))))))))))))) - (Expression (Assign (Var current_statement__) (Literal 14))) - (Expression - (Assign (Var p_3d_row_vec) - (MethodCall (Var in__) "template read" - ((StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))))) - ((Var N) (Var M) (Var K) (Var N))))) + (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))))) + ((Var N) (Var M) (Var K) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) (name p_mat) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - Constant () ((Literal 5) (Literal 4) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 15))) - (Expression - (Assign (Var p_mat) - (MethodCall (Var in__) "template read" - ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - ((Literal 5) (Literal 4))))) + (MethodCall (Var in__) "template read" + ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) + ((Literal 5) (Literal 4))))))) (VariableDefn ((static false) (constexpr false) (type_ @@ -6414,57 +6315,32 @@ (name p_ar_mat) (init (Assignment - (Constructor - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS))) - ((Literal 4) - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - ((Literal 5) - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - Constant () ((Literal 2) (Literal 3) (Var DUMMY_VAR__))))))))))) - (Expression (Assign (Var current_statement__) (Literal 16))) - (Expression - (Assign (Var p_ar_mat) - (MethodCall (Var in__) "template read_constrain_lub" - ((StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS))) - (TemplateType jacobian__)) - ((Literal 0) (Literal 1) (Var lp__) (Literal 4) (Literal 5) - (Literal 2) (Literal 3))))) + (MethodCall (Var in__) "template read_constrain_lub" + ((StdVector + (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS))) + (TemplateType jacobian__)) + ((Literal 0) (Literal 1) (Var lp__) (Literal 4) (Literal 5) + (Literal 2) (Literal 3))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) (name p_simplex) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - Constant () ((Var N) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 17))) - (Expression - (Assign (Var p_simplex) - (MethodCall (Var in__) "template read_constrain_simplex" - ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - (TemplateType jacobian__)) - ((Var lp__) (Var N))))) + (MethodCall (Var in__) "template read_constrain_simplex" + ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) + (TemplateType jacobian__)) + ((Var lp__) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) (name p_1d_simplex) (init (Assignment - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - ((Var N) - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - Constant () ((Var N) (Var DUMMY_VAR__))))))))) - (Expression (Assign (Var current_statement__) (Literal 18))) - (Expression - (Assign (Var p_1d_simplex) - (MethodCall (Var in__) "template read_constrain_simplex" - ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - (TemplateType jacobian__)) - ((Var lp__) (Var N) (Var N))))) + (MethodCall (Var in__) "template read_constrain_simplex" + ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) + (TemplateType jacobian__)) + ((Var lp__) (Var N) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ @@ -6474,104 +6350,60 @@ (name p_3d_simplex) (init (Assignment - (Constructor - (StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)))) - ((Var N) - (Constructor + (MethodCall (Var in__) "template read_constrain_simplex" + ((StdVector (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) - ((Var M) - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - ((Var K) - (StaticMethodCall - (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) Constant () - ((Var N) (Var DUMMY_VAR__))))))))))))) - (Expression (Assign (Var current_statement__) (Literal 19))) - (Expression - (Assign (Var p_3d_simplex) - (MethodCall (Var in__) "template read_constrain_simplex" - ((StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)))) - (TemplateType jacobian__)) - ((Var lp__) (Var N) (Var M) (Var K) (Var N))))) + (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)))) + (TemplateType jacobian__)) + ((Var lp__) (Var N) (Var M) (Var K) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) (name p_cfcov_54) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - Constant () ((Literal 5) (Literal 4) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 20))) - (Expression - (Assign (Var p_cfcov_54) - (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" - ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - (TemplateType jacobian__)) - ((Var lp__) (Literal 5) (Literal 4))))) + (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" + ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) + (TemplateType jacobian__)) + ((Var lp__) (Literal 5) (Literal 4))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) (name p_cfcov_33) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - Constant () ((Literal 3) (Literal 3) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 21))) - (Expression - (Assign (Var p_cfcov_33) - (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" - ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - (TemplateType jacobian__)) - ((Var lp__) (Literal 3) (Literal 3))))) + (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" + ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) + (TemplateType jacobian__)) + ((Var lp__) (Literal 3) (Literal 3))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS))) (name p_cfcov_33_ar) (init (Assignment - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - ((Var K) - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - Constant () ((Literal 3) (Literal 3) (Var DUMMY_VAR__))))))))) - (Expression (Assign (Var current_statement__) (Literal 22))) - (Expression - (Assign (Var p_cfcov_33_ar) - (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" - ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - (TemplateType jacobian__)) - ((Var lp__) (Var K) (Literal 3) (Literal 3))))) + (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" + ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) + (TemplateType jacobian__)) + ((Var lp__) (Var K) (Literal 3) (Literal 3))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) (name x_p) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - Constant () ((Literal 2) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 23))) - (Expression - (Assign (Var x_p) - (MethodCall (Var in__) "template read" - ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) ((Literal 2))))) + (MethodCall (Var in__) "template read" + ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) + ((Literal 2))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) (name y_p) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - Constant () ((Literal 2) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 24))) - (Expression - (Assign (Var y_p) - (MethodCall (Var in__) "template read" - ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) ((Literal 2))))) + (MethodCall (Var in__) "template read" + ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) + ((Literal 2))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (TypeLiteral local_scalar_t__))) (name tp_real_1d_ar) @@ -7323,85 +7155,62 @@ (TryCatch ((VariableDefn ((static false) (constexpr false) (type_ (TypeLiteral local_scalar_t__)) - (name p_real) (init (Assignment (Var DUMMY_VAR__))))) - (Expression (Assign (Var current_statement__) (Literal 1))) - (Expression - (Assign (Var p_real) - (MethodCall (Var in__) "template read" ((TypeLiteral local_scalar_t__)) - ()))) + (name p_real) + (init + (Assignment + (MethodCall (Var in__) "template read" ((TypeLiteral local_scalar_t__)) + ()))))) (VariableDefn ((static false) (constexpr false) (type_ (TypeLiteral local_scalar_t__)) - (name p_upper) (init (Assignment (Var DUMMY_VAR__))))) - (Expression (Assign (Var current_statement__) (Literal 2))) - (Expression - (Assign (Var p_upper) - (MethodCall (Var in__) "template read_constrain_lb" - ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) - ((Var p_real) (Var lp__))))) + (name p_upper) + (init + (Assignment + (MethodCall (Var in__) "template read_constrain_lb" + ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) + ((Var p_real) (Var lp__))))))) (VariableDefn ((static false) (constexpr false) (type_ (TypeLiteral local_scalar_t__)) - (name p_lower) (init (Assignment (Var DUMMY_VAR__))))) - (Expression (Assign (Var current_statement__) (Literal 3))) - (Expression - (Assign (Var p_lower) - (MethodCall (Var in__) "template read_constrain_ub" - ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) - ((Var p_upper) (Var lp__))))) + (name p_lower) + (init + (Assignment + (MethodCall (Var in__) "template read_constrain_ub" + ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) + ((Var p_upper) (Var lp__))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (TypeLiteral local_scalar_t__))) (name offset_multiplier) (init (Assignment - (Constructor (StdVector (TypeLiteral local_scalar_t__)) - ((Literal 5) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 4))) - (Expression - (Assign (Var offset_multiplier) - (MethodCall (Var in__) "template read_constrain_offset_multiplier" - ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) - ((Literal 1) (Literal 2) (Var lp__) (Literal 5))))) + (MethodCall (Var in__) "template read_constrain_offset_multiplier" + ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) + ((Literal 1) (Literal 2) (Var lp__) (Literal 5))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (TypeLiteral local_scalar_t__))) (name no_offset_multiplier) (init (Assignment - (Constructor (StdVector (TypeLiteral local_scalar_t__)) - ((Literal 5) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 5))) - (Expression - (Assign (Var no_offset_multiplier) - (MethodCall (Var in__) "template read_constrain_offset_multiplier" - ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) - ((Literal 0) (Literal 2) (Var lp__) (Literal 5))))) + (MethodCall (Var in__) "template read_constrain_offset_multiplier" + ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) + ((Literal 0) (Literal 2) (Var lp__) (Literal 5))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (TypeLiteral local_scalar_t__))) (name offset_no_multiplier) (init (Assignment - (Constructor (StdVector (TypeLiteral local_scalar_t__)) - ((Literal 5) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 6))) - (Expression - (Assign (Var offset_no_multiplier) - (MethodCall (Var in__) "template read_constrain_offset_multiplier" - ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) - ((Literal 3) (Literal 1) (Var lp__) (Literal 5))))) + (MethodCall (Var in__) "template read_constrain_offset_multiplier" + ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) + ((Literal 3) (Literal 1) (Var lp__) (Literal 5))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (TypeLiteral local_scalar_t__))) (name p_real_1d_ar) (init (Assignment - (Constructor (StdVector (TypeLiteral local_scalar_t__)) - ((Var N) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 7))) - (Expression - (Assign (Var p_real_1d_ar) - (MethodCall (Var in__) "template read_constrain_lb" - ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) - ((Literal 0) (Var lp__) (Var N))))) + (MethodCall (Var in__) "template read_constrain_lb" + ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) + ((Literal 0) (Var lp__) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ @@ -7409,52 +7218,29 @@ (name p_real_3d_ar) (init (Assignment - (Constructor - (StdVector (StdVector (StdVector (TypeLiteral local_scalar_t__)))) - ((Var N) - (Constructor (StdVector (StdVector (TypeLiteral local_scalar_t__))) - ((Var M) - (Constructor (StdVector (TypeLiteral local_scalar_t__)) - ((Var K) (Var DUMMY_VAR__))))))))))) - (Expression (Assign (Var current_statement__) (Literal 8))) - (Expression - (Assign (Var p_real_3d_ar) - (MethodCall (Var in__) "template read_constrain_lb" - ((StdVector (StdVector (StdVector (TypeLiteral local_scalar_t__)))) - (TemplateType jacobian__)) - ((Literal 0) (Var lp__) (Var N) (Var M) (Var K))))) + (MethodCall (Var in__) "template read_constrain_lb" + ((StdVector (StdVector (StdVector (TypeLiteral local_scalar_t__)))) + (TemplateType jacobian__)) + ((Literal 0) (Var lp__) (Var N) (Var M) (Var K))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) (name p_vec) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - Constant () ((Var N) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 9))) - (Expression - (Assign (Var p_vec) - (MethodCall (Var in__) "template read_constrain_lb" - ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - (TemplateType jacobian__)) - ((Literal 0) (Var lp__) (Var N))))) + (MethodCall (Var in__) "template read_constrain_lb" + ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) + (TemplateType jacobian__)) + ((Literal 0) (Var lp__) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) (name p_1d_vec) (init (Assignment - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - ((Var N) - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - Constant () ((Var N) (Var DUMMY_VAR__))))))))) - (Expression (Assign (Var current_statement__) (Literal 10))) - (Expression - (Assign (Var p_1d_vec) - (MethodCall (Var in__) "template read" - ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) - ((Var N) (Var N))))) + (MethodCall (Var in__) "template read" + ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) + ((Var N) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ @@ -7464,59 +7250,29 @@ (name p_3d_vec) (init (Assignment - (Constructor - (StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)))) - ((Var N) - (Constructor + (MethodCall (Var in__) "template read" + ((StdVector (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) - ((Var M) - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - ((Var K) - (StaticMethodCall - (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) Constant () - ((Var N) (Var DUMMY_VAR__))))))))))))) - (Expression (Assign (Var current_statement__) (Literal 11))) - (Expression - (Assign (Var p_3d_vec) - (MethodCall (Var in__) "template read" - ((StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) - ((Var N) (Var M) (Var K) (Var N))))) + (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) + ((Var N) (Var M) (Var K) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) (name p_row_vec) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS) - Constant () ((Var N) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 12))) - (Expression - (Assign (Var p_row_vec) - (MethodCall (Var in__) "template read" - ((Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) ((Var N))))) + (MethodCall (Var in__) "template read" + ((Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) + ((Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) (name p_1d_row_vec) (init (Assignment - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) - ((Var N) - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS) - Constant () ((Var N) (Var DUMMY_VAR__))))))))) - (Expression (Assign (Var current_statement__) (Literal 13))) - (Expression - (Assign (Var p_1d_row_vec) - (MethodCall (Var in__) "template read" - ((StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) - ((Var N) (Var N))))) + (MethodCall (Var in__) "template read" + ((StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) + ((Var N) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ @@ -7526,43 +7282,20 @@ (name p_3d_row_vec) (init (Assignment - (Constructor - (StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)))) - ((Var N) - (Constructor + (MethodCall (Var in__) "template read" + ((StdVector (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) - ((Var M) - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) - ((Var K) - (StaticMethodCall - (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS) Constant () - ((Var N) (Var DUMMY_VAR__))))))))))))) - (Expression (Assign (Var current_statement__) (Literal 14))) - (Expression - (Assign (Var p_3d_row_vec) - (MethodCall (Var in__) "template read" - ((StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))))) - ((Var N) (Var M) (Var K) (Var N))))) + (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))))) + ((Var N) (Var M) (Var K) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) (name p_mat) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - Constant () ((Literal 5) (Literal 4) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 15))) - (Expression - (Assign (Var p_mat) - (MethodCall (Var in__) "template read" - ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - ((Literal 5) (Literal 4))))) + (MethodCall (Var in__) "template read" + ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) + ((Literal 5) (Literal 4))))))) (VariableDefn ((static false) (constexpr false) (type_ @@ -7571,57 +7304,32 @@ (name p_ar_mat) (init (Assignment - (Constructor - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS))) - ((Literal 4) - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - ((Literal 5) - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - Constant () ((Literal 2) (Literal 3) (Var DUMMY_VAR__))))))))))) - (Expression (Assign (Var current_statement__) (Literal 16))) - (Expression - (Assign (Var p_ar_mat) - (MethodCall (Var in__) "template read_constrain_lub" - ((StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS))) - (TemplateType jacobian__)) - ((Literal 0) (Literal 1) (Var lp__) (Literal 4) (Literal 5) - (Literal 2) (Literal 3))))) + (MethodCall (Var in__) "template read_constrain_lub" + ((StdVector + (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS))) + (TemplateType jacobian__)) + ((Literal 0) (Literal 1) (Var lp__) (Literal 4) (Literal 5) + (Literal 2) (Literal 3))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) (name p_simplex) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - Constant () ((Var N) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 17))) - (Expression - (Assign (Var p_simplex) - (MethodCall (Var in__) "template read_constrain_simplex" - ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - (TemplateType jacobian__)) - ((Var lp__) (Var N))))) + (MethodCall (Var in__) "template read_constrain_simplex" + ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) + (TemplateType jacobian__)) + ((Var lp__) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) (name p_1d_simplex) (init (Assignment - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - ((Var N) - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - Constant () ((Var N) (Var DUMMY_VAR__))))))))) - (Expression (Assign (Var current_statement__) (Literal 18))) - (Expression - (Assign (Var p_1d_simplex) - (MethodCall (Var in__) "template read_constrain_simplex" - ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - (TemplateType jacobian__)) - ((Var lp__) (Var N) (Var N))))) + (MethodCall (Var in__) "template read_constrain_simplex" + ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) + (TemplateType jacobian__)) + ((Var lp__) (Var N) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ @@ -7631,104 +7339,60 @@ (name p_3d_simplex) (init (Assignment - (Constructor - (StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)))) - ((Var N) - (Constructor + (MethodCall (Var in__) "template read_constrain_simplex" + ((StdVector (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) - ((Var M) - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - ((Var K) - (StaticMethodCall - (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) Constant () - ((Var N) (Var DUMMY_VAR__))))))))))))) - (Expression (Assign (Var current_statement__) (Literal 19))) - (Expression - (Assign (Var p_3d_simplex) - (MethodCall (Var in__) "template read_constrain_simplex" - ((StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)))) - (TemplateType jacobian__)) - ((Var lp__) (Var N) (Var M) (Var K) (Var N))))) + (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)))) + (TemplateType jacobian__)) + ((Var lp__) (Var N) (Var M) (Var K) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) (name p_cfcov_54) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - Constant () ((Literal 5) (Literal 4) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 20))) - (Expression - (Assign (Var p_cfcov_54) - (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" - ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - (TemplateType jacobian__)) - ((Var lp__) (Literal 5) (Literal 4))))) + (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" + ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) + (TemplateType jacobian__)) + ((Var lp__) (Literal 5) (Literal 4))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) (name p_cfcov_33) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - Constant () ((Literal 3) (Literal 3) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 21))) - (Expression - (Assign (Var p_cfcov_33) - (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" - ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - (TemplateType jacobian__)) - ((Var lp__) (Literal 3) (Literal 3))))) + (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" + ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) + (TemplateType jacobian__)) + ((Var lp__) (Literal 3) (Literal 3))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS))) (name p_cfcov_33_ar) (init (Assignment - (Constructor - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - ((Var K) - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - Constant () ((Literal 3) (Literal 3) (Var DUMMY_VAR__))))))))) - (Expression (Assign (Var current_statement__) (Literal 22))) - (Expression - (Assign (Var p_cfcov_33_ar) - (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" - ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - (TemplateType jacobian__)) - ((Var lp__) (Var K) (Literal 3) (Literal 3))))) + (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" + ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) + (TemplateType jacobian__)) + ((Var lp__) (Var K) (Literal 3) (Literal 3))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) (name x_p) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - Constant () ((Literal 2) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 23))) - (Expression - (Assign (Var x_p) - (MethodCall (Var in__) "template read" - ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) ((Literal 2))))) + (MethodCall (Var in__) "template read" + ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) + ((Literal 2))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) (name y_p) (init (Assignment - (StaticMethodCall (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - Constant () ((Literal 2) (Var DUMMY_VAR__))))))) - (Expression (Assign (Var current_statement__) (Literal 24))) - (Expression - (Assign (Var y_p) - (MethodCall (Var in__) "template read" - ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) ((Literal 2))))) + (MethodCall (Var in__) "template read" + ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) + ((Literal 2))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (TypeLiteral local_scalar_t__))) (name tp_real_1d_ar) @@ -8495,365 +8159,212 @@ ((VariableDefn ((static false) (constexpr false) (type_ Double) (name p_real) (init - (Assignment (FunCall std::numeric_limits::quiet_NaN () ()))))) - (Expression (Assign (Var current_statement__) (Literal 1))) - (Expression - (Assign (Var p_real) - (MethodCall (Var in__) "template read" ((TypeLiteral local_scalar_t__)) - ()))) + (Assignment + (MethodCall (Var in__) "template read" ((TypeLiteral local_scalar_t__)) + ()))))) (VariableDefn ((static false) (constexpr false) (type_ Double) (name p_upper) (init - (Assignment (FunCall std::numeric_limits::quiet_NaN () ()))))) - (Expression (Assign (Var current_statement__) (Literal 2))) - (Expression - (Assign (Var p_upper) - (MethodCall (Var in__) "template read_constrain_lb" - ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) - ((Var p_real) (Var lp__))))) + (Assignment + (MethodCall (Var in__) "template read_constrain_lb" + ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) + ((Var p_real) (Var lp__))))))) (VariableDefn ((static false) (constexpr false) (type_ Double) (name p_lower) (init - (Assignment (FunCall std::numeric_limits::quiet_NaN () ()))))) - (Expression (Assign (Var current_statement__) (Literal 3))) - (Expression - (Assign (Var p_lower) - (MethodCall (Var in__) "template read_constrain_ub" - ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) - ((Var p_upper) (Var lp__))))) + (Assignment + (MethodCall (Var in__) "template read_constrain_ub" + ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) + ((Var p_upper) (Var lp__))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector Double)) (name offset_multiplier) (init (Assignment - (Constructor (StdVector Double) - ((Literal 5) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Expression (Assign (Var current_statement__) (Literal 4))) - (Expression - (Assign (Var offset_multiplier) - (MethodCall (Var in__) "template read_constrain_offset_multiplier" - ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) - ((Literal 1) (Literal 2) (Var lp__) (Literal 5))))) + (MethodCall (Var in__) "template read_constrain_offset_multiplier" + ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) + ((Literal 1) (Literal 2) (Var lp__) (Literal 5))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector Double)) (name no_offset_multiplier) (init (Assignment - (Constructor (StdVector Double) - ((Literal 5) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Expression (Assign (Var current_statement__) (Literal 5))) - (Expression - (Assign (Var no_offset_multiplier) - (MethodCall (Var in__) "template read_constrain_offset_multiplier" - ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) - ((Literal 0) (Literal 2) (Var lp__) (Literal 5))))) + (MethodCall (Var in__) "template read_constrain_offset_multiplier" + ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) + ((Literal 0) (Literal 2) (Var lp__) (Literal 5))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector Double)) (name offset_no_multiplier) (init (Assignment - (Constructor (StdVector Double) - ((Literal 5) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Expression (Assign (Var current_statement__) (Literal 6))) - (Expression - (Assign (Var offset_no_multiplier) - (MethodCall (Var in__) "template read_constrain_offset_multiplier" - ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) - ((Literal 3) (Literal 1) (Var lp__) (Literal 5))))) + (MethodCall (Var in__) "template read_constrain_offset_multiplier" + ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) + ((Literal 3) (Literal 1) (Var lp__) (Literal 5))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector Double)) (name p_real_1d_ar) (init (Assignment - (Constructor (StdVector Double) - ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Expression (Assign (Var current_statement__) (Literal 7))) - (Expression - (Assign (Var p_real_1d_ar) - (MethodCall (Var in__) "template read_constrain_lb" - ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) - ((Literal 0) (Var lp__) (Var N))))) + (MethodCall (Var in__) "template read_constrain_lb" + ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) + ((Literal 0) (Var lp__) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (StdVector (StdVector Double)))) (name p_real_3d_ar) (init (Assignment - (Constructor (StdVector (StdVector (StdVector Double))) - ((Var N) - (Constructor (StdVector (StdVector Double)) - ((Var M) - (Constructor (StdVector Double) - ((Var K) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))) - (Expression (Assign (Var current_statement__) (Literal 8))) - (Expression - (Assign (Var p_real_3d_ar) - (MethodCall (Var in__) "template read_constrain_lb" - ((StdVector (StdVector (StdVector (TypeLiteral local_scalar_t__)))) - (TemplateType jacobian__)) - ((Literal 0) (Var lp__) (Var N) (Var M) (Var K))))) + (MethodCall (Var in__) "template read_constrain_lb" + ((StdVector (StdVector (StdVector (TypeLiteral local_scalar_t__)))) + (TemplateType jacobian__)) + ((Literal 0) (Var lp__) (Var N) (Var M) (Var K))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix Double -1 1 AoS)) (name p_vec) (init (Assignment - (StaticMethodCall (Matrix Double -1 1 AoS) Constant () - ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Expression (Assign (Var current_statement__) (Literal 9))) - (Expression - (Assign (Var p_vec) - (MethodCall (Var in__) "template read_constrain_lb" - ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - (TemplateType jacobian__)) - ((Literal 0) (Var lp__) (Var N))))) + (MethodCall (Var in__) "template read_constrain_lb" + ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) + (TemplateType jacobian__)) + ((Literal 0) (Var lp__) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (Matrix Double -1 1 AoS))) (name p_1d_vec) (init (Assignment - (Constructor (StdVector (Matrix Double -1 1 AoS)) - ((Var N) - (StaticMethodCall (Matrix Double -1 1 AoS) Constant () - ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) - (Expression (Assign (Var current_statement__) (Literal 10))) - (Expression - (Assign (Var p_1d_vec) - (MethodCall (Var in__) "template read" - ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) - ((Var N) (Var N))))) + (MethodCall (Var in__) "template read" + ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) + ((Var N) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (StdVector (StdVector (Matrix Double -1 1 AoS))))) (name p_3d_vec) (init (Assignment - (Constructor - (StdVector (StdVector (StdVector (Matrix Double -1 1 AoS)))) - ((Var N) - (Constructor (StdVector (StdVector (Matrix Double -1 1 AoS))) - ((Var M) - (Constructor (StdVector (Matrix Double -1 1 AoS)) - ((Var K) - (StaticMethodCall (Matrix Double -1 1 AoS) Constant () - ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))))) - (Expression (Assign (Var current_statement__) (Literal 11))) - (Expression - (Assign (Var p_3d_vec) - (MethodCall (Var in__) "template read" - ((StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) - ((Var N) (Var M) (Var K) (Var N))))) + (MethodCall (Var in__) "template read" + ((StdVector + (StdVector + (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) + ((Var N) (Var M) (Var K) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix Double 1 -1 AoS)) (name p_row_vec) (init (Assignment - (StaticMethodCall (Matrix Double 1 -1 AoS) Constant () - ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Expression (Assign (Var current_statement__) (Literal 12))) - (Expression - (Assign (Var p_row_vec) - (MethodCall (Var in__) "template read" - ((Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) ((Var N))))) + (MethodCall (Var in__) "template read" + ((Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) + ((Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (Matrix Double 1 -1 AoS))) (name p_1d_row_vec) (init (Assignment - (Constructor (StdVector (Matrix Double 1 -1 AoS)) - ((Var N) - (StaticMethodCall (Matrix Double 1 -1 AoS) Constant () - ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) - (Expression (Assign (Var current_statement__) (Literal 13))) - (Expression - (Assign (Var p_1d_row_vec) - (MethodCall (Var in__) "template read" - ((StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) - ((Var N) (Var N))))) + (MethodCall (Var in__) "template read" + ((StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) + ((Var N) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (StdVector (StdVector (Matrix Double 1 -1 AoS))))) (name p_3d_row_vec) (init (Assignment - (Constructor - (StdVector (StdVector (StdVector (Matrix Double 1 -1 AoS)))) - ((Var N) - (Constructor (StdVector (StdVector (Matrix Double 1 -1 AoS))) - ((Var M) - (Constructor (StdVector (Matrix Double 1 -1 AoS)) - ((Var K) - (StaticMethodCall (Matrix Double 1 -1 AoS) Constant () - ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))))) - (Expression (Assign (Var current_statement__) (Literal 14))) - (Expression - (Assign (Var p_3d_row_vec) - (MethodCall (Var in__) "template read" - ((StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))))) - ((Var N) (Var M) (Var K) (Var N))))) + (MethodCall (Var in__) "template read" + ((StdVector + (StdVector + (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))))) + ((Var N) (Var M) (Var K) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix Double -1 -1 AoS)) (name p_mat) (init (Assignment - (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () - ((Literal 5) (Literal 4) - (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Expression (Assign (Var current_statement__) (Literal 15))) - (Expression - (Assign (Var p_mat) - (MethodCall (Var in__) "template read" - ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - ((Literal 5) (Literal 4))))) + (MethodCall (Var in__) "template read" + ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) + ((Literal 5) (Literal 4))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (StdVector (Matrix Double -1 -1 AoS)))) (name p_ar_mat) (init (Assignment - (Constructor (StdVector (StdVector (Matrix Double -1 -1 AoS))) - ((Literal 4) - (Constructor (StdVector (Matrix Double -1 -1 AoS)) - ((Literal 5) - (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () - ((Literal 2) (Literal 3) - (FunCall std::numeric_limits::quiet_NaN () ()))))))))))) - (Expression (Assign (Var current_statement__) (Literal 16))) - (Expression - (Assign (Var p_ar_mat) - (MethodCall (Var in__) "template read_constrain_lub" - ((StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS))) - (TemplateType jacobian__)) - ((Literal 0) (Literal 1) (Var lp__) (Literal 4) (Literal 5) - (Literal 2) (Literal 3))))) + (MethodCall (Var in__) "template read_constrain_lub" + ((StdVector + (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS))) + (TemplateType jacobian__)) + ((Literal 0) (Literal 1) (Var lp__) (Literal 4) (Literal 5) + (Literal 2) (Literal 3))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix Double -1 1 AoS)) (name p_simplex) (init (Assignment - (StaticMethodCall (Matrix Double -1 1 AoS) Constant () - ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Expression (Assign (Var current_statement__) (Literal 17))) - (Expression - (Assign (Var p_simplex) - (MethodCall (Var in__) "template read_constrain_simplex" - ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) - (TemplateType jacobian__)) - ((Var lp__) (Var N))))) + (MethodCall (Var in__) "template read_constrain_simplex" + ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) + (TemplateType jacobian__)) + ((Var lp__) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (Matrix Double -1 1 AoS))) (name p_1d_simplex) (init (Assignment - (Constructor (StdVector (Matrix Double -1 1 AoS)) - ((Var N) - (StaticMethodCall (Matrix Double -1 1 AoS) Constant () - ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) - (Expression (Assign (Var current_statement__) (Literal 18))) - (Expression - (Assign (Var p_1d_simplex) - (MethodCall (Var in__) "template read_constrain_simplex" - ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - (TemplateType jacobian__)) - ((Var lp__) (Var N) (Var N))))) + (MethodCall (Var in__) "template read_constrain_simplex" + ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) + (TemplateType jacobian__)) + ((Var lp__) (Var N) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (StdVector (StdVector (Matrix Double -1 1 AoS))))) (name p_3d_simplex) (init (Assignment - (Constructor - (StdVector (StdVector (StdVector (Matrix Double -1 1 AoS)))) - ((Var N) - (Constructor (StdVector (StdVector (Matrix Double -1 1 AoS))) - ((Var M) - (Constructor (StdVector (Matrix Double -1 1 AoS)) - ((Var K) - (StaticMethodCall (Matrix Double -1 1 AoS) Constant () - ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))))) - (Expression (Assign (Var current_statement__) (Literal 19))) - (Expression - (Assign (Var p_3d_simplex) - (MethodCall (Var in__) "template read_constrain_simplex" - ((StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)))) - (TemplateType jacobian__)) - ((Var lp__) (Var N) (Var M) (Var K) (Var N))))) + (MethodCall (Var in__) "template read_constrain_simplex" + ((StdVector + (StdVector + (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)))) + (TemplateType jacobian__)) + ((Var lp__) (Var N) (Var M) (Var K) (Var N))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix Double -1 -1 AoS)) (name p_cfcov_54) (init (Assignment - (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () - ((Literal 5) (Literal 4) - (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Expression (Assign (Var current_statement__) (Literal 20))) - (Expression - (Assign (Var p_cfcov_54) - (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" - ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - (TemplateType jacobian__)) - ((Var lp__) (Literal 5) (Literal 4))))) + (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" + ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) + (TemplateType jacobian__)) + ((Var lp__) (Literal 5) (Literal 4))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix Double -1 -1 AoS)) (name p_cfcov_33) (init (Assignment - (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () - ((Literal 3) (Literal 3) - (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Expression (Assign (Var current_statement__) (Literal 21))) - (Expression - (Assign (Var p_cfcov_33) - (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" - ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) - (TemplateType jacobian__)) - ((Var lp__) (Literal 3) (Literal 3))))) + (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" + ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) + (TemplateType jacobian__)) + ((Var lp__) (Literal 3) (Literal 3))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector (Matrix Double -1 -1 AoS))) (name p_cfcov_33_ar) (init (Assignment - (Constructor (StdVector (Matrix Double -1 -1 AoS)) - ((Var K) - (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () - ((Literal 3) (Literal 3) - (FunCall std::numeric_limits::quiet_NaN () ()))))))))) - (Expression (Assign (Var current_statement__) (Literal 22))) - (Expression - (Assign (Var p_cfcov_33_ar) - (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" - ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - (TemplateType jacobian__)) - ((Var lp__) (Var K) (Literal 3) (Literal 3))))) + (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" + ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) + (TemplateType jacobian__)) + ((Var lp__) (Var K) (Literal 3) (Literal 3))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix Double -1 1 AoS)) (name x_p) (init (Assignment - (StaticMethodCall (Matrix Double -1 1 AoS) Constant () - ((Literal 2) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Expression (Assign (Var current_statement__) (Literal 23))) - (Expression - (Assign (Var x_p) - (MethodCall (Var in__) "template read" - ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) ((Literal 2))))) + (MethodCall (Var in__) "template read" + ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) + ((Literal 2))))))) (VariableDefn ((static false) (constexpr false) (type_ (Matrix Double -1 1 AoS)) (name y_p) (init (Assignment - (StaticMethodCall (Matrix Double -1 1 AoS) Constant () - ((Literal 2) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Expression (Assign (Var current_statement__) (Literal 24))) - (Expression - (Assign (Var y_p) - (MethodCall (Var in__) "template read" - ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) ((Literal 2))))) + (MethodCall (Var in__) "template read" + ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) + ((Literal 2))))))) (VariableDefn ((static false) (constexpr false) (type_ (StdVector Double)) (name tp_real_1d_ar) @@ -16834,11 +16345,6 @@ (InitializerExpr (StdVector (TypeLiteral size_t)) ())))) (Expression (Assign (Var N) (FunCall std::numeric_limits::min () ()))) (Expression (Assign (Var current_statement__) (Literal 190))) - (Expression - (Assign (Var N) - (Index (MethodCall (Var context__) vals_i () ((Literal "\"N\""))) - (Parens (BinOp (Literal 1) Subtract (Literal 1)))))) - (Expression (Assign (Var current_statement__) (Literal 190))) (Expression (FunCall stan::math::check_greater_or_equal () ((Var function__) (Literal "\"N\"") (Var N) (Literal 0)))) @@ -16849,11 +16355,6 @@ (InitializerExpr (StdVector (TypeLiteral size_t)) ())))) (Expression (Assign (Var M) (FunCall std::numeric_limits::min () ()))) (Expression (Assign (Var current_statement__) (Literal 191))) - (Expression - (Assign (Var M) - (Index (MethodCall (Var context__) vals_i () ((Literal "\"M\""))) - (Parens (BinOp (Literal 1) Subtract (Literal 1)))))) - (Expression (Assign (Var current_statement__) (Literal 191))) (Expression (FunCall stan::math::check_greater_or_equal () ((Var function__) (Literal "\"M\"") (Var M) (Literal 0)))) @@ -16864,11 +16365,6 @@ (InitializerExpr (StdVector (TypeLiteral size_t)) ())))) (Expression (Assign (Var K) (FunCall std::numeric_limits::min () ()))) (Expression (Assign (Var current_statement__) (Literal 192))) - (Expression - (Assign (Var K) - (Index (MethodCall (Var context__) vals_i () ((Literal "\"K\""))) - (Parens (BinOp (Literal 1) Subtract (Literal 1)))))) - (Expression (Assign (Var current_statement__) (Literal 192))) (Expression (FunCall stan::math::check_greater_or_equal () ((Var function__) (Literal "\"K\"") (Var K) (Literal 0)))) @@ -16893,10 +16389,6 @@ (Constructor (StdVector Int) ((Var N) (FunCall std::numeric_limits::min () ()))))) (Expression (Assign (Var current_statement__) (Literal 194))) - (Expression - (Assign (Var d_int_1d_ar) - (MethodCall (Var context__) vals_i () ((Literal "\"d_int_1d_ar\""))))) - (Expression (Assign (Var current_statement__) (Literal 194))) (Expression (FunCall stan::math::check_less_or_equal () ((Var function__) (Literal "\"d_int_1d_ar\"") (Var d_int_1d_ar) (Var N)))) @@ -16929,41 +16421,6 @@ ((Var M) (Constructor (StdVector Int) ((Var K) (FunCall std::numeric_limits::min () ()))))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) (type_ (StdVector Int)) - (name d_int_3d_ar_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 198))) - (Expression - (Assign (Var d_int_3d_ar_flat__) - (MethodCall (Var context__) vals_i () ((Literal "\"d_int_3d_ar\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var K)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var M)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Var N)) (Increment (Var sym3__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_int_3d_ar) - (Index (Var d_int_3d_ar_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_int_3d_ar\"") - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 198))) (Expression (FunCall stan::math::check_less_or_equal () @@ -16977,11 +16434,6 @@ (Expression (Assign (Var J) (FunCall std::numeric_limits::quiet_NaN () ()))) (Expression (Assign (Var current_statement__) (Literal 199))) - (Expression - (Assign (Var J) - (Index (MethodCall (Var context__) vals_r () ((Literal "\"J\""))) - (Parens (BinOp (Literal 1) Subtract (Literal 1)))))) - (Expression (Assign (Var current_statement__) (Literal 199))) (Expression (FunCall stan::math::check_greater_or_equal () ((Var function__) (Literal "\"J\"") (Var J) (PMinus (Literal 2.0))))) @@ -17004,10 +16456,6 @@ (Assign (Var d_real_1d_ar) (Constructor (StdVector Double) ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))) - (Expression (Assign (Var current_statement__) (Literal 201))) - (Expression - (Assign (Var d_real_1d_ar) - (MethodCall (Var context__) vals_r () ((Literal "\"d_real_1d_ar\""))))) (Expression (Assign (Var current_statement__) (Literal 202))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17037,42 +16485,6 @@ ((Var M) (Constructor (StdVector Double) ((Var K) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_real_3d_ar_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 205))) - (Expression - (Assign (Var d_real_3d_ar_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_real_3d_ar\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var K)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var M)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Var N)) (Increment (Var sym3__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_real_3d_ar) - (Index (Var d_real_3d_ar_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_real_3d_ar\"") - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 206))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17091,30 +16503,6 @@ (Expression (OperatorNew d_vec (TypeTrait Eigen::Map ((Matrix Double -1 1 AoS))) ((MethodCall (Var d_vec_data__) data () ()) (Var N)))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_vec_flat__) - (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 207))) - (Expression - (Assign (Var d_vec_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_vec\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_vec) - (Index (Var d_vec_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_vec\"") - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))) (Expression (Assign (Var current_statement__) (Literal 208))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17137,36 +16525,6 @@ ((Var N) (StaticMethodCall (Matrix Double -1 1 AoS) Constant () ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_1d_vec_flat__) - (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 210))) - (Expression - (Assign (Var d_1d_vec_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_1d_vec\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var N)) (Increment (Var sym2__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_1d_vec) - (Index (Var d_1d_vec_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_1d_vec\"") - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 211))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17203,49 +16561,6 @@ ((Var K) (StaticMethodCall (Matrix Double -1 1 AoS) Constant () ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_3d_vec_flat__) - (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 215))) - (Expression - (Assign (Var d_3d_vec_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_3d_vec\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var K)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Var M)) (Increment (Var sym3__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) - (name sym4__) (init (Assignment (Literal 1)))) - (BinOp (Var sym4__) LEq (Var N)) (Increment (Var sym4__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_3d_vec) - (Index (Var d_3d_vec_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_3d_vec\"") - (FunCall stan::model::index_uni () ((Var sym4__))) - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) - (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 216))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17264,30 +16579,6 @@ (Expression (OperatorNew d_row_vec (TypeTrait Eigen::Map ((Matrix Double 1 -1 AoS))) ((MethodCall (Var d_row_vec_data__) data () ()) (Var N)))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_row_vec_flat__) - (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 217))) - (Expression - (Assign (Var d_row_vec_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_row_vec\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_row_vec) - (Index (Var d_row_vec_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_row_vec\"") - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))) (Expression (Assign (Var current_statement__) (Literal 218))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17310,36 +16601,6 @@ ((Var N) (StaticMethodCall (Matrix Double 1 -1 AoS) Constant () ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_1d_row_vec_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 220))) - (Expression - (Assign (Var d_1d_row_vec_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_1d_row_vec\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var N)) (Increment (Var sym2__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_1d_row_vec) - (Index (Var d_1d_row_vec_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_1d_row_vec\"") - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 221))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17376,49 +16637,6 @@ ((Var K) (StaticMethodCall (Matrix Double 1 -1 AoS) Constant () ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_3d_row_vec_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 225))) - (Expression - (Assign (Var d_3d_row_vec_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_3d_row_vec\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var K)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Var M)) (Increment (Var sym3__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) - (name sym4__) (init (Assignment (Literal 1)))) - (BinOp (Var sym4__) LEq (Var N)) (Increment (Var sym4__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_3d_row_vec) - (Index (Var d_3d_row_vec_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_3d_row_vec\"") - (FunCall stan::model::index_uni () ((Var sym4__))) - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) - (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 226))) (Expression (MethodCall (Var context__) validate_dims () @@ -17438,49 +16656,6 @@ (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () ((Literal 2) (Literal 3) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_ar_mat_flat__) - (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 226))) - (Expression - (Assign (Var d_ar_mat_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_ar_mat\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Literal 3)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Literal 2)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Literal 5)) (Increment (Var sym3__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) - (name sym4__) (init (Assignment (Literal 1)))) - (BinOp (Var sym4__) LEq (Literal 4)) (Increment (Var sym4__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_ar_mat) - (Index (Var d_ar_mat_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_ar_mat\"") - (FunCall stan::model::index_uni () ((Var sym4__))) - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) - (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 226))) (Expression (FunCall stan::math::check_greater_or_equal () @@ -17507,30 +16682,6 @@ (Expression (OperatorNew d_simplex (TypeTrait Eigen::Map ((Matrix Double -1 1 AoS))) ((MethodCall (Var d_simplex_data__) data () ()) (Var N)))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_simplex_flat__) - (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 228))) - (Expression - (Assign (Var d_simplex_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_simplex\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_simplex) - (Index (Var d_simplex_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_simplex\"") - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))) (Expression (Assign (Var current_statement__) (Literal 228))) (Expression (FunCall stan::math::check_simplex () @@ -17557,36 +16708,6 @@ ((Var N) (StaticMethodCall (Matrix Double -1 1 AoS) Constant () ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_1d_simplex_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 231))) - (Expression - (Assign (Var d_1d_simplex_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_1d_simplex\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var N)) (Increment (Var sym2__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_1d_simplex) - (Index (Var d_1d_simplex_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_1d_simplex\"") - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 231))) (Expression (FunCall stan::math::check_simplex () @@ -17627,49 +16748,6 @@ ((Var K) (StaticMethodCall (Matrix Double -1 1 AoS) Constant () ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_3d_simplex_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 236))) - (Expression - (Assign (Var d_3d_simplex_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_3d_simplex\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var K)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Var M)) (Increment (Var sym3__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) - (name sym4__) (init (Assignment (Literal 1)))) - (BinOp (Var sym4__) LEq (Var N)) (Increment (Var sym4__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_3d_simplex) - (Index (Var d_3d_simplex_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_3d_simplex\"") - (FunCall stan::model::index_uni () ((Var sym4__))) - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) - (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 236))) (Expression (FunCall stan::math::check_simplex () @@ -17690,36 +16768,6 @@ (Expression (OperatorNew d_cfcov_54 (TypeTrait Eigen::Map ((Matrix Double -1 -1 AoS))) ((MethodCall (Var d_cfcov_54_data__) data () ()) (Literal 5) (Literal 4)))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_cfcov_54_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 237))) - (Expression - (Assign (Var d_cfcov_54_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_cfcov_54\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Literal 4)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Literal 5)) (Increment (Var sym2__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_cfcov_54) - (Index (Var d_cfcov_54_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_cfcov_54\"") - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 237))) (Expression (FunCall stan::math::check_cholesky_factor () @@ -17740,36 +16788,6 @@ (Expression (OperatorNew d_cfcov_33 (TypeTrait Eigen::Map ((Matrix Double -1 -1 AoS))) ((MethodCall (Var d_cfcov_33_data__) data () ()) (Literal 3) (Literal 3)))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_cfcov_33_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 238))) - (Expression - (Assign (Var d_cfcov_33_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_cfcov_33\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Literal 3)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Literal 3)) (Increment (Var sym2__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_cfcov_33) - (Index (Var d_cfcov_33_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_cfcov_33\"") - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 238))) (Expression (FunCall stan::math::check_cholesky_factor () @@ -17794,42 +16812,6 @@ (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () ((Literal 3) (Literal 3) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_cfcov_33_ar_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 240))) - (Expression - (Assign (Var d_cfcov_33_ar_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_cfcov_33_ar\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Literal 3)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Literal 3)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Var K)) (Increment (Var sym3__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_cfcov_33_ar) - (Index (Var d_cfcov_33_ar_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_cfcov_33_ar\"") - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 240))) (Expression (FunCall stan::math::check_cholesky_factor () @@ -17841,11 +16823,6 @@ (Literal "\"int\"") (InitializerExpr (StdVector (TypeLiteral size_t)) ())))) (Expression (Assign (Var d_int) (FunCall std::numeric_limits::min () ()))) - (Expression (Assign (Var current_statement__) (Literal 241))) - (Expression - (Assign (Var d_int) - (Index (MethodCall (Var context__) vals_i () ((Literal "\"d_int\""))) - (Parens (BinOp (Literal 1) Subtract (Literal 1)))))) (Expression (Assign (Var current_statement__) (Literal 242))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17861,10 +16838,6 @@ (Assign (Var d_int_array) (Constructor (StdVector Int) ((Var d_int) (FunCall std::numeric_limits::min () ()))))) - (Expression (Assign (Var current_statement__) (Literal 243))) - (Expression - (Assign (Var d_int_array) - (MethodCall (Var context__) vals_i () ((Literal "\"d_int_array\""))))) (Expression (Assign (Var current_statement__) (Literal 244))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17883,35 +16856,6 @@ ((Var d_int) (Constructor (StdVector Int) ((Literal 2) (FunCall std::numeric_limits::min () ()))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) (type_ (StdVector Int)) - (name d_int_array_2d_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 245))) - (Expression - (Assign (Var d_int_array_2d_flat__) - (MethodCall (Var context__) vals_i () ((Literal "\"d_int_array_2d\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Literal 2)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_int_array_2d) - (Index (Var d_int_array_2d_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_int_array_2d\"") - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 246))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17933,41 +16877,6 @@ ((Literal 2) (Constructor (StdVector Int) ((Literal 3) (FunCall std::numeric_limits::min () ()))))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) (type_ (StdVector Int)) - (name d_int_array_3d_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 247))) - (Expression - (Assign (Var d_int_array_3d_flat__) - (MethodCall (Var context__) vals_i () ((Literal "\"d_int_array_3d\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Literal 3)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Literal 2)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Var d_int)) (Increment (Var sym3__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_int_array_3d) - (Index (Var d_int_array_3d_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_int_array_3d\"") - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 248))) (Expression (MethodCall (Var context__) validate_dims () @@ -17976,11 +16885,6 @@ (InitializerExpr (StdVector (TypeLiteral size_t)) ())))) (Expression (Assign (Var d_real) (FunCall std::numeric_limits::quiet_NaN () ()))) - (Expression (Assign (Var current_statement__) (Literal 248))) - (Expression - (Assign (Var d_real) - (Index (MethodCall (Var context__) vals_r () ((Literal "\"d_real\""))) - (Parens (BinOp (Literal 1) Subtract (Literal 1)))))) (Expression (Assign (Var current_statement__) (Literal 249))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17996,10 +16900,6 @@ (Assign (Var d_real_array) (Constructor (StdVector Double) ((Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))) - (Expression (Assign (Var current_statement__) (Literal 250))) - (Expression - (Assign (Var d_real_array) - (MethodCall (Var context__) vals_r () ((Literal "\"d_real_array\""))))) (Expression (Assign (Var current_statement__) (Literal 251))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -18018,36 +16918,6 @@ ((Var d_int) (Constructor (StdVector Double) ((Literal 2) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_real_array_2d_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 252))) - (Expression - (Assign (Var d_real_array_2d_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_real_array_2d\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Literal 2)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_real_array_2d) - (Index (Var d_real_array_2d_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_real_array_2d\"") - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 253))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -18069,42 +16939,6 @@ ((Literal 2) (Constructor (StdVector Double) ((Literal 3) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_real_array_3d_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 254))) - (Expression - (Assign (Var d_real_array_3d_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_real_array_3d\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Literal 3)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Literal 2)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Var d_int)) (Increment (Var sym3__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_real_array_3d) - (Index (Var d_real_array_3d_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_real_array_3d\"") - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 255))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -18129,36 +16963,6 @@ (Expression (OperatorNew d_matrix (TypeTrait Eigen::Map ((Matrix Double -1 -1 AoS))) ((MethodCall (Var d_matrix_data__) data () ()) (Var d_int) (Var d_int)))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_matrix_flat__) - (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 257))) - (Expression - (Assign (Var d_matrix_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_matrix\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_matrix) - (Index (Var d_matrix_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_matrix\"") - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 258))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -18187,42 +16991,6 @@ (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () ((Var d_int) (Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_matrix_array_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 261))) - (Expression - (Assign (Var d_matrix_array_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_matrix_array\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Var d_int)) (Increment (Var sym3__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_matrix_array) - (Index (Var d_matrix_array_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_matrix_array\"") - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 262))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -18254,49 +17022,6 @@ (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () ((Var d_int) (Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_matrix_array_2d_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 265))) - (Expression - (Assign (Var d_matrix_array_2d_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_matrix_array_2d\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Literal 2)) (Increment (Var sym3__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) - (name sym4__) (init (Assignment (Literal 1)))) - (BinOp (Var sym4__) LEq (Var d_int)) (Increment (Var sym4__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_matrix_array_2d) - (Index (Var d_matrix_array_2d_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_matrix_array_2d\"") - (FunCall stan::model::index_uni () ((Var sym4__))) - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) - (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 266))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -18331,55 +17056,6 @@ (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () ((Var d_int) (Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_matrix_array_3d_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 269))) - (Expression - (Assign (Var d_matrix_array_3d_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_matrix_array_3d\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Literal 3)) (Increment (Var sym3__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) - (name sym4__) (init (Assignment (Literal 1)))) - (BinOp (Var sym4__) LEq (Literal 2)) (Increment (Var sym4__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) - (name sym5__) (init (Assignment (Literal 1)))) - (BinOp (Var sym5__) LEq (Var d_int)) (Increment (Var sym5__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_matrix_array_3d) - (Index (Var d_matrix_array_3d_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_matrix_array_3d\"") - (FunCall stan::model::index_uni () ((Var sym5__))) - (FunCall stan::model::index_uni () ((Var sym4__))) - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) - (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 270))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -18398,30 +17074,6 @@ (Expression (OperatorNew d_vector (TypeTrait Eigen::Map ((Matrix Double -1 1 AoS))) ((MethodCall (Var d_vector_data__) data () ()) (Var d_int)))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_vector_flat__) - (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 271))) - (Expression - (Assign (Var d_vector_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_vector\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_vector) - (Index (Var d_vector_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_vector\"") - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))) (Expression (Assign (Var current_statement__) (Literal 272))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -18444,36 +17096,6 @@ ((Var d_int) (StaticMethodCall (Matrix Double -1 1 AoS) Constant () ((Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_vector_array_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 274))) - (Expression - (Assign (Var d_vector_array_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_vector_array\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_vector_array) - (Index (Var d_vector_array_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_vector_array\"") - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 275))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -18499,42 +17121,6 @@ ((Literal 2) (StaticMethodCall (Matrix Double -1 1 AoS) Constant () ((Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_vector_array_2d_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 277))) - (Expression - (Assign (Var d_vector_array_2d_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_vector_array_2d\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Literal 2)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Var d_int)) (Increment (Var sym3__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_vector_array_2d) - (Index (Var d_vector_array_2d_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_vector_array_2d\"") - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 278))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -18563,49 +17149,6 @@ ((Literal 3) (StaticMethodCall (Matrix Double -1 1 AoS) Constant () ((Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_vector_array_3d_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 280))) - (Expression - (Assign (Var d_vector_array_3d_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_vector_array_3d\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Literal 3)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Literal 2)) (Increment (Var sym3__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) - (name sym4__) (init (Assignment (Literal 1)))) - (BinOp (Var sym4__) LEq (Var d_int)) (Increment (Var sym4__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_vector_array_3d) - (Index (Var d_vector_array_3d_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_vector_array_3d\"") - (FunCall stan::model::index_uni () ((Var sym4__))) - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) - (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 281))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -18624,30 +17167,6 @@ (Expression (OperatorNew d_row_vector (TypeTrait Eigen::Map ((Matrix Double 1 -1 AoS))) ((MethodCall (Var d_row_vector_data__) data () ()) (Var d_int)))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_row_vector_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 282))) - (Expression - (Assign (Var d_row_vector_flat__) - (MethodCall (Var context__) vals_r () ((Literal "\"d_row_vector\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_row_vector) - (Index (Var d_row_vector_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_row_vector\"") - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))) (Expression (Assign (Var current_statement__) (Literal 283))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -18670,37 +17189,6 @@ ((Var d_int) (StaticMethodCall (Matrix Double 1 -1 AoS) Constant () ((Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_row_vector_array_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 285))) - (Expression - (Assign (Var d_row_vector_array_flat__) - (MethodCall (Var context__) vals_r () - ((Literal "\"d_row_vector_array\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_row_vector_array) - (Index (Var d_row_vector_array_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_row_vector_array\"") - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 286))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -18726,43 +17214,6 @@ ((Literal 2) (StaticMethodCall (Matrix Double 1 -1 AoS) Constant () ((Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_row_vector_array_2d_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 288))) - (Expression - (Assign (Var d_row_vector_array_2d_flat__) - (MethodCall (Var context__) vals_r () - ((Literal "\"d_row_vector_array_2d\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Literal 2)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Var d_int)) (Increment (Var sym3__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_row_vector_array_2d) - (Index (Var d_row_vector_array_2d_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_row_vector_array_2d\"") - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 289))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -18791,50 +17242,6 @@ ((Literal 3) (StaticMethodCall (Matrix Double 1 -1 AoS) Constant () ((Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))) - (Block - ((VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name d_row_vector_array_3d_flat__) (init Uninitialized))) - (Expression (Assign (Var current_statement__) (Literal 291))) - (Expression - (Assign (Var d_row_vector_array_3d_flat__) - (MethodCall (Var context__) vals_r () - ((Literal "\"d_row_vector_array_3d\""))))) - (Expression (Assign (Var pos__) (Literal 1))) - (For - ((static false) (constexpr false) (type_ Int) (name sym1__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym2__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym2__) LEq (Literal 3)) (Increment (Var sym2__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) (name sym3__) - (init (Assignment (Literal 1)))) - (BinOp (Var sym3__) LEq (Literal 2)) (Increment (Var sym3__)) - (Block - ((For - ((static false) (constexpr false) (type_ Int) - (name sym4__) (init (Assignment (Literal 1)))) - (BinOp (Var sym4__) LEq (Var d_int)) (Increment (Var sym4__)) - (Block - ((Expression - (FunCall stan::model::assign () - ((Var d_row_vector_array_3d) - (Index (Var d_row_vector_array_3d_flat__) - (Parens (BinOp (Var pos__) Subtract (Literal 1)))) - (Literal "\"assigning variable d_row_vector_array_3d\"") - (FunCall stan::model::index_uni () ((Var sym4__))) - (FunCall stan::model::index_uni () ((Var sym3__))) - (FunCall stan::model::index_uni () ((Var sym2__))) - (FunCall stan::model::index_uni () ((Var sym1__)))))) - (Expression - (Assign (Var pos__) - (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 292))) (Expression (Assign (Var td_int) (FunCall std::numeric_limits::min () ()))) diff --git a/test/integration/good/code-gen/ode/cpp.expected b/test/integration/good/code-gen/ode/cpp.expected index 9768fa933..9554a00bb 100644 --- a/test/integration/good/code-gen/ode/cpp.expected +++ b/test/integration/good/code-gen/ode/cpp.expected @@ -242,20 +242,14 @@ class ode_adjoint_test_model_model final : public model_base_crtp{}); N = std::numeric_limits::min(); - current_statement__ = 10; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 11; context__.validate_dims("data initialization", "M", "int", std::vector{}); M = std::numeric_limits::min(); - current_statement__ = 11; - M = context__.vals_i("M")[(1 - 1)]; current_statement__ = 12; context__.validate_dims("data initialization", "i", "int", std::vector{}); i = std::numeric_limits::min(); - current_statement__ = 12; - i = context__.vals_i("i")[(1 - 1)]; current_statement__ = 13; rel_tol_f = std::numeric_limits::quiet_NaN(); current_statement__ = 14; @@ -332,20 +326,12 @@ class ode_adjoint_test_model_model final : public model_base_crtp(); + local_scalar_t__ y = in__.template read(); Eigen::Matrix y0 = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 2; - y0 = in__.template read>(N); - local_scalar_t__ t0 = DUMMY_VAR__; - current_statement__ = 3; - t0 = in__.template read(); + in__.template read>(N); + local_scalar_t__ t0 = in__.template read(); std::vector times = - std::vector(N, DUMMY_VAR__); - current_statement__ = 4; - times = in__.template read>(N); + in__.template read>(N); std::vector> z = std::vector>(M, Eigen::Matrix::Constant(N, DUMMY_VAR__)); @@ -404,20 +390,12 @@ class ode_adjoint_test_model_model final : public model_base_crtp(); + local_scalar_t__ y = in__.template read(); Eigen::Matrix y0 = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 2; - y0 = in__.template read>(N); - local_scalar_t__ t0 = DUMMY_VAR__; - current_statement__ = 3; - t0 = in__.template read(); + in__.template read>(N); + local_scalar_t__ t0 = in__.template read(); std::vector times = - std::vector(N, DUMMY_VAR__); - current_statement__ = 4; - times = in__.template read>(N); + in__.template read>(N); std::vector> z = std::vector>(M, Eigen::Matrix::Constant(N, DUMMY_VAR__)); @@ -487,21 +465,12 @@ class ode_adjoint_test_model_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - y = in__.template read(); + double y = in__.template read(); Eigen::Matrix y0 = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - y0 = in__.template read>(N); - double t0 = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - t0 = in__.template read(); + in__.template read>(N); + double t0 = in__.template read(); std::vector times = - std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - times = in__.template read>(N); + in__.template read>(N); std::vector> z = std::vector>(M, Eigen::Matrix::Constant(N, @@ -1160,8 +1129,6 @@ class overloaded_ode_model final : public model_base_crtp std::vector{}); N_t = std::numeric_limits::min(); current_statement__ = 27; - N_t = context__.vals_i("N_t")[(1 - 1)]; - current_statement__ = 27; stan::math::check_greater_or_equal(function__, "N_t", N_t, 0); current_statement__ = 28; stan::math::validate_non_negative_index("t", "N_t", N_t); @@ -1169,41 +1136,24 @@ class overloaded_ode_model final : public model_base_crtp context__.validate_dims("data initialization", "t", "double", std::vector{static_cast(N_t)}); t = std::vector(N_t, std::numeric_limits::quiet_NaN()); - current_statement__ = 29; - t = context__.vals_r("t"); current_statement__ = 30; context__.validate_dims("data initialization", "y0", "double", std::vector{static_cast(4)}); y0_data__ = Eigen::Matrix::Constant(4, std::numeric_limits::quiet_NaN()); new (&y0) Eigen::Map>(y0_data__.data(), 4); - { - std::vector y0_flat__; - current_statement__ = 30; - y0_flat__ = context__.vals_r("y0"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 4; ++sym1__) { - stan::model::assign(y0, y0_flat__[(pos__ - 1)], - "assigning variable y0", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 31; stan::math::validate_non_negative_index("stoi", "N_t", N_t); current_statement__ = 32; context__.validate_dims("data initialization", "stoi", "int", std::vector{static_cast(N_t)}); stoi = std::vector(N_t, std::numeric_limits::min()); - current_statement__ = 32; - stoi = context__.vals_i("stoi"); current_statement__ = 33; stan::math::validate_non_negative_index("B", "N_t", N_t); current_statement__ = 34; context__.validate_dims("data initialization", "B", "double", std::vector{static_cast(N_t)}); B = std::vector(N_t, std::numeric_limits::quiet_NaN()); - current_statement__ = 34; - B = context__.vals_r("B"); current_statement__ = 35; t0 = std::numeric_limits::quiet_NaN(); current_statement__ = 35; @@ -1258,22 +1208,18 @@ class overloaded_ode_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ beta = DUMMY_VAR__; - current_statement__ = 1; - beta = in__.template read_constrain_lb(0, - lp__); - local_scalar_t__ gamma = DUMMY_VAR__; - current_statement__ = 2; - gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi = DUMMY_VAR__; - current_statement__ = 3; - xi = in__.template read_constrain_lb(0, - lp__); - local_scalar_t__ delta = DUMMY_VAR__; - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ beta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ gamma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ xi = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ delta = + in__.template read_constrain_lb(0, + lp__); std::vector> y = std::vector>(N_t, Eigen::Matrix::Constant(4, DUMMY_VAR__)); @@ -1390,22 +1336,18 @@ class overloaded_ode_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ beta = DUMMY_VAR__; - current_statement__ = 1; - beta = in__.template read_constrain_lb(0, - lp__); - local_scalar_t__ gamma = DUMMY_VAR__; - current_statement__ = 2; - gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi = DUMMY_VAR__; - current_statement__ = 3; - xi = in__.template read_constrain_lb(0, - lp__); - local_scalar_t__ delta = DUMMY_VAR__; - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ beta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ gamma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ xi = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ delta = + in__.template read_constrain_lb(0, + lp__); std::vector> y = std::vector>(N_t, Eigen::Matrix::Constant(4, DUMMY_VAR__)); @@ -1533,22 +1475,18 @@ class overloaded_ode_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double beta = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - beta = in__.template read_constrain_lb(0, - lp__); - double gamma = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - gamma = in__.template read_constrain_lb(0, lp__); - double xi = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - xi = in__.template read_constrain_lb(0, - lp__); - double delta = std::numeric_limits::quiet_NaN(); - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + double beta = + in__.template read_constrain_lb(0, + lp__); + double gamma = + in__.template read_constrain_lb(0, + lp__); + double xi = + in__.template read_constrain_lb(0, + lp__); + double delta = + in__.template read_constrain_lb(0, + lp__); std::vector> y = std::vector>(N_t, Eigen::Matrix::Constant(4, diff --git a/test/integration/good/code-gen/opencl/cpp.expected b/test/integration/good/code-gen/opencl/cpp.expected index 34d5a1bb6..5e0cef2e5 100644 --- a/test/integration/good/code-gen/opencl/cpp.expected +++ b/test/integration/good/code-gen/opencl/cpp.expected @@ -817,22 +817,16 @@ class distributions_model final : public model_base_crtp { context__.validate_dims("data initialization", "d_int", "int", std::vector{}); d_int = std::numeric_limits::min(); - current_statement__ = 756; - d_int = context__.vals_i("d_int")[(1 - 1)]; current_statement__ = 757; stan::math::validate_non_negative_index("d_int_array", "d_int", d_int); current_statement__ = 758; context__.validate_dims("data initialization", "d_int_array", "int", std::vector{static_cast(d_int)}); d_int_array = std::vector(d_int, std::numeric_limits::min()); - current_statement__ = 758; - d_int_array = context__.vals_i("d_int_array"); current_statement__ = 759; context__.validate_dims("data initialization", "d_real", "double", std::vector{}); d_real = std::numeric_limits::quiet_NaN(); - current_statement__ = 759; - d_real = context__.vals_r("d_real")[(1 - 1)]; current_statement__ = 760; stan::math::validate_non_negative_index("d_real_array", "d_int", d_int); current_statement__ = 761; @@ -840,8 +834,6 @@ class distributions_model final : public model_base_crtp { "double", std::vector{static_cast(d_int)}); d_real_array = std::vector(d_int, std::numeric_limits::quiet_NaN()); - current_statement__ = 761; - d_real_array = context__.vals_r("d_real_array"); current_statement__ = 762; stan::math::validate_non_negative_index("d_vector", "d_int", d_int); current_statement__ = 763; @@ -851,17 +843,6 @@ class distributions_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&d_vector) Eigen::Map>(d_vector_data__.data(), d_int); - { - std::vector d_vector_flat__; - current_statement__ = 763; - d_vector_flat__ = context__.vals_r("d_vector"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - stan::model::assign(d_vector, d_vector_flat__[(pos__ - 1)], - "assigning variable d_vector", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 764; stan::math::validate_non_negative_index("d_row_vector", "d_int", d_int); current_statement__ = 765; @@ -872,17 +853,6 @@ class distributions_model final : public model_base_crtp { new (&d_row_vector) Eigen::Map>(d_row_vector_data__.data(), d_int); - { - std::vector d_row_vector_flat__; - current_statement__ = 765; - d_row_vector_flat__ = context__.vals_r("d_row_vector"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - stan::model::assign(d_row_vector, d_row_vector_flat__[(pos__ - 1)], - "assigning variable d_row_vector", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 766; stan::math::validate_non_negative_index("p_real_array", "d_int", d_int); current_statement__ = 767; @@ -933,32 +903,17 @@ class distributions_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ p_real = DUMMY_VAR__; - current_statement__ = 1; - p_real = in__.template read(); + local_scalar_t__ p_real = in__.template read(); std::vector p_real_array = - std::vector(d_int, DUMMY_VAR__); - current_statement__ = 2; - p_real_array = in__.template read>(d_int); + in__.template read>(d_int); Eigen::Matrix p_matrix = - Eigen::Matrix::Constant(d_int, d_int, - DUMMY_VAR__); - current_statement__ = 3; - p_matrix = in__.template read< - Eigen::Matrix>(d_int, d_int); + in__.template read>(d_int, + d_int); Eigen::Matrix p_vector = - Eigen::Matrix::Constant(d_int, DUMMY_VAR__); - current_statement__ = 4; - p_vector = in__.template read< - Eigen::Matrix>(d_int); + in__.template read>(d_int); Eigen::Matrix p_row_vector = - Eigen::Matrix::Constant(d_int, DUMMY_VAR__); - current_statement__ = 5; - p_row_vector = in__.template read< - Eigen::Matrix>(d_int); - local_scalar_t__ y_p = DUMMY_VAR__; - current_statement__ = 6; - y_p = in__.template read(); + in__.template read>(d_int); + local_scalar_t__ y_p = in__.template read(); local_scalar_t__ transformed_param_real = DUMMY_VAR__; current_statement__ = 8; transformed_param_real = stan::math::bernoulli_logit_lpmf(d_int, @@ -3989,32 +3944,17 @@ class distributions_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ p_real = DUMMY_VAR__; - current_statement__ = 1; - p_real = in__.template read(); + local_scalar_t__ p_real = in__.template read(); std::vector p_real_array = - std::vector(d_int, DUMMY_VAR__); - current_statement__ = 2; - p_real_array = in__.template read>(d_int); + in__.template read>(d_int); Eigen::Matrix p_matrix = - Eigen::Matrix::Constant(d_int, d_int, - DUMMY_VAR__); - current_statement__ = 3; - p_matrix = in__.template read< - Eigen::Matrix>(d_int, d_int); + in__.template read>(d_int, + d_int); Eigen::Matrix p_vector = - Eigen::Matrix::Constant(d_int, DUMMY_VAR__); - current_statement__ = 4; - p_vector = in__.template read< - Eigen::Matrix>(d_int); + in__.template read>(d_int); Eigen::Matrix p_row_vector = - Eigen::Matrix::Constant(d_int, DUMMY_VAR__); - current_statement__ = 5; - p_row_vector = in__.template read< - Eigen::Matrix>(d_int); - local_scalar_t__ y_p = DUMMY_VAR__; - current_statement__ = 6; - y_p = in__.template read(); + in__.template read>(d_int); + local_scalar_t__ y_p = in__.template read(); local_scalar_t__ transformed_param_real = DUMMY_VAR__; current_statement__ = 8; transformed_param_real = stan::math::bernoulli_logit_lpmf(d_int, @@ -7056,34 +6996,17 @@ class distributions_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double p_real = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - p_real = in__.template read(); + double p_real = in__.template read(); std::vector p_real_array = - std::vector(d_int, std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - p_real_array = in__.template read>(d_int); + in__.template read>(d_int); Eigen::Matrix p_matrix = - Eigen::Matrix::Constant(d_int, d_int, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - p_matrix = in__.template read< - Eigen::Matrix>(d_int, d_int); + in__.template read>(d_int, + d_int); Eigen::Matrix p_vector = - Eigen::Matrix::Constant(d_int, - std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - p_vector = in__.template read< - Eigen::Matrix>(d_int); + in__.template read>(d_int); Eigen::Matrix p_row_vector = - Eigen::Matrix::Constant(d_int, - std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - p_row_vector = in__.template read< - Eigen::Matrix>(d_int); - double y_p = std::numeric_limits::quiet_NaN(); - current_statement__ = 6; - y_p = in__.template read(); + in__.template read>(d_int); + double y_p = in__.template read(); double transformed_param_real = std::numeric_limits::quiet_NaN(); out__.write(p_real); @@ -10531,22 +10454,16 @@ class restricted_model final : public model_base_crtp { context__.validate_dims("data initialization", "d_int", "int", std::vector{}); d_int = std::numeric_limits::min(); - current_statement__ = 25; - d_int = context__.vals_i("d_int")[(1 - 1)]; current_statement__ = 26; stan::math::validate_non_negative_index("d_int_array", "d_int", d_int); current_statement__ = 27; context__.validate_dims("data initialization", "d_int_array", "int", std::vector{static_cast(d_int)}); d_int_array = std::vector(d_int, std::numeric_limits::min()); - current_statement__ = 27; - d_int_array = context__.vals_i("d_int_array"); current_statement__ = 28; context__.validate_dims("data initialization", "d_real", "double", std::vector{}); d_real = std::numeric_limits::quiet_NaN(); - current_statement__ = 28; - d_real = context__.vals_r("d_real")[(1 - 1)]; current_statement__ = 29; stan::math::validate_non_negative_index("d_real_array", "d_int", d_int); current_statement__ = 30; @@ -10554,8 +10471,6 @@ class restricted_model final : public model_base_crtp { "double", std::vector{static_cast(d_int)}); d_real_array = std::vector(d_int, std::numeric_limits::quiet_NaN()); - current_statement__ = 30; - d_real_array = context__.vals_r("d_real_array"); current_statement__ = 31; stan::math::validate_non_negative_index("d_vector", "d_int", d_int); current_statement__ = 32; @@ -10565,17 +10480,6 @@ class restricted_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&d_vector) Eigen::Map>(d_vector_data__.data(), d_int); - { - std::vector d_vector_flat__; - current_statement__ = 32; - d_vector_flat__ = context__.vals_r("d_vector"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - stan::model::assign(d_vector, d_vector_flat__[(pos__ - 1)], - "assigning variable d_vector", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 33; stan::math::validate_non_negative_index("d_row_vector", "d_int", d_int); current_statement__ = 34; @@ -10586,17 +10490,6 @@ class restricted_model final : public model_base_crtp { new (&d_row_vector) Eigen::Map>(d_row_vector_data__.data(), d_int); - { - std::vector d_row_vector_flat__; - current_statement__ = 34; - d_row_vector_flat__ = context__.vals_r("d_row_vector"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { - stan::model::assign(d_row_vector, d_row_vector_flat__[(pos__ - 1)], - "assigning variable d_row_vector", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 35; stan::math::validate_non_negative_index("p_real_array", "d_int", d_int); current_statement__ = 36; @@ -10644,32 +10537,17 @@ class restricted_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ p_real = DUMMY_VAR__; - current_statement__ = 1; - p_real = in__.template read(); + local_scalar_t__ p_real = in__.template read(); std::vector p_real_array = - std::vector(d_int, DUMMY_VAR__); - current_statement__ = 2; - p_real_array = in__.template read>(d_int); + in__.template read>(d_int); Eigen::Matrix p_matrix = - Eigen::Matrix::Constant(d_int, d_int, - DUMMY_VAR__); - current_statement__ = 3; - p_matrix = in__.template read< - Eigen::Matrix>(d_int, d_int); + in__.template read>(d_int, + d_int); Eigen::Matrix p_vector = - Eigen::Matrix::Constant(d_int, DUMMY_VAR__); - current_statement__ = 4; - p_vector = in__.template read< - Eigen::Matrix>(d_int); + in__.template read>(d_int); Eigen::Matrix p_row_vector = - Eigen::Matrix::Constant(d_int, DUMMY_VAR__); - current_statement__ = 5; - p_row_vector = in__.template read< - Eigen::Matrix>(d_int); - local_scalar_t__ y_p = DUMMY_VAR__; - current_statement__ = 6; - y_p = in__.template read(); + in__.template read>(d_int); + local_scalar_t__ y_p = in__.template read(); local_scalar_t__ transformed_param_real = DUMMY_VAR__; current_statement__ = 8; transformed_param_real = stan::math::bernoulli_lpmf(d_int_array, @@ -10753,32 +10631,17 @@ class restricted_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ p_real = DUMMY_VAR__; - current_statement__ = 1; - p_real = in__.template read(); + local_scalar_t__ p_real = in__.template read(); std::vector p_real_array = - std::vector(d_int, DUMMY_VAR__); - current_statement__ = 2; - p_real_array = in__.template read>(d_int); + in__.template read>(d_int); Eigen::Matrix p_matrix = - Eigen::Matrix::Constant(d_int, d_int, - DUMMY_VAR__); - current_statement__ = 3; - p_matrix = in__.template read< - Eigen::Matrix>(d_int, d_int); + in__.template read>(d_int, + d_int); Eigen::Matrix p_vector = - Eigen::Matrix::Constant(d_int, DUMMY_VAR__); - current_statement__ = 4; - p_vector = in__.template read< - Eigen::Matrix>(d_int); + in__.template read>(d_int); Eigen::Matrix p_row_vector = - Eigen::Matrix::Constant(d_int, DUMMY_VAR__); - current_statement__ = 5; - p_row_vector = in__.template read< - Eigen::Matrix>(d_int); - local_scalar_t__ y_p = DUMMY_VAR__; - current_statement__ = 6; - y_p = in__.template read(); + in__.template read>(d_int); + local_scalar_t__ y_p = in__.template read(); local_scalar_t__ transformed_param_real = DUMMY_VAR__; current_statement__ = 8; transformed_param_real = stan::math::bernoulli_lpmf(d_int_array, @@ -10873,34 +10736,17 @@ class restricted_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double p_real = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - p_real = in__.template read(); + double p_real = in__.template read(); std::vector p_real_array = - std::vector(d_int, std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - p_real_array = in__.template read>(d_int); + in__.template read>(d_int); Eigen::Matrix p_matrix = - Eigen::Matrix::Constant(d_int, d_int, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - p_matrix = in__.template read< - Eigen::Matrix>(d_int, d_int); + in__.template read>(d_int, + d_int); Eigen::Matrix p_vector = - Eigen::Matrix::Constant(d_int, - std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - p_vector = in__.template read< - Eigen::Matrix>(d_int); + in__.template read>(d_int); Eigen::Matrix p_row_vector = - Eigen::Matrix::Constant(d_int, - std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - p_row_vector = in__.template read< - Eigen::Matrix>(d_int); - double y_p = std::numeric_limits::quiet_NaN(); - current_statement__ = 6; - y_p = in__.template read(); + in__.template read>(d_int); + double y_p = in__.template read(); double transformed_param_real = std::numeric_limits::quiet_NaN(); out__.write(p_real); diff --git a/test/integration/good/code-gen/profiling/cpp.expected b/test/integration/good/code-gen/profiling/cpp.expected index 8606ba9fc..cd1573a8c 100644 --- a/test/integration/good/code-gen/profiling/cpp.expected +++ b/test/integration/good/code-gen/profiling/cpp.expected @@ -69,8 +69,6 @@ class simple_function_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 21; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 21; stan::math::check_greater_or_equal(function__, "N", N, 1); current_statement__ = 22; stan::math::validate_non_negative_index("x", "N", N); @@ -78,8 +76,6 @@ class simple_function_model final : public model_base_crtp{static_cast(N)}); x = std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 23; - x = context__.vals_r("x"); current_statement__ = 24; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 25; @@ -88,17 +84,6 @@ class simple_function_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); - { - std::vector y_flat__; - current_statement__ = 25; - y_flat__ = context__.vals_r("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 26; sum_y = std::numeric_limits::quiet_NaN(); current_statement__ = 28; @@ -144,18 +129,15 @@ class simple_function_model final : public model_base_crtp(0, - lp__); - local_scalar_t__ alpha = DUMMY_VAR__; - current_statement__ = 2; - alpha = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 3; - sigma = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ rho = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ alpha = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 4; stan::math::validate_non_negative_index("cov", "N", N); @@ -244,18 +226,15 @@ class simple_function_model final : public model_base_crtp(0, - lp__); - local_scalar_t__ alpha = DUMMY_VAR__; - current_statement__ = 2; - alpha = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 3; - sigma = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ rho = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ alpha = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 4; stan::math::validate_non_negative_index("cov", "N", N); @@ -355,18 +334,15 @@ class simple_function_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - rho = in__.template read_constrain_lb(0, - lp__); - double alpha = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - alpha = in__.template read_constrain_lb(0, lp__); - double sigma = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - sigma = in__.template read_constrain_lb(0, lp__); + double rho = + in__.template read_constrain_lb(0, + lp__); + double alpha = + in__.template read_constrain_lb(0, + lp__); + double sigma = + in__.template read_constrain_lb(0, + lp__); out__.write(rho); out__.write(alpha); out__.write(sigma); diff --git a/test/integration/good/code-gen/profiling/transformed_mir.expected b/test/integration/good/code-gen/profiling/transformed_mir.expected index c30b4250a..9c1b4c12b 100644 --- a/test/integration/good/code-gen/profiling/transformed_mir.expected +++ b/test/integration/good/code-gen/profiling/transformed_mir.expected @@ -32,21 +32,19 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable N) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -71,15 +69,13 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable x) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str x)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str x)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -95,63 +91,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id y_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable y_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str y)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable y) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var y_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sum_y) (decl_type (Sized SReal)) (initialize true) (assignment ()))) @@ -170,57 +109,51 @@ (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id rho) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable rho) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sigma) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Block @@ -407,57 +340,51 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id rho) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable rho) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sigma) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Block @@ -644,57 +571,51 @@ (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id rho) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable rho) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sigma) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp diff --git a/test/integration/good/code-gen/transformed_mir.expected b/test/integration/good/code-gen/transformed_mir.expected index 792d31ddc..676098016 100644 --- a/test/integration/good/code-gen/transformed_mir.expected +++ b/test/integration/good/code-gen/transformed_mir.expected @@ -2769,21 +2769,19 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable N) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -2798,21 +2796,19 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable M) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -2827,21 +2823,19 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable K) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str K)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -2886,15 +2880,13 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_int_1d_ar) ()) (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_int_1d_ar)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_int_1d_ar)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -2942,107 +2934,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_int_3d_ar_flat__) - (decl_type (Unsized (UArray UInt))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_int_3d_ar_flat__) ()) (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_int_3d_ar)) - (meta - ((type_ (UArray (UArray (UArray UInt)))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_int_3d_ar) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UArray (UArray UInt))) - ((pattern - (Indexed - ((pattern (Var d_int_3d_ar_flat__)) - (meta - ((type_ (UArray UInt)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal @@ -3059,21 +2950,19 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id J) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable J) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str J)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str J)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -3122,15 +3011,13 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_real_1d_ar) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_real_1d_ar)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_real_1d_ar)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3165,107 +3052,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_real_3d_ar_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_real_3d_ar_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_real_3d_ar)) - (meta - ((type_ (UArray (UArray (UArray UReal)))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_real_3d_ar) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UArray (UArray UReal))) - ((pattern - (Indexed - ((pattern (Var d_real_3d_ar_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_vec)) @@ -3281,63 +3067,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_vec_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_vec)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_vec) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var d_vec_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_1d_vec)) @@ -3362,80 +3091,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_1d_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_1d_vec_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_1d_vec)) - (meta ((type_ (UArray UVector)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_1d_vec) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray UVector) - ((pattern - (Indexed - ((pattern (Var d_1d_vec_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_3d_vec)) @@ -3478,135 +3133,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_3d_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_3d_vec_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_3d_vec)) - (meta - ((type_ (UArray (UArray (UArray UVector)))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var K)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym4__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_3d_vec) - ((Single - ((pattern (Var sym4__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (UArray (UArray (UArray UVector))) - ((pattern - (Indexed - ((pattern (Var d_3d_vec_flat__)) - (meta - ((type_ (UArray UReal)) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_row_vec)) @@ -3622,63 +3148,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_row_vec_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_row_vec)) - (meta ((type_ URowVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_row_vec) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - URowVector - ((pattern - (Indexed - ((pattern (Var d_row_vec_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_1d_row_vec)) @@ -3703,80 +3172,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_1d_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_1d_row_vec_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_1d_row_vec)) - (meta ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_1d_row_vec) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray URowVector) - ((pattern - (Indexed - ((pattern (Var d_1d_row_vec_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_3d_row_vec)) @@ -3819,135 +3214,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_3d_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_3d_row_vec_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_3d_row_vec)) - (meta - ((type_ (UArray (UArray (UArray URowVector)))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var K)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym4__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_3d_row_vec) - ((Single - ((pattern (Var sym4__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (UArray (UArray (UArray URowVector))) - ((pattern - (Indexed - ((pattern (Var d_3d_row_vec_flat__)) - (meta - ((type_ (UArray UReal)) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_ar_mat) (decl_type @@ -3963,135 +3229,6 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_ar_mat_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_ar_mat_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_ar_mat)) - (meta - ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym4__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_ar_mat) - ((Single - ((pattern (Var sym4__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (UArray (UArray UMatrix)) - ((pattern - (Indexed - ((pattern (Var d_ar_mat_flat__)) - (meta - ((type_ (UArray UReal)) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal @@ -4133,63 +3270,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_simplex_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_simplex)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_simplex) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var d_simplex_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal @@ -4223,80 +3303,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_1d_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_1d_simplex_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_1d_simplex)) - (meta ((type_ (UArray UVector)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_1d_simplex) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray UVector) - ((pattern - (Indexed - ((pattern (Var d_1d_simplex_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal @@ -4348,135 +3354,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_3d_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_3d_simplex_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_3d_simplex)) - (meta - ((type_ (UArray (UArray (UArray UVector)))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var K)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym4__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_3d_simplex) - ((Single - ((pattern (Var sym4__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (UArray (UArray (UArray UVector))) - ((pattern - (Indexed - ((pattern (Var d_3d_simplex_flat__)) - (meta - ((type_ (UArray UReal)) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal @@ -4496,81 +3373,6 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_cfcov_54_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_cfcov_54_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_cfcov_54)) - (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_cfcov_54) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UMatrix - ((pattern - (Indexed - ((pattern (Var d_cfcov_54_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal @@ -4589,81 +3391,6 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_cfcov_33_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_cfcov_33_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_cfcov_33)) - (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_cfcov_33) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UMatrix - ((pattern - (Indexed - ((pattern (Var d_cfcov_33_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal @@ -4691,106 +3418,6 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_cfcov_33_ar_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_cfcov_33_ar_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_cfcov_33_ar)) - (meta ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var K)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_cfcov_33_ar) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray UMatrix) - ((pattern - (Indexed - ((pattern (Var d_cfcov_33_ar_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal @@ -4802,21 +3429,19 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_int) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_int) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4832,15 +3457,13 @@ (Sized (SArray SInt ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_int_array) ()) (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_int_array)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_int_array)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4860,81 +3483,6 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_int_array_2d_flat__) - (decl_type (Unsized (UArray UInt))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_int_array_2d_flat__) ()) (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_int_array_2d)) - (meta ((type_ (UArray (UArray UInt))) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_int_array_2d) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UArray UInt)) - ((pattern - (Indexed - ((pattern (Var d_int_array_2d_flat__)) - (meta - ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_int_array_3d)) @@ -4957,1516 +3505,242 @@ (initialize true) (assignment ()))) (meta )) ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_int_array_3d_flat__) - (decl_type (Unsized (UArray UInt))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_int_array_3d_flat__) ()) (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_int_array_3d)) - (meta - ((type_ (UArray (UArray (UArray UInt)))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper + (Decl (decl_adtype DataOnly) (decl_id d_real) (decl_type (Sized SReal)) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_real_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_real_array) + (decl_type + (Sized + (SArray SReal + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) + (assignment + (((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_real_array)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_real_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_real_array_2d) + (decl_type + (Sized + (SArray + (SArray SReal + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_real_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_real_array_3d) + (decl_type + (Sized + (SArray + (SArray + (SArray SReal ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_int_array_3d) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UArray (UArray UInt))) - ((pattern - (Indexed - ((pattern (Var d_int_array_3d_flat__)) - (meta - ((type_ (UArray UInt)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_real) (decl_type (Sized SReal)) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_matrix)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_matrix)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_matrix) + (decl_type + (Sized + (SMatrix AoS + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable d_real) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_real)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_matrix_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_real_array)) + (((pattern (Lit Str d_matrix_array)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_real_array) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_matrix_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_matrix_array) (decl_type (Sized - (SArray SReal + (SArray + (SMatrix AoS + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable d_real_array) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_real_array)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_matrix_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_real_array_2d)) + (((pattern (Lit Str d_matrix_array_2d)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_real_array_2d) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_matrix_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_matrix_array_2d) (decl_type (Sized (SArray - (SArray SReal + (SArray + (SMatrix AoS + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_real_array_2d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_real_array_2d_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_real_array_2d)) - (meta ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_real_array_2d) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UArray UReal)) - ((pattern - (Indexed - ((pattern (Var d_real_array_2d_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_matrix_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_real_array_3d)) + (((pattern (Lit Str d_matrix_array_3d)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_real_array_3d) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_matrix_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_matrix_array_3d) (decl_type (Sized (SArray (SArray - (SArray SReal + (SArray + (SMatrix AoS + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_real_array_3d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_real_array_3d_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_real_array_3d)) - (meta - ((type_ (UArray (UArray (UArray UReal)))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_real_array_3d) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UArray (UArray UReal))) - ((pattern - (Indexed - ((pattern (Var d_real_array_3d_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_matrix)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_matrix)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_matrix) - (decl_type - (Sized - (SMatrix AoS - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_matrix_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_matrix)) - (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_matrix) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UMatrix - ((pattern - (Indexed - ((pattern (Var d_matrix_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_matrix_array)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_matrix_array)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_matrix_array)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_matrix_array) - (decl_type - (Sized - (SArray - (SMatrix AoS - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_array_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_matrix_array_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_matrix_array)) - (meta ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_matrix_array) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray UMatrix) - ((pattern - (Indexed - ((pattern (Var d_matrix_array_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_matrix_array_2d)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_matrix_array_2d)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_matrix_array_2d)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_matrix_array_2d) - (decl_type - (Sized - (SArray - (SArray - (SMatrix AoS - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_array_2d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_matrix_array_2d_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_matrix_array_2d)) - (meta - ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym4__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_matrix_array_2d) - ((Single - ((pattern (Var sym4__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (UArray (UArray UMatrix)) - ((pattern - (Indexed - ((pattern (Var d_matrix_array_2d_flat__)) - (meta - ((type_ (UArray UReal)) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_matrix_array_3d)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_matrix_array_3d)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_matrix_array_3d)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_matrix_array_3d) - (decl_type - (Sized - (SArray - (SArray - (SArray - (SMatrix AoS - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_array_3d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_matrix_array_3d_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_matrix_array_3d)) - (meta - ((type_ (UArray (UArray (UArray UMatrix)))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym4__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym5__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_matrix_array_3d) - ((Single - ((pattern (Var sym5__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym4__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))))) - (UArray (UArray (UArray UMatrix))) - ((pattern - (Indexed - ((pattern - (Var d_matrix_array_3d_flat__)) - (meta - ((type_ (UArray UReal)) - (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_vector)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_vector) - (decl_type - (Sized - (SVector AoS - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_vector_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_vector_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_vector)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_vector) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var d_vector_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_vector_array)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_vector_array)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_vector_array) - (decl_type - (Sized - (SArray - (SVector AoS - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_vector_array_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_vector_array_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_vector_array)) - (meta ((type_ (UArray UVector)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_vector_array) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray UVector) - ((pattern - (Indexed - ((pattern (Var d_vector_array_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_vector_array_2d)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_vector_array_2d)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_vector_array_2d) - (decl_type - (Sized - (SArray - (SArray - (SVector AoS - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_vector_array_2d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_vector_array_2d_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_vector_array_2d)) - (meta - ((type_ (UArray (UArray UVector))) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_vector_array_2d) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UArray UVector)) - ((pattern - (Indexed - ((pattern (Var d_vector_array_2d_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_vector_array_3d)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_vector_array_3d)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_vector_array_3d) - (decl_type - (Sized - (SArray - (SArray - (SArray - (SVector AoS - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_vector_array_3d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_vector_array_3d_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_vector_array_3d)) - (meta - ((type_ (UArray (UArray (UArray UVector)))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym4__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_vector_array_3d) - ((Single - ((pattern (Var sym4__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (UArray (UArray (UArray UVector))) - ((pattern - (Indexed - ((pattern (Var d_vector_array_3d_flat__)) - (meta - ((type_ (UArray UReal)) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_row_vector)) + (((pattern (Lit Str d_vector)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_row_vector) + (Decl (decl_adtype DataOnly) (decl_id d_vector) (decl_type (Sized - (SRowVector AoS + (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_row_vector_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_row_vector)) - (meta ((type_ URowVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_row_vector) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - URowVector - ((pattern - (Indexed - ((pattern (Var d_row_vector_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_row_vector_array)) + (((pattern (Lit Str d_vector_array)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) @@ -6474,100 +3748,25 @@ (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_row_vector_array)) + (((pattern (Lit Str d_vector_array)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_row_vector_array) + (Decl (decl_adtype DataOnly) (decl_id d_vector_array) (decl_type (Sized (SArray - (SRowVector AoS + (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_array_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_row_vector_array_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_row_vector_array)) - (meta ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_row_vector_array) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray URowVector) - ((pattern - (Indexed - ((pattern (Var d_row_vector_array_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_row_vector_array_2d)) + (((pattern (Lit Str d_vector_array_2d)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) @@ -6575,129 +3774,28 @@ (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_row_vector_array_2d)) + (((pattern (Lit Str d_vector_array_2d)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_row_vector_array_2d) + (Decl (decl_adtype DataOnly) (decl_id d_vector_array_2d) (decl_type (Sized (SArray (SArray - (SRowVector AoS + (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_array_2d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_row_vector_array_2d_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_row_vector_array_2d)) - (meta - ((type_ (UArray (UArray URowVector))) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_row_vector_array_2d) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UArray URowVector)) - ((pattern - (Indexed - ((pattern (Var d_row_vector_array_2d_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_row_vector_array_3d)) + (((pattern (Lit Str d_vector_array_3d)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) @@ -6705,20 +3803,20 @@ (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_row_vector_array_3d)) + (((pattern (Lit Str d_vector_array_3d)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id d_row_vector_array_3d) + (Decl (decl_adtype DataOnly) (decl_id d_vector_array_3d) (decl_type (Sized (SArray (SArray (SArray - (SRowVector AoS + (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) @@ -6728,135 +3826,107 @@ (initialize true) (assignment ()))) (meta )) ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_array_3d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable d_row_vector_array_3d_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_row_vector_array_3d)) - (meta - ((type_ (UArray (UArray (UArray URowVector)))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym4__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var d_int)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable d_row_vector_array_3d) - ((Single - ((pattern (Var sym4__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (UArray (UArray (UArray URowVector))) - ((pattern - (Indexed - ((pattern - (Var d_row_vector_array_3d_flat__)) - (meta - ((type_ (UArray UReal)) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_row_vector)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_row_vector) + (decl_type + (Sized + (SRowVector AoS + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_row_vector_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_row_vector_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_row_vector_array) + (decl_type + (Sized + (SArray + (SRowVector AoS + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_row_vector_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_row_vector_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_row_vector_array_2d) + (decl_type + (Sized + (SArray + (SArray + (SRowVector AoS + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_row_vector_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_row_vector_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_row_vector_array_3d) + (decl_type + (Sized + (SArray + (SArray + (SArray + (SRowVector AoS + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_int) (decl_type (Sized SInt)) @@ -9855,52 +6925,46 @@ (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_real) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_upper) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Var p_real)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Var p_real)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_lower) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Upper - ((pattern (Var p_upper)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Upper + ((pattern (Var p_upper)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id offset_multiplier) @@ -9908,26 +6972,24 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable offset_multiplier) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (OffsetMultiplier - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (OffsetMultiplier + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id no_offset_multiplier) @@ -9935,24 +6997,22 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable no_offset_multiplier) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Multiplier - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Multiplier + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id offset_no_multiplier) @@ -9960,24 +7020,22 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable offset_no_multiplier) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Offset - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Offset + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real_1d_ar) @@ -9985,23 +7043,22 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_real_1d_ar) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real_3d_ar) @@ -10013,26 +7070,28 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_real_3d_ar) ()) (UArray (UArray (UArray UReal))) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ (UArray (UArray (UArray UReal)))) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_vec) @@ -10040,23 +7099,22 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_vec) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_vec) @@ -10066,20 +7124,20 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_1d_vec) ()) (UArray UVector) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_vec) @@ -10093,24 +7151,26 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_3d_vec) ()) (UArray (UArray (UArray UVector))) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ (UArray (UArray (UArray UVector)))) (loc ) - (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_row_vec) @@ -10118,19 +7178,18 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_row_vec) ()) URowVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_row_vec) @@ -10140,20 +7199,20 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_1d_row_vec) ()) (UArray URowVector) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray URowVector)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray URowVector)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_row_vec) @@ -10167,24 +7226,26 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_3d_row_vec) ()) (UArray (UArray (UArray URowVector))) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ (UArray (UArray (UArray URowVector)))) (loc ) - (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_mat) @@ -10193,22 +7254,20 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_mat) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_ar_mat) @@ -10223,32 +7282,30 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_ar_mat) ()) (UArray (UArray UMatrix)) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_simplex) @@ -10256,19 +7313,18 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_simplex) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_simplex) @@ -10278,20 +7334,20 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_1d_simplex) ()) (UArray UVector) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_simplex) @@ -10305,24 +7361,26 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_3d_simplex) ()) (UArray (UArray (UArray UVector))) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ (UArray (UArray (UArray UVector)))) (loc ) - (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_54) @@ -10331,22 +7389,20 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_cfcov_54) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_33) @@ -10355,22 +7411,20 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_cfcov_33) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_33_ar) @@ -10381,23 +7435,22 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_cfcov_33_ar) ()) (UArray UMatrix) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UMatrix)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UMatrix)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id x_p) @@ -10405,20 +7458,18 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable x_p) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id y_p) @@ -10426,20 +7477,18 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable y_p) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_1d_ar) @@ -11973,52 +9022,46 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_real) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_upper) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Var p_real)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Var p_real)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_lower) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Upper - ((pattern (Var p_upper)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Upper + ((pattern (Var p_upper)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id offset_multiplier) @@ -12026,26 +9069,24 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable offset_multiplier) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (OffsetMultiplier - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (OffsetMultiplier + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id no_offset_multiplier) @@ -12053,24 +9094,22 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable no_offset_multiplier) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Multiplier - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Multiplier + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id offset_no_multiplier) @@ -12078,24 +9117,22 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable offset_no_multiplier) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Offset - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Offset + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real_1d_ar) @@ -12103,23 +9140,22 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_real_1d_ar) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real_3d_ar) @@ -12131,26 +9167,28 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_real_3d_ar) ()) (UArray (UArray (UArray UReal))) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ (UArray (UArray (UArray UReal)))) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_vec) @@ -12158,23 +9196,22 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_vec) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_vec) @@ -12184,20 +9221,20 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_1d_vec) ()) (UArray UVector) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_vec) @@ -12211,24 +9248,26 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_3d_vec) ()) (UArray (UArray (UArray UVector))) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ (UArray (UArray (UArray UVector)))) (loc ) - (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_row_vec) @@ -12236,19 +9275,18 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_row_vec) ()) URowVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_row_vec) @@ -12258,20 +9296,20 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_1d_row_vec) ()) (UArray URowVector) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray URowVector)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray URowVector)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_row_vec) @@ -12285,24 +9323,26 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_3d_row_vec) ()) (UArray (UArray (UArray URowVector))) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ (UArray (UArray (UArray URowVector)))) (loc ) - (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_mat) @@ -12311,22 +9351,20 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_mat) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_ar_mat) @@ -12341,32 +9379,30 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_ar_mat) ()) (UArray (UArray UMatrix)) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_simplex) @@ -12374,19 +9410,18 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_simplex) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_simplex) @@ -12396,20 +9431,20 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_1d_simplex) ()) (UArray UVector) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_simplex) @@ -12423,24 +9458,26 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_3d_simplex) ()) (UArray (UArray (UArray UVector))) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ (UArray (UArray (UArray UVector)))) (loc ) - (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_54) @@ -12449,22 +9486,20 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_cfcov_54) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_33) @@ -12473,22 +9508,20 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_cfcov_33) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_33_ar) @@ -12499,23 +9532,22 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_cfcov_33_ar) ()) (UArray UMatrix) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UMatrix)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UMatrix)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id x_p) @@ -12523,20 +9555,18 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable x_p) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id y_p) @@ -12544,20 +9574,18 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable y_p) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_1d_ar) @@ -14091,52 +11119,46 @@ (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_real) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_upper) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Var p_real)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Var p_real)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_lower) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Upper - ((pattern (Var p_upper)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Upper + ((pattern (Var p_upper)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id offset_multiplier) @@ -14144,26 +11166,24 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable offset_multiplier) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (OffsetMultiplier - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (OffsetMultiplier + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id no_offset_multiplier) @@ -14171,24 +11191,22 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable no_offset_multiplier) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Multiplier - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Multiplier + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id offset_no_multiplier) @@ -14196,24 +11214,22 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable offset_no_multiplier) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Offset - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Offset + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_real_1d_ar) @@ -14221,23 +11237,22 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_real_1d_ar) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_real_3d_ar) @@ -14249,26 +11264,28 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_real_3d_ar) ()) (UArray (UArray (UArray UReal))) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ (UArray (UArray (UArray UReal)))) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_vec) @@ -14276,23 +11293,22 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_vec) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_1d_vec) @@ -14302,20 +11318,20 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_1d_vec) ()) (UArray UVector) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_3d_vec) @@ -14329,24 +11345,26 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_3d_vec) ()) (UArray (UArray (UArray UVector))) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ (UArray (UArray (UArray UVector)))) (loc ) - (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_row_vec) @@ -14354,19 +11372,18 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_row_vec) ()) URowVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_1d_row_vec) @@ -14376,20 +11393,20 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_1d_row_vec) ()) (UArray URowVector) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray URowVector)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray URowVector)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_3d_row_vec) @@ -14403,24 +11420,26 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_3d_row_vec) ()) (UArray (UArray (UArray URowVector))) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ (UArray (UArray (UArray URowVector)))) (loc ) - (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_mat) @@ -14429,22 +11448,20 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_mat) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_ar_mat) @@ -14459,32 +11476,30 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_ar_mat) ()) (UArray (UArray UMatrix)) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_simplex) @@ -14492,19 +11507,18 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_simplex) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_1d_simplex) @@ -14514,20 +11528,20 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_1d_simplex) ()) (UArray UVector) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_3d_simplex) @@ -14541,24 +11555,26 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_3d_simplex) ()) (UArray (UArray (UArray UVector))) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ (UArray (UArray (UArray UVector)))) (loc ) - (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_cfcov_54) @@ -14567,22 +11583,20 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_cfcov_54) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_cfcov_33) @@ -14591,22 +11605,20 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_cfcov_33) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_cfcov_33_ar) @@ -14617,23 +11629,22 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_cfcov_33_ar) ()) (UArray UMatrix) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UMatrix)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UMatrix)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x_p) @@ -14641,20 +11652,18 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable x_p) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id y_p) @@ -14662,20 +11671,18 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable y_p) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_1d_ar) diff --git a/test/integration/good/compiler-optimizations/cpp.expected b/test/integration/good/compiler-optimizations/cpp.expected index a94acd537..dc1f7d415 100644 --- a/test/integration/good/compiler-optimizations/cpp.expected +++ b/test/integration/good/compiler-optimizations/cpp.expected @@ -19,9 +19,6 @@ static constexpr std::array locations_array__ = " (in 'ad-level-deep-dependence.stan', line 7, column 4 to column 23)"}; class ad_level_deep_dependence_model final : public model_base_crtp { private: - double lcm_sym26__; - double lcm_sym25__; - int lcm_sym24__; Eigen::Matrix X_d_data__; Eigen::Map> X_d{nullptr, 0, 0}; public: @@ -54,615 +51,6 @@ class ad_level_deep_dependence_model final : public model_base_crtp::quiet_NaN()); new (&X_d) Eigen::Map>(X_d_data__.data(), 10, 10); - { - std::vector X_d_flat__; - current_statement__ = 10; - X_d_flat__ = context__.vals_r("X_d"); - pos__ = 1; - { - { - stan::model::assign(X_d, - stan::model::rvalue(X_d_flat__, "X_d_flat__", - stan::model::index_uni(1)), "assigning variable X_d", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(2), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(3), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(4), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(5), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(6), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(7), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(8), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(9), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(10), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(1), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(2), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(3), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(4), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(5), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(6), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(7), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(8), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(9), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(10), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(1), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(2), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(3), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(4), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(5), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(6), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(7), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(8), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(9), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(10), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(1), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(2), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(3), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(4), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(5), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(6), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(7), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(8), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(9), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(10), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(1), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(2), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(3), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(4), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(5), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(6), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(7), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(8), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(9), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(10), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(1), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(2), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(3), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(4), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(5), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(6), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(7), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(8), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(9), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(10), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(1), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(2), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(3), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(4), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(5), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(6), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(7), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(8), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(9), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(10), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(1), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(2), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(3), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(4), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(5), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(6), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(7), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(8), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(9), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(10), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(1), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(2), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(3), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(4), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(5), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(6), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(7), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(8), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(9), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(10), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(1), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(2), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(3), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(4), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(5), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(6), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(7), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(8), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(9), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(10), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - } - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -705,9 +93,8 @@ class ad_level_deep_dependence_model final : public model_base_crtp lcm_sym20__; Eigen::Matrix lcm_sym19__; Eigen::Matrix lcm_sym18__; - Eigen::Matrix X_p; - current_statement__ = 1; - X_p = in__.template read>(10, 10); + Eigen::Matrix X_p = + in__.template read>(10, 10); Eigen::Matrix X_tp1; current_statement__ = 2; stan::model::assign(X_tp1, X_d, "assigning variable X_tp1"); @@ -783,10 +170,8 @@ class ad_level_deep_dependence_model final : public model_base_crtp lcm_sym14__; Eigen::Matrix lcm_sym13__; Eigen::Matrix lcm_sym12__; - stan::math::var_value> X_p; - current_statement__ = 1; - X_p = in__.template read< - stan::math::var_value>>(10, 10); + stan::math::var_value> X_p = + in__.template read>(10, 10); stan::math::var_value> X_tp1; current_statement__ = 2; stan::model::assign(X_tp1, X_d, "assigning variable X_tp1"); @@ -875,9 +260,8 @@ class ad_level_deep_dependence_model final : public model_base_crtp lcm_sym6__; int lcm_sym5__; int lcm_sym4__; - Eigen::Matrix X_p; - current_statement__ = 1; - X_p = in__.template read>(10, 10); + Eigen::Matrix X_p = + in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, std::numeric_limits::quiet_NaN()); @@ -1652,53 +1036,53 @@ class ad_level_deep_dependence_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_p" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } if (emit_transformed_parameters__) { - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_tp1" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_tp2" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_tp3" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_tp4" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_tp5" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_tp6" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_tp7" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } } @@ -1708,53 +1092,53 @@ class ad_level_deep_dependence_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_p" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } if (emit_transformed_parameters__) { - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_tp1" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_tp2" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_tp3" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_tp4" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_tp5" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_tp6" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } - for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { - for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { + for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { + for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { param_names__.emplace_back(std::string() + "X_tp7" + '.' + - std::to_string(sym28__) + '.' + std::to_string(sym27__)); + std::to_string(sym25__) + '.' + std::to_string(sym24__)); } } } @@ -2088,8 +1472,6 @@ class ad_level_failing_model final : public model_base_crtp{}); N_t = std::numeric_limits::min(); current_statement__ = 16; - N_t = context__.vals_i("N_t")[(1 - 1)]; - current_statement__ = 16; stan::math::check_greater_or_equal(function__, "N_t", N_t, 0); current_statement__ = 17; stan::math::validate_non_negative_index("t", "N_t", N_t); @@ -2097,22 +1479,16 @@ class ad_level_failing_model final : public model_base_crtp{static_cast(N_t)}); t = std::vector(N_t, std::numeric_limits::quiet_NaN()); - current_statement__ = 18; - t = context__.vals_r("t"); current_statement__ = 19; context__.validate_dims("data initialization", "y0", "double", std::vector{static_cast(4)}); y0 = std::vector(4, std::numeric_limits::quiet_NaN()); - current_statement__ = 19; - y0 = context__.vals_r("y0"); current_statement__ = 20; stan::math::validate_non_negative_index("stoi_hat", "N_t", N_t); current_statement__ = 21; context__.validate_dims("data initialization", "stoi_hat", "int", std::vector{static_cast(N_t)}); stoi_hat = std::vector(N_t, std::numeric_limits::min()); - current_statement__ = 21; - stoi_hat = context__.vals_i("stoi_hat"); current_statement__ = 22; stan::math::validate_non_negative_index("B_hat", "N_t", N_t); current_statement__ = 23; @@ -2120,8 +1496,6 @@ class ad_level_failing_model final : public model_base_crtp{static_cast(N_t)}); B_hat = std::vector(N_t, std::numeric_limits::quiet_NaN()); - current_statement__ = 23; - B_hat = context__.vals_r("B_hat"); current_statement__ = 24; t0 = std::numeric_limits::quiet_NaN(); current_statement__ = 24; @@ -2185,22 +1559,18 @@ class ad_level_failing_model final : public model_base_crtp(0, - lp__); - local_scalar_t__ gamma; - current_statement__ = 2; - gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi; - current_statement__ = 3; - xi = in__.template read_constrain_lb(0, - lp__); - local_scalar_t__ delta; - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ beta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ gamma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ xi = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ delta = + in__.template read_constrain_lb(0, + lp__); std::vector> y = std::vector>(N_t, std::vector(4, DUMMY_VAR__)); @@ -2308,22 +1678,18 @@ class ad_level_failing_model final : public model_base_crtp(0, - lp__); - local_scalar_t__ gamma; - current_statement__ = 2; - gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi; - current_statement__ = 3; - xi = in__.template read_constrain_lb(0, - lp__); - local_scalar_t__ delta; - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ beta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ gamma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ xi = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ delta = + in__.template read_constrain_lb(0, + lp__); std::vector> y = std::vector>(N_t, std::vector(4, DUMMY_VAR__)); @@ -2440,22 +1806,18 @@ class ad_level_failing_model final : public model_base_crtp(0, - lp__); - double gamma; - current_statement__ = 2; - gamma = in__.template read_constrain_lb(0, lp__); - double xi; - current_statement__ = 3; - xi = in__.template read_constrain_lb(0, - lp__); - double delta; - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + double beta = + in__.template read_constrain_lb(0, + lp__); + double gamma = + in__.template read_constrain_lb(0, + lp__); + double xi = + in__.template read_constrain_lb(0, + lp__); + double delta = + in__.template read_constrain_lb(0, + lp__); std::vector> y = std::vector>(N_t, std::vector(4, std::numeric_limits::quiet_NaN())); @@ -2804,9 +2166,6 @@ static constexpr std::array locations_array__ = " (in 'ad-levels-deep.stan', line 2, column 4 to column 26)"}; class ad_levels_deep_model final : public model_base_crtp { private: - double lcm_sym14__; - double lcm_sym13__; - int lcm_sym12__; Eigen::Matrix X_data_data__; Eigen::Map> X_data{nullptr, 0, 0}; public: @@ -2838,615 +2197,6 @@ class ad_levels_deep_model final : public model_base_crtp std::numeric_limits::quiet_NaN()); new (&X_data) Eigen::Map>(X_data_data__.data(), 10, 10); - { - std::vector X_data_flat__; - current_statement__ = 5; - X_data_flat__ = context__.vals_r("X_data"); - pos__ = 1; - { - { - stan::model::assign(X_data, - stan::model::rvalue(X_data_flat__, "X_data_flat__", - stan::model::index_uni(1)), "assigning variable X_data", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(2), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(3), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(4), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(5), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(6), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(7), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(8), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(9), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(10), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(1), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(2), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(3), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(4), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(5), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(6), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(7), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(8), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(9), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(10), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(1), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(2), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(3), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(4), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(5), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(6), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(7), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(8), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(9), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(10), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(1), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(2), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(3), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(4), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(5), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(6), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(7), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(8), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(9), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(10), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(1), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(2), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(3), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(4), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(5), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(6), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(7), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(8), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(9), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(10), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(1), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(2), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(3), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(4), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(5), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(6), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(7), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(8), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(9), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(10), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(1), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(2), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(3), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(4), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(5), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(6), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(7), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(8), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(9), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(10), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(1), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(2), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(3), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(4), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(5), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(6), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(7), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(8), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(9), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(10), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(1), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(2), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(3), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(4), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(5), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(6), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(7), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(8), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(9), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(10), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(1), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(2), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(3), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(4), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(5), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(6), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(7), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(8), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(9), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(10), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - } - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -3485,9 +2235,8 @@ class ad_levels_deep_model final : public model_base_crtp try { Eigen::Matrix lcm_sym11__; Eigen::Matrix lcm_sym10__; - Eigen::Matrix X_p; - current_statement__ = 1; - X_p = in__.template read>(10, 10); + Eigen::Matrix X_p = + in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); stan::model::assign(lcm_sym10__, stan::math::exp(X_data), @@ -3531,10 +2280,8 @@ class ad_levels_deep_model final : public model_base_crtp try { Eigen::Matrix lcm_sym9__; Eigen::Matrix lcm_sym8__; - stan::math::var_value> X_p; - current_statement__ = 1; - X_p = in__.template read< - stan::math::var_value>>(10, 10); + stan::math::var_value> X_p = + in__.template read>(10, 10); stan::math::var_value> X_tp1 = stan::math::var_value>(Eigen::Matrix::Constant(10, 10, @@ -3594,9 +2341,8 @@ class ad_levels_deep_model final : public model_base_crtp Eigen::Matrix lcm_sym6__; int lcm_sym5__; int lcm_sym4__; - Eigen::Matrix X_p; - current_statement__ = 1; - X_p = in__.template read>(10, 10); + Eigen::Matrix X_p = + in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, std::numeric_limits::quiet_NaN()); @@ -4326,23 +3072,23 @@ class ad_levels_deep_model final : public model_base_crtp constrained_param_names(std::vector& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { - for (int sym16__ = 1; sym16__ <= 10; ++sym16__) { + for (int sym12__ = 1; sym12__ <= 10; ++sym12__) { + for (int sym13__ = 1; sym13__ <= 10; ++sym13__) { param_names__.emplace_back(std::string() + "X_p" + '.' + - std::to_string(sym16__) + '.' + std::to_string(sym15__)); + std::to_string(sym13__) + '.' + std::to_string(sym12__)); } } if (emit_transformed_parameters__) { - for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { - for (int sym16__ = 1; sym16__ <= 10; ++sym16__) { + for (int sym12__ = 1; sym12__ <= 10; ++sym12__) { + for (int sym13__ = 1; sym13__ <= 10; ++sym13__) { param_names__.emplace_back(std::string() + "X_tp1" + '.' + - std::to_string(sym16__) + '.' + std::to_string(sym15__)); + std::to_string(sym13__) + '.' + std::to_string(sym12__)); } } - for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { - for (int sym16__ = 1; sym16__ <= 10; ++sym16__) { + for (int sym12__ = 1; sym12__ <= 10; ++sym12__) { + for (int sym13__ = 1; sym13__ <= 10; ++sym13__) { param_names__.emplace_back(std::string() + "X_tp2" + '.' + - std::to_string(sym16__) + '.' + std::to_string(sym15__)); + std::to_string(sym13__) + '.' + std::to_string(sym12__)); } } } @@ -4352,23 +3098,23 @@ class ad_levels_deep_model final : public model_base_crtp unconstrained_param_names(std::vector& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { - for (int sym16__ = 1; sym16__ <= 10; ++sym16__) { + for (int sym12__ = 1; sym12__ <= 10; ++sym12__) { + for (int sym13__ = 1; sym13__ <= 10; ++sym13__) { param_names__.emplace_back(std::string() + "X_p" + '.' + - std::to_string(sym16__) + '.' + std::to_string(sym15__)); + std::to_string(sym13__) + '.' + std::to_string(sym12__)); } } if (emit_transformed_parameters__) { - for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { - for (int sym16__ = 1; sym16__ <= 10; ++sym16__) { + for (int sym12__ = 1; sym12__ <= 10; ++sym12__) { + for (int sym13__ = 1; sym13__ <= 10; ++sym13__) { param_names__.emplace_back(std::string() + "X_tp1" + '.' + - std::to_string(sym16__) + '.' + std::to_string(sym15__)); + std::to_string(sym13__) + '.' + std::to_string(sym12__)); } } - for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { - for (int sym16__ = 1; sym16__ <= 10; ++sym16__) { + for (int sym12__ = 1; sym12__ <= 10; ++sym12__) { + for (int sym13__ = 1; sym13__ <= 10; ++sym13__) { param_names__.emplace_back(std::string() + "X_tp2" + '.' + - std::to_string(sym16__) + '.' + std::to_string(sym15__)); + std::to_string(sym13__) + '.' + std::to_string(sym12__)); } } } @@ -4530,8 +3276,6 @@ class copy_prop_profile_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 13; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 13; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 14; stan::math::validate_non_negative_index("X", "N", N); @@ -4575,9 +3319,8 @@ class copy_prop_profile_model final : public model_base_crtp lcm_sym9__; - Eigen::Matrix X; - current_statement__ = 1; - X = in__.template read>(N, N); + Eigen::Matrix X = + in__.template read>(N, N); { current_statement__ = 2; stan::math::validate_non_negative_index("vec", "N", N); @@ -4645,9 +3388,8 @@ class copy_prop_profile_model final : public model_base_crtp lcm_sym7__; - Eigen::Matrix X; - current_statement__ = 1; - X = in__.template read>(N, N); + Eigen::Matrix X = + in__.template read>(N, N); { current_statement__ = 2; stan::math::validate_non_negative_index("vec", "N", N); @@ -4726,9 +3468,8 @@ class copy_prop_profile_model final : public model_base_crtp X; - current_statement__ = 1; - X = in__.template read>(N, N); + Eigen::Matrix X = + in__.template read>(N, N); out__.write(X); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -4985,7 +3726,7 @@ namespace copy_fail_model_namespace { using stan::model::model_base_crtp; using namespace stan::math; stan::math::profile_map profiles__; -static constexpr std::array locations_array__ = +static constexpr std::array locations_array__ = {" (found before start of program)", " (in 'copy_fail.stan', line 68, column 2 to column 32)", " (in 'copy_fail.stan', line 69, column 2 to column 41)", @@ -5033,7 +3774,6 @@ static constexpr std::array locations_array__ = " (in 'copy_fail.stan', line 59, column 8 to column 12)", " (in 'copy_fail.stan', line 59, column 2 to column 51)", " (in 'copy_fail.stan', line 63, column 4 to column 35)", - " (in 'copy_fail.stan', line 62, column 2 to line 63, column 35)", " (in 'copy_fail.stan', line 65, column 4 to column 33)", " (in 'copy_fail.stan', line 64, column 2 to line 65, column 33)", " (in 'copy_fail.stan', line 69, column 27 to column 34)", @@ -5095,20 +3835,20 @@ int first_capture(const T0__& y_i, std::ostream* pstream__) { { lcm_sym23__ = stan::math::size(y_i); if (stan::math::logical_gte(lcm_sym23__, 1)) { - current_statement__ = 58; + current_statement__ = 57; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(1))) { - current_statement__ = 57; + current_statement__ = 56; return 1; } for (int k = 2; k <= lcm_sym23__; ++k) { - current_statement__ = 58; + current_statement__ = 57; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(k))) { - current_statement__ = 57; + current_statement__ = 56; return k; } } } - current_statement__ = 59; + current_statement__ = 58; return 0; } } catch (const std::exception& e) { @@ -5142,22 +3882,22 @@ int last_capture(const T0__& y_i, std::ostream* pstream__) { if (stan::math::logical_gte(lcm_sym29__, 0)) { int k = std::numeric_limits::min(); lcm_sym28__ = (stan::math::size(y_i) - 0); - current_statement__ = 63; + current_statement__ = 62; if (y_i[(lcm_sym28__ - 1)]) { - current_statement__ = 62; + current_statement__ = 61; return lcm_sym28__; } for (int k_rev = 1; k_rev <= lcm_sym29__; ++k_rev) { int k = std::numeric_limits::min(); lcm_sym27__ = (stan::math::size(y_i) - k_rev); - current_statement__ = 63; + current_statement__ = 62; if (y_i[(lcm_sym27__ - 1)]) { - current_statement__ = 62; + current_statement__ = 61; return lcm_sym27__; } } } - current_statement__ = 65; + current_statement__ = 64; return 0; } } catch (const std::exception& e) { @@ -5305,13 +4045,6 @@ prob_uncaptured(const T0__& nind, const T1__& n_occasions, const T2__& } class copy_fail_model final : public model_base_crtp { private: - int lcm_sym171__; - int lcm_sym170__; - int lcm_sym169__; - int lcm_sym168__; - int lcm_sym167__; - int lcm_sym166__; - int lcm_sym165__; int lcm_sym164__; int lcm_sym163__; int lcm_sym162__; @@ -5353,16 +4086,12 @@ class copy_fail_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 33; - nind = context__.vals_i("nind")[(1 - 1)]; - current_statement__ = 33; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 34; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 34; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 34; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 35; @@ -5375,44 +4104,6 @@ class copy_fail_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 37; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - if (stan::math::logical_gte(n_occasions, 1)) { - lcm_sym160__ = stan::math::logical_gte(nind, 1); - if (lcm_sym160__) { - stan::model::assign(y, - stan::model::rvalue(y_flat__, "y_flat__", - stan::model::index_uni(1)), "assigning variable y", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - for (int sym1__ = 2; sym1__ <= n_occasions; ++sym1__) { - if (lcm_sym160__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(1), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } else { - lcm_sym160__ = stan::math::logical_gte(nind, 1); - } - } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 37; @@ -5422,55 +4113,18 @@ class copy_fail_model final : public model_base_crtp { std::vector{}); max_age = std::numeric_limits::min(); current_statement__ = 38; - max_age = context__.vals_i("max_age")[(1 - 1)]; - current_statement__ = 38; stan::math::check_greater_or_equal(function__, "max_age", max_age, 1); current_statement__ = 39; stan::math::validate_non_negative_index("x", "nind", nind); - lcm_sym162__ = (n_occasions - 1); + lcm_sym160__ = (n_occasions - 1); stan::math::validate_non_negative_index("x", "n_occasions - 1", - lcm_sym162__); + lcm_sym160__); current_statement__ = 40; context__.validate_dims("data initialization", "x", "int", std::vector{static_cast(nind), - static_cast(lcm_sym162__)}); + static_cast(lcm_sym160__)}); x = std::vector>(nind, - std::vector(lcm_sym162__, std::numeric_limits::min())); - { - std::vector x_flat__; - current_statement__ = 40; - x_flat__ = context__.vals_i("x"); - pos__ = 1; - if (stan::math::logical_gte(lcm_sym162__, 1)) { - if (lcm_sym160__) { - stan::model::assign(x, - stan::model::rvalue(x_flat__, "x_flat__", - stan::model::index_uni(1)), "assigning variable x", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym2__), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - for (int sym1__ = 2; sym1__ <= lcm_sym162__; ++sym1__) { - if (lcm_sym160__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(1), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } - } + std::vector(lcm_sym160__, std::numeric_limits::min())); current_statement__ = 40; stan::math::check_greater_or_equal(function__, "x", x, 0); current_statement__ = 40; @@ -5478,7 +4132,7 @@ class copy_fail_model final : public model_base_crtp { current_statement__ = 41; n_occ_minus_1 = std::numeric_limits::min(); current_statement__ = 41; - n_occ_minus_1 = lcm_sym162__; + n_occ_minus_1 = lcm_sym160__; current_statement__ = 42; stan::math::validate_non_negative_index("first", "nind", nind); current_statement__ = 43; @@ -5487,8 +4141,8 @@ class copy_fail_model final : public model_base_crtp { stan::math::validate_non_negative_index("last", "nind", nind); current_statement__ = 45; last = std::vector(nind, std::numeric_limits::min()); - current_statement__ = 47; - if (lcm_sym160__) { + lcm_sym159__ = stan::math::logical_gte(nind, 1); + if (lcm_sym159__) { current_statement__ = 46; stan::model::assign(first, first_capture( @@ -5503,15 +4157,15 @@ class copy_fail_model final : public model_base_crtp { stan::model::index_uni(i)); } } - current_statement__ = 49; - if (lcm_sym160__) { - current_statement__ = 48; + current_statement__ = 48; + if (lcm_sym159__) { + current_statement__ = 47; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(1)), pstream__), "assigning variable last", stan::model::index_uni(1)); for (int i = 2; i <= nind; ++i) { - current_statement__ = 48; + current_statement__ = 47; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(i)), @@ -5527,21 +4181,21 @@ class copy_fail_model final : public model_base_crtp { stan::math::check_greater_or_equal(function__, "last", last, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "last", last, n_occasions); - current_statement__ = 50; + current_statement__ = 49; stan::math::validate_non_negative_index("beta", "max_age", max_age); - current_statement__ = 51; + current_statement__ = 50; stan::math::validate_non_negative_index("phi", "nind", nind); - current_statement__ = 52; + current_statement__ = 51; stan::math::validate_non_negative_index("phi", "n_occ_minus_1", - lcm_sym162__); - current_statement__ = 53; + lcm_sym160__); + current_statement__ = 52; stan::math::validate_non_negative_index("p", "nind", nind); - current_statement__ = 54; + current_statement__ = 53; stan::math::validate_non_negative_index("p", "n_occ_minus_1", - lcm_sym162__); - current_statement__ = 55; + lcm_sym160__); + current_statement__ = 54; stan::math::validate_non_negative_index("chi", "nind", nind); - current_statement__ = 56; + current_statement__ = 55; stan::math::validate_non_negative_index("chi", "n_occasions", n_occasions); } catch (const std::exception& e) { @@ -5623,15 +4277,13 @@ class copy_fail_model final : public model_base_crtp { int lcm_sym118__; int lcm_sym117__; int lcm_sym116__; - local_scalar_t__ mean_p; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, (n_occasions - 1), DUMMY_VAR__); @@ -6057,15 +4709,13 @@ class copy_fail_model final : public model_base_crtp { int lcm_sym75__; int lcm_sym74__; int lcm_sym73__; - local_scalar_t__ mean_p; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, (n_occasions - 1), DUMMY_VAR__); @@ -6485,15 +5135,13 @@ class copy_fail_model final : public model_base_crtp { int lcm_sym48__; int lcm_sym47__; int lcm_sym46__; - double mean_p; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, (n_occasions - 1), std::numeric_limits::quiet_NaN()); @@ -6886,27 +5534,27 @@ class copy_fail_model final : public model_base_crtp { emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "mean_p"); - for (int sym172__ = 1; sym172__ <= max_age; ++sym172__) { + for (int sym165__ = 1; sym165__ <= max_age; ++sym165__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym172__)); + std::to_string(sym165__)); } if (emit_transformed_parameters__) { - for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { - for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { + for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { + for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym173__) + '.' + std::to_string(sym172__)); + std::to_string(sym166__) + '.' + std::to_string(sym165__)); } } - for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { - for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { + for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { + for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym173__) + '.' + std::to_string(sym172__)); + std::to_string(sym166__) + '.' + std::to_string(sym165__)); } } - for (int sym172__ = 1; sym172__ <= n_occasions; ++sym172__) { - for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { + for (int sym165__ = 1; sym165__ <= n_occasions; ++sym165__) { + for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym173__) + '.' + std::to_string(sym172__)); + std::to_string(sym166__) + '.' + std::to_string(sym165__)); } } } @@ -6917,27 +5565,27 @@ class copy_fail_model final : public model_base_crtp { emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "mean_p"); - for (int sym172__ = 1; sym172__ <= max_age; ++sym172__) { + for (int sym165__ = 1; sym165__ <= max_age; ++sym165__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym172__)); + std::to_string(sym165__)); } if (emit_transformed_parameters__) { - for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { - for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { + for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { + for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym173__) + '.' + std::to_string(sym172__)); + std::to_string(sym166__) + '.' + std::to_string(sym165__)); } } - for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { - for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { + for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { + for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym173__) + '.' + std::to_string(sym172__)); + std::to_string(sym166__) + '.' + std::to_string(sym165__)); } } - for (int sym172__ = 1; sym172__ <= n_occasions; ++sym172__) { - for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { + for (int sym165__ = 1; sym165__ <= n_occasions; ++sym165__) { + for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym173__) + '.' + std::to_string(sym172__)); + std::to_string(sym166__) + '.' + std::to_string(sym165__)); } } } @@ -7123,10 +5771,6 @@ static constexpr std::array locations_array__ = " (in 'dce-fail.stan', line 37, column 9 to column 16)"}; class dce_fail_model final : public model_base_crtp { private: - double lcm_sym65__; - double lcm_sym64__; - int lcm_sym63__; - int lcm_sym62__; int N; int n_age; int n_edu; @@ -7168,40 +5812,30 @@ class dce_fail_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 39; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 39; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 40; context__.validate_dims("data initialization", "n_age", "int", std::vector{}); n_age = std::numeric_limits::min(); current_statement__ = 40; - n_age = context__.vals_i("n_age")[(1 - 1)]; - current_statement__ = 40; stan::math::check_greater_or_equal(function__, "n_age", n_age, 0); current_statement__ = 41; context__.validate_dims("data initialization", "n_edu", "int", std::vector{}); n_edu = std::numeric_limits::min(); current_statement__ = 41; - n_edu = context__.vals_i("n_edu")[(1 - 1)]; - current_statement__ = 41; stan::math::check_greater_or_equal(function__, "n_edu", n_edu, 0); current_statement__ = 42; context__.validate_dims("data initialization", "n_region", "int", std::vector{}); n_region = std::numeric_limits::min(); current_statement__ = 42; - n_region = context__.vals_i("n_region")[(1 - 1)]; - current_statement__ = 42; stan::math::check_greater_or_equal(function__, "n_region", n_region, 0); current_statement__ = 43; context__.validate_dims("data initialization", "n_state", "int", std::vector{}); n_state = std::numeric_limits::min(); current_statement__ = 43; - n_state = context__.vals_i("n_state")[(1 - 1)]; - current_statement__ = 43; stan::math::check_greater_or_equal(function__, "n_state", n_state, 0); current_statement__ = 44; stan::math::validate_non_negative_index("female", "N", N); @@ -7210,8 +5844,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); female = std::vector(N, std::numeric_limits::min()); current_statement__ = 45; - female = context__.vals_i("female"); - current_statement__ = 45; stan::math::check_greater_or_equal(function__, "female", female, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "female", female, 1); @@ -7222,8 +5854,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); black = std::vector(N, std::numeric_limits::min()); current_statement__ = 47; - black = context__.vals_i("black"); - current_statement__ = 47; stan::math::check_greater_or_equal(function__, "black", black, 0); current_statement__ = 47; stan::math::check_less_or_equal(function__, "black", black, 1); @@ -7234,8 +5864,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); age = std::vector(N, std::numeric_limits::min()); current_statement__ = 49; - age = context__.vals_i("age"); - current_statement__ = 49; stan::math::check_greater_or_equal(function__, "age", age, 0); current_statement__ = 49; stan::math::check_less_or_equal(function__, "age", age, n_age); @@ -7246,8 +5874,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 51; - edu = context__.vals_i("edu"); - current_statement__ = 51; stan::math::check_greater_or_equal(function__, "edu", edu, 0); current_statement__ = 51; stan::math::check_less_or_equal(function__, "edu", edu, n_edu); @@ -7258,8 +5884,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(n_state)}); region = std::vector(n_state, std::numeric_limits::min()); current_statement__ = 53; - region = context__.vals_i("region"); - current_statement__ = 53; stan::math::check_greater_or_equal(function__, "region", region, 0); current_statement__ = 53; stan::math::check_less_or_equal(function__, "region", region, n_state); @@ -7270,8 +5894,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); state = std::vector(N, std::numeric_limits::min()); current_statement__ = 55; - state = context__.vals_i("state"); - current_statement__ = 55; stan::math::check_greater_or_equal(function__, "state", state, 0); current_statement__ = 55; stan::math::check_less_or_equal(function__, "state", state, n_state); @@ -7282,8 +5904,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 57; - y = context__.vals_i("y"); - current_statement__ = 57; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 57; stan::math::check_less_or_equal(function__, "y", y, 1); @@ -7296,24 +5916,6 @@ class dce_fail_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&v_prev) Eigen::Map>(v_prev_data__.data(), n_state); - { - std::vector v_prev_flat__; - current_statement__ = 59; - v_prev_flat__ = context__.vals_r("v_prev"); - pos__ = 1; - if (stan::math::logical_gte(n_state, 1)) { - stan::model::assign(v_prev, - stan::model::rvalue(v_prev_flat__, "v_prev_flat__", - stan::model::index_uni(1)), "assigning variable v_prev", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= n_state; ++sym1__) { - stan::model::assign(v_prev, v_prev_flat__[(pos__ - 1)], - "assigning variable v_prev", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 60; stan::math::validate_non_negative_index("b_age", "n_age", n_age); current_statement__ = 61; @@ -7386,63 +5988,41 @@ class dce_fail_model final : public model_base_crtp { int lcm_sym42__; int lcm_sym41__; int lcm_sym40__; - local_scalar_t__ sigma; - current_statement__ = 1; - sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age; - current_statement__ = 2; - sigma_age = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_edu; - current_statement__ = 3; - sigma_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_state; - current_statement__ = 4; - sigma_state = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_region; - current_statement__ = 5; - sigma_region = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age_edu; - current_statement__ = 6; - sigma_age_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ b_0; - current_statement__ = 7; - b_0 = in__.template read(); - local_scalar_t__ b_female; - current_statement__ = 8; - b_female = in__.template read(); - local_scalar_t__ b_black; - current_statement__ = 9; - b_black = in__.template read(); - local_scalar_t__ b_female_black; - current_statement__ = 10; - b_female_black = in__.template read(); - local_scalar_t__ b_v_prev; - current_statement__ = 11; - b_v_prev = in__.template read(); - Eigen::Matrix b_age; - current_statement__ = 12; - b_age = in__.template read>(n_age); - Eigen::Matrix b_edu; - current_statement__ = 13; - b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region; - current_statement__ = 14; - b_region = in__.template read< - Eigen::Matrix>(n_region); - Eigen::Matrix b_age_edu; - current_statement__ = 15; - b_age_edu = in__.template read< - Eigen::Matrix>(n_age, n_edu); - Eigen::Matrix b_hat; - current_statement__ = 16; - b_hat = in__.template read< - Eigen::Matrix>(n_state); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_age = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_edu = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_state = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_region = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_age_edu = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ b_0 = in__.template read(); + local_scalar_t__ b_female = in__.template read(); + local_scalar_t__ b_black = in__.template read(); + local_scalar_t__ b_female_black = + in__.template read(); + local_scalar_t__ b_v_prev = in__.template read(); + Eigen::Matrix b_age = + in__.template read>(n_age); + Eigen::Matrix b_edu = + in__.template read>(n_edu); + Eigen::Matrix b_region = + in__.template read>(n_region); + Eigen::Matrix b_age_edu = + in__.template read>(n_age, + n_edu); + Eigen::Matrix b_hat = + in__.template read>(n_state); { current_statement__ = 17; stan::math::validate_non_negative_index("p", "N", N); @@ -7667,63 +6247,41 @@ class dce_fail_model final : public model_base_crtp { int lcm_sym20__; int lcm_sym19__; int lcm_sym18__; - local_scalar_t__ sigma; - current_statement__ = 1; - sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age; - current_statement__ = 2; - sigma_age = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_edu; - current_statement__ = 3; - sigma_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_state; - current_statement__ = 4; - sigma_state = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_region; - current_statement__ = 5; - sigma_region = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age_edu; - current_statement__ = 6; - sigma_age_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ b_0; - current_statement__ = 7; - b_0 = in__.template read(); - local_scalar_t__ b_female; - current_statement__ = 8; - b_female = in__.template read(); - local_scalar_t__ b_black; - current_statement__ = 9; - b_black = in__.template read(); - local_scalar_t__ b_female_black; - current_statement__ = 10; - b_female_black = in__.template read(); - local_scalar_t__ b_v_prev; - current_statement__ = 11; - b_v_prev = in__.template read(); - Eigen::Matrix b_age; - current_statement__ = 12; - b_age = in__.template read>(n_age); - Eigen::Matrix b_edu; - current_statement__ = 13; - b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region; - current_statement__ = 14; - b_region = in__.template read< - Eigen::Matrix>(n_region); - Eigen::Matrix b_age_edu; - current_statement__ = 15; - b_age_edu = in__.template read< - Eigen::Matrix>(n_age, n_edu); - Eigen::Matrix b_hat; - current_statement__ = 16; - b_hat = in__.template read< - Eigen::Matrix>(n_state); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_age = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_edu = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_state = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_region = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_age_edu = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ b_0 = in__.template read(); + local_scalar_t__ b_female = in__.template read(); + local_scalar_t__ b_black = in__.template read(); + local_scalar_t__ b_female_black = + in__.template read(); + local_scalar_t__ b_v_prev = in__.template read(); + Eigen::Matrix b_age = + in__.template read>(n_age); + Eigen::Matrix b_edu = + in__.template read>(n_edu); + Eigen::Matrix b_region = + in__.template read>(n_region); + Eigen::Matrix b_age_edu = + in__.template read>(n_age, + n_edu); + Eigen::Matrix b_hat = + in__.template read>(n_state); { current_statement__ = 17; stan::math::validate_non_negative_index("p", "N", N); @@ -7939,63 +6497,40 @@ class dce_fail_model final : public model_base_crtp { try { int lcm_sym17__; int lcm_sym16__; - double sigma; - current_statement__ = 1; - sigma = in__.template read_constrain_lb(0, lp__); - double sigma_age; - current_statement__ = 2; - sigma_age = in__.template read_constrain_lb(0, lp__); - double sigma_edu; - current_statement__ = 3; - sigma_edu = in__.template read_constrain_lb(0, lp__); - double sigma_state; - current_statement__ = 4; - sigma_state = in__.template read_constrain_lb(0, lp__); - double sigma_region; - current_statement__ = 5; - sigma_region = in__.template read_constrain_lb(0, lp__); - double sigma_age_edu; - current_statement__ = 6; - sigma_age_edu = in__.template read_constrain_lb(0, lp__); - double b_0; - current_statement__ = 7; - b_0 = in__.template read(); - double b_female; - current_statement__ = 8; - b_female = in__.template read(); - double b_black; - current_statement__ = 9; - b_black = in__.template read(); - double b_female_black; - current_statement__ = 10; - b_female_black = in__.template read(); - double b_v_prev; - current_statement__ = 11; - b_v_prev = in__.template read(); - Eigen::Matrix b_age; - current_statement__ = 12; - b_age = in__.template read>(n_age); - Eigen::Matrix b_edu; - current_statement__ = 13; - b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region; - current_statement__ = 14; - b_region = in__.template read< - Eigen::Matrix>(n_region); - Eigen::Matrix b_age_edu; - current_statement__ = 15; - b_age_edu = in__.template read< - Eigen::Matrix>(n_age, n_edu); - Eigen::Matrix b_hat; - current_statement__ = 16; - b_hat = in__.template read< - Eigen::Matrix>(n_state); + double sigma = + in__.template read_constrain_lb(0, + lp__); + double sigma_age = + in__.template read_constrain_lb(0, + lp__); + double sigma_edu = + in__.template read_constrain_lb(0, + lp__); + double sigma_state = + in__.template read_constrain_lb(0, + lp__); + double sigma_region = + in__.template read_constrain_lb(0, + lp__); + double sigma_age_edu = + in__.template read_constrain_lb(0, + lp__); + double b_0 = in__.template read(); + double b_female = in__.template read(); + double b_black = in__.template read(); + double b_female_black = in__.template read(); + double b_v_prev = in__.template read(); + Eigen::Matrix b_age = + in__.template read>(n_age); + Eigen::Matrix b_edu = + in__.template read>(n_edu); + Eigen::Matrix b_region = + in__.template read>(n_region); + Eigen::Matrix b_age_edu = + in__.template read>(n_age, + n_edu); + Eigen::Matrix b_hat = + in__.template read>(n_state); out__.write(sigma); out__.write(sigma_age); out__.write(sigma_edu); @@ -8417,27 +6952,27 @@ class dce_fail_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "b_black"); param_names__.emplace_back(std::string() + "b_female_black"); param_names__.emplace_back(std::string() + "b_v_prev"); - for (int sym66__ = 1; sym66__ <= n_age; ++sym66__) { + for (int sym62__ = 1; sym62__ <= n_age; ++sym62__) { param_names__.emplace_back(std::string() + "b_age" + '.' + - std::to_string(sym66__)); + std::to_string(sym62__)); } - for (int sym66__ = 1; sym66__ <= n_edu; ++sym66__) { + for (int sym62__ = 1; sym62__ <= n_edu; ++sym62__) { param_names__.emplace_back(std::string() + "b_edu" + '.' + - std::to_string(sym66__)); + std::to_string(sym62__)); } - for (int sym66__ = 1; sym66__ <= n_region; ++sym66__) { + for (int sym62__ = 1; sym62__ <= n_region; ++sym62__) { param_names__.emplace_back(std::string() + "b_region" + '.' + - std::to_string(sym66__)); + std::to_string(sym62__)); } - for (int sym66__ = 1; sym66__ <= n_edu; ++sym66__) { - for (int sym67__ = 1; sym67__ <= n_age; ++sym67__) { + for (int sym62__ = 1; sym62__ <= n_edu; ++sym62__) { + for (int sym63__ = 1; sym63__ <= n_age; ++sym63__) { param_names__.emplace_back(std::string() + "b_age_edu" + '.' + - std::to_string(sym67__) + '.' + std::to_string(sym66__)); + std::to_string(sym63__) + '.' + std::to_string(sym62__)); } } - for (int sym66__ = 1; sym66__ <= n_state; ++sym66__) { + for (int sym62__ = 1; sym62__ <= n_state; ++sym62__) { param_names__.emplace_back(std::string() + "b_hat" + '.' + - std::to_string(sym66__)); + std::to_string(sym62__)); } if (emit_transformed_parameters__) {} if (emit_generated_quantities__) {} @@ -8457,27 +6992,27 @@ class dce_fail_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "b_black"); param_names__.emplace_back(std::string() + "b_female_black"); param_names__.emplace_back(std::string() + "b_v_prev"); - for (int sym66__ = 1; sym66__ <= n_age; ++sym66__) { + for (int sym62__ = 1; sym62__ <= n_age; ++sym62__) { param_names__.emplace_back(std::string() + "b_age" + '.' + - std::to_string(sym66__)); + std::to_string(sym62__)); } - for (int sym66__ = 1; sym66__ <= n_edu; ++sym66__) { + for (int sym62__ = 1; sym62__ <= n_edu; ++sym62__) { param_names__.emplace_back(std::string() + "b_edu" + '.' + - std::to_string(sym66__)); + std::to_string(sym62__)); } - for (int sym66__ = 1; sym66__ <= n_region; ++sym66__) { + for (int sym62__ = 1; sym62__ <= n_region; ++sym62__) { param_names__.emplace_back(std::string() + "b_region" + '.' + - std::to_string(sym66__)); + std::to_string(sym62__)); } - for (int sym66__ = 1; sym66__ <= n_edu; ++sym66__) { - for (int sym67__ = 1; sym67__ <= n_age; ++sym67__) { + for (int sym62__ = 1; sym62__ <= n_edu; ++sym62__) { + for (int sym63__ = 1; sym63__ <= n_age; ++sym63__) { param_names__.emplace_back(std::string() + "b_age_edu" + '.' + - std::to_string(sym67__) + '.' + std::to_string(sym66__)); + std::to_string(sym63__) + '.' + std::to_string(sym62__)); } } - for (int sym66__ = 1; sym66__ <= n_state; ++sym66__) { + for (int sym62__ = 1; sym62__ <= n_state; ++sym62__) { param_names__.emplace_back(std::string() + "b_hat" + '.' + - std::to_string(sym66__)); + std::to_string(sym62__)); } if (emit_transformed_parameters__) {} if (emit_generated_quantities__) {} @@ -8637,8 +7172,6 @@ class expr_prop_experiment_model final : public model_base_crtp{}); j = std::numeric_limits::min(); - current_statement__ = 1; - j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 3; @@ -8978,8 +7511,6 @@ class expr_prop_experiment2_model final : public model_base_crtp{}); j = std::numeric_limits::min(); - current_statement__ = 1; - j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 2; @@ -9293,10 +7824,6 @@ static constexpr std::array locations_array__ = " (in 'expr-prop-fail.stan', line 3, column 2 to column 14)"}; class expr_prop_fail_model final : public model_base_crtp { private: - double lcm_sym21__; - double lcm_sym20__; - int lcm_sym19__; - int lcm_sym18__; int N; Eigen::Matrix y_data__; Eigen::Map> y{nullptr, 0}; @@ -9327,8 +7854,6 @@ class expr_prop_fail_model final : public model_base_crtp std::vector{}); N = std::numeric_limits::min(); current_statement__ = 9; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 9; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 10; stan::math::validate_non_negative_index("y", "N", N); @@ -9338,24 +7863,6 @@ class expr_prop_fail_model final : public model_base_crtp y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); - { - std::vector y_flat__; - current_statement__ = 11; - y_flat__ = context__.vals_r("y"); - pos__ = 1; - if (stan::math::logical_gte(N, 1)) { - stan::model::assign(y, - stan::model::rvalue(y_flat__, "y_flat__", - stan::model::index_uni(1)), "assigning variable y", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= N; ++sym1__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -9398,19 +7905,15 @@ class expr_prop_fail_model final : public model_base_crtp double lcm_sym14__; double lcm_sym13__; int lcm_sym12__; - Eigen::Matrix mu; - current_statement__ = 1; - mu = in__.template read_constrain_ordered< - Eigen::Matrix, jacobian__>(lp__, 2); + Eigen::Matrix mu = + in__.template read_constrain_ordered< + Eigen::Matrix, jacobian__>(lp__, 2); std::vector sigma = - std::vector(2, DUMMY_VAR__); - current_statement__ = 2; - sigma = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); - local_scalar_t__ theta; - current_statement__ = 3; - theta = in__.template read_constrain_lub(0, 1, lp__); + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); + local_scalar_t__ theta = + in__.template read_constrain_lub(0, 1, + lp__); { current_statement__ = 4; lp_accum__.add(stan::math::normal_lpdf(sigma, 0, 2)); @@ -9492,19 +7995,15 @@ class expr_prop_fail_model final : public model_base_crtp double lcm_sym8__; double lcm_sym7__; int lcm_sym6__; - Eigen::Matrix mu; - current_statement__ = 1; - mu = in__.template read_constrain_ordered< - Eigen::Matrix, jacobian__>(lp__, 2); + Eigen::Matrix mu = + in__.template read_constrain_ordered< + Eigen::Matrix, jacobian__>(lp__, 2); std::vector sigma = - std::vector(2, DUMMY_VAR__); - current_statement__ = 2; - sigma = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); - local_scalar_t__ theta; - current_statement__ = 3; - theta = in__.template read_constrain_lub(0, 1, lp__); + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); + local_scalar_t__ theta = + in__.template read_constrain_lub(0, 1, + lp__); { current_statement__ = 4; lp_accum__.add(stan::math::normal_lpdf(sigma, 0, 2)); @@ -9593,19 +8092,15 @@ class expr_prop_fail_model final : public model_base_crtp try { int lcm_sym5__; int lcm_sym4__; - Eigen::Matrix mu; - current_statement__ = 1; - mu = in__.template read_constrain_ordered< - Eigen::Matrix, jacobian__>(lp__, 2); + Eigen::Matrix mu = + in__.template read_constrain_ordered< + Eigen::Matrix, jacobian__>(lp__, 2); std::vector sigma = - std::vector(2, std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - sigma = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); - double theta; - current_statement__ = 3; - theta = in__.template read_constrain_lub(0, 1, lp__); + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); + double theta = + in__.template read_constrain_lub(0, 1, + lp__); out__.write(mu); out__.write(sigma); out__.write(theta); @@ -9740,13 +8235,13 @@ class expr_prop_fail_model final : public model_base_crtp constrained_param_names(std::vector& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym22__ = 1; sym22__ <= 2; ++sym22__) { + for (int sym18__ = 1; sym18__ <= 2; ++sym18__) { param_names__.emplace_back(std::string() + "mu" + '.' + - std::to_string(sym22__)); + std::to_string(sym18__)); } - for (int sym22__ = 1; sym22__ <= 2; ++sym22__) { + for (int sym18__ = 1; sym18__ <= 2; ++sym18__) { param_names__.emplace_back(std::string() + "sigma" + '.' + - std::to_string(sym22__)); + std::to_string(sym18__)); } param_names__.emplace_back(std::string() + "theta"); if (emit_transformed_parameters__) {} @@ -9756,13 +8251,13 @@ class expr_prop_fail_model final : public model_base_crtp unconstrained_param_names(std::vector& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym22__ = 1; sym22__ <= 2; ++sym22__) { + for (int sym18__ = 1; sym18__ <= 2; ++sym18__) { param_names__.emplace_back(std::string() + "mu" + '.' + - std::to_string(sym22__)); + std::to_string(sym18__)); } - for (int sym22__ = 1; sym22__ <= 2; ++sym22__) { + for (int sym18__ = 1; sym18__ <= 2; ++sym18__) { param_names__.emplace_back(std::string() + "sigma" + '.' + - std::to_string(sym22__)); + std::to_string(sym18__)); } param_names__.emplace_back(std::string() + "theta"); if (emit_transformed_parameters__) {} @@ -9920,8 +8415,6 @@ class expr_prop_fail2_model final : public model_base_crtp{}); J = std::numeric_limits::min(); current_statement__ = 6; - J = context__.vals_i("J")[(1 - 1)]; - current_statement__ = 6; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 7; stan::math::validate_non_negative_index("y", "J", J); @@ -9929,8 +8422,6 @@ class expr_prop_fail2_model final : public model_base_crtp{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); - current_statement__ = 8; - y = context__.vals_r("y"); current_statement__ = 9; stan::math::validate_non_negative_index("sigma", "J", J); current_statement__ = 10; @@ -9939,8 +8430,6 @@ class expr_prop_fail2_model final : public model_base_crtp(J, std::numeric_limits::quiet_NaN()); current_statement__ = 10; - sigma = context__.vals_r("sigma"); - current_statement__ = 10; stan::math::check_greater_or_equal(function__, "sigma", sigma, 0); current_statement__ = 11; stan::math::validate_non_negative_index("theta", "J", J); @@ -9982,17 +8471,12 @@ class expr_prop_fail2_model final : public model_base_crtp(); + local_scalar_t__ mu = in__.template read(); std::vector theta = - std::vector(J, DUMMY_VAR__); - current_statement__ = 2; - theta = in__.template read>(J); - local_scalar_t__ tau; - current_statement__ = 3; - tau = in__.template read_constrain_lb(0, - lp__); + in__.template read>(J); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 4; lp_accum__.add(stan::math::normal_lpdf(theta, mu, tau)); @@ -10031,17 +8515,12 @@ class expr_prop_fail2_model final : public model_base_crtp(); + local_scalar_t__ mu = in__.template read(); std::vector theta = - std::vector(J, DUMMY_VAR__); - current_statement__ = 2; - theta = in__.template read>(J); - local_scalar_t__ tau; - current_statement__ = 3; - tau = in__.template read_constrain_lb(0, - lp__); + in__.template read>(J); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 4; lp_accum__.add(stan::math::normal_lpdf(theta, mu, tau)); @@ -10091,17 +8570,12 @@ class expr_prop_fail2_model final : public model_base_crtp(); + double mu = in__.template read(); std::vector theta = - std::vector(J, std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - theta = in__.template read>(J); - double tau; - current_statement__ = 3; - tau = in__.template read_constrain_lb(0, - lp__); + in__.template read>(J); + double tau = + in__.template read_constrain_lb(0, + lp__); out__.write(mu); out__.write(theta); out__.write(tau); @@ -10397,14 +8871,6 @@ static constexpr std::array locations_array__ = " (in 'expr-prop-fail3.stan', line 32, column 9 to column 10)"}; class expr_prop_fail3_model final : public model_base_crtp { private: - double lcm_sym51__; - double lcm_sym50__; - double lcm_sym49__; - double lcm_sym48__; - double lcm_sym47__; - double lcm_sym46__; - int lcm_sym45__; - int lcm_sym44__; int N; int n_age; int n_age_edu; @@ -10450,24 +8916,18 @@ class expr_prop_fail3_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 22; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 22; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 23; context__.validate_dims("data initialization", "n_age", "int", std::vector{}); n_age = std::numeric_limits::min(); current_statement__ = 23; - n_age = context__.vals_i("n_age")[(1 - 1)]; - current_statement__ = 23; stan::math::check_greater_or_equal(function__, "n_age", n_age, 0); current_statement__ = 24; context__.validate_dims("data initialization", "n_age_edu", "int", std::vector{}); n_age_edu = std::numeric_limits::min(); current_statement__ = 24; - n_age_edu = context__.vals_i("n_age_edu")[(1 - 1)]; - current_statement__ = 24; stan::math::check_greater_or_equal(function__, "n_age_edu", n_age_edu, 0); current_statement__ = 25; @@ -10475,16 +8935,12 @@ class expr_prop_fail3_model final : public model_base_crtp{}); n_edu = std::numeric_limits::min(); current_statement__ = 25; - n_edu = context__.vals_i("n_edu")[(1 - 1)]; - current_statement__ = 25; stan::math::check_greater_or_equal(function__, "n_edu", n_edu, 0); current_statement__ = 26; context__.validate_dims("data initialization", "n_region_full", "int", std::vector{}); n_region_full = std::numeric_limits::min(); current_statement__ = 26; - n_region_full = context__.vals_i("n_region_full")[(1 - 1)]; - current_statement__ = 26; stan::math::check_greater_or_equal(function__, "n_region_full", n_region_full, 0); current_statement__ = 27; @@ -10492,8 +8948,6 @@ class expr_prop_fail3_model final : public model_base_crtp{}); n_state = std::numeric_limits::min(); current_statement__ = 27; - n_state = context__.vals_i("n_state")[(1 - 1)]; - current_statement__ = 27; stan::math::check_greater_or_equal(function__, "n_state", n_state, 0); current_statement__ = 28; stan::math::validate_non_negative_index("age", "N", N); @@ -10502,8 +8956,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); age = std::vector(N, std::numeric_limits::min()); current_statement__ = 29; - age = context__.vals_i("age"); - current_statement__ = 29; stan::math::check_greater_or_equal(function__, "age", age, 0); current_statement__ = 29; stan::math::check_less_or_equal(function__, "age", age, n_age); @@ -10514,8 +8966,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); age_edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 31; - age_edu = context__.vals_i("age_edu"); - current_statement__ = 31; stan::math::check_greater_or_equal(function__, "age_edu", age_edu, 0); current_statement__ = 31; stan::math::check_less_or_equal(function__, "age_edu", age_edu, @@ -10529,25 +8979,6 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&black) Eigen::Map>(black_data__.data(), N); - { - std::vector black_flat__; - current_statement__ = 33; - black_flat__ = context__.vals_r("black"); - pos__ = 1; - lcm_sym44__ = stan::math::logical_gte(N, 1); - if (lcm_sym44__) { - stan::model::assign(black, - stan::model::rvalue(black_flat__, "black_flat__", - stan::model::index_uni(1)), "assigning variable black", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= N; ++sym1__) { - stan::model::assign(black, black_flat__[(pos__ - 1)], - "assigning variable black", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 33; stan::math::check_greater_or_equal(function__, "black", black, 0); current_statement__ = 33; @@ -10559,8 +8990,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 35; - edu = context__.vals_i("edu"); - current_statement__ = 35; stan::math::check_greater_or_equal(function__, "edu", edu, 0); current_statement__ = 35; stan::math::check_less_or_equal(function__, "edu", edu, n_edu); @@ -10573,24 +9002,6 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&female) Eigen::Map>(female_data__.data(), N); - { - std::vector female_flat__; - current_statement__ = 37; - female_flat__ = context__.vals_r("female"); - pos__ = 1; - if (lcm_sym44__) { - stan::model::assign(female, - stan::model::rvalue(female_flat__, "female_flat__", - stan::model::index_uni(1)), "assigning variable female", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= N; ++sym1__) { - stan::model::assign(female, female_flat__[(pos__ - 1)], - "assigning variable female", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "female", female, 0); current_statement__ = 37; @@ -10602,8 +9013,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); region_full = std::vector(N, std::numeric_limits::min()); current_statement__ = 39; - region_full = context__.vals_i("region_full"); - current_statement__ = 39; stan::math::check_greater_or_equal(function__, "region_full", region_full, 0); current_statement__ = 39; @@ -10616,8 +9025,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); state = std::vector(N, std::numeric_limits::min()); current_statement__ = 41; - state = context__.vals_i("state"); - current_statement__ = 41; stan::math::check_greater_or_equal(function__, "state", state, 0); current_statement__ = 41; stan::math::check_less_or_equal(function__, "state", state, n_state); @@ -10630,25 +9037,6 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&v_prev_full) Eigen::Map>(v_prev_full_data__.data(), N); - { - std::vector v_prev_full_flat__; - current_statement__ = 43; - v_prev_full_flat__ = context__.vals_r("v_prev_full"); - pos__ = 1; - if (lcm_sym44__) { - stan::model::assign(v_prev_full, - stan::model::rvalue(v_prev_full_flat__, "v_prev_full_flat__", - stan::model::index_uni(1)), "assigning variable v_prev_full", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= N; ++sym1__) { - stan::model::assign(v_prev_full, v_prev_full_flat__[(pos__ - 1)], - "assigning variable v_prev_full", - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 44; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 45; @@ -10656,8 +9044,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 45; - y = context__.vals_i("y"); - current_statement__ = 45; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "y", y, 1); @@ -10721,45 +9107,34 @@ class expr_prop_fail3_model final : public model_base_crtp a; - current_statement__ = 1; - a = in__.template read>(n_age); - Eigen::Matrix b; - current_statement__ = 2; - b = in__.template read>(n_edu); - Eigen::Matrix c; - current_statement__ = 3; - c = in__.template read>(n_age_edu); - Eigen::Matrix d; - current_statement__ = 4; - d = in__.template read>(n_state); - Eigen::Matrix e; - current_statement__ = 5; - e = in__.template read< - Eigen::Matrix>(n_region_full); - Eigen::Matrix beta; - current_statement__ = 6; - beta = in__.template read>(5); - local_scalar_t__ sigma_a; - current_statement__ = 7; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_b; - current_statement__ = 8; - sigma_b = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_c; - current_statement__ = 9; - sigma_c = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_d; - current_statement__ = 10; - sigma_d = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_e; - current_statement__ = 11; - sigma_e = in__.template read_constrain_lub(0, 100, lp__); + Eigen::Matrix a = + in__.template read>(n_age); + Eigen::Matrix b = + in__.template read>(n_edu); + Eigen::Matrix c = + in__.template read>(n_age_edu); + Eigen::Matrix d = + in__.template read>(n_state); + Eigen::Matrix e = + in__.template read< + Eigen::Matrix>(n_region_full); + Eigen::Matrix beta = + in__.template read>(5); + local_scalar_t__ sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_b = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_c = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_d = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_e = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 14; @@ -10914,45 +9289,34 @@ class expr_prop_fail3_model final : public model_base_crtp a; - current_statement__ = 1; - a = in__.template read>(n_age); - Eigen::Matrix b; - current_statement__ = 2; - b = in__.template read>(n_edu); - Eigen::Matrix c; - current_statement__ = 3; - c = in__.template read>(n_age_edu); - Eigen::Matrix d; - current_statement__ = 4; - d = in__.template read>(n_state); - Eigen::Matrix e; - current_statement__ = 5; - e = in__.template read< - Eigen::Matrix>(n_region_full); - Eigen::Matrix beta; - current_statement__ = 6; - beta = in__.template read>(5); - local_scalar_t__ sigma_a; - current_statement__ = 7; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_b; - current_statement__ = 8; - sigma_b = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_c; - current_statement__ = 9; - sigma_c = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_d; - current_statement__ = 10; - sigma_d = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_e; - current_statement__ = 11; - sigma_e = in__.template read_constrain_lub(0, 100, lp__); + Eigen::Matrix a = + in__.template read>(n_age); + Eigen::Matrix b = + in__.template read>(n_edu); + Eigen::Matrix c = + in__.template read>(n_age_edu); + Eigen::Matrix d = + in__.template read>(n_state); + Eigen::Matrix e = + in__.template read< + Eigen::Matrix>(n_region_full); + Eigen::Matrix beta = + in__.template read>(5); + local_scalar_t__ sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_b = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_c = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_d = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_e = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 14; @@ -11113,45 +9477,34 @@ class expr_prop_fail3_model final : public model_base_crtp a; - current_statement__ = 1; - a = in__.template read>(n_age); - Eigen::Matrix b; - current_statement__ = 2; - b = in__.template read>(n_edu); - Eigen::Matrix c; - current_statement__ = 3; - c = in__.template read>(n_age_edu); - Eigen::Matrix d; - current_statement__ = 4; - d = in__.template read>(n_state); - Eigen::Matrix e; - current_statement__ = 5; - e = in__.template read< - Eigen::Matrix>(n_region_full); - Eigen::Matrix beta; - current_statement__ = 6; - beta = in__.template read>(5); - double sigma_a; - current_statement__ = 7; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - double sigma_b; - current_statement__ = 8; - sigma_b = in__.template read_constrain_lub(0, 100, lp__); - double sigma_c; - current_statement__ = 9; - sigma_c = in__.template read_constrain_lub(0, 100, lp__); - double sigma_d; - current_statement__ = 10; - sigma_d = in__.template read_constrain_lub(0, 100, lp__); - double sigma_e; - current_statement__ = 11; - sigma_e = in__.template read_constrain_lub(0, 100, lp__); + Eigen::Matrix a = + in__.template read>(n_age); + Eigen::Matrix b = + in__.template read>(n_edu); + Eigen::Matrix c = + in__.template read>(n_age_edu); + Eigen::Matrix d = + in__.template read>(n_state); + Eigen::Matrix e = + in__.template read< + Eigen::Matrix>(n_region_full); + Eigen::Matrix beta = + in__.template read>(5); + double sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_b = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_c = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_d = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_e = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); @@ -11626,29 +9979,29 @@ class expr_prop_fail3_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym52__ = 1; sym52__ <= n_age; ++sym52__) { + for (int sym44__ = 1; sym44__ <= n_age; ++sym44__) { param_names__.emplace_back(std::string() + "a" + '.' + - std::to_string(sym52__)); + std::to_string(sym44__)); } - for (int sym52__ = 1; sym52__ <= n_edu; ++sym52__) { + for (int sym44__ = 1; sym44__ <= n_edu; ++sym44__) { param_names__.emplace_back(std::string() + "b" + '.' + - std::to_string(sym52__)); + std::to_string(sym44__)); } - for (int sym52__ = 1; sym52__ <= n_age_edu; ++sym52__) { + for (int sym44__ = 1; sym44__ <= n_age_edu; ++sym44__) { param_names__.emplace_back(std::string() + "c" + '.' + - std::to_string(sym52__)); + std::to_string(sym44__)); } - for (int sym52__ = 1; sym52__ <= n_state; ++sym52__) { + for (int sym44__ = 1; sym44__ <= n_state; ++sym44__) { param_names__.emplace_back(std::string() + "d" + '.' + - std::to_string(sym52__)); + std::to_string(sym44__)); } - for (int sym52__ = 1; sym52__ <= n_region_full; ++sym52__) { + for (int sym44__ = 1; sym44__ <= n_region_full; ++sym44__) { param_names__.emplace_back(std::string() + "e" + '.' + - std::to_string(sym52__)); + std::to_string(sym44__)); } - for (int sym52__ = 1; sym52__ <= 5; ++sym52__) { + for (int sym44__ = 1; sym44__ <= 5; ++sym44__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym52__)); + std::to_string(sym44__)); } param_names__.emplace_back(std::string() + "sigma_a"); param_names__.emplace_back(std::string() + "sigma_b"); @@ -11656,9 +10009,9 @@ class expr_prop_fail3_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym52__ = 1; sym52__ <= n_age; ++sym52__) { + for (int sym44__ = 1; sym44__ <= n_age; ++sym44__) { param_names__.emplace_back(std::string() + "a" + '.' + - std::to_string(sym52__)); + std::to_string(sym44__)); } - for (int sym52__ = 1; sym52__ <= n_edu; ++sym52__) { + for (int sym44__ = 1; sym44__ <= n_edu; ++sym44__) { param_names__.emplace_back(std::string() + "b" + '.' + - std::to_string(sym52__)); + std::to_string(sym44__)); } - for (int sym52__ = 1; sym52__ <= n_age_edu; ++sym52__) { + for (int sym44__ = 1; sym44__ <= n_age_edu; ++sym44__) { param_names__.emplace_back(std::string() + "c" + '.' + - std::to_string(sym52__)); + std::to_string(sym44__)); } - for (int sym52__ = 1; sym52__ <= n_state; ++sym52__) { + for (int sym44__ = 1; sym44__ <= n_state; ++sym44__) { param_names__.emplace_back(std::string() + "d" + '.' + - std::to_string(sym52__)); + std::to_string(sym44__)); } - for (int sym52__ = 1; sym52__ <= n_region_full; ++sym52__) { + for (int sym44__ = 1; sym44__ <= n_region_full; ++sym44__) { param_names__.emplace_back(std::string() + "e" + '.' + - std::to_string(sym52__)); + std::to_string(sym44__)); } - for (int sym52__ = 1; sym52__ <= 5; ++sym52__) { + for (int sym44__ = 1; sym44__ <= 5; ++sym44__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym52__)); + std::to_string(sym44__)); } param_names__.emplace_back(std::string() + "sigma_a"); param_names__.emplace_back(std::string() + "sigma_b"); @@ -11697,9 +10050,9 @@ class expr_prop_fail3_model final : public model_base_crtp locations_array__ = " (in 'expr-prop-fail4.stan', line 35, column 8 to column 9)"}; class expr_prop_fail4_model final : public model_base_crtp { private: - double lcm_sym37__; - double lcm_sym36__; - Eigen::Matrix lcm_sym35___data__; - int lcm_sym34__; - int lcm_sym33__; - int lcm_sym32__; + Eigen::Matrix lcm_sym30___data__; + int lcm_sym29__; int N; int N_edges; std::vector node1; @@ -11874,7 +10223,7 @@ class expr_prop_fail4_model final : public model_base_crtp E_data__; Eigen::Matrix log_E_data__; int phi_std_raw_1dim__; - Eigen::Map> lcm_sym35__{nullptr, 0}; + Eigen::Map> lcm_sym30__{nullptr, 0}; Eigen::Map> E{nullptr, 0}; Eigen::Map> log_E{nullptr, 0}; public: @@ -11904,16 +10253,12 @@ class expr_prop_fail4_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 27; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 27; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 28; context__.validate_dims("data initialization", "N_edges", "int", std::vector{}); N_edges = std::numeric_limits::min(); current_statement__ = 28; - N_edges = context__.vals_i("N_edges")[(1 - 1)]; - current_statement__ = 28; stan::math::check_greater_or_equal(function__, "N_edges", N_edges, 0); current_statement__ = 29; stan::math::validate_non_negative_index("node1", "N_edges", N_edges); @@ -11922,8 +10267,6 @@ class expr_prop_fail4_model final : public model_base_crtp{static_cast(N_edges)}); node1 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 30; - node1 = context__.vals_i("node1"); - current_statement__ = 30; stan::math::check_greater_or_equal(function__, "node1", node1, 1); current_statement__ = 30; stan::math::check_less_or_equal(function__, "node1", node1, N); @@ -11934,8 +10277,6 @@ class expr_prop_fail4_model final : public model_base_crtp{static_cast(N_edges)}); node2 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 32; - node2 = context__.vals_i("node2"); - current_statement__ = 32; stan::math::check_greater_or_equal(function__, "node2", node2, 1); current_statement__ = 32; stan::math::check_less_or_equal(function__, "node2", node2, N); @@ -11947,24 +10288,6 @@ class expr_prop_fail4_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&E) Eigen::Map>(E_data__.data(), N); - { - std::vector E_flat__; - current_statement__ = 34; - E_flat__ = context__.vals_r("E"); - pos__ = 1; - if (stan::math::logical_gte(N, 1)) { - stan::model::assign(E, - stan::model::rvalue(E_flat__, "E_flat__", - stan::model::index_uni(1)), "assigning variable E", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= N; ++sym1__) { - stan::model::assign(E, E_flat__[(pos__ - 1)], - "assigning variable E", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 34; stan::math::check_greater_or_equal(function__, "E", E, 0); current_statement__ = 35; @@ -11979,11 +10302,11 @@ class expr_prop_fail4_model final : public model_base_crtp::min(); - lcm_sym33__ = (N - 1); - phi_std_raw_1dim__ = lcm_sym33__; + lcm_sym29__ = (N - 1); + phi_std_raw_1dim__ = lcm_sym29__; current_statement__ = 37; stan::math::validate_non_negative_index("phi_std_raw", "N - 1", - lcm_sym33__); + lcm_sym29__); current_statement__ = 38; stan::math::validate_non_negative_index("phi", "N", N); current_statement__ = 39; @@ -12030,39 +10353,35 @@ class expr_prop_fail4_model final : public model_base_crtp lcm_sym27__; + local_scalar_t__ lcm_sym28__; + double lcm_sym27__; double lcm_sym26__; - int lcm_sym31__; - local_scalar_t__ tau_phi; - current_statement__ = 1; - tau_phi = in__.template read_constrain_lb(0, lp__); + Eigen::Matrix lcm_sym25__; + double lcm_sym24__; + int lcm_sym23__; + local_scalar_t__ tau_phi = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix phi_std_raw = - Eigen::Matrix::Constant((N - 1), DUMMY_VAR__); - lcm_sym31__ = (N - 1); - phi_std_raw = in__.template read< - Eigen::Matrix>(lcm_sym31__); + in__.template read>((N - 1)); local_scalar_t__ sigma_phi = DUMMY_VAR__; - lcm_sym30__ = stan::math::inv_sqrt(tau_phi); - sigma_phi = lcm_sym30__; + lcm_sym28__ = stan::math::inv_sqrt(tau_phi); + sigma_phi = lcm_sym28__; Eigen::Matrix phi = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 13; stan::model::assign(phi, phi_std_raw, "assigning variable phi", - stan::model::index_min_max(1, lcm_sym31__)); + stan::model::index_min_max(1, (N - 1))); current_statement__ = 14; stan::model::assign(phi, -(stan::math::sum(phi_std_raw)), "assigning variable phi", stan::model::index_uni(N)); current_statement__ = 15; stan::model::assign(phi, - stan::math::multiply(stan::model::deep_copy(phi), lcm_sym30__), + stan::math::multiply(stan::model::deep_copy(phi), lcm_sym28__), "assigning variable phi"); current_statement__ = 3; stan::math::check_greater_or_equal(function__, "sigma_phi", - lcm_sym30__, 0); + lcm_sym28__, 0); { current_statement__ = 25; lp_accum__.add((-0.5 * @@ -12103,44 +10422,37 @@ class expr_prop_fail4_model final : public model_base_crtp lcm_sym20__; - double lcm_sym19__; - int lcm_sym24__; - local_scalar_t__ tau_phi; - current_statement__ = 1; - tau_phi = in__.template read_constrain_lb(0, lp__); + double lcm_sym20__; + Eigen::Matrix lcm_sym19__; + double lcm_sym18__; + int lcm_sym17__; + local_scalar_t__ tau_phi = + in__.template read_constrain_lb(0, + lp__); stan::math::var_value> phi_std_raw = - stan::math::var_value>(Eigen::Matrix::Constant((N - - 1), - std::numeric_limits::quiet_NaN( - ))); - lcm_sym24__ = (N - 1); - phi_std_raw = in__.template read< - stan::math::var_value>>(lcm_sym24__); + in__.template read>((N - 1)); local_scalar_t__ sigma_phi = DUMMY_VAR__; - lcm_sym23__ = stan::math::inv_sqrt(tau_phi); - sigma_phi = lcm_sym23__; + lcm_sym22__ = stan::math::inv_sqrt(tau_phi); + sigma_phi = lcm_sym22__; stan::math::var_value> phi = stan::math::var_value>(Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN( ))); current_statement__ = 13; stan::model::assign(phi, phi_std_raw, "assigning variable phi", - stan::model::index_min_max(1, lcm_sym24__)); + stan::model::index_min_max(1, (N - 1))); current_statement__ = 14; stan::model::assign(phi, -(stan::math::sum(phi_std_raw)), "assigning variable phi", stan::model::index_uni(N)); current_statement__ = 15; stan::model::assign(phi, - stan::math::multiply(stan::model::deep_copy(phi), lcm_sym23__), + stan::math::multiply(stan::model::deep_copy(phi), lcm_sym22__), "assigning variable phi"); current_statement__ = 3; stan::math::check_greater_or_equal(function__, "sigma_phi", - lcm_sym23__, 0); + lcm_sym22__, 0); { current_statement__ = 25; lp_accum__.add((-0.5 * @@ -12201,18 +10513,13 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); + double tau_phi = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix phi_std_raw = - Eigen::Matrix::Constant((N - 1), - std::numeric_limits::quiet_NaN()); - lcm_sym17__ = (N - 1); - phi_std_raw = in__.template read< - Eigen::Matrix>(lcm_sym17__); + in__.template read>((N - 1)); double sigma_phi = std::numeric_limits::quiet_NaN(); Eigen::Matrix phi = Eigen::Matrix::Constant(N, @@ -12228,7 +10535,7 @@ class expr_prop_fail4_model final : public model_base_crtp locations_array__ = +static constexpr std::array locations_array__ = {" (found before start of program)", " (in 'expr-prop-fail5.stan', line 68, column 2 to column 34)", " (in 'expr-prop-fail5.stan', line 69, column 2 to column 32)", @@ -12707,7 +11014,6 @@ static constexpr std::array locations_array__ = " (in 'expr-prop-fail5.stan', line 59, column 8 to column 12)", " (in 'expr-prop-fail5.stan', line 59, column 2 to column 51)", " (in 'expr-prop-fail5.stan', line 63, column 4 to column 35)", - " (in 'expr-prop-fail5.stan', line 62, column 2 to line 63, column 35)", " (in 'expr-prop-fail5.stan', line 65, column 4 to column 33)", " (in 'expr-prop-fail5.stan', line 64, column 2 to line 65, column 33)", " (in 'expr-prop-fail5.stan', line 70, column 9 to column 13)", @@ -12769,20 +11075,20 @@ int first_capture(const T0__& y_i, std::ostream* pstream__) { { lcm_sym23__ = stan::math::size(y_i); if (stan::math::logical_gte(lcm_sym23__, 1)) { - current_statement__ = 60; + current_statement__ = 59; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(1))) { - current_statement__ = 59; + current_statement__ = 58; return 1; } for (int k = 2; k <= lcm_sym23__; ++k) { - current_statement__ = 60; + current_statement__ = 59; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(k))) { - current_statement__ = 59; + current_statement__ = 58; return k; } } } - current_statement__ = 61; + current_statement__ = 60; return 0; } } catch (const std::exception& e) { @@ -12816,22 +11122,22 @@ int last_capture(const T0__& y_i, std::ostream* pstream__) { if (stan::math::logical_gte(lcm_sym29__, 0)) { int k = std::numeric_limits::min(); lcm_sym28__ = (stan::math::size(y_i) - 0); - current_statement__ = 65; + current_statement__ = 64; if (y_i[(lcm_sym28__ - 1)]) { - current_statement__ = 64; + current_statement__ = 63; return lcm_sym28__; } for (int k_rev = 1; k_rev <= lcm_sym29__; ++k_rev) { int k = std::numeric_limits::min(); lcm_sym27__ = (stan::math::size(y_i) - k_rev); - current_statement__ = 65; + current_statement__ = 64; if (y_i[(lcm_sym27__ - 1)]) { - current_statement__ = 64; + current_statement__ = 63; return lcm_sym27__; } } } - current_statement__ = 67; + current_statement__ = 66; return 0; } } catch (const std::exception& e) { @@ -12979,10 +11285,6 @@ prob_uncaptured(const T0__& nind, const T1__& n_occasions, const T2__& } class expr_prop_fail5_model final : public model_base_crtp { private: - int lcm_sym168__; - int lcm_sym167__; - int lcm_sym166__; - int lcm_sym165__; int lcm_sym164__; int lcm_sym163__; int lcm_sym162__; @@ -13022,16 +11324,12 @@ class expr_prop_fail5_model final : public model_base_crtp{}); nind = std::numeric_limits::min(); current_statement__ = 38; - nind = context__.vals_i("nind")[(1 - 1)]; - current_statement__ = 38; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 39; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 39; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 39; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 40; @@ -13044,52 +11342,14 @@ class expr_prop_fail5_model final : public model_base_crtp(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 42; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - if (stan::math::logical_gte(n_occasions, 1)) { - lcm_sym160__ = stan::math::logical_gte(nind, 1); - if (lcm_sym160__) { - stan::model::assign(y, - stan::model::rvalue(y_flat__, "y_flat__", - stan::model::index_uni(1)), "assigning variable y", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - for (int sym1__ = 2; sym1__ <= n_occasions; ++sym1__) { - if (lcm_sym160__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(1), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } else { - lcm_sym160__ = stan::math::logical_gte(nind, 1); - } - } current_statement__ = 42; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 42; stan::math::check_less_or_equal(function__, "y", y, 1); current_statement__ = 43; n_occ_minus_1 = std::numeric_limits::min(); - lcm_sym161__ = (n_occasions - 1); - n_occ_minus_1 = lcm_sym161__; + lcm_sym160__ = (n_occasions - 1); + n_occ_minus_1 = lcm_sym160__; current_statement__ = 44; stan::math::validate_non_negative_index("first", "nind", nind); current_statement__ = 45; @@ -13098,8 +11358,8 @@ class expr_prop_fail5_model final : public model_base_crtp(nind, std::numeric_limits::min()); - current_statement__ = 49; - if (lcm_sym160__) { + lcm_sym159__ = stan::math::logical_gte(nind, 1); + if (lcm_sym159__) { current_statement__ = 48; stan::model::assign(first, first_capture( @@ -13114,15 +11374,15 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon; - current_statement__ = 3; - epsilon = in__.template read< - Eigen::Matrix>(nind); - local_scalar_t__ sigma; - current_statement__ = 4; - sigma = in__.template read_constrain_lub(0, 5, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix epsilon = + in__.template read>(nind); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, (n_occasions - 1), DUMMY_VAR__); @@ -13667,22 +11922,17 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon; - current_statement__ = 3; - epsilon = in__.template read< - Eigen::Matrix>(nind); - local_scalar_t__ sigma; - current_statement__ = 4; - sigma = in__.template read_constrain_lub(0, 5, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix epsilon = + in__.template read>(nind); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, (n_occasions - 1), DUMMY_VAR__); @@ -14094,22 +12344,17 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - double mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon; - current_statement__ = 3; - epsilon = in__.template read< - Eigen::Matrix>(nind); - double sigma; - current_statement__ = 4; - sigma = in__.template read_constrain_lub(0, 5, lp__); + double mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix epsilon = + in__.template read>(nind); + double sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, (n_occasions - 1), std::numeric_limits::quiet_NaN()); @@ -14534,28 +12779,28 @@ class expr_prop_fail5_model final : public model_base_crtp locations_array__ = +static constexpr std::array locations_array__ = {" (found before start of program)", " (in 'expr-prop-fail6.stan', line 160, column 2 to column 34)", " (in 'expr-prop-fail6.stan', line 161, column 2 to column 32)", @@ -14833,7 +13078,6 @@ static constexpr std::array locations_array__ = " (in 'expr-prop-fail6.stan', line 152, column 8 to column 9)", " (in 'expr-prop-fail6.stan', line 152, column 2 to column 48)", " (in 'expr-prop-fail6.stan', line 155, column 4 to column 35)", - " (in 'expr-prop-fail6.stan', line 154, column 2 to line 155, column 35)", " (in 'expr-prop-fail6.stan', line 157, column 4 to column 33)", " (in 'expr-prop-fail6.stan', line 156, column 2 to line 157, column 33)", " (in 'expr-prop-fail6.stan', line 163, column 18 to column 29)", @@ -14937,7 +13181,7 @@ int first_capture(const T0__& y_i, std::ostream* pstream__) { } } } - current_statement__ = 138; + current_statement__ = 137; return 0; } } catch (const std::exception& e) { @@ -14971,22 +13215,22 @@ int last_capture(const T0__& y_i, std::ostream* pstream__) { if (stan::math::logical_gte(lcm_sym55__, 0)) { int k = std::numeric_limits::min(); lcm_sym54__ = (stan::math::size(y_i) - 0); - current_statement__ = 141; + current_statement__ = 140; if (y_i[(lcm_sym54__ - 1)]) { - current_statement__ = 140; + current_statement__ = 139; return lcm_sym54__; } for (int k_rev = 1; k_rev <= lcm_sym55__; ++k_rev) { int k = std::numeric_limits::min(); lcm_sym53__ = (stan::math::size(y_i) - k_rev); - current_statement__ = 141; + current_statement__ = 140; if (y_i[(lcm_sym53__ - 1)]) { - current_statement__ = 140; + current_statement__ = 139; return lcm_sym53__; } } } - current_statement__ = 143; + current_statement__ = 142; return 0; } } catch (const std::exception& e) { @@ -15691,10 +13935,6 @@ js_super_lp(const T0__& y, const T1__& first, const T2__& last, const T3__& } class expr_prop_fail6_model final : public model_base_crtp { private: - int lcm_sym346__; - int lcm_sym345__; - int lcm_sym344__; - int lcm_sym343__; int lcm_sym342__; int lcm_sym341__; int lcm_sym340__; @@ -15734,16 +13974,12 @@ class expr_prop_fail6_model final : public model_base_crtp{}); M = std::numeric_limits::min(); current_statement__ = 111; - M = context__.vals_i("M")[(1 - 1)]; - current_statement__ = 111; stan::math::check_greater_or_equal(function__, "M", M, 0); current_statement__ = 112; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 112; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 112; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 0); current_statement__ = 113; @@ -15756,44 +13992,6 @@ class expr_prop_fail6_model final : public model_base_crtp(n_occasions)}); y = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 115; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - if (stan::math::logical_gte(n_occasions, 1)) { - lcm_sym337__ = stan::math::logical_gte(M, 1); - if (lcm_sym337__) { - stan::model::assign(y, - stan::model::rvalue(y_flat__, "y_flat__", - stan::model::index_uni(1)), "assigning variable y", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - for (int sym2__ = 2; sym2__ <= M; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - for (int sym1__ = 2; sym1__ <= n_occasions; ++sym1__) { - if (lcm_sym337__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(1), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - for (int sym2__ = 2; sym2__ <= M; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } else { - lcm_sym337__ = stan::math::logical_gte(M, 1); - } - } current_statement__ = 115; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 115; @@ -15806,7 +14004,7 @@ class expr_prop_fail6_model final : public model_base_crtp(M, std::numeric_limits::min()); - current_statement__ = 121; + lcm_sym337__ = stan::math::logical_gte(M, 1); if (lcm_sym337__) { current_statement__ = 120; stan::model::assign(first, @@ -15822,15 +14020,15 @@ class expr_prop_fail6_model final : public model_base_crtp::min(); - lcm_sym339__ = (n_occasions - 1); - phi_2dim__ = lcm_sym339__; - current_statement__ = 127; + lcm_sym338__ = (n_occasions - 1); + phi_2dim__ = lcm_sym338__; + current_statement__ = 126; stan::math::validate_non_negative_index("phi", "n_occasions - 1", - lcm_sym339__); - current_statement__ = 128; + lcm_sym338__); + current_statement__ = 127; stan::math::validate_non_negative_index("p", "M", M); - current_statement__ = 129; + current_statement__ = 128; stan::math::validate_non_negative_index("p", "n_occasions", n_occasions); - current_statement__ = 130; + current_statement__ = 129; stan::math::validate_non_negative_index("b", "n_occasions", n_occasions); - current_statement__ = 131; + current_statement__ = 130; stan::math::validate_non_negative_index("nu", "n_occasions", n_occasions); - current_statement__ = 132; + current_statement__ = 131; stan::math::validate_non_negative_index("chi", "M", M); - current_statement__ = 133; + current_statement__ = 132; stan::math::validate_non_negative_index("chi", "n_occasions", n_occasions); - current_statement__ = 134; + current_statement__ = 133; stan::math::validate_non_negative_index("N", "n_occasions", n_occasions); - current_statement__ = 135; + current_statement__ = 134; stan::math::validate_non_negative_index("B", "n_occasions", n_occasions); - current_statement__ = 136; + current_statement__ = 135; stan::math::validate_non_negative_index("z", "M", M); - current_statement__ = 137; + current_statement__ = 136; stan::math::validate_non_negative_index("z", "n_occasions", n_occasions); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -15994,30 +14192,23 @@ class expr_prop_fail6_model final : public model_base_crtp lcm_sym261__; - local_scalar_t__ mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ psi; - current_statement__ = 3; - psi = in__.template read_constrain_lub(0, - 1, lp__); - Eigen::Matrix beta; - current_statement__ = 4; - beta = in__.template read_constrain_lb< - Eigen::Matrix, jacobian__>(0, lp__, - n_occasions); - Eigen::Matrix epsilon; - current_statement__ = 5; - epsilon = in__.template read>(M); - local_scalar_t__ sigma; - current_statement__ = 6; - sigma = in__.template read_constrain_lub(0, 5, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ psi = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lb, + jacobian__>(0, lp__, n_occasions); + Eigen::Matrix epsilon = + in__.template read>(M); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, (n_occasions - 1), DUMMY_VAR__); @@ -16921,30 +15112,23 @@ class expr_prop_fail6_model final : public model_base_crtp lcm_sym185__; - local_scalar_t__ mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ psi; - current_statement__ = 3; - psi = in__.template read_constrain_lub(0, - 1, lp__); - Eigen::Matrix beta; - current_statement__ = 4; - beta = in__.template read_constrain_lb< - Eigen::Matrix, jacobian__>(0, lp__, - n_occasions); - Eigen::Matrix epsilon; - current_statement__ = 5; - epsilon = in__.template read>(M); - local_scalar_t__ sigma; - current_statement__ = 6; - sigma = in__.template read_constrain_lub(0, 5, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ psi = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lb, + jacobian__>(0, lp__, n_occasions); + Eigen::Matrix epsilon = + in__.template read>(M); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, (n_occasions - 1), DUMMY_VAR__); @@ -17843,30 +16027,23 @@ class expr_prop_fail6_model final : public model_base_crtp lcm_sym128__; - double mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - double psi; - current_statement__ = 3; - psi = in__.template read_constrain_lub(0, - 1, lp__); - Eigen::Matrix beta; - current_statement__ = 4; - beta = in__.template read_constrain_lb< - Eigen::Matrix, jacobian__>(0, lp__, - n_occasions); - Eigen::Matrix epsilon; - current_statement__ = 5; - epsilon = in__.template read>(M); - double sigma; - current_statement__ = 6; - sigma = in__.template read_constrain_lub(0, 5, lp__); + double mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + double psi = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lb, + jacobian__>(0, lp__, n_occasions); + Eigen::Matrix epsilon = + in__.template read>(M); + double sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, (n_occasions - 1), std::numeric_limits::quiet_NaN()); @@ -18645,58 +16822,58 @@ class expr_prop_fail6_model final : public model_base_crtp locations_array__ = " (in 'expr-prop-fail7.stan', line 40, column 18 to column 19)"}; class expr_prop_fail7_model final : public model_base_crtp { private: - int lcm_sym68__; - int lcm_sym67__; - double lcm_sym66__; - double lcm_sym65__; - double lcm_sym64__; - double lcm_sym63__; - int lcm_sym62__; - int lcm_sym61__; - int lcm_sym60__; - int lcm_sym59__; int K; int I; int J; @@ -18963,24 +17130,18 @@ class expr_prop_fail7_model final : public model_base_crtp{}); K = std::numeric_limits::min(); current_statement__ = 20; - K = context__.vals_i("K")[(1 - 1)]; - current_statement__ = 20; stan::math::check_greater_or_equal(function__, "K", K, 2); current_statement__ = 21; context__.validate_dims("data initialization", "I", "int", std::vector{}); I = std::numeric_limits::min(); current_statement__ = 21; - I = context__.vals_i("I")[(1 - 1)]; - current_statement__ = 21; stan::math::check_greater_or_equal(function__, "I", I, 1); current_statement__ = 22; context__.validate_dims("data initialization", "J", "int", std::vector{}); J = std::numeric_limits::min(); current_statement__ = 22; - J = context__.vals_i("J")[(1 - 1)]; - current_statement__ = 22; stan::math::check_greater_or_equal(function__, "J", J, 1); current_statement__ = 23; stan::math::validate_non_negative_index("y", "I", I); @@ -18991,42 +17152,6 @@ class expr_prop_fail7_model final : public model_base_crtp{static_cast(I), static_cast(J)}); y = std::vector>(I, std::vector(J, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 25; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - if (stan::math::logical_gte(J, 1)) { - lcm_sym59__ = stan::math::logical_gte(I, 1); - if (lcm_sym59__) { - stan::model::assign(y, - stan::model::rvalue(y_flat__, "y_flat__", - stan::model::index_uni(1)), "assigning variable y", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - for (int sym2__ = 2; sym2__ <= I; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - for (int sym1__ = 2; sym1__ <= J; ++sym1__) { - if (lcm_sym59__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(1), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - for (int sym2__ = 2; sym2__ <= I; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } - } current_statement__ = 25; stan::math::check_greater_or_equal(function__, "y", y, 1); current_statement__ = 25; @@ -19040,25 +17165,6 @@ class expr_prop_fail7_model final : public model_base_crtp::quiet_NaN()); new (&alpha) Eigen::Map>(alpha_data__.data(), K); - { - std::vector alpha_flat__; - current_statement__ = 27; - alpha_flat__ = context__.vals_r("alpha"); - pos__ = 1; - lcm_sym61__ = stan::math::logical_gte(K, 1); - if (lcm_sym61__) { - stan::model::assign(alpha, - stan::model::rvalue(alpha_flat__, "alpha_flat__", - stan::model::index_uni(1)), "assigning variable alpha", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= K; ++sym1__) { - stan::model::assign(alpha, alpha_flat__[(pos__ - 1)], - "assigning variable alpha", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 27; stan::math::check_greater_or_equal(function__, "alpha", alpha, 0); current_statement__ = 28; @@ -19071,41 +17177,6 @@ class expr_prop_fail7_model final : public model_base_crtp>(K, Eigen::Matrix::Constant(K, std::numeric_limits::quiet_NaN())); - { - std::vector beta_flat__; - current_statement__ = 30; - beta_flat__ = context__.vals_r("beta"); - pos__ = 1; - if (lcm_sym61__) { - if (lcm_sym61__) { - stan::model::assign(beta, - stan::model::rvalue(beta_flat__, "beta_flat__", - stan::model::index_uni(1)), "assigning variable beta", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - for (int sym2__ = 2; sym2__ <= K; ++sym2__) { - stan::model::assign(beta, beta_flat__[(pos__ - 1)], - "assigning variable beta", stan::model::index_uni(sym2__), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - for (int sym1__ = 2; sym1__ <= K; ++sym1__) { - if (lcm_sym61__) { - stan::model::assign(beta, beta_flat__[(pos__ - 1)], - "assigning variable beta", stan::model::index_uni(1), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - for (int sym2__ = 2; sym2__ <= K; ++sym2__) { - stan::model::assign(beta, beta_flat__[(pos__ - 1)], - "assigning variable beta", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } - } current_statement__ = 30; stan::math::check_greater_or_equal(function__, "beta", beta, 0); current_statement__ = 31; @@ -19170,19 +17241,13 @@ class expr_prop_fail7_model final : public model_base_crtp pi; - current_statement__ = 1; - pi = in__.template read_constrain_simplex< - Eigen::Matrix, jacobian__>(lp__, K); + Eigen::Matrix pi = + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, K); std::vector>> theta = - std::vector>>(J, - std::vector>(K, - Eigen::Matrix::Constant(K, DUMMY_VAR__))); - current_statement__ = 2; - theta = in__.template read_constrain_simplex< - std::vector< - std::vector>>, - jacobian__>(lp__, J, K, K); + in__.template read_constrain_simplex< + std::vector>>, + jacobian__>(lp__, J, K, K); { current_statement__ = 10; lp_accum__.add(stan::math::dirichlet_lpdf(pi, alpha)); @@ -19355,20 +17420,13 @@ class expr_prop_fail7_model final : public model_base_crtp> pi; - current_statement__ = 1; - pi = in__.template read_constrain_simplex< - stan::math::var_value>, - jacobian__>(lp__, K); + stan::math::var_value> pi = + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, K); std::vector>> theta = - std::vector>>(J, - std::vector>(K, - Eigen::Matrix::Constant(K, DUMMY_VAR__))); - current_statement__ = 2; - theta = in__.template read_constrain_simplex< - std::vector< - std::vector>>, - jacobian__>(lp__, J, K, K); + in__.template read_constrain_simplex< + std::vector>>, + jacobian__>(lp__, J, K, K); { current_statement__ = 10; lp_accum__.add(stan::math::dirichlet_lpdf(pi, alpha)); @@ -19563,20 +17621,13 @@ class expr_prop_fail7_model final : public model_base_crtp pi; - current_statement__ = 1; - pi = in__.template read_constrain_simplex< - Eigen::Matrix, jacobian__>(lp__, K); + Eigen::Matrix pi = + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, K); std::vector>> theta = - std::vector>>(J, - std::vector>(K, - Eigen::Matrix::Constant(K, - std::numeric_limits::quiet_NaN()))); - current_statement__ = 2; - theta = in__.template read_constrain_simplex< - std::vector< - std::vector>>, - jacobian__>(lp__, J, K, K); + in__.template read_constrain_simplex< + std::vector>>, + jacobian__>(lp__, J, K, K); out__.write(pi); lcm_sym10__ = stan::math::logical_gte(K, 1); if (lcm_sym10__) { @@ -19970,25 +18021,25 @@ class expr_prop_fail7_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym69__ = 1; sym69__ <= K; ++sym69__) { + for (int sym59__ = 1; sym59__ <= K; ++sym59__) { param_names__.emplace_back(std::string() + "pi" + '.' + - std::to_string(sym69__)); + std::to_string(sym59__)); } - for (int sym69__ = 1; sym69__ <= K; ++sym69__) { - for (int sym70__ = 1; sym70__ <= K; ++sym70__) { - for (int sym71__ = 1; sym71__ <= J; ++sym71__) { + for (int sym59__ = 1; sym59__ <= K; ++sym59__) { + for (int sym60__ = 1; sym60__ <= K; ++sym60__) { + for (int sym61__ = 1; sym61__ <= J; ++sym61__) { param_names__.emplace_back(std::string() + "theta" + '.' + - std::to_string(sym71__) + '.' + std::to_string(sym70__) + '.' + - std::to_string(sym69__)); + std::to_string(sym61__) + '.' + std::to_string(sym60__) + '.' + + std::to_string(sym59__)); } } } if (emit_transformed_parameters__) {} if (emit_generated_quantities__) { - for (int sym69__ = 1; sym69__ <= K; ++sym69__) { - for (int sym70__ = 1; sym70__ <= I; ++sym70__) { + for (int sym59__ = 1; sym59__ <= K; ++sym59__) { + for (int sym60__ = 1; sym60__ <= I; ++sym60__) { param_names__.emplace_back(std::string() + "log_Pr_z" + '.' + - std::to_string(sym70__) + '.' + std::to_string(sym69__)); + std::to_string(sym60__) + '.' + std::to_string(sym59__)); } } } @@ -19997,25 +18048,25 @@ class expr_prop_fail7_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym69__ = 1; sym69__ <= (K - 1); ++sym69__) { + for (int sym59__ = 1; sym59__ <= (K - 1); ++sym59__) { param_names__.emplace_back(std::string() + "pi" + '.' + - std::to_string(sym69__)); + std::to_string(sym59__)); } - for (int sym69__ = 1; sym69__ <= (K - 1); ++sym69__) { - for (int sym70__ = 1; sym70__ <= K; ++sym70__) { - for (int sym71__ = 1; sym71__ <= J; ++sym71__) { + for (int sym59__ = 1; sym59__ <= (K - 1); ++sym59__) { + for (int sym60__ = 1; sym60__ <= K; ++sym60__) { + for (int sym61__ = 1; sym61__ <= J; ++sym61__) { param_names__.emplace_back(std::string() + "theta" + '.' + - std::to_string(sym71__) + '.' + std::to_string(sym70__) + '.' + - std::to_string(sym69__)); + std::to_string(sym61__) + '.' + std::to_string(sym60__) + '.' + + std::to_string(sym59__)); } } } if (emit_transformed_parameters__) {} if (emit_generated_quantities__) { - for (int sym69__ = 1; sym69__ <= K; ++sym69__) { - for (int sym70__ = 1; sym70__ <= I; ++sym70__) { + for (int sym59__ = 1; sym59__ <= K; ++sym59__) { + for (int sym60__ = 1; sym60__ <= I; ++sym60__) { param_names__.emplace_back(std::string() + "log_Pr_z" + '.' + - std::to_string(sym70__) + '.' + std::to_string(sym69__)); + std::to_string(sym60__) + '.' + std::to_string(sym59__)); } } } @@ -20157,10 +18208,6 @@ static constexpr std::array locations_array__ = " (in 'expr-prop-fail8.stan', line 22, column 9 to column 10)"}; class expr_prop_fail8_model final : public model_base_crtp { private: - double lcm_sym20__; - double lcm_sym19__; - int lcm_sym18__; - int lcm_sym17__; int N; int N_edges; std::vector node1; @@ -20195,16 +18242,12 @@ class expr_prop_fail8_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 12; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 12; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 13; context__.validate_dims("data initialization", "N_edges", "int", std::vector{}); N_edges = std::numeric_limits::min(); current_statement__ = 13; - N_edges = context__.vals_i("N_edges")[(1 - 1)]; - current_statement__ = 13; stan::math::check_greater_or_equal(function__, "N_edges", N_edges, 0); current_statement__ = 14; stan::math::validate_non_negative_index("node1", "N_edges", N_edges); @@ -20213,8 +18256,6 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N_edges)}); node1 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 15; - node1 = context__.vals_i("node1"); - current_statement__ = 15; stan::math::check_greater_or_equal(function__, "node1", node1, 1); current_statement__ = 15; stan::math::check_less_or_equal(function__, "node1", node1, N); @@ -20225,8 +18266,6 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N_edges)}); node2 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 17; - node2 = context__.vals_i("node2"); - current_statement__ = 17; stan::math::check_greater_or_equal(function__, "node2", node2, 1); current_statement__ = 17; stan::math::check_less_or_equal(function__, "node2", node2, N); @@ -20237,8 +18276,6 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 19; - y = context__.vals_i("y"); - current_statement__ = 19; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 20; stan::math::validate_non_negative_index("x", "N", N); @@ -20248,24 +18285,6 @@ class expr_prop_fail8_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&x) Eigen::Map>(x_data__.data(), N); - { - std::vector x_flat__; - current_statement__ = 21; - x_flat__ = context__.vals_r("x"); - pos__ = 1; - if (stan::math::logical_gte(N, 1)) { - stan::model::assign(x, - stan::model::rvalue(x_flat__, "x_flat__", - stan::model::index_uni(1)), "assigning variable x", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= N; ++sym1__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 22; stan::math::validate_non_negative_index("theta_std", "N", N); current_statement__ = 23; @@ -20311,27 +18330,18 @@ class expr_prop_fail8_model final : public model_base_crtp lcm_sym14__; - local_scalar_t__ beta0; - current_statement__ = 1; - beta0 = in__.template read(); - local_scalar_t__ beta1; - current_statement__ = 2; - beta1 = in__.template read(); - local_scalar_t__ tau_theta; - current_statement__ = 3; - tau_theta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ tau_phi; - current_statement__ = 4; - tau_phi = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_std; - current_statement__ = 5; - theta_std = in__.template read>(N); - Eigen::Matrix phi_std_raw; - current_statement__ = 6; - phi_std_raw = in__.template read< - Eigen::Matrix>(N); + local_scalar_t__ beta0 = in__.template read(); + local_scalar_t__ beta1 = in__.template read(); + local_scalar_t__ tau_theta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ tau_phi = + in__.template read_constrain_lb(0, + lp__); + Eigen::Matrix theta_std = + in__.template read>(N); + Eigen::Matrix phi_std_raw = + in__.template read>(N); local_scalar_t__ sigma_phi = DUMMY_VAR__; lcm_sym16__ = stan::math::inv_sqrt(tau_phi); sigma_phi = lcm_sym16__; @@ -20386,28 +18396,18 @@ class expr_prop_fail8_model final : public model_base_crtp lcm_sym11__; - local_scalar_t__ beta0; - current_statement__ = 1; - beta0 = in__.template read(); - local_scalar_t__ beta1; - current_statement__ = 2; - beta1 = in__.template read(); - local_scalar_t__ tau_theta; - current_statement__ = 3; - tau_theta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ tau_phi; - current_statement__ = 4; - tau_phi = in__.template read_constrain_lb(0, lp__); - stan::math::var_value> theta_std; - current_statement__ = 5; - theta_std = in__.template read< - stan::math::var_value>>(N); - stan::math::var_value> phi_std_raw; - current_statement__ = 6; - phi_std_raw = in__.template read< - stan::math::var_value>>(N); + local_scalar_t__ beta0 = in__.template read(); + local_scalar_t__ beta1 = in__.template read(); + local_scalar_t__ tau_theta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ tau_phi = + in__.template read_constrain_lb(0, + lp__); + stan::math::var_value> theta_std = + in__.template read>(N); + stan::math::var_value> phi_std_raw = + in__.template read>(N); local_scalar_t__ sigma_phi = DUMMY_VAR__; lcm_sym13__ = stan::math::inv_sqrt(tau_phi); sigma_phi = lcm_sym13__; @@ -20476,27 +18476,18 @@ class expr_prop_fail8_model final : public model_base_crtp lcm_sym9__; int lcm_sym8__; int lcm_sym7__; - double beta0; - current_statement__ = 1; - beta0 = in__.template read(); - double beta1; - current_statement__ = 2; - beta1 = in__.template read(); - double tau_theta; - current_statement__ = 3; - tau_theta = in__.template read_constrain_lb(0, lp__); - double tau_phi; - current_statement__ = 4; - tau_phi = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_std; - current_statement__ = 5; - theta_std = in__.template read>(N); - Eigen::Matrix phi_std_raw; - current_statement__ = 6; - phi_std_raw = in__.template read< - Eigen::Matrix>(N); + double beta0 = in__.template read(); + double beta1 = in__.template read(); + double tau_theta = + in__.template read_constrain_lb(0, + lp__); + double tau_phi = + in__.template read_constrain_lb(0, + lp__); + Eigen::Matrix theta_std = + in__.template read>(N); + Eigen::Matrix phi_std_raw = + in__.template read>(N); double sigma_phi = std::numeric_limits::quiet_NaN(); Eigen::Matrix phi = Eigen::Matrix::Constant(N, @@ -20725,19 +18716,19 @@ class expr_prop_fail8_model final : public model_base_crtp locations_array__ = +static constexpr std::array locations_array__ = {" (found before start of program)", " (in 'fails-test.stan', line 68, column 2 to column 32)", " (in 'fails-test.stan', line 69, column 2 to column 41)", @@ -20924,7 +18915,6 @@ static constexpr std::array locations_array__ = " (in 'fails-test.stan', line 59, column 8 to column 12)", " (in 'fails-test.stan', line 59, column 2 to column 51)", " (in 'fails-test.stan', line 63, column 4 to column 35)", - " (in 'fails-test.stan', line 62, column 2 to line 63, column 35)", " (in 'fails-test.stan', line 65, column 4 to column 33)", " (in 'fails-test.stan', line 64, column 2 to line 65, column 33)", " (in 'fails-test.stan', line 69, column 27 to column 34)", @@ -20986,20 +18976,20 @@ int first_capture(const T0__& y_i, std::ostream* pstream__) { { lcm_sym23__ = stan::math::size(y_i); if (stan::math::logical_gte(lcm_sym23__, 1)) { - current_statement__ = 58; + current_statement__ = 57; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(1))) { - current_statement__ = 57; + current_statement__ = 56; return 1; } for (int k = 2; k <= lcm_sym23__; ++k) { - current_statement__ = 58; + current_statement__ = 57; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(k))) { - current_statement__ = 57; + current_statement__ = 56; return k; } } } - current_statement__ = 59; + current_statement__ = 58; return 0; } } catch (const std::exception& e) { @@ -21033,22 +19023,22 @@ int last_capture(const T0__& y_i, std::ostream* pstream__) { if (stan::math::logical_gte(lcm_sym29__, 0)) { int k = std::numeric_limits::min(); lcm_sym28__ = (stan::math::size(y_i) - 0); - current_statement__ = 63; + current_statement__ = 62; if (y_i[(lcm_sym28__ - 1)]) { - current_statement__ = 62; + current_statement__ = 61; return lcm_sym28__; } for (int k_rev = 1; k_rev <= lcm_sym29__; ++k_rev) { int k = std::numeric_limits::min(); lcm_sym27__ = (stan::math::size(y_i) - k_rev); - current_statement__ = 63; + current_statement__ = 62; if (y_i[(lcm_sym27__ - 1)]) { - current_statement__ = 62; + current_statement__ = 61; return lcm_sym27__; } } } - current_statement__ = 65; + current_statement__ = 64; return 0; } } catch (const std::exception& e) { @@ -21196,13 +19186,6 @@ prob_uncaptured(const T0__& nind, const T1__& n_occasions, const T2__& } class fails_test_model final : public model_base_crtp { private: - int lcm_sym171__; - int lcm_sym170__; - int lcm_sym169__; - int lcm_sym168__; - int lcm_sym167__; - int lcm_sym166__; - int lcm_sym165__; int lcm_sym164__; int lcm_sym163__; int lcm_sym162__; @@ -21244,16 +19227,12 @@ class fails_test_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 33; - nind = context__.vals_i("nind")[(1 - 1)]; - current_statement__ = 33; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 34; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 34; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 34; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 35; @@ -21266,44 +19245,6 @@ class fails_test_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 37; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - if (stan::math::logical_gte(n_occasions, 1)) { - lcm_sym160__ = stan::math::logical_gte(nind, 1); - if (lcm_sym160__) { - stan::model::assign(y, - stan::model::rvalue(y_flat__, "y_flat__", - stan::model::index_uni(1)), "assigning variable y", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - for (int sym1__ = 2; sym1__ <= n_occasions; ++sym1__) { - if (lcm_sym160__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(1), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } else { - lcm_sym160__ = stan::math::logical_gte(nind, 1); - } - } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 37; @@ -21313,55 +19254,18 @@ class fails_test_model final : public model_base_crtp { std::vector{}); max_age = std::numeric_limits::min(); current_statement__ = 38; - max_age = context__.vals_i("max_age")[(1 - 1)]; - current_statement__ = 38; stan::math::check_greater_or_equal(function__, "max_age", max_age, 1); current_statement__ = 39; stan::math::validate_non_negative_index("x", "nind", nind); - lcm_sym162__ = (n_occasions - 1); + lcm_sym160__ = (n_occasions - 1); stan::math::validate_non_negative_index("x", "n_occasions - 1", - lcm_sym162__); + lcm_sym160__); current_statement__ = 40; context__.validate_dims("data initialization", "x", "int", std::vector{static_cast(nind), - static_cast(lcm_sym162__)}); + static_cast(lcm_sym160__)}); x = std::vector>(nind, - std::vector(lcm_sym162__, std::numeric_limits::min())); - { - std::vector x_flat__; - current_statement__ = 40; - x_flat__ = context__.vals_i("x"); - pos__ = 1; - if (stan::math::logical_gte(lcm_sym162__, 1)) { - if (lcm_sym160__) { - stan::model::assign(x, - stan::model::rvalue(x_flat__, "x_flat__", - stan::model::index_uni(1)), "assigning variable x", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym2__), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - for (int sym1__ = 2; sym1__ <= lcm_sym162__; ++sym1__) { - if (lcm_sym160__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(1), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } - } + std::vector(lcm_sym160__, std::numeric_limits::min())); current_statement__ = 40; stan::math::check_greater_or_equal(function__, "x", x, 0); current_statement__ = 40; @@ -21369,7 +19273,7 @@ class fails_test_model final : public model_base_crtp { current_statement__ = 41; n_occ_minus_1 = std::numeric_limits::min(); current_statement__ = 41; - n_occ_minus_1 = lcm_sym162__; + n_occ_minus_1 = lcm_sym160__; current_statement__ = 42; stan::math::validate_non_negative_index("first", "nind", nind); current_statement__ = 43; @@ -21378,8 +19282,8 @@ class fails_test_model final : public model_base_crtp { stan::math::validate_non_negative_index("last", "nind", nind); current_statement__ = 45; last = std::vector(nind, std::numeric_limits::min()); - current_statement__ = 47; - if (lcm_sym160__) { + lcm_sym159__ = stan::math::logical_gte(nind, 1); + if (lcm_sym159__) { current_statement__ = 46; stan::model::assign(first, first_capture( @@ -21394,15 +19298,15 @@ class fails_test_model final : public model_base_crtp { stan::model::index_uni(i)); } } - current_statement__ = 49; - if (lcm_sym160__) { - current_statement__ = 48; + current_statement__ = 48; + if (lcm_sym159__) { + current_statement__ = 47; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(1)), pstream__), "assigning variable last", stan::model::index_uni(1)); for (int i = 2; i <= nind; ++i) { - current_statement__ = 48; + current_statement__ = 47; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(i)), @@ -21418,21 +19322,21 @@ class fails_test_model final : public model_base_crtp { stan::math::check_greater_or_equal(function__, "last", last, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "last", last, n_occasions); - current_statement__ = 50; + current_statement__ = 49; stan::math::validate_non_negative_index("beta", "max_age", max_age); - current_statement__ = 51; + current_statement__ = 50; stan::math::validate_non_negative_index("phi", "nind", nind); - current_statement__ = 52; + current_statement__ = 51; stan::math::validate_non_negative_index("phi", "n_occ_minus_1", - lcm_sym162__); - current_statement__ = 53; + lcm_sym160__); + current_statement__ = 52; stan::math::validate_non_negative_index("p", "nind", nind); - current_statement__ = 54; + current_statement__ = 53; stan::math::validate_non_negative_index("p", "n_occ_minus_1", - lcm_sym162__); - current_statement__ = 55; + lcm_sym160__); + current_statement__ = 54; stan::math::validate_non_negative_index("chi", "nind", nind); - current_statement__ = 56; + current_statement__ = 55; stan::math::validate_non_negative_index("chi", "n_occasions", n_occasions); } catch (const std::exception& e) { @@ -21514,15 +19418,13 @@ class fails_test_model final : public model_base_crtp { int lcm_sym118__; int lcm_sym117__; int lcm_sym116__; - local_scalar_t__ mean_p; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, (n_occasions - 1), DUMMY_VAR__); @@ -21948,15 +19850,13 @@ class fails_test_model final : public model_base_crtp { int lcm_sym75__; int lcm_sym74__; int lcm_sym73__; - local_scalar_t__ mean_p; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, (n_occasions - 1), DUMMY_VAR__); @@ -22376,15 +20276,13 @@ class fails_test_model final : public model_base_crtp { int lcm_sym48__; int lcm_sym47__; int lcm_sym46__; - double mean_p; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, (n_occasions - 1), std::numeric_limits::quiet_NaN()); @@ -22777,27 +20675,27 @@ class fails_test_model final : public model_base_crtp { emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "mean_p"); - for (int sym172__ = 1; sym172__ <= max_age; ++sym172__) { + for (int sym165__ = 1; sym165__ <= max_age; ++sym165__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym172__)); + std::to_string(sym165__)); } if (emit_transformed_parameters__) { - for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { - for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { + for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { + for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym173__) + '.' + std::to_string(sym172__)); + std::to_string(sym166__) + '.' + std::to_string(sym165__)); } } - for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { - for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { + for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { + for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym173__) + '.' + std::to_string(sym172__)); + std::to_string(sym166__) + '.' + std::to_string(sym165__)); } } - for (int sym172__ = 1; sym172__ <= n_occasions; ++sym172__) { - for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { + for (int sym165__ = 1; sym165__ <= n_occasions; ++sym165__) { + for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym173__) + '.' + std::to_string(sym172__)); + std::to_string(sym166__) + '.' + std::to_string(sym165__)); } } } @@ -22808,27 +20706,27 @@ class fails_test_model final : public model_base_crtp { emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "mean_p"); - for (int sym172__ = 1; sym172__ <= max_age; ++sym172__) { + for (int sym165__ = 1; sym165__ <= max_age; ++sym165__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym172__)); + std::to_string(sym165__)); } if (emit_transformed_parameters__) { - for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { - for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { + for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { + for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym173__) + '.' + std::to_string(sym172__)); + std::to_string(sym166__) + '.' + std::to_string(sym165__)); } } - for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { - for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { + for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { + for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym173__) + '.' + std::to_string(sym172__)); + std::to_string(sym166__) + '.' + std::to_string(sym165__)); } } - for (int sym172__ = 1; sym172__ <= n_occasions; ++sym172__) { - for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { + for (int sym165__ = 1; sym165__ <= n_occasions; ++sym165__) { + for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym173__) + '.' + std::to_string(sym172__)); + std::to_string(sym166__) + '.' + std::to_string(sym165__)); } } } @@ -23014,9 +20912,6 @@ outer_lpdf(const T0__& phi_arg__, std::ostream* pstream__) { } class function_in_function_inline_model final : public model_base_crtp { private: - double lcm_sym23__; - double lcm_sym22__; - int lcm_sym21__; Eigen::Matrix phi_data__; Eigen::Map> phi{nullptr, 0}; public: @@ -23049,64 +20944,6 @@ class function_in_function_inline_model final : public model_base_crtp::quiet_NaN()); new (&phi) Eigen::Map>(phi_data__.data(), 10); - { - std::vector phi_flat__; - current_statement__ = 3; - phi_flat__ = context__.vals_r("phi"); - pos__ = 1; - { - stan::model::assign(phi, - stan::model::rvalue(phi_flat__, "phi_flat__", - stan::model::index_uni(1)), "assigning variable phi", - stan::model::index_uni(1)); - pos__ = 2; - { - stan::model::assign(phi, phi_flat__[(pos__ - 1)], - "assigning variable phi", stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(phi, phi_flat__[(pos__ - 1)], - "assigning variable phi", stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(phi, phi_flat__[(pos__ - 1)], - "assigning variable phi", stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(phi, phi_flat__[(pos__ - 1)], - "assigning variable phi", stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(phi, phi_flat__[(pos__ - 1)], - "assigning variable phi", stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(phi, phi_flat__[(pos__ - 1)], - "assigning variable phi", stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(phi, phi_flat__[(pos__ - 1)], - "assigning variable phi", stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(phi, phi_flat__[(pos__ - 1)], - "assigning variable phi", stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(phi, phi_flat__[(pos__ - 1)], - "assigning variable phi", stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -23551,8 +21388,6 @@ class function_in_function_loops_model final : public model_base_crtp{}); N = std::numeric_limits::min(); - current_statement__ = 12; - N = context__.vals_i("N")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -24400,15 +22235,11 @@ class initialize_SoA_model final : public model_base_crtp double lcm_sym19__; double lcm_sym18__; double lcm_sym17__; - Eigen::Matrix y; - current_statement__ = 1; - y = in__.template read>(3); + Eigen::Matrix y = + in__.template read>(3); std::vector> arr_vec = - std::vector>(3, - Eigen::Matrix::Constant(4, DUMMY_VAR__)); - current_statement__ = 2; - arr_vec = in__.template read< - std::vector>>(3, 4); + in__.template read< + std::vector>>(3, 4); Eigen::Matrix x = Eigen::Matrix::Constant(3, DUMMY_VAR__); stan::model::assign(lcm_sym20__, @@ -24471,20 +22302,12 @@ class initialize_SoA_model final : public model_base_crtp double lcm_sym15__; double lcm_sym14__; double lcm_sym13__; - stan::math::var_value> y; - current_statement__ = 1; - y = in__.template read< - stan::math::var_value>>(3); + stan::math::var_value> y = + in__.template read>(3); std::vector>> arr_vec = - std::vector>>(3, - stan::math::var_value>(Eigen::Matrix::Constant(4, - std::numeric_limits::quiet_NaN( - )))); - current_statement__ = 2; - arr_vec = in__.template read< - std::vector< - stan::math::var_value>>>(3, 4); + in__.template read< + std::vector>>(3, 4); stan::math::var_value> x = stan::math::var_value>(Eigen::Matrix::Constant(3, std::numeric_limits::quiet_NaN( @@ -24563,16 +22386,11 @@ class initialize_SoA_model final : public model_base_crtp double lcm_sym8__; int lcm_sym7__; int lcm_sym6__; - Eigen::Matrix y; - current_statement__ = 1; - y = in__.template read>(3); + Eigen::Matrix y = + in__.template read>(3); std::vector> arr_vec = - std::vector>(3, - Eigen::Matrix::Constant(4, - std::numeric_limits::quiet_NaN())); - current_statement__ = 2; - arr_vec = in__.template read< - std::vector>>(3, 4); + in__.template read< + std::vector>>(3, 4); Eigen::Matrix x = Eigen::Matrix::Constant(3, std::numeric_limits::quiet_NaN()); @@ -25153,14 +22971,10 @@ class inline_functions_varmat_model final : public model_base_crtp p_single_ret_vec; - current_statement__ = 1; - p_single_ret_vec = in__.template read< - Eigen::Matrix>(5); - Eigen::Matrix p_multi_ret_vec; - current_statement__ = 2; - p_multi_ret_vec = in__.template read< - Eigen::Matrix>(5); + Eigen::Matrix p_single_ret_vec = + in__.template read>(5); + Eigen::Matrix p_multi_ret_vec = + in__.template read>(5); Eigen::Matrix tp_single_ret_vec = Eigen::Matrix::Constant(5, DUMMY_VAR__); Eigen::Matrix inline_single_ret_fun_return_sym13__; @@ -25225,14 +23039,10 @@ class inline_functions_varmat_model final : public model_base_crtp> p_single_ret_vec; - current_statement__ = 1; - p_single_ret_vec = in__.template read< - stan::math::var_value>>(5); - stan::math::var_value> p_multi_ret_vec; - current_statement__ = 2; - p_multi_ret_vec = in__.template read< - stan::math::var_value>>(5); + stan::math::var_value> p_single_ret_vec = + in__.template read>(5); + stan::math::var_value> p_multi_ret_vec = + in__.template read>(5); stan::math::var_value> tp_single_ret_vec = stan::math::var_value>(Eigen::Matrix::Constant(5, std::numeric_limits::quiet_NaN( @@ -25316,14 +23126,10 @@ class inline_functions_varmat_model final : public model_base_crtp p_single_ret_vec; - current_statement__ = 1; - p_single_ret_vec = in__.template read< - Eigen::Matrix>(5); - Eigen::Matrix p_multi_ret_vec; - current_statement__ = 2; - p_multi_ret_vec = in__.template read< - Eigen::Matrix>(5); + Eigen::Matrix p_single_ret_vec = + in__.template read>(5); + Eigen::Matrix p_multi_ret_vec = + in__.template read>(5); Eigen::Matrix tp_single_ret_vec = Eigen::Matrix::Constant(5, std::numeric_limits::quiet_NaN()); @@ -25830,9 +23636,7 @@ class inline_tdata_model final : public model_base_crtp { (void) function__; try { double lcm_sym5__; - local_scalar_t__ alpha; - current_statement__ = 1; - alpha = in__.template read(); + local_scalar_t__ alpha = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf( @@ -25869,9 +23673,7 @@ class inline_tdata_model final : public model_base_crtp { (void) function__; try { double lcm_sym4__; - local_scalar_t__ alpha; - current_statement__ = 1; - alpha = in__.template read(); + local_scalar_t__ alpha = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf( @@ -25920,9 +23722,7 @@ class inline_tdata_model final : public model_base_crtp { try { int lcm_sym3__; int lcm_sym2__; - double alpha; - current_statement__ = 1; - alpha = in__.template read(); + double alpha = in__.template read(); out__.write(alpha); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -26203,8 +24003,6 @@ class inliner_same_names_model final : public model_base_crtp{}); N = std::numeric_limits::min(); - current_statement__ = 6; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 7; stan::math::validate_non_negative_index("R", "N", N); current_statement__ = 8; @@ -26586,7 +24384,7 @@ namespace inlining_fail2_model_namespace { using stan::model::model_base_crtp; using namespace stan::math; stan::math::profile_map profiles__; -static constexpr std::array locations_array__ = +static constexpr std::array locations_array__ = {" (found before start of program)", " (in 'inlining-fail2.stan', line 175, column 2 to column 34)", " (in 'inlining-fail2.stan', line 176, column 2 to column 32)", @@ -26605,7 +24403,6 @@ static constexpr std::array locations_array__ = " (in 'inlining-fail2.stan', line 214, column 2 to column 30)", " (in 'inlining-fail2.stan', line 191, column 6 to column 58)", " (in 'inlining-fail2.stan', line 190, column 4 to line 191, column 58)", - " (in 'inlining-fail2.stan', line 189, column 2 to line 191, column 58)", " (in 'inlining-fail2.stan', line 49, column 4 to column 24)", " (in 'inlining-fail2.stan', line 50, column 4 to column 30)", " (in 'inlining-fail2.stan', line 51, column 11 to column 16)", @@ -26707,7 +24504,6 @@ static constexpr std::array locations_array__ = " (in 'inlining-fail2.stan', line 167, column 8 to column 9)", " (in 'inlining-fail2.stan', line 167, column 2 to column 48)", " (in 'inlining-fail2.stan', line 170, column 4 to column 35)", - " (in 'inlining-fail2.stan', line 169, column 2 to line 170, column 35)", " (in 'inlining-fail2.stan', line 172, column 4 to column 33)", " (in 'inlining-fail2.stan', line 171, column 2 to line 172, column 33)", " (in 'inlining-fail2.stan', line 177, column 27 to column 38)", @@ -26801,20 +24597,20 @@ int first_capture(const T0__& y_i, std::ostream* pstream__) { { lcm_sym55__ = stan::math::size(y_i); if (stan::math::logical_gte(lcm_sym55__, 1)) { - current_statement__ = 63; + current_statement__ = 62; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(1))) { - current_statement__ = 62; + current_statement__ = 61; return 1; } for (int k = 2; k <= lcm_sym55__; ++k) { - current_statement__ = 63; + current_statement__ = 62; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(k))) { - current_statement__ = 62; + current_statement__ = 61; return k; } } } - current_statement__ = 136; + current_statement__ = 134; return 0; } } catch (const std::exception& e) { @@ -26848,22 +24644,22 @@ int last_capture(const T0__& y_i, std::ostream* pstream__) { if (stan::math::logical_gte(lcm_sym61__, 0)) { int k = std::numeric_limits::min(); lcm_sym60__ = (stan::math::size(y_i) - 0); - current_statement__ = 139; + current_statement__ = 137; if (y_i[(lcm_sym60__ - 1)]) { - current_statement__ = 138; + current_statement__ = 136; return lcm_sym60__; } for (int k_rev = 1; k_rev <= lcm_sym61__; ++k_rev) { int k = std::numeric_limits::min(); lcm_sym59__ = (stan::math::size(y_i) - k_rev); - current_statement__ = 139; + current_statement__ = 137; if (y_i[(lcm_sym59__ - 1)]) { - current_statement__ = 138; + current_statement__ = 136; return lcm_sym59__; } } } - current_statement__ = 141; + current_statement__ = 139; return 0; } } catch (const std::exception& e) { @@ -26912,17 +24708,17 @@ prob_uncaptured(const T0__& p_arg__, const T1__& phi_arg__, std::ostream* int n_occasions = std::numeric_limits::min(); lcm_sym70__ = stan::math::cols(p); n_occasions = lcm_sym70__; - current_statement__ = 21; + current_statement__ = 20; stan::math::validate_non_negative_index("chi", "n_ind", lcm_sym75__); - current_statement__ = 22; + current_statement__ = 21; stan::math::validate_non_negative_index("chi", "n_occasions", lcm_sym70__); Eigen::Matrix chi = Eigen::Matrix::Constant(lcm_sym75__, lcm_sym70__, DUMMY_VAR__); - current_statement__ = 31; + current_statement__ = 30; if (stan::math::logical_gte(lcm_sym75__, 1)) { - current_statement__ = 24; + current_statement__ = 23; stan::model::assign(chi, 1.0, "assigning variable chi", stan::model::index_uni(1), stan::model::index_uni(lcm_sym70__)); lcm_sym67__ = (lcm_sym70__ - 1); @@ -26931,7 +24727,7 @@ prob_uncaptured(const T0__& p_arg__, const T1__& phi_arg__, std::ostream* int t_curr = std::numeric_limits::min(); int t_next = std::numeric_limits::min(); lcm_sym69__ = (lcm_sym67__ + 1); - current_statement__ = 27; + current_statement__ = 26; stan::model::assign(chi, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), @@ -26949,7 +24745,7 @@ prob_uncaptured(const T0__& p_arg__, const T1__& phi_arg__, std::ostream* lcm_sym66__ = (lcm_sym70__ - t); int t_next = std::numeric_limits::min(); lcm_sym68__ = (lcm_sym66__ + 1); - current_statement__ = 27; + current_statement__ = 26; stan::model::assign(chi, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), @@ -26965,15 +24761,15 @@ prob_uncaptured(const T0__& p_arg__, const T1__& phi_arg__, std::ostream* } } for (int i = 2; i <= lcm_sym75__; ++i) { - current_statement__ = 24; + current_statement__ = 23; stan::model::assign(chi, 1.0, "assigning variable chi", stan::model::index_uni(i), stan::model::index_uni(lcm_sym70__)); - current_statement__ = 29; + current_statement__ = 28; if (lcm_sym64__) { int t_curr = std::numeric_limits::min(); int t_next = std::numeric_limits::min(); lcm_sym69__ = (lcm_sym67__ + 1); - current_statement__ = 27; + current_statement__ = 26; stan::model::assign(chi, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(i), @@ -26991,7 +24787,7 @@ prob_uncaptured(const T0__& p_arg__, const T1__& phi_arg__, std::ostream* lcm_sym66__ = (lcm_sym70__ - t); int t_next = std::numeric_limits::min(); lcm_sym68__ = (lcm_sym66__ + 1); - current_statement__ = 27; + current_statement__ = 26; stan::model::assign(chi, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(i), @@ -27008,7 +24804,7 @@ prob_uncaptured(const T0__& p_arg__, const T1__& phi_arg__, std::ostream* } } } - current_statement__ = 32; + current_statement__ = 31; return chi; } } catch (const std::exception& e) { @@ -27115,7 +24911,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, lcm_sym125__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", stan::model::index_uni(2)); n_occasions = lcm_sym125__; - current_statement__ = 81; + current_statement__ = 80; stan::math::validate_non_negative_index("qgamma", "n_occasions", lcm_sym125__); Eigen::Matrix qgamma = @@ -27123,9 +24919,9 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, std::numeric_limits::quiet_NaN()); stan::model::assign(lcm_sym84__, stan::math::subtract(1.0, gamma), "assigning variable lcm_sym84__"); - current_statement__ = 108; + current_statement__ = 107; if (stan::math::logical_gte(lcm_sym124__, 1)) { - current_statement__ = 83; + current_statement__ = 82; stan::math::validate_non_negative_index("qp", "n_occasions", lcm_sym125__); Eigen::Matrix qp = @@ -27139,9 +24935,9 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, lcm_sym121__ = stan::model::rvalue(first, "first", stan::model::index_uni(1)); if (lcm_sym121__) { - current_statement__ = 101; + current_statement__ = 100; if (stan::math::logical_eq(lcm_sym121__, 1)) { - current_statement__ = 99; + current_statement__ = 98; lp_accum__.add(stan::math::bernoulli_lpmf(1, (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)) * @@ -27149,7 +24945,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(1), stan::model::index_uni(1))))); } else { - current_statement__ = 92; + current_statement__ = 91; stan::math::validate_non_negative_index("lp", "first[i]", lcm_sym121__); Eigen::Matrix lp = @@ -27172,9 +24968,9 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::rvalue(p, "p", stan::model::index_uni(1), stan::model::index_uni(lcm_sym121__)))), "assigning variable lp", stan::model::index_uni(1)); - current_statement__ = 95; + current_statement__ = 94; if (stan::math::logical_gte(lcm_sym88__, 2)) { - current_statement__ = 94; + current_statement__ = 93; stan::model::assign(lp, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27197,7 +24993,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(lcm_sym121__)))), "assigning variable lp", stan::model::index_uni(2)); for (int t = 3; t <= lcm_sym88__; ++t) { - current_statement__ = 94; + current_statement__ = 93; stan::model::assign(lp, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27221,7 +25017,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, "assigning variable lp", stan::model::index_uni(t)); } } - current_statement__ = 96; + current_statement__ = 95; stan::model::assign(lp, ((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27233,13 +25029,13 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::rvalue(p, "p", stan::model::index_uni(1), stan::model::index_uni(lcm_sym121__)))), "assigning variable lp", stan::model::index_uni(lcm_sym121__)); - current_statement__ = 97; + current_statement__ = 96; lp_accum__.add(stan::math::log_sum_exp(lp)); } lcm_sym123__ = stan::model::rvalue(last, "last", stan::model::index_uni(1)); if (stan::math::logical_gte(lcm_sym123__, (lcm_sym121__ + 1))) { - current_statement__ = 102; + current_statement__ = 101; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(1), @@ -27254,12 +25050,12 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(1), stan::model::index_uni((lcm_sym121__ + 1))))); for (int t = lcm_sym104__; t <= lcm_sym123__; ++t) { - current_statement__ = 102; + current_statement__ = 101; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(1), stan::model::index_uni((t - 1))))); - current_statement__ = 103; + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni(1), @@ -27269,7 +25065,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(t)))); } } - current_statement__ = 105; + current_statement__ = 104; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(chi, "chi", stan::model::index_uni(1), @@ -27281,7 +25077,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, Eigen::Matrix lp = Eigen::Matrix::Constant(lcm_sym105__, DUMMY_VAR__); - current_statement__ = 86; + current_statement__ = 85; stan::model::assign(lp, ((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) @@ -27293,9 +25089,9 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::rvalue(chi, "chi", stan::model::index_uni(1), stan::model::index_uni(1)))), "assigning variable lp", stan::model::index_uni(1)); - current_statement__ = 88; + current_statement__ = 87; if (stan::math::logical_gte(lcm_sym125__, 2)) { - current_statement__ = 87; + current_statement__ = 86; stan::model::assign(lp, (((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27312,7 +25108,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(2)))), "assigning variable lp", stan::model::index_uni(2)); for (int t = 3; t <= lcm_sym125__; ++t) { - current_statement__ = 87; + current_statement__ = 86; stan::model::assign(lp, (((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27330,16 +25126,16 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(t)); } } - current_statement__ = 89; + current_statement__ = 88; stan::model::assign(lp, stan::math::bernoulli_lpmf(1, stan::math::prod(lcm_sym84__)), "assigning variable lp", stan::model::index_uni(lcm_sym105__)); - current_statement__ = 90; + current_statement__ = 89; lp_accum__.add(stan::math::log_sum_exp(lp)); } for (int i = 2; i <= lcm_sym124__; ++i) { - current_statement__ = 83; + current_statement__ = 82; stan::math::validate_non_negative_index("qp", "n_occasions", lcm_sym125__); Eigen::Matrix qp = @@ -27353,9 +25149,9 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, lcm_sym120__ = stan::model::rvalue(first, "first", stan::model::index_uni(i)); if (lcm_sym120__) { - current_statement__ = 101; + current_statement__ = 100; if (stan::math::logical_eq(lcm_sym120__, 1)) { - current_statement__ = 99; + current_statement__ = 98; lp_accum__.add(stan::math::bernoulli_lpmf(1, (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)) * @@ -27363,7 +25159,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(i), stan::model::index_uni(1))))); } else { - current_statement__ = 92; + current_statement__ = 91; stan::math::validate_non_negative_index("lp", "first[i]", lcm_sym120__); Eigen::Matrix lp = @@ -27387,9 +25183,9 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::rvalue(p, "p", stan::model::index_uni(i), stan::model::index_uni(lcm_sym120__)))), "assigning variable lp", stan::model::index_uni(1)); - current_statement__ = 95; + current_statement__ = 94; if (stan::math::logical_gte(lcm_sym87__, 2)) { - current_statement__ = 94; + current_statement__ = 93; stan::model::assign(lp, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27412,7 +25208,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(lcm_sym120__)))), "assigning variable lp", stan::model::index_uni(2)); for (int t = 3; t <= lcm_sym87__; ++t) { - current_statement__ = 94; + current_statement__ = 93; stan::model::assign(lp, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27436,7 +25232,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, "assigning variable lp", stan::model::index_uni(t)); } } - current_statement__ = 96; + current_statement__ = 95; stan::model::assign(lp, ((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27448,13 +25244,13 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::rvalue(p, "p", stan::model::index_uni(i), stan::model::index_uni(lcm_sym120__)))), "assigning variable lp", stan::model::index_uni(lcm_sym120__)); - current_statement__ = 97; + current_statement__ = 96; lp_accum__.add(stan::math::log_sum_exp(lp)); } lcm_sym122__ = stan::model::rvalue(last, "last", stan::model::index_uni(i)); if (stan::math::logical_gte(lcm_sym122__, (lcm_sym120__ + 1))) { - current_statement__ = 102; + current_statement__ = 101; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(i), @@ -27469,12 +25265,12 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(i), stan::model::index_uni((lcm_sym120__ + 1))))); for (int t = lcm_sym103__; t <= lcm_sym122__; ++t) { - current_statement__ = 102; + current_statement__ = 101; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(i), stan::model::index_uni((t - 1))))); - current_statement__ = 103; + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni(i), @@ -27484,7 +25280,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(t)))); } } - current_statement__ = 105; + current_statement__ = 104; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(chi, "chi", stan::model::index_uni(i), @@ -27496,7 +25292,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, Eigen::Matrix lp = Eigen::Matrix::Constant(lcm_sym105__, DUMMY_VAR__); - current_statement__ = 86; + current_statement__ = 85; stan::model::assign(lp, ((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", @@ -27508,9 +25304,9 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::rvalue(chi, "chi", stan::model::index_uni(i), stan::model::index_uni(1)))), "assigning variable lp", stan::model::index_uni(1)); - current_statement__ = 88; + current_statement__ = 87; if (stan::math::logical_gte(lcm_sym125__, 2)) { - current_statement__ = 87; + current_statement__ = 86; stan::model::assign(lp, (((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27527,7 +25323,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(2)))), "assigning variable lp", stan::model::index_uni(2)); for (int t = 3; t <= lcm_sym125__; ++t) { - current_statement__ = 87; + current_statement__ = 86; stan::model::assign(lp, (((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27545,12 +25341,12 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, "assigning variable lp", stan::model::index_uni(t)); } } - current_statement__ = 89; + current_statement__ = 88; stan::model::assign(lp, stan::math::bernoulli_lpmf(1, stan::math::prod(lcm_sym84__)), "assigning variable lp", stan::model::index_uni(lcm_sym105__)); - current_statement__ = 90; + current_statement__ = 89; lp_accum__.add(stan::math::log_sum_exp(lp)); } } @@ -27590,37 +25386,37 @@ seq_cprob(const T0__& gamma_arg__, std::ostream* pstream__) { int N = std::numeric_limits::min(); lcm_sym132__ = stan::math::rows(gamma); N = lcm_sym132__; - current_statement__ = 45; + current_statement__ = 44; stan::math::validate_non_negative_index("log_cprob", "N", lcm_sym132__); Eigen::Matrix log_cprob = Eigen::Matrix::Constant(lcm_sym132__, DUMMY_VAR__); local_scalar_t__ log_residual_prob = DUMMY_VAR__; - current_statement__ = 51; + current_statement__ = 50; if (stan::math::logical_gte(lcm_sym132__, 1)) { - current_statement__ = 49; + current_statement__ = 48; stan::model::assign(log_cprob, (stan::math::log( stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + 0), "assigning variable log_cprob", stan::model::index_uni(1)); - current_statement__ = 48; + current_statement__ = 47; log_residual_prob = (0 + stan::math::log1m( stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)))); for (int n = 2; n <= lcm_sym132__; ++n) { - current_statement__ = 49; + current_statement__ = 48; stan::model::assign(log_cprob, (stan::math::log( stan::model::rvalue(gamma, "gamma", stan::model::index_uni(n))) + log_residual_prob), "assigning variable log_cprob", stan::model::index_uni(n)); - current_statement__ = 48; + current_statement__ = 47; log_residual_prob = (log_residual_prob + stan::math::log1m( stan::model::rvalue(gamma, "gamma", stan::model::index_uni(n)))); } } - current_statement__ = 52; + current_statement__ = 51; return stan::math::exp(log_cprob); } } catch (const std::exception& e) { @@ -27629,16 +25425,12 @@ seq_cprob(const T0__& gamma_arg__, std::ostream* pstream__) { } class inlining_fail2_model final : public model_base_crtp { private: - int lcm_sym357__; - int lcm_sym356__; - int lcm_sym355__; - int lcm_sym354__; - int lcm_sym353__; - int lcm_sym352__; - int lcm_sym351__; int lcm_sym350__; int lcm_sym349__; int lcm_sym348__; + int lcm_sym347__; + int lcm_sym346__; + int lcm_sym345__; int M; int n_occasions; std::vector> y; @@ -27668,92 +25460,50 @@ class inlining_fail2_model final : public model_base_crtp try { int pos__; pos__ = 1; - current_statement__ = 110; + current_statement__ = 109; context__.validate_dims("data initialization", "M", "int", std::vector{}); M = std::numeric_limits::min(); - current_statement__ = 110; - M = context__.vals_i("M")[(1 - 1)]; - current_statement__ = 110; + current_statement__ = 109; stan::math::check_greater_or_equal(function__, "M", M, 0); - current_statement__ = 111; + current_statement__ = 110; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); - current_statement__ = 111; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 111; + current_statement__ = 110; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 0); - current_statement__ = 112; + current_statement__ = 111; stan::math::validate_non_negative_index("y", "M", M); - current_statement__ = 113; + current_statement__ = 112; stan::math::validate_non_negative_index("y", "n_occasions", n_occasions); - current_statement__ = 114; + current_statement__ = 113; context__.validate_dims("data initialization", "y", "int", std::vector{static_cast(M), static_cast(n_occasions)}); y = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 114; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - if (stan::math::logical_gte(n_occasions, 1)) { - lcm_sym348__ = stan::math::logical_gte(M, 1); - if (lcm_sym348__) { - stan::model::assign(y, - stan::model::rvalue(y_flat__, "y_flat__", - stan::model::index_uni(1)), "assigning variable y", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - for (int sym2__ = 2; sym2__ <= M; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - for (int sym1__ = 2; sym1__ <= n_occasions; ++sym1__) { - if (lcm_sym348__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(1), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - for (int sym2__ = 2; sym2__ <= M; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } else { - lcm_sym348__ = stan::math::logical_gte(M, 1); - } - } - current_statement__ = 114; + current_statement__ = 113; stan::math::check_greater_or_equal(function__, "y", y, 0); - current_statement__ = 114; + current_statement__ = 113; stan::math::check_less_or_equal(function__, "y", y, 1); - current_statement__ = 115; + current_statement__ = 114; stan::math::validate_non_negative_index("first", "M", M); - current_statement__ = 116; + current_statement__ = 115; first = std::vector(M, std::numeric_limits::min()); - current_statement__ = 117; + current_statement__ = 116; stan::math::validate_non_negative_index("last", "M", M); - current_statement__ = 118; + current_statement__ = 117; last = std::vector(M, std::numeric_limits::min()); - current_statement__ = 120; - if (lcm_sym348__) { - current_statement__ = 119; + lcm_sym345__ = stan::math::logical_gte(M, 1); + if (lcm_sym345__) { + current_statement__ = 118; stan::model::assign(first, first_capture( stan::model::rvalue(y, "y", stan::model::index_uni(1)), pstream__), "assigning variable first", stan::model::index_uni(1)); for (int i = 2; i <= M; ++i) { - current_statement__ = 119; + current_statement__ = 118; stan::model::assign(first, first_capture( stan::model::rvalue(y, "y", stan::model::index_uni(i)), @@ -27761,15 +25511,15 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(i)); } } - current_statement__ = 122; - if (lcm_sym348__) { - current_statement__ = 121; + current_statement__ = 120; + if (lcm_sym345__) { + current_statement__ = 119; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(1)), pstream__), "assigning variable last", stan::model::index_uni(1)); for (int i = 2; i <= M; ++i) { - current_statement__ = 121; + current_statement__ = 119; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(i)), @@ -27777,51 +25527,51 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(i)); } } - current_statement__ = 116; + current_statement__ = 115; stan::math::check_greater_or_equal(function__, "first", first, 0); - current_statement__ = 116; + current_statement__ = 115; stan::math::check_less_or_equal(function__, "first", first, n_occasions); - current_statement__ = 118; + current_statement__ = 117; stan::math::check_greater_or_equal(function__, "last", last, 0); - current_statement__ = 118; + current_statement__ = 117; stan::math::check_less_or_equal(function__, "last", last, n_occasions); - current_statement__ = 123; + current_statement__ = 121; stan::math::validate_non_negative_index("gamma", "n_occasions", n_occasions); - current_statement__ = 124; + current_statement__ = 122; epsilon_1dim__ = std::numeric_limits::min(); - lcm_sym350__ = (n_occasions - 1); - epsilon_1dim__ = lcm_sym350__; - current_statement__ = 124; + lcm_sym346__ = (n_occasions - 1); + epsilon_1dim__ = lcm_sym346__; + current_statement__ = 122; stan::math::validate_non_negative_index("epsilon", "n_occasions - 1", - lcm_sym350__); - current_statement__ = 125; + lcm_sym346__); + current_statement__ = 123; stan::math::validate_non_negative_index("phi", "M", M); - current_statement__ = 126; + current_statement__ = 124; phi_2dim__ = std::numeric_limits::min(); - current_statement__ = 126; - phi_2dim__ = lcm_sym350__; - current_statement__ = 126; + current_statement__ = 124; + phi_2dim__ = lcm_sym346__; + current_statement__ = 124; stan::math::validate_non_negative_index("phi", "n_occasions - 1", - lcm_sym350__); - current_statement__ = 127; + lcm_sym346__); + current_statement__ = 125; stan::math::validate_non_negative_index("p", "M", M); - current_statement__ = 128; + current_statement__ = 126; stan::math::validate_non_negative_index("p", "n_occasions", n_occasions); - current_statement__ = 129; + current_statement__ = 127; stan::math::validate_non_negative_index("chi", "M", M); - current_statement__ = 130; + current_statement__ = 128; stan::math::validate_non_negative_index("chi", "n_occasions", n_occasions); - current_statement__ = 131; + current_statement__ = 129; stan::math::validate_non_negative_index("b", "n_occasions", n_occasions); - current_statement__ = 132; + current_statement__ = 130; stan::math::validate_non_negative_index("N", "n_occasions", n_occasions); - current_statement__ = 133; + current_statement__ = 131; stan::math::validate_non_negative_index("B", "n_occasions", n_occasions); - current_statement__ = 134; + current_statement__ = 132; stan::math::validate_non_negative_index("z", "M", M); - current_statement__ = 135; + current_statement__ = 133; stan::math::validate_non_negative_index("z", "n_occasions", n_occasions); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -27859,25 +25609,23 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - int lcm_sym347__; - int lcm_sym346__; - int lcm_sym345__; int lcm_sym344__; int lcm_sym343__; int lcm_sym342__; + int lcm_sym341__; int lcm_sym340__; - Eigen::Matrix lcm_sym339__; - double lcm_sym338__; - double lcm_sym337__; - local_scalar_t__ lcm_sym336__; - local_scalar_t__ lcm_sym335__; - double lcm_sym334__; - double lcm_sym333__; + int lcm_sym339__; + int lcm_sym338__; + Eigen::Matrix lcm_sym337__; + double lcm_sym336__; + double lcm_sym335__; + local_scalar_t__ lcm_sym334__; + local_scalar_t__ lcm_sym333__; double lcm_sym332__; double lcm_sym331__; - int lcm_sym330__; + double lcm_sym330__; double lcm_sym329__; - double lcm_sym328__; + int lcm_sym328__; double lcm_sym327__; double lcm_sym326__; double lcm_sym325__; @@ -27889,11 +25637,11 @@ class inlining_fail2_model final : public model_base_crtp double lcm_sym319__; double lcm_sym318__; double lcm_sym317__; - int lcm_sym316__; - int lcm_sym315__; + double lcm_sym316__; + double lcm_sym315__; int lcm_sym314__; - double lcm_sym313__; - double lcm_sym312__; + int lcm_sym313__; + int lcm_sym312__; double lcm_sym311__; double lcm_sym310__; double lcm_sym309__; @@ -27906,17 +25654,17 @@ class inlining_fail2_model final : public model_base_crtp double lcm_sym302__; double lcm_sym301__; double lcm_sym300__; - int lcm_sym299__; - int lcm_sym298__; + double lcm_sym299__; + double lcm_sym298__; int lcm_sym297__; int lcm_sym296__; int lcm_sym295__; int lcm_sym294__; - Eigen::Matrix lcm_sym293__; - Eigen::Matrix lcm_sym292__; + int lcm_sym293__; + int lcm_sym292__; Eigen::Matrix lcm_sym291__; - int lcm_sym341__; - int lcm_sym289__; + Eigen::Matrix lcm_sym290__; + Eigen::Matrix lcm_sym289__; int lcm_sym288__; int lcm_sym287__; int lcm_sym286__; @@ -27928,31 +25676,26 @@ class inlining_fail2_model final : public model_base_crtp int lcm_sym280__; int lcm_sym279__; int lcm_sym278__; - local_scalar_t__ mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma; - current_statement__ = 3; - gamma = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - n_occasions); + int lcm_sym277__; + int lcm_sym276__; + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix gamma = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + n_occasions); Eigen::Matrix epsilon = - Eigen::Matrix::Constant((n_occasions - 1), - DUMMY_VAR__); - lcm_sym341__ = (n_occasions - 1); - epsilon = in__.template read< - Eigen::Matrix>(lcm_sym341__); - local_scalar_t__ sigma; - current_statement__ = 5; - sigma = in__.template read_constrain_lub(0, 5, lp__); + in__.template read>((n_occasions + - 1)); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = - Eigen::Matrix::Constant(M, lcm_sym341__, + Eigen::Matrix::Constant(M, (n_occasions - 1), DUMMY_VAR__); Eigen::Matrix p = Eigen::Matrix::Constant(M, n_occasions, @@ -27960,186 +25703,186 @@ class inlining_fail2_model final : public model_base_crtp Eigen::Matrix chi = Eigen::Matrix::Constant(M, n_occasions, DUMMY_VAR__); - current_statement__ = 18; - if (stan::math::logical_gte(lcm_sym341__, 1)) { - lcm_sym280__ = stan::math::logical_gte(M, 1); - if (lcm_sym280__) { - lcm_sym336__ = stan::math::inv_logit((stan::math::logit(mean_phi) + + lcm_sym288__ = (n_occasions - 1); + if (stan::math::logical_gte(lcm_sym288__, 1)) { + lcm_sym278__ = stan::math::logical_gte(M, 1); + if (lcm_sym278__) { + lcm_sym334__ = stan::math::inv_logit((stan::math::logit(mean_phi) + stan::model::rvalue(epsilon, "epsilon", stan::model::index_uni(1)))); - stan::model::assign(phi, lcm_sym336__, "assigning variable phi", + stan::model::assign(phi, lcm_sym334__, "assigning variable phi", stan::model::index_uni(1), stan::model::index_uni(1)); for (int i = 2; i <= M; ++i) { current_statement__ = 16; - stan::model::assign(phi, lcm_sym336__, "assigning variable phi", + stan::model::assign(phi, lcm_sym334__, "assigning variable phi", stan::model::index_uni(i), stan::model::index_uni(1)); } } - for (int t = 2; t <= lcm_sym341__; ++t) { + for (int t = 2; t <= lcm_sym288__; ++t) { current_statement__ = 17; - if (lcm_sym280__) { - lcm_sym335__ = stan::math::inv_logit((stan::math::logit(mean_phi) + if (lcm_sym278__) { + lcm_sym333__ = stan::math::inv_logit((stan::math::logit(mean_phi) + stan::model::rvalue(epsilon, "epsilon", stan::model::index_uni(t)))); - stan::model::assign(phi, lcm_sym335__, "assigning variable phi", + stan::model::assign(phi, lcm_sym333__, "assigning variable phi", stan::model::index_uni(1), stan::model::index_uni(t)); for (int i = 2; i <= M; ++i) { current_statement__ = 16; - stan::model::assign(phi, lcm_sym335__, + stan::model::assign(phi, lcm_sym333__, "assigning variable phi", stan::model::index_uni(i), stan::model::index_uni(t)); } } } } - stan::model::assign(lcm_sym339__, + stan::model::assign(lcm_sym337__, stan::math::rep_matrix(mean_p, M, n_occasions), - "assigning variable lcm_sym339__"); - stan::model::assign(p, lcm_sym339__, "assigning variable p"); + "assigning variable lcm_sym337__"); + stan::model::assign(p, lcm_sym337__, "assigning variable p"); Eigen::Matrix inline_prob_uncaptured_return_sym37__; { int inline_prob_uncaptured_n_ind_sym38__ = std::numeric_limits::min(); - lcm_sym340__ = stan::math::rows(lcm_sym339__); + lcm_sym338__ = stan::math::rows(lcm_sym337__); int inline_prob_uncaptured_n_occasions_sym39__ = std::numeric_limits::min(); - lcm_sym330__ = stan::math::cols(lcm_sym339__); + lcm_sym328__ = stan::math::cols(lcm_sym337__); + current_statement__ = 20; + stan::math::validate_non_negative_index("chi", "n_ind", lcm_sym338__); current_statement__ = 21; - stan::math::validate_non_negative_index("chi", "n_ind", lcm_sym340__); - current_statement__ = 22; stan::math::validate_non_negative_index("chi", "n_occasions", - lcm_sym330__); + lcm_sym328__); Eigen::Matrix inline_prob_uncaptured_chi_sym40__ = - Eigen::Matrix::Constant(lcm_sym340__, - lcm_sym330__, DUMMY_VAR__); - current_statement__ = 31; - if (stan::math::logical_gte(lcm_sym340__, 1)) { - current_statement__ = 24; + Eigen::Matrix::Constant(lcm_sym338__, + lcm_sym328__, DUMMY_VAR__); + current_statement__ = 30; + if (stan::math::logical_gte(lcm_sym338__, 1)) { + current_statement__ = 23; stan::model::assign(inline_prob_uncaptured_chi_sym40__, 1.0, "assigning variable inline_prob_uncaptured_chi_sym40__", - stan::model::index_uni(1), stan::model::index_uni(lcm_sym330__)); - lcm_sym295__ = (lcm_sym330__ - 1); - lcm_sym282__ = stan::math::logical_gte(lcm_sym295__, 1); - if (lcm_sym282__) { + stan::model::index_uni(1), stan::model::index_uni(lcm_sym328__)); + lcm_sym293__ = (lcm_sym328__ - 1); + lcm_sym280__ = stan::math::logical_gte(lcm_sym293__, 1); + if (lcm_sym280__) { int inline_prob_uncaptured_t_curr_sym41__ = std::numeric_limits::min(); int inline_prob_uncaptured_t_next_sym42__ = std::numeric_limits::min(); - lcm_sym299__ = (lcm_sym295__ + 1); - current_statement__ = 27; + lcm_sym297__ = (lcm_sym293__ + 1); + current_statement__ = 26; stan::model::assign(inline_prob_uncaptured_chi_sym40__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym295__)) * (1 - - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::index_uni(lcm_sym293__)) * (1 - + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym299__)))), + stan::model::index_uni(lcm_sym297__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym40__, "inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym299__)), (1 - + stan::model::index_uni(lcm_sym297__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym295__)))), + stan::model::index_uni(lcm_sym293__)))), "assigning variable inline_prob_uncaptured_chi_sym40__", - stan::model::index_uni(1), stan::model::index_uni(lcm_sym295__)); + stan::model::index_uni(1), stan::model::index_uni(lcm_sym293__)); for (int inline_prob_uncaptured_t_sym43__ = 2; inline_prob_uncaptured_t_sym43__ - <= lcm_sym295__; ++inline_prob_uncaptured_t_sym43__) { + <= lcm_sym293__; ++inline_prob_uncaptured_t_sym43__) { int inline_prob_uncaptured_t_curr_sym41__ = std::numeric_limits::min(); - lcm_sym294__ = (lcm_sym330__ - + lcm_sym292__ = (lcm_sym328__ - inline_prob_uncaptured_t_sym43__); int inline_prob_uncaptured_t_next_sym42__ = std::numeric_limits::min(); - lcm_sym298__ = (lcm_sym294__ + 1); - current_statement__ = 27; + lcm_sym296__ = (lcm_sym292__ + 1); + current_statement__ = 26; stan::model::assign(inline_prob_uncaptured_chi_sym40__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym294__)) * (1 - - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::index_uni(lcm_sym292__)) * (1 - + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym298__)))), + stan::model::index_uni(lcm_sym296__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym40__, "inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym298__)), (1 - + stan::model::index_uni(lcm_sym296__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym294__)))), + stan::model::index_uni(lcm_sym292__)))), "assigning variable inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym294__)); + stan::model::index_uni(lcm_sym292__)); } } for (int inline_prob_uncaptured_i_sym44__ = 2; inline_prob_uncaptured_i_sym44__ - <= lcm_sym340__; ++inline_prob_uncaptured_i_sym44__) { - current_statement__ = 24; + <= lcm_sym338__; ++inline_prob_uncaptured_i_sym44__) { + current_statement__ = 23; stan::model::assign(inline_prob_uncaptured_chi_sym40__, 1.0, "assigning variable inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym330__)); - current_statement__ = 29; - if (lcm_sym282__) { + stan::model::index_uni(lcm_sym328__)); + current_statement__ = 28; + if (lcm_sym280__) { int inline_prob_uncaptured_t_curr_sym41__ = std::numeric_limits::min(); int inline_prob_uncaptured_t_next_sym42__ = std::numeric_limits::min(); - lcm_sym299__ = (lcm_sym295__ + 1); - current_statement__ = 27; + lcm_sym297__ = (lcm_sym293__ + 1); + current_statement__ = 26; stan::model::assign(inline_prob_uncaptured_chi_sym40__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym295__)) * (1 - - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::index_uni(lcm_sym293__)) * (1 - + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym299__)))), + stan::model::index_uni(lcm_sym297__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym40__, "inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym299__)), (1 - + stan::model::index_uni(lcm_sym297__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym295__)))), + stan::model::index_uni(lcm_sym293__)))), "assigning variable inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym295__)); + stan::model::index_uni(lcm_sym293__)); for (int inline_prob_uncaptured_t_sym43__ = 2; inline_prob_uncaptured_t_sym43__ - <= lcm_sym295__; ++inline_prob_uncaptured_t_sym43__) { + <= lcm_sym293__; ++inline_prob_uncaptured_t_sym43__) { int inline_prob_uncaptured_t_curr_sym41__ = std::numeric_limits::min(); - lcm_sym294__ = (lcm_sym330__ - + lcm_sym292__ = (lcm_sym328__ - inline_prob_uncaptured_t_sym43__); int inline_prob_uncaptured_t_next_sym42__ = std::numeric_limits::min(); - lcm_sym298__ = (lcm_sym294__ + 1); - current_statement__ = 27; + lcm_sym296__ = (lcm_sym292__ + 1); + current_statement__ = 26; stan::model::assign(inline_prob_uncaptured_chi_sym40__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym294__)) * (1 - - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::index_uni(lcm_sym292__)) * (1 - + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym298__)))), + stan::model::index_uni(lcm_sym296__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym40__, "inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym298__)), (1 - + stan::model::index_uni(lcm_sym296__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym294__)))), + stan::model::index_uni(lcm_sym292__)))), "assigning variable inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym294__)); + stan::model::index_uni(lcm_sym292__)); } } } } - current_statement__ = 32; + current_statement__ = 31; stan::model::assign(inline_prob_uncaptured_return_sym37__, inline_prob_uncaptured_chi_sym40__, "assigning variable inline_prob_uncaptured_return_sym37__"); @@ -28151,9 +25894,9 @@ class inlining_fail2_model final : public model_base_crtp current_statement__ = 6; stan::math::check_less_or_equal(function__, "phi", phi, 1); current_statement__ = 7; - stan::math::check_greater_or_equal(function__, "p", lcm_sym339__, 0); + stan::math::check_greater_or_equal(function__, "p", lcm_sym337__, 0); current_statement__ = 7; - stan::math::check_less_or_equal(function__, "p", lcm_sym339__, 1); + stan::math::check_less_or_equal(function__, "p", lcm_sym337__, 1); current_statement__ = 8; stan::math::check_greater_or_equal(function__, "chi", inline_prob_uncaptured_return_sym37__, 0); @@ -28161,216 +25904,216 @@ class inlining_fail2_model final : public model_base_crtp stan::math::check_less_or_equal(function__, "chi", inline_prob_uncaptured_return_sym37__, 1); { - current_statement__ = 78; + current_statement__ = 77; lp_accum__.add(stan::math::normal_lpdf(epsilon, 0, sigma)); { int inline_jolly_seber_lp_n_ind_sym46__ = std::numeric_limits::min(); - lcm_sym346__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", + lcm_sym343__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", stan::model::index_uni(1)); int inline_jolly_seber_lp_n_occasions_sym47__ = std::numeric_limits::min(); - lcm_sym347__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", + lcm_sym344__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", stan::model::index_uni(2)); - current_statement__ = 81; + current_statement__ = 80; stan::math::validate_non_negative_index("qgamma", "n_occasions", - lcm_sym347__); + lcm_sym344__); Eigen::Matrix inline_jolly_seber_lp_qgamma_sym48__ = - Eigen::Matrix::Constant(lcm_sym347__, + Eigen::Matrix::Constant(lcm_sym344__, std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym291__, stan::math::subtract(1.0, gamma), - "assigning variable lcm_sym291__"); - current_statement__ = 108; - if (stan::math::logical_gte(lcm_sym346__, 1)) { - current_statement__ = 83; + stan::model::assign(lcm_sym289__, stan::math::subtract(1.0, gamma), + "assigning variable lcm_sym289__"); + current_statement__ = 107; + if (stan::math::logical_gte(lcm_sym343__, 1)) { + current_statement__ = 82; stan::math::validate_non_negative_index("qp", "n_occasions", - lcm_sym347__); + lcm_sym344__); Eigen::Matrix inline_jolly_seber_lp_qp_sym49__ = - Eigen::Matrix::Constant(lcm_sym347__, + Eigen::Matrix::Constant(lcm_sym344__, std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym293__, + stan::model::assign(lcm_sym291__, stan::math::subtract(1.0, stan::math::transpose( - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni(1)))), - "assigning variable lcm_sym293__"); - lcm_sym343__ = stan::model::rvalue(first, "first", + "assigning variable lcm_sym291__"); + lcm_sym340__ = stan::model::rvalue(first, "first", stan::model::index_uni(1)); - if (lcm_sym343__) { - current_statement__ = 101; - if (stan::math::logical_eq(lcm_sym343__, 1)) { - current_statement__ = 99; + if (lcm_sym340__) { + current_statement__ = 100; + if (stan::math::logical_eq(lcm_sym340__, 1)) { + current_statement__ = 98; lp_accum__.add(stan::math::bernoulli_lpmf(1, (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)) * - stan::model::rvalue(lcm_sym339__, - "lcm_sym339__", stan::model::index_uni(1), + stan::model::rvalue(lcm_sym337__, + "lcm_sym337__", stan::model::index_uni(1), stan::model::index_uni(1))))); } else { - current_statement__ = 92; + current_statement__ = 91; stan::math::validate_non_negative_index("lp", "first[i]", - lcm_sym343__); + lcm_sym340__); Eigen::Matrix inline_jolly_seber_lp_lp_sym50__ = - Eigen::Matrix::Constant(lcm_sym343__, + Eigen::Matrix::Constant(lcm_sym340__, DUMMY_VAR__); - lcm_sym297__ = (lcm_sym343__ - 1); + lcm_sym295__ = (lcm_sym340__ - 1); stan::model::assign(inline_jolly_seber_lp_lp_sym50__, (((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym293__, "lcm_sym293__", - stan::model::index_min_max(1, lcm_sym297__))))) + + stan::model::rvalue(lcm_sym291__, "lcm_sym291__", + stan::model::index_min_max(1, lcm_sym295__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_min_max(1, lcm_sym297__))))) + + stan::model::index_min_max(1, lcm_sym295__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym343__)))), + stan::model::index_uni(lcm_sym340__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(1)); - current_statement__ = 95; - if (stan::math::logical_gte(lcm_sym297__, 2)) { - current_statement__ = 94; + current_statement__ = 94; + if (stan::math::logical_gte(lcm_sym295__, 2)) { + current_statement__ = 93; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym291__, "lcm_sym291__", + stan::model::rvalue(lcm_sym289__, "lcm_sym289__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym293__, "lcm_sym293__", - stan::model::index_min_max(2, lcm_sym297__))))) + + stan::model::rvalue(lcm_sym291__, "lcm_sym291__", + stan::model::index_min_max(2, lcm_sym295__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_min_max(2, lcm_sym297__))))) + + stan::model::index_min_max(2, lcm_sym295__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym343__)))), + stan::model::index_uni(lcm_sym340__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym51__ = 3; inline_jolly_seber_lp_t_sym51__ - <= lcm_sym297__; ++inline_jolly_seber_lp_t_sym51__) { - current_statement__ = 94; + <= lcm_sym295__; ++inline_jolly_seber_lp_t_sym51__) { + current_statement__ = 93; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym291__, - "lcm_sym291__", + stan::model::rvalue(lcm_sym289__, + "lcm_sym289__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym51__ - 1))))) + stan::math::bernoulli_lpmf(1, gamma[(inline_jolly_seber_lp_t_sym51__ - 1)])) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym293__, "lcm_sym293__", + stan::model::rvalue(lcm_sym291__, "lcm_sym291__", stan::model::index_min_max( - inline_jolly_seber_lp_t_sym51__, lcm_sym297__))))) + inline_jolly_seber_lp_t_sym51__, lcm_sym295__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni(1), stan::model::index_min_max( - inline_jolly_seber_lp_t_sym51__, lcm_sym297__))))) + inline_jolly_seber_lp_t_sym51__, lcm_sym295__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym343__)))), + stan::model::index_uni(lcm_sym340__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(inline_jolly_seber_lp_t_sym51__)); } } - current_statement__ = 96; + current_statement__ = 95; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym291__, "lcm_sym291__", - stan::model::index_min_max(1, lcm_sym297__)))) + - stan::math::bernoulli_lpmf(1, gamma[(lcm_sym343__ - + stan::model::rvalue(lcm_sym289__, "lcm_sym289__", + stan::model::index_min_max(1, lcm_sym295__)))) + + stan::math::bernoulli_lpmf(1, gamma[(lcm_sym340__ - 1)])) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym343__)))), + stan::model::index_uni(lcm_sym340__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", - stan::model::index_uni(lcm_sym343__)); - current_statement__ = 97; + stan::model::index_uni(lcm_sym340__)); + current_statement__ = 96; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym50__)); } - lcm_sym345__ = stan::model::rvalue(last, "last", + lcm_sym342__ = stan::model::rvalue(last, "last", stan::model::index_uni(1)); - if (stan::math::logical_gte(lcm_sym345__, (lcm_sym343__ + 1))) { - current_statement__ = 102; + if (stan::math::logical_gte(lcm_sym342__, (lcm_sym340__ + 1))) { + current_statement__ = 101; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(((lcm_sym343__ + 1) + stan::model::index_uni(((lcm_sym340__ + 1) - 1))))); - lcm_sym315__ = ((lcm_sym343__ + 1) + 1); + lcm_sym313__ = ((lcm_sym340__ + 1) + 1); lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni(1), - stan::model::index_uni((lcm_sym343__ + 1))), - stan::model::rvalue(lcm_sym339__, - "lcm_sym339__", stan::model::index_uni(1), - stan::model::index_uni((lcm_sym343__ + 1))))); - for (int inline_jolly_seber_lp_t_sym51__ = lcm_sym315__; inline_jolly_seber_lp_t_sym51__ - <= lcm_sym345__; ++inline_jolly_seber_lp_t_sym51__) { - current_statement__ = 102; + stan::model::index_uni((lcm_sym340__ + 1))), + stan::model::rvalue(lcm_sym337__, + "lcm_sym337__", stan::model::index_uni(1), + stan::model::index_uni((lcm_sym340__ + 1))))); + for (int inline_jolly_seber_lp_t_sym51__ = lcm_sym313__; inline_jolly_seber_lp_t_sym51__ + <= lcm_sym342__; ++inline_jolly_seber_lp_t_sym51__) { + current_statement__ = 101; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(1), stan::model::index_uni( (inline_jolly_seber_lp_t_sym51__ - 1))))); - current_statement__ = 103; + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni(1), stan::model::index_uni( inline_jolly_seber_lp_t_sym51__)), - stan::model::rvalue(lcm_sym339__, - "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, + "lcm_sym337__", stan::model::index_uni(1), stan::model::index_uni( inline_jolly_seber_lp_t_sym51__)))); } } - current_statement__ = 105; + current_statement__ = 104; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue( inline_prob_uncaptured_return_sym37__, "inline_prob_uncaptured_return_sym37__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym345__)))); + stan::model::index_uni(lcm_sym342__)))); } else { - lcm_sym316__ = (lcm_sym347__ + 1); + lcm_sym314__ = (lcm_sym344__ + 1); stan::math::validate_non_negative_index("lp", - "n_occasions + 1", lcm_sym316__); + "n_occasions + 1", lcm_sym314__); Eigen::Matrix inline_jolly_seber_lp_lp_sym50__ = - Eigen::Matrix::Constant(lcm_sym316__, + Eigen::Matrix::Constant(lcm_sym314__, DUMMY_VAR__); - current_statement__ = 86; + current_statement__ = 85; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni(1), stan::model::index_uni(1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(inline_prob_uncaptured_return_sym37__, @@ -28378,19 +26121,19 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(1), stan::model::index_uni(1)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(1)); - current_statement__ = 88; - if (stan::math::logical_gte(lcm_sym347__, 2)) { - current_statement__ = 87; + current_statement__ = 87; + if (stan::math::logical_gte(lcm_sym344__, 2)) { + current_statement__ = 86; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym291__, "lcm_sym291__", + stan::model::rvalue(lcm_sym289__, "lcm_sym289__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni(1), stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(1, @@ -28401,18 +26144,18 @@ class inlining_fail2_model final : public model_base_crtp "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym51__ = 3; inline_jolly_seber_lp_t_sym51__ - <= lcm_sym347__; ++inline_jolly_seber_lp_t_sym51__) { - current_statement__ = 87; + <= lcm_sym344__; ++inline_jolly_seber_lp_t_sym51__) { + current_statement__ = 86; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym291__, "lcm_sym291__", + stan::model::rvalue(lcm_sym289__, "lcm_sym289__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym51__ - 1))))) + stan::math::bernoulli_lpmf(1, gamma[(inline_jolly_seber_lp_t_sym51__ - 1)])) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni(1), stan::model::index_uni( inline_jolly_seber_lp_t_sym51__)))) + @@ -28427,110 +26170,110 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(inline_jolly_seber_lp_t_sym51__)); } } - current_statement__ = 89; + current_statement__ = 88; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, stan::math::bernoulli_lpmf(1, - stan::math::prod(lcm_sym291__)), + stan::math::prod(lcm_sym289__)), "assigning variable inline_jolly_seber_lp_lp_sym50__", - stan::model::index_uni(lcm_sym316__)); - current_statement__ = 90; + stan::model::index_uni(lcm_sym314__)); + current_statement__ = 89; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym50__)); } for (int inline_jolly_seber_lp_i_sym52__ = 2; inline_jolly_seber_lp_i_sym52__ - <= lcm_sym346__; ++inline_jolly_seber_lp_i_sym52__) { - current_statement__ = 83; + <= lcm_sym343__; ++inline_jolly_seber_lp_i_sym52__) { + current_statement__ = 82; stan::math::validate_non_negative_index("qp", "n_occasions", - lcm_sym347__); + lcm_sym344__); Eigen::Matrix inline_jolly_seber_lp_qp_sym49__ = - Eigen::Matrix::Constant(lcm_sym347__, + Eigen::Matrix::Constant(lcm_sym344__, std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym292__, + stan::model::assign(lcm_sym290__, stan::math::subtract(1.0, stan::math::transpose( - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni(inline_jolly_seber_lp_i_sym52__)))), - "assigning variable lcm_sym292__"); - lcm_sym342__ = first[(inline_jolly_seber_lp_i_sym52__ - 1)]; - if (lcm_sym342__) { - current_statement__ = 101; - if (stan::math::logical_eq(lcm_sym342__, 1)) { - current_statement__ = 99; + "assigning variable lcm_sym290__"); + lcm_sym339__ = first[(inline_jolly_seber_lp_i_sym52__ - 1)]; + if (lcm_sym339__) { + current_statement__ = 100; + if (stan::math::logical_eq(lcm_sym339__, 1)) { + current_statement__ = 98; lp_accum__.add(stan::math::bernoulli_lpmf(1, (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)) * - stan::model::rvalue(lcm_sym339__, - "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, + "lcm_sym337__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), stan::model::index_uni(1))))); } else { - current_statement__ = 92; + current_statement__ = 91; stan::math::validate_non_negative_index("lp", "first[i]", - lcm_sym342__); + lcm_sym339__); Eigen::Matrix inline_jolly_seber_lp_lp_sym50__ = - Eigen::Matrix::Constant(lcm_sym342__, + Eigen::Matrix::Constant(lcm_sym339__, DUMMY_VAR__); - lcm_sym296__ = (lcm_sym342__ - 1); + lcm_sym294__ = (lcm_sym339__ - 1); stan::model::assign(inline_jolly_seber_lp_lp_sym50__, (((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym292__, "lcm_sym292__", - stan::model::index_min_max(1, lcm_sym296__))))) + + stan::model::rvalue(lcm_sym290__, "lcm_sym290__", + stan::model::index_min_max(1, lcm_sym294__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_min_max(1, lcm_sym296__))))) + + stan::model::index_min_max(1, lcm_sym294__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni(lcm_sym342__)))), + stan::model::index_uni(lcm_sym339__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(1)); - current_statement__ = 95; - if (stan::math::logical_gte(lcm_sym296__, 2)) { - current_statement__ = 94; + current_statement__ = 94; + if (stan::math::logical_gte(lcm_sym294__, 2)) { + current_statement__ = 93; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym291__, - "lcm_sym291__", + stan::model::rvalue(lcm_sym289__, + "lcm_sym289__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym292__, "lcm_sym292__", - stan::model::index_min_max(2, lcm_sym296__))))) + + stan::model::rvalue(lcm_sym290__, "lcm_sym290__", + stan::model::index_min_max(2, lcm_sym294__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_min_max(2, lcm_sym296__))))) + + stan::model::index_min_max(2, lcm_sym294__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni(lcm_sym342__)))), + stan::model::index_uni(lcm_sym339__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym51__ = 3; inline_jolly_seber_lp_t_sym51__ - <= lcm_sym296__; ++inline_jolly_seber_lp_t_sym51__) { - current_statement__ = 94; + <= lcm_sym294__; ++inline_jolly_seber_lp_t_sym51__) { + current_statement__ = 93; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym291__, - "lcm_sym291__", + stan::model::rvalue(lcm_sym289__, + "lcm_sym289__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym51__ - 1))))) + @@ -28538,9 +26281,9 @@ class inlining_fail2_model final : public model_base_crtp gamma[(inline_jolly_seber_lp_t_sym51__ - 1)])) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym292__, "lcm_sym292__", + stan::model::rvalue(lcm_sym290__, "lcm_sym290__", stan::model::index_min_max( - inline_jolly_seber_lp_t_sym51__, lcm_sym296__))))) + inline_jolly_seber_lp_t_sym51__, lcm_sym294__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -28548,62 +26291,62 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), stan::model::index_min_max( - inline_jolly_seber_lp_t_sym51__, lcm_sym296__))))) + inline_jolly_seber_lp_t_sym51__, lcm_sym294__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni(lcm_sym342__)))), + stan::model::index_uni(lcm_sym339__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni( inline_jolly_seber_lp_t_sym51__)); } } - current_statement__ = 96; + current_statement__ = 95; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym291__, "lcm_sym291__", - stan::model::index_min_max(1, lcm_sym296__)))) + - stan::math::bernoulli_lpmf(1, gamma[(lcm_sym342__ + stan::model::rvalue(lcm_sym289__, "lcm_sym289__", + stan::model::index_min_max(1, lcm_sym294__)))) + + stan::math::bernoulli_lpmf(1, gamma[(lcm_sym339__ - 1)])) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni(lcm_sym342__)))), + stan::model::index_uni(lcm_sym339__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", - stan::model::index_uni(lcm_sym342__)); - current_statement__ = 97; + stan::model::index_uni(lcm_sym339__)); + current_statement__ = 96; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym50__)); } - lcm_sym344__ = last[(inline_jolly_seber_lp_i_sym52__ - 1)]; - if (stan::math::logical_gte(lcm_sym344__, (lcm_sym342__ + 1))) { - current_statement__ = 102; + lcm_sym341__ = last[(inline_jolly_seber_lp_i_sym52__ - 1)]; + if (stan::math::logical_gte(lcm_sym341__, (lcm_sym339__ + 1))) { + current_statement__ = 101; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni(((lcm_sym342__ + + stan::model::index_uni(((lcm_sym339__ + 1) - 1))))); - lcm_sym314__ = ((lcm_sym342__ + 1) + 1); + lcm_sym312__ = ((lcm_sym339__ + 1) + 1); lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni((lcm_sym342__ + + stan::model::index_uni((lcm_sym339__ + 1))), - stan::model::rvalue(lcm_sym339__, - "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, + "lcm_sym337__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni((lcm_sym342__ + + stan::model::index_uni((lcm_sym339__ + 1))))); - for (int inline_jolly_seber_lp_t_sym51__ = lcm_sym314__; inline_jolly_seber_lp_t_sym51__ - <= lcm_sym344__; ++inline_jolly_seber_lp_t_sym51__) { - current_statement__ = 102; + for (int inline_jolly_seber_lp_t_sym51__ = lcm_sym312__; inline_jolly_seber_lp_t_sym51__ + <= lcm_sym341__; ++inline_jolly_seber_lp_t_sym51__) { + current_statement__ = 101; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni( @@ -28611,42 +26354,42 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni( (inline_jolly_seber_lp_t_sym51__ - 1))))); - current_statement__ = 103; + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf( y[(inline_jolly_seber_lp_i_sym52__ - 1)][(inline_jolly_seber_lp_t_sym51__ - 1)], - stan::model::rvalue(lcm_sym339__, - "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, + "lcm_sym337__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), stan::model::index_uni( inline_jolly_seber_lp_t_sym51__)))); } } - current_statement__ = 105; + current_statement__ = 104; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue( inline_prob_uncaptured_return_sym37__, "inline_prob_uncaptured_return_sym37__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni(lcm_sym344__)))); + stan::model::index_uni(lcm_sym341__)))); } else { - lcm_sym316__ = (lcm_sym347__ + 1); + lcm_sym314__ = (lcm_sym344__ + 1); stan::math::validate_non_negative_index("lp", - "n_occasions + 1", lcm_sym316__); + "n_occasions + 1", lcm_sym314__); Eigen::Matrix inline_jolly_seber_lp_lp_sym50__ = - Eigen::Matrix::Constant(lcm_sym316__, + Eigen::Matrix::Constant(lcm_sym314__, DUMMY_VAR__); - current_statement__ = 86; + current_statement__ = 85; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni(inline_jolly_seber_lp_i_sym52__), stan::model::index_uni(1)))) + stan::math::bernoulli_lpmf(1, @@ -28657,19 +26400,19 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(1)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(1)); - current_statement__ = 88; - if (stan::math::logical_gte(lcm_sym347__, 2)) { - current_statement__ = 87; + current_statement__ = 87; + if (stan::math::logical_gte(lcm_sym344__, 2)) { + current_statement__ = 86; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym291__, "lcm_sym291__", + stan::model::rvalue(lcm_sym289__, "lcm_sym289__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), stan::model::index_uni(2)))) + @@ -28683,19 +26426,19 @@ class inlining_fail2_model final : public model_base_crtp "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym51__ = 3; inline_jolly_seber_lp_t_sym51__ - <= lcm_sym347__; ++inline_jolly_seber_lp_t_sym51__) { - current_statement__ = 87; + <= lcm_sym344__; ++inline_jolly_seber_lp_t_sym51__) { + current_statement__ = 86; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym291__, - "lcm_sym291__", + stan::model::rvalue(lcm_sym289__, + "lcm_sym289__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym51__ - 1))))) + stan::math::bernoulli_lpmf(1, gamma[(inline_jolly_seber_lp_t_sym51__ - 1)])) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym339__, "lcm_sym339__", + stan::model::rvalue(lcm_sym337__, "lcm_sym337__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), stan::model::index_uni( @@ -28712,13 +26455,13 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(inline_jolly_seber_lp_t_sym51__)); } } - current_statement__ = 89; + current_statement__ = 88; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, stan::math::bernoulli_lpmf(1, - stan::math::prod(lcm_sym291__)), + stan::math::prod(lcm_sym289__)), "assigning variable inline_jolly_seber_lp_lp_sym50__", - stan::model::index_uni(lcm_sym316__)); - current_statement__ = 90; + stan::model::index_uni(lcm_sym314__)); + current_statement__ = 89; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym50__)); } @@ -28756,24 +26499,23 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - int lcm_sym277__; - int lcm_sym276__; int lcm_sym275__; int lcm_sym274__; int lcm_sym273__; int lcm_sym272__; + int lcm_sym271__; int lcm_sym270__; - Eigen::Matrix lcm_sym269__; - double lcm_sym268__; + int lcm_sym269__; + Eigen::Matrix lcm_sym268__; double lcm_sym267__; - local_scalar_t__ lcm_sym266__; + double lcm_sym266__; local_scalar_t__ lcm_sym265__; - double lcm_sym264__; + local_scalar_t__ lcm_sym264__; double lcm_sym263__; double lcm_sym262__; double lcm_sym261__; - int lcm_sym260__; - double lcm_sym259__; + double lcm_sym260__; + int lcm_sym259__; double lcm_sym258__; double lcm_sym257__; double lcm_sym256__; @@ -28786,10 +26528,10 @@ class inlining_fail2_model final : public model_base_crtp double lcm_sym249__; double lcm_sym248__; double lcm_sym247__; - int lcm_sym246__; + double lcm_sym246__; int lcm_sym245__; int lcm_sym244__; - double lcm_sym243__; + int lcm_sym243__; double lcm_sym242__; double lcm_sym241__; double lcm_sym240__; @@ -28803,16 +26545,16 @@ class inlining_fail2_model final : public model_base_crtp double lcm_sym232__; double lcm_sym231__; double lcm_sym230__; - int lcm_sym229__; + double lcm_sym229__; int lcm_sym228__; int lcm_sym227__; int lcm_sym226__; int lcm_sym225__; int lcm_sym224__; - Eigen::Matrix lcm_sym223__; + int lcm_sym223__; Eigen::Matrix lcm_sym222__; Eigen::Matrix lcm_sym221__; - int lcm_sym271__; + Eigen::Matrix lcm_sym220__; int lcm_sym219__; int lcm_sym218__; int lcm_sym217__; @@ -28825,31 +26567,25 @@ class inlining_fail2_model final : public model_base_crtp int lcm_sym210__; int lcm_sym209__; int lcm_sym208__; - local_scalar_t__ mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma; - current_statement__ = 3; - gamma = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - n_occasions); + int lcm_sym207__; + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix gamma = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + n_occasions); Eigen::Matrix epsilon = - Eigen::Matrix::Constant((n_occasions - 1), - DUMMY_VAR__); - lcm_sym271__ = (n_occasions - 1); - epsilon = in__.template read< - Eigen::Matrix>(lcm_sym271__); - local_scalar_t__ sigma; - current_statement__ = 5; - sigma = in__.template read_constrain_lub(0, 5, lp__); + in__.template read>((n_occasions + - 1)); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = - Eigen::Matrix::Constant(M, lcm_sym271__, + Eigen::Matrix::Constant(M, (n_occasions - 1), DUMMY_VAR__); Eigen::Matrix p = Eigen::Matrix::Constant(M, n_occasions, @@ -28857,186 +26593,186 @@ class inlining_fail2_model final : public model_base_crtp Eigen::Matrix chi = Eigen::Matrix::Constant(M, n_occasions, DUMMY_VAR__); - current_statement__ = 18; - if (stan::math::logical_gte(lcm_sym271__, 1)) { - lcm_sym210__ = stan::math::logical_gte(M, 1); - if (lcm_sym210__) { - lcm_sym266__ = stan::math::inv_logit((stan::math::logit(mean_phi) + + lcm_sym219__ = (n_occasions - 1); + if (stan::math::logical_gte(lcm_sym219__, 1)) { + lcm_sym209__ = stan::math::logical_gte(M, 1); + if (lcm_sym209__) { + lcm_sym265__ = stan::math::inv_logit((stan::math::logit(mean_phi) + stan::model::rvalue(epsilon, "epsilon", stan::model::index_uni(1)))); - stan::model::assign(phi, lcm_sym266__, "assigning variable phi", + stan::model::assign(phi, lcm_sym265__, "assigning variable phi", stan::model::index_uni(1), stan::model::index_uni(1)); for (int i = 2; i <= M; ++i) { current_statement__ = 16; - stan::model::assign(phi, lcm_sym266__, "assigning variable phi", + stan::model::assign(phi, lcm_sym265__, "assigning variable phi", stan::model::index_uni(i), stan::model::index_uni(1)); } } - for (int t = 2; t <= lcm_sym271__; ++t) { + for (int t = 2; t <= lcm_sym219__; ++t) { current_statement__ = 17; - if (lcm_sym210__) { - lcm_sym265__ = stan::math::inv_logit((stan::math::logit(mean_phi) + if (lcm_sym209__) { + lcm_sym264__ = stan::math::inv_logit((stan::math::logit(mean_phi) + stan::model::rvalue(epsilon, "epsilon", stan::model::index_uni(t)))); - stan::model::assign(phi, lcm_sym265__, "assigning variable phi", + stan::model::assign(phi, lcm_sym264__, "assigning variable phi", stan::model::index_uni(1), stan::model::index_uni(t)); for (int i = 2; i <= M; ++i) { current_statement__ = 16; - stan::model::assign(phi, lcm_sym265__, + stan::model::assign(phi, lcm_sym264__, "assigning variable phi", stan::model::index_uni(i), stan::model::index_uni(t)); } } } } - stan::model::assign(lcm_sym269__, + stan::model::assign(lcm_sym268__, stan::math::rep_matrix(mean_p, M, n_occasions), - "assigning variable lcm_sym269__"); - stan::model::assign(p, lcm_sym269__, "assigning variable p"); + "assigning variable lcm_sym268__"); + stan::model::assign(p, lcm_sym268__, "assigning variable p"); Eigen::Matrix inline_prob_uncaptured_return_sym20__; { int inline_prob_uncaptured_n_ind_sym21__ = std::numeric_limits::min(); - lcm_sym270__ = stan::math::rows(lcm_sym269__); + lcm_sym269__ = stan::math::rows(lcm_sym268__); int inline_prob_uncaptured_n_occasions_sym22__ = std::numeric_limits::min(); - lcm_sym260__ = stan::math::cols(lcm_sym269__); + lcm_sym259__ = stan::math::cols(lcm_sym268__); + current_statement__ = 20; + stan::math::validate_non_negative_index("chi", "n_ind", lcm_sym269__); current_statement__ = 21; - stan::math::validate_non_negative_index("chi", "n_ind", lcm_sym270__); - current_statement__ = 22; stan::math::validate_non_negative_index("chi", "n_occasions", - lcm_sym260__); + lcm_sym259__); Eigen::Matrix inline_prob_uncaptured_chi_sym23__ = - Eigen::Matrix::Constant(lcm_sym270__, - lcm_sym260__, DUMMY_VAR__); - current_statement__ = 31; - if (stan::math::logical_gte(lcm_sym270__, 1)) { - current_statement__ = 24; + Eigen::Matrix::Constant(lcm_sym269__, + lcm_sym259__, DUMMY_VAR__); + current_statement__ = 30; + if (stan::math::logical_gte(lcm_sym269__, 1)) { + current_statement__ = 23; stan::model::assign(inline_prob_uncaptured_chi_sym23__, 1.0, "assigning variable inline_prob_uncaptured_chi_sym23__", - stan::model::index_uni(1), stan::model::index_uni(lcm_sym260__)); - lcm_sym225__ = (lcm_sym260__ - 1); - lcm_sym212__ = stan::math::logical_gte(lcm_sym225__, 1); - if (lcm_sym212__) { + stan::model::index_uni(1), stan::model::index_uni(lcm_sym259__)); + lcm_sym224__ = (lcm_sym259__ - 1); + lcm_sym211__ = stan::math::logical_gte(lcm_sym224__, 1); + if (lcm_sym211__) { int inline_prob_uncaptured_t_curr_sym24__ = std::numeric_limits::min(); int inline_prob_uncaptured_t_next_sym25__ = std::numeric_limits::min(); - lcm_sym229__ = (lcm_sym225__ + 1); - current_statement__ = 27; + lcm_sym228__ = (lcm_sym224__ + 1); + current_statement__ = 26; stan::model::assign(inline_prob_uncaptured_chi_sym23__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym225__)) * (1 - - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::index_uni(lcm_sym224__)) * (1 - + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym229__)))), + stan::model::index_uni(lcm_sym228__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym23__, "inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym229__)), (1 - + stan::model::index_uni(lcm_sym228__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym225__)))), + stan::model::index_uni(lcm_sym224__)))), "assigning variable inline_prob_uncaptured_chi_sym23__", - stan::model::index_uni(1), stan::model::index_uni(lcm_sym225__)); + stan::model::index_uni(1), stan::model::index_uni(lcm_sym224__)); for (int inline_prob_uncaptured_t_sym26__ = 2; inline_prob_uncaptured_t_sym26__ - <= lcm_sym225__; ++inline_prob_uncaptured_t_sym26__) { + <= lcm_sym224__; ++inline_prob_uncaptured_t_sym26__) { int inline_prob_uncaptured_t_curr_sym24__ = std::numeric_limits::min(); - lcm_sym224__ = (lcm_sym260__ - + lcm_sym223__ = (lcm_sym259__ - inline_prob_uncaptured_t_sym26__); int inline_prob_uncaptured_t_next_sym25__ = std::numeric_limits::min(); - lcm_sym228__ = (lcm_sym224__ + 1); - current_statement__ = 27; + lcm_sym227__ = (lcm_sym223__ + 1); + current_statement__ = 26; stan::model::assign(inline_prob_uncaptured_chi_sym23__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym224__)) * (1 - - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::index_uni(lcm_sym223__)) * (1 - + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym228__)))), + stan::model::index_uni(lcm_sym227__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym23__, "inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym228__)), (1 - + stan::model::index_uni(lcm_sym227__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym224__)))), + stan::model::index_uni(lcm_sym223__)))), "assigning variable inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym224__)); + stan::model::index_uni(lcm_sym223__)); } } for (int inline_prob_uncaptured_i_sym27__ = 2; inline_prob_uncaptured_i_sym27__ - <= lcm_sym270__; ++inline_prob_uncaptured_i_sym27__) { - current_statement__ = 24; + <= lcm_sym269__; ++inline_prob_uncaptured_i_sym27__) { + current_statement__ = 23; stan::model::assign(inline_prob_uncaptured_chi_sym23__, 1.0, "assigning variable inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym260__)); - current_statement__ = 29; - if (lcm_sym212__) { + stan::model::index_uni(lcm_sym259__)); + current_statement__ = 28; + if (lcm_sym211__) { int inline_prob_uncaptured_t_curr_sym24__ = std::numeric_limits::min(); int inline_prob_uncaptured_t_next_sym25__ = std::numeric_limits::min(); - lcm_sym229__ = (lcm_sym225__ + 1); - current_statement__ = 27; + lcm_sym228__ = (lcm_sym224__ + 1); + current_statement__ = 26; stan::model::assign(inline_prob_uncaptured_chi_sym23__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym225__)) * (1 - - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::index_uni(lcm_sym224__)) * (1 - + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym229__)))), + stan::model::index_uni(lcm_sym228__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym23__, "inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym229__)), (1 - + stan::model::index_uni(lcm_sym228__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym225__)))), + stan::model::index_uni(lcm_sym224__)))), "assigning variable inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym225__)); + stan::model::index_uni(lcm_sym224__)); for (int inline_prob_uncaptured_t_sym26__ = 2; inline_prob_uncaptured_t_sym26__ - <= lcm_sym225__; ++inline_prob_uncaptured_t_sym26__) { + <= lcm_sym224__; ++inline_prob_uncaptured_t_sym26__) { int inline_prob_uncaptured_t_curr_sym24__ = std::numeric_limits::min(); - lcm_sym224__ = (lcm_sym260__ - + lcm_sym223__ = (lcm_sym259__ - inline_prob_uncaptured_t_sym26__); int inline_prob_uncaptured_t_next_sym25__ = std::numeric_limits::min(); - lcm_sym228__ = (lcm_sym224__ + 1); - current_statement__ = 27; + lcm_sym227__ = (lcm_sym223__ + 1); + current_statement__ = 26; stan::model::assign(inline_prob_uncaptured_chi_sym23__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym224__)) * (1 - - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::index_uni(lcm_sym223__)) * (1 - + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym228__)))), + stan::model::index_uni(lcm_sym227__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym23__, "inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym228__)), (1 - + stan::model::index_uni(lcm_sym227__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym224__)))), + stan::model::index_uni(lcm_sym223__)))), "assigning variable inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym224__)); + stan::model::index_uni(lcm_sym223__)); } } } } - current_statement__ = 32; + current_statement__ = 31; stan::model::assign(inline_prob_uncaptured_return_sym20__, inline_prob_uncaptured_chi_sym23__, "assigning variable inline_prob_uncaptured_return_sym20__"); @@ -29048,9 +26784,9 @@ class inlining_fail2_model final : public model_base_crtp current_statement__ = 6; stan::math::check_less_or_equal(function__, "phi", phi, 1); current_statement__ = 7; - stan::math::check_greater_or_equal(function__, "p", lcm_sym269__, 0); + stan::math::check_greater_or_equal(function__, "p", lcm_sym268__, 0); current_statement__ = 7; - stan::math::check_less_or_equal(function__, "p", lcm_sym269__, 1); + stan::math::check_less_or_equal(function__, "p", lcm_sym268__, 1); current_statement__ = 8; stan::math::check_greater_or_equal(function__, "chi", inline_prob_uncaptured_return_sym20__, 0); @@ -29058,218 +26794,218 @@ class inlining_fail2_model final : public model_base_crtp stan::math::check_less_or_equal(function__, "chi", inline_prob_uncaptured_return_sym20__, 1); { - current_statement__ = 78; + current_statement__ = 77; lp_accum__.add(stan::math::normal_lpdf(epsilon, 0, sigma)); { int inline_jolly_seber_lp_n_ind_sym29__ = std::numeric_limits::min(); - lcm_sym276__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", + lcm_sym274__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", stan::model::index_uni(1)); int inline_jolly_seber_lp_n_occasions_sym30__ = std::numeric_limits::min(); - lcm_sym277__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", + lcm_sym275__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", stan::model::index_uni(2)); - current_statement__ = 81; + current_statement__ = 80; stan::math::validate_non_negative_index("qgamma", "n_occasions", - lcm_sym277__); + lcm_sym275__); stan::math::var_value> inline_jolly_seber_lp_qgamma_sym31__ = - Eigen::Matrix::Constant(lcm_sym277__, + Eigen::Matrix::Constant(lcm_sym275__, std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym221__, stan::math::subtract(1.0, gamma), - "assigning variable lcm_sym221__"); - current_statement__ = 108; - if (stan::math::logical_gte(lcm_sym276__, 1)) { - current_statement__ = 83; + stan::model::assign(lcm_sym220__, stan::math::subtract(1.0, gamma), + "assigning variable lcm_sym220__"); + current_statement__ = 107; + if (stan::math::logical_gte(lcm_sym274__, 1)) { + current_statement__ = 82; stan::math::validate_non_negative_index("qp", "n_occasions", - lcm_sym277__); + lcm_sym275__); stan::math::var_value> inline_jolly_seber_lp_qp_sym32__ = - Eigen::Matrix::Constant(lcm_sym277__, + Eigen::Matrix::Constant(lcm_sym275__, std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym223__, + stan::model::assign(lcm_sym222__, stan::math::subtract(1.0, stan::math::transpose( - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni(1)))), - "assigning variable lcm_sym223__"); - lcm_sym273__ = stan::model::rvalue(first, "first", + "assigning variable lcm_sym222__"); + lcm_sym271__ = stan::model::rvalue(first, "first", stan::model::index_uni(1)); - if (lcm_sym273__) { - current_statement__ = 101; - if (stan::math::logical_eq(lcm_sym273__, 1)) { - current_statement__ = 99; + if (lcm_sym271__) { + current_statement__ = 100; + if (stan::math::logical_eq(lcm_sym271__, 1)) { + current_statement__ = 98; lp_accum__.add(stan::math::bernoulli_lpmf(1, (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)) * - stan::model::rvalue(lcm_sym269__, - "lcm_sym269__", stan::model::index_uni(1), + stan::model::rvalue(lcm_sym268__, + "lcm_sym268__", stan::model::index_uni(1), stan::model::index_uni(1))))); } else { - current_statement__ = 92; + current_statement__ = 91; stan::math::validate_non_negative_index("lp", "first[i]", - lcm_sym273__); + lcm_sym271__); Eigen::Matrix inline_jolly_seber_lp_lp_sym33__ = - Eigen::Matrix::Constant(lcm_sym273__, + Eigen::Matrix::Constant(lcm_sym271__, DUMMY_VAR__); - lcm_sym227__ = (lcm_sym273__ - 1); + lcm_sym226__ = (lcm_sym271__ - 1); stan::model::assign(inline_jolly_seber_lp_lp_sym33__, (((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym223__, "lcm_sym223__", - stan::model::index_min_max(1, lcm_sym227__))))) + + stan::model::rvalue(lcm_sym222__, "lcm_sym222__", + stan::model::index_min_max(1, lcm_sym226__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_min_max(1, lcm_sym227__))))) + + stan::model::index_min_max(1, lcm_sym226__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym273__)))), + stan::model::index_uni(lcm_sym271__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(1)); - current_statement__ = 95; - if (stan::math::logical_gte(lcm_sym227__, 2)) { - current_statement__ = 94; + current_statement__ = 94; + if (stan::math::logical_gte(lcm_sym226__, 2)) { + current_statement__ = 93; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym221__, "lcm_sym221__", + stan::model::rvalue(lcm_sym220__, "lcm_sym220__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym223__, "lcm_sym223__", - stan::model::index_min_max(2, lcm_sym227__))))) + + stan::model::rvalue(lcm_sym222__, "lcm_sym222__", + stan::model::index_min_max(2, lcm_sym226__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_min_max(2, lcm_sym227__))))) + + stan::model::index_min_max(2, lcm_sym226__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym273__)))), + stan::model::index_uni(lcm_sym271__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym34__ = 3; inline_jolly_seber_lp_t_sym34__ - <= lcm_sym227__; ++inline_jolly_seber_lp_t_sym34__) { - current_statement__ = 94; + <= lcm_sym226__; ++inline_jolly_seber_lp_t_sym34__) { + current_statement__ = 93; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym221__, - "lcm_sym221__", + stan::model::rvalue(lcm_sym220__, + "lcm_sym220__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym34__ - 1))))) + stan::math::bernoulli_lpmf(1, gamma[(inline_jolly_seber_lp_t_sym34__ - 1)])) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym223__, "lcm_sym223__", + stan::model::rvalue(lcm_sym222__, "lcm_sym222__", stan::model::index_min_max( - inline_jolly_seber_lp_t_sym34__, lcm_sym227__))))) + inline_jolly_seber_lp_t_sym34__, lcm_sym226__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni(1), stan::model::index_min_max( - inline_jolly_seber_lp_t_sym34__, lcm_sym227__))))) + inline_jolly_seber_lp_t_sym34__, lcm_sym226__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym273__)))), + stan::model::index_uni(lcm_sym271__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(inline_jolly_seber_lp_t_sym34__)); } } - current_statement__ = 96; + current_statement__ = 95; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym221__, "lcm_sym221__", - stan::model::index_min_max(1, lcm_sym227__)))) + - stan::math::bernoulli_lpmf(1, gamma[(lcm_sym273__ - + stan::model::rvalue(lcm_sym220__, "lcm_sym220__", + stan::model::index_min_max(1, lcm_sym226__)))) + + stan::math::bernoulli_lpmf(1, gamma[(lcm_sym271__ - 1)])) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym273__)))), + stan::model::index_uni(lcm_sym271__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", - stan::model::index_uni(lcm_sym273__)); - current_statement__ = 97; + stan::model::index_uni(lcm_sym271__)); + current_statement__ = 96; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym33__)); } - lcm_sym275__ = stan::model::rvalue(last, "last", + lcm_sym273__ = stan::model::rvalue(last, "last", stan::model::index_uni(1)); - if (stan::math::logical_gte(lcm_sym275__, (lcm_sym273__ + 1))) { - current_statement__ = 102; + if (stan::math::logical_gte(lcm_sym273__, (lcm_sym271__ + 1))) { + current_statement__ = 101; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(((lcm_sym273__ + 1) + stan::model::index_uni(((lcm_sym271__ + 1) - 1))))); - lcm_sym245__ = ((lcm_sym273__ + 1) + 1); + lcm_sym244__ = ((lcm_sym271__ + 1) + 1); lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni(1), - stan::model::index_uni((lcm_sym273__ + 1))), - stan::model::rvalue(lcm_sym269__, - "lcm_sym269__", stan::model::index_uni(1), - stan::model::index_uni((lcm_sym273__ + 1))))); - for (int inline_jolly_seber_lp_t_sym34__ = lcm_sym245__; inline_jolly_seber_lp_t_sym34__ - <= lcm_sym275__; ++inline_jolly_seber_lp_t_sym34__) { - current_statement__ = 102; + stan::model::index_uni((lcm_sym271__ + 1))), + stan::model::rvalue(lcm_sym268__, + "lcm_sym268__", stan::model::index_uni(1), + stan::model::index_uni((lcm_sym271__ + 1))))); + for (int inline_jolly_seber_lp_t_sym34__ = lcm_sym244__; inline_jolly_seber_lp_t_sym34__ + <= lcm_sym273__; ++inline_jolly_seber_lp_t_sym34__) { + current_statement__ = 101; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(1), stan::model::index_uni( (inline_jolly_seber_lp_t_sym34__ - 1))))); - current_statement__ = 103; + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni(1), stan::model::index_uni( inline_jolly_seber_lp_t_sym34__)), - stan::model::rvalue(lcm_sym269__, - "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, + "lcm_sym268__", stan::model::index_uni(1), stan::model::index_uni( inline_jolly_seber_lp_t_sym34__)))); } } - current_statement__ = 105; + current_statement__ = 104; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue( inline_prob_uncaptured_return_sym20__, "inline_prob_uncaptured_return_sym20__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym275__)))); + stan::model::index_uni(lcm_sym273__)))); } else { - lcm_sym246__ = (lcm_sym277__ + 1); + lcm_sym245__ = (lcm_sym275__ + 1); stan::math::validate_non_negative_index("lp", - "n_occasions + 1", lcm_sym246__); + "n_occasions + 1", lcm_sym245__); Eigen::Matrix inline_jolly_seber_lp_lp_sym33__ = - Eigen::Matrix::Constant(lcm_sym246__, + Eigen::Matrix::Constant(lcm_sym245__, DUMMY_VAR__); - current_statement__ = 86; + current_statement__ = 85; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni(1), stan::model::index_uni(1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(inline_prob_uncaptured_return_sym20__, @@ -29277,19 +27013,19 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(1), stan::model::index_uni(1)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(1)); - current_statement__ = 88; - if (stan::math::logical_gte(lcm_sym277__, 2)) { - current_statement__ = 87; + current_statement__ = 87; + if (stan::math::logical_gte(lcm_sym275__, 2)) { + current_statement__ = 86; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym221__, "lcm_sym221__", + stan::model::rvalue(lcm_sym220__, "lcm_sym220__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni(1), stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(1, @@ -29300,18 +27036,18 @@ class inlining_fail2_model final : public model_base_crtp "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym34__ = 3; inline_jolly_seber_lp_t_sym34__ - <= lcm_sym277__; ++inline_jolly_seber_lp_t_sym34__) { - current_statement__ = 87; + <= lcm_sym275__; ++inline_jolly_seber_lp_t_sym34__) { + current_statement__ = 86; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym221__, "lcm_sym221__", + stan::model::rvalue(lcm_sym220__, "lcm_sym220__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym34__ - 1))))) + stan::math::bernoulli_lpmf(1, gamma[(inline_jolly_seber_lp_t_sym34__ - 1)])) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni(1), stan::model::index_uni( inline_jolly_seber_lp_t_sym34__)))) + @@ -29326,111 +27062,111 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(inline_jolly_seber_lp_t_sym34__)); } } - current_statement__ = 89; + current_statement__ = 88; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, stan::math::bernoulli_lpmf(1, - stan::math::prod(lcm_sym221__)), + stan::math::prod(lcm_sym220__)), "assigning variable inline_jolly_seber_lp_lp_sym33__", - stan::model::index_uni(lcm_sym246__)); - current_statement__ = 90; + stan::model::index_uni(lcm_sym245__)); + current_statement__ = 89; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym33__)); } for (int inline_jolly_seber_lp_i_sym35__ = 2; inline_jolly_seber_lp_i_sym35__ - <= lcm_sym276__; ++inline_jolly_seber_lp_i_sym35__) { - current_statement__ = 83; + <= lcm_sym274__; ++inline_jolly_seber_lp_i_sym35__) { + current_statement__ = 82; stan::math::validate_non_negative_index("qp", "n_occasions", - lcm_sym277__); + lcm_sym275__); stan::math::var_value> inline_jolly_seber_lp_qp_sym32__ = - Eigen::Matrix::Constant(lcm_sym277__, + Eigen::Matrix::Constant(lcm_sym275__, std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym222__, + stan::model::assign(lcm_sym221__, stan::math::subtract(1.0, stan::math::transpose( - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni(inline_jolly_seber_lp_i_sym35__)))), - "assigning variable lcm_sym222__"); - lcm_sym272__ = first[(inline_jolly_seber_lp_i_sym35__ - 1)]; - if (lcm_sym272__) { - current_statement__ = 101; - if (stan::math::logical_eq(lcm_sym272__, 1)) { - current_statement__ = 99; + "assigning variable lcm_sym221__"); + lcm_sym270__ = first[(inline_jolly_seber_lp_i_sym35__ - 1)]; + if (lcm_sym270__) { + current_statement__ = 100; + if (stan::math::logical_eq(lcm_sym270__, 1)) { + current_statement__ = 98; lp_accum__.add(stan::math::bernoulli_lpmf(1, (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)) * - stan::model::rvalue(lcm_sym269__, - "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, + "lcm_sym268__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), stan::model::index_uni(1))))); } else { - current_statement__ = 92; + current_statement__ = 91; stan::math::validate_non_negative_index("lp", "first[i]", - lcm_sym272__); + lcm_sym270__); Eigen::Matrix inline_jolly_seber_lp_lp_sym33__ = - Eigen::Matrix::Constant(lcm_sym272__, + Eigen::Matrix::Constant(lcm_sym270__, DUMMY_VAR__); - lcm_sym226__ = (lcm_sym272__ - 1); + lcm_sym225__ = (lcm_sym270__ - 1); stan::model::assign(inline_jolly_seber_lp_lp_sym33__, (((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym222__, "lcm_sym222__", - stan::model::index_min_max(1, lcm_sym226__))))) + + stan::model::rvalue(lcm_sym221__, "lcm_sym221__", + stan::model::index_min_max(1, lcm_sym225__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_min_max(1, lcm_sym226__))))) + + stan::model::index_min_max(1, lcm_sym225__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni(lcm_sym272__)))), + stan::model::index_uni(lcm_sym270__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(1)); - current_statement__ = 95; - if (stan::math::logical_gte(lcm_sym226__, 2)) { - current_statement__ = 94; + current_statement__ = 94; + if (stan::math::logical_gte(lcm_sym225__, 2)) { + current_statement__ = 93; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym221__, - "lcm_sym221__", + stan::model::rvalue(lcm_sym220__, + "lcm_sym220__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym222__, "lcm_sym222__", - stan::model::index_min_max(2, lcm_sym226__))))) + + stan::model::rvalue(lcm_sym221__, "lcm_sym221__", + stan::model::index_min_max(2, lcm_sym225__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_min_max(2, lcm_sym226__))))) + + stan::model::index_min_max(2, lcm_sym225__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni(lcm_sym272__)))), + stan::model::index_uni(lcm_sym270__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym34__ = 3; inline_jolly_seber_lp_t_sym34__ - <= lcm_sym226__; ++inline_jolly_seber_lp_t_sym34__) { - current_statement__ = 94; + <= lcm_sym225__; ++inline_jolly_seber_lp_t_sym34__) { + current_statement__ = 93; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym221__, - "lcm_sym221__", + stan::model::rvalue(lcm_sym220__, + "lcm_sym220__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym34__ - 1))))) + @@ -29438,9 +27174,9 @@ class inlining_fail2_model final : public model_base_crtp gamma[(inline_jolly_seber_lp_t_sym34__ - 1)])) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym222__, "lcm_sym222__", + stan::model::rvalue(lcm_sym221__, "lcm_sym221__", stan::model::index_min_max( - inline_jolly_seber_lp_t_sym34__, lcm_sym226__))))) + inline_jolly_seber_lp_t_sym34__, lcm_sym225__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -29448,62 +27184,62 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), stan::model::index_min_max( - inline_jolly_seber_lp_t_sym34__, lcm_sym226__))))) + inline_jolly_seber_lp_t_sym34__, lcm_sym225__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni(lcm_sym272__)))), + stan::model::index_uni(lcm_sym270__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni( inline_jolly_seber_lp_t_sym34__)); } } - current_statement__ = 96; + current_statement__ = 95; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym221__, "lcm_sym221__", - stan::model::index_min_max(1, lcm_sym226__)))) + - stan::math::bernoulli_lpmf(1, gamma[(lcm_sym272__ + stan::model::rvalue(lcm_sym220__, "lcm_sym220__", + stan::model::index_min_max(1, lcm_sym225__)))) + + stan::math::bernoulli_lpmf(1, gamma[(lcm_sym270__ - 1)])) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni(lcm_sym272__)))), + stan::model::index_uni(lcm_sym270__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", - stan::model::index_uni(lcm_sym272__)); - current_statement__ = 97; + stan::model::index_uni(lcm_sym270__)); + current_statement__ = 96; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym33__)); } - lcm_sym274__ = last[(inline_jolly_seber_lp_i_sym35__ - 1)]; - if (stan::math::logical_gte(lcm_sym274__, (lcm_sym272__ + 1))) { - current_statement__ = 102; + lcm_sym272__ = last[(inline_jolly_seber_lp_i_sym35__ - 1)]; + if (stan::math::logical_gte(lcm_sym272__, (lcm_sym270__ + 1))) { + current_statement__ = 101; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni(((lcm_sym272__ + + stan::model::index_uni(((lcm_sym270__ + 1) - 1))))); - lcm_sym244__ = ((lcm_sym272__ + 1) + 1); + lcm_sym243__ = ((lcm_sym270__ + 1) + 1); lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni((lcm_sym272__ + + stan::model::index_uni((lcm_sym270__ + 1))), - stan::model::rvalue(lcm_sym269__, - "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, + "lcm_sym268__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni((lcm_sym272__ + + stan::model::index_uni((lcm_sym270__ + 1))))); - for (int inline_jolly_seber_lp_t_sym34__ = lcm_sym244__; inline_jolly_seber_lp_t_sym34__ - <= lcm_sym274__; ++inline_jolly_seber_lp_t_sym34__) { - current_statement__ = 102; + for (int inline_jolly_seber_lp_t_sym34__ = lcm_sym243__; inline_jolly_seber_lp_t_sym34__ + <= lcm_sym272__; ++inline_jolly_seber_lp_t_sym34__) { + current_statement__ = 101; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni( @@ -29511,42 +27247,42 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni( (inline_jolly_seber_lp_t_sym34__ - 1))))); - current_statement__ = 103; + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf( y[(inline_jolly_seber_lp_i_sym35__ - 1)][(inline_jolly_seber_lp_t_sym34__ - 1)], - stan::model::rvalue(lcm_sym269__, - "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, + "lcm_sym268__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), stan::model::index_uni( inline_jolly_seber_lp_t_sym34__)))); } } - current_statement__ = 105; + current_statement__ = 104; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue( inline_prob_uncaptured_return_sym20__, "inline_prob_uncaptured_return_sym20__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni(lcm_sym274__)))); + stan::model::index_uni(lcm_sym272__)))); } else { - lcm_sym246__ = (lcm_sym277__ + 1); + lcm_sym245__ = (lcm_sym275__ + 1); stan::math::validate_non_negative_index("lp", - "n_occasions + 1", lcm_sym246__); + "n_occasions + 1", lcm_sym245__); Eigen::Matrix inline_jolly_seber_lp_lp_sym33__ = - Eigen::Matrix::Constant(lcm_sym246__, + Eigen::Matrix::Constant(lcm_sym245__, DUMMY_VAR__); - current_statement__ = 86; + current_statement__ = 85; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni(inline_jolly_seber_lp_i_sym35__), stan::model::index_uni(1)))) + stan::math::bernoulli_lpmf(1, @@ -29557,19 +27293,19 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(1)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(1)); - current_statement__ = 88; - if (stan::math::logical_gte(lcm_sym277__, 2)) { - current_statement__ = 87; + current_statement__ = 87; + if (stan::math::logical_gte(lcm_sym275__, 2)) { + current_statement__ = 86; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym221__, "lcm_sym221__", + stan::model::rvalue(lcm_sym220__, "lcm_sym220__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), stan::model::index_uni(2)))) + @@ -29583,19 +27319,19 @@ class inlining_fail2_model final : public model_base_crtp "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym34__ = 3; inline_jolly_seber_lp_t_sym34__ - <= lcm_sym277__; ++inline_jolly_seber_lp_t_sym34__) { - current_statement__ = 87; + <= lcm_sym275__; ++inline_jolly_seber_lp_t_sym34__) { + current_statement__ = 86; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym221__, - "lcm_sym221__", + stan::model::rvalue(lcm_sym220__, + "lcm_sym220__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym34__ - 1))))) + stan::math::bernoulli_lpmf(1, gamma[(inline_jolly_seber_lp_t_sym34__ - 1)])) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym269__, "lcm_sym269__", + stan::model::rvalue(lcm_sym268__, "lcm_sym268__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), stan::model::index_uni( @@ -29612,13 +27348,13 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(inline_jolly_seber_lp_t_sym34__)); } } - current_statement__ = 89; + current_statement__ = 88; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, stan::math::bernoulli_lpmf(1, - stan::math::prod(lcm_sym221__)), + stan::math::prod(lcm_sym220__)), "assigning variable inline_jolly_seber_lp_lp_sym33__", - stan::model::index_uni(lcm_sym246__)); - current_statement__ = 90; + stan::model::index_uni(lcm_sym245__)); + current_statement__ = 89; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym33__)); } @@ -29667,13 +27403,13 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double lcm_sym207__; - int lcm_sym206__; + double lcm_sym206__; int lcm_sym205__; int lcm_sym204__; int lcm_sym203__; int lcm_sym202__; int lcm_sym201__; + int lcm_sym200__; double lcm_sym172__; int lcm_sym199__; int lcm_sym198__; @@ -29718,7 +27454,7 @@ class inlining_fail2_model final : public model_base_crtp int lcm_sym154__; int lcm_sym153__; int lcm_sym152__; - int lcm_sym200__; + int lcm_sym151__; int lcm_sym150__; int lcm_sym149__; int lcm_sym148__; @@ -29728,31 +27464,24 @@ class inlining_fail2_model final : public model_base_crtp int lcm_sym144__; int lcm_sym143__; Eigen::Matrix lcm_sym142__; - double mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma; - current_statement__ = 3; - gamma = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - n_occasions); + double mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix gamma = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + n_occasions); Eigen::Matrix epsilon = - Eigen::Matrix::Constant((n_occasions - 1), - std::numeric_limits::quiet_NaN()); - lcm_sym200__ = (n_occasions - 1); - epsilon = in__.template read< - Eigen::Matrix>(lcm_sym200__); - double sigma; - current_statement__ = 5; - sigma = in__.template read_constrain_lub(0, 5, lp__); + in__.template read>((n_occasions + - 1)); + double sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = - Eigen::Matrix::Constant(M, lcm_sym200__, + Eigen::Matrix::Constant(M, (n_occasions - 1), std::numeric_limits::quiet_NaN()); Eigen::Matrix p = Eigen::Matrix::Constant(M, n_occasions, @@ -29770,8 +27499,8 @@ class inlining_fail2_model final : public model_base_crtp stan::math::primitive_value(emit_generated_quantities__)))) { return ; } - current_statement__ = 18; - if (stan::math::logical_gte(lcm_sym200__, 1)) { + lcm_sym151__ = (n_occasions - 1); + if (stan::math::logical_gte(lcm_sym151__, 1)) { lcm_sym143__ = stan::math::logical_gte(M, 1); if (lcm_sym143__) { lcm_sym184__ = stan::math::inv_logit((stan::math::logit(mean_phi) + @@ -29785,7 +27514,7 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(i), stan::model::index_uni(1)); } } - for (int t = 2; t <= lcm_sym200__; ++t) { + for (int t = 2; t <= lcm_sym151__; ++t) { current_statement__ = 17; if (lcm_sym143__) { lcm_sym183__ = stan::math::inv_logit((stan::math::logit(mean_phi) @@ -29817,17 +27546,17 @@ class inlining_fail2_model final : public model_base_crtp int inline_prob_uncaptured_n_occasions_sym3__ = std::numeric_limits::min(); lcm_sym173__ = stan::math::cols(lcm_sym186__); - current_statement__ = 21; + current_statement__ = 20; stan::math::validate_non_negative_index("chi", "n_ind", lcm_sym188__); - current_statement__ = 22; + current_statement__ = 21; stan::math::validate_non_negative_index("chi", "n_occasions", lcm_sym173__); Eigen::Matrix inline_prob_uncaptured_chi_sym4__ = Eigen::Matrix::Constant(lcm_sym188__, lcm_sym173__, std::numeric_limits::quiet_NaN()); - current_statement__ = 31; + current_statement__ = 30; if (stan::math::logical_gte(lcm_sym188__, 1)) { - current_statement__ = 24; + current_statement__ = 23; stan::model::assign(inline_prob_uncaptured_chi_sym4__, 1.0, "assigning variable inline_prob_uncaptured_chi_sym4__", stan::model::index_uni(1), stan::model::index_uni(lcm_sym173__)); @@ -29839,7 +27568,7 @@ class inlining_fail2_model final : public model_base_crtp int inline_prob_uncaptured_t_next_sym6__ = std::numeric_limits::min(); lcm_sym160__ = (lcm_sym155__ + 1); - current_statement__ = 27; + current_statement__ = 26; stan::model::assign(inline_prob_uncaptured_chi_sym4__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), @@ -29864,7 +27593,7 @@ class inlining_fail2_model final : public model_base_crtp int inline_prob_uncaptured_t_next_sym6__ = std::numeric_limits::min(); lcm_sym159__ = (lcm_sym154__ + 1); - current_statement__ = 27; + current_statement__ = 26; stan::model::assign(inline_prob_uncaptured_chi_sym4__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), @@ -29885,19 +27614,19 @@ class inlining_fail2_model final : public model_base_crtp } for (int inline_prob_uncaptured_i_sym8__ = 2; inline_prob_uncaptured_i_sym8__ <= lcm_sym188__; ++inline_prob_uncaptured_i_sym8__) { - current_statement__ = 24; + current_statement__ = 23; stan::model::assign(inline_prob_uncaptured_chi_sym4__, 1.0, "assigning variable inline_prob_uncaptured_chi_sym4__", stan::model::index_uni(inline_prob_uncaptured_i_sym8__), stan::model::index_uni(lcm_sym173__)); - current_statement__ = 29; + current_statement__ = 28; if (lcm_sym147__) { int inline_prob_uncaptured_t_curr_sym5__ = std::numeric_limits::min(); int inline_prob_uncaptured_t_next_sym6__ = std::numeric_limits::min(); lcm_sym160__ = (lcm_sym155__ + 1); - current_statement__ = 27; + current_statement__ = 26; stan::model::assign(inline_prob_uncaptured_chi_sym4__, stan::math::fma( (stan::model::rvalue(phi, "phi", @@ -29925,7 +27654,7 @@ class inlining_fail2_model final : public model_base_crtp int inline_prob_uncaptured_t_next_sym6__ = std::numeric_limits::min(); lcm_sym159__ = (lcm_sym154__ + 1); - current_statement__ = 27; + current_statement__ = 26; stan::model::assign(inline_prob_uncaptured_chi_sym4__, stan::math::fma( (stan::model::rvalue(phi, "phi", @@ -29948,7 +27677,7 @@ class inlining_fail2_model final : public model_base_crtp } } } - current_statement__ = 32; + current_statement__ = 31; stan::model::assign(inline_prob_uncaptured_return_sym1__, inline_prob_uncaptured_chi_sym4__, "assigning variable inline_prob_uncaptured_return_sym1__"); @@ -29990,7 +27719,7 @@ class inlining_fail2_model final : public model_base_crtp std::vector> z = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); - current_statement__ = 41; + current_statement__ = 40; if (lcm_sym143__) { int q = std::numeric_limits::min(); double mu2 = std::numeric_limits::quiet_NaN(); @@ -30002,24 +27731,24 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(1)); lcm_sym145__ = stan::math::logical_gte(n_occasions, 2); if (lcm_sym145__) { - lcm_sym204__ = stan::model::rvalue(z, "z", + lcm_sym203__ = stan::model::rvalue(z, "z", stan::model::index_uni(1), stan::model::index_uni(1)); - lcm_sym167__ = (1 * (1 - lcm_sym204__)); + lcm_sym167__ = (1 * (1 - lcm_sym203__)); q = lcm_sym167__; lcm_sym181__ = stan::math::fma( stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(1)), lcm_sym204__, + stan::model::index_uni(1)), lcm_sym203__, (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)) * lcm_sym167__)); - current_statement__ = 35; + current_statement__ = 34; stan::model::assign(z, stan::math::bernoulli_rng(lcm_sym181__, base_rng__), "assigning variable z", stan::model::index_uni(1), stan::model::index_uni(2)); for (int t = 3; t <= n_occasions; ++t) { - current_statement__ = 36; + current_statement__ = 35; q = (q * (1 - stan::model::rvalue(z, "z", stan::model::index_uni(1), stan::model::index_uni((t - 1))))); @@ -30032,7 +27761,7 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni((t - 1))), (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(t)) * q)); - current_statement__ = 35; + current_statement__ = 34; stan::model::assign(z, stan::math::bernoulli_rng(lcm_sym182__, base_rng__), "assigning variable z", stan::model::index_uni(1), @@ -30042,12 +27771,12 @@ class inlining_fail2_model final : public model_base_crtp for (int i = 2; i <= M; ++i) { int q = std::numeric_limits::min(); double mu2 = std::numeric_limits::quiet_NaN(); - current_statement__ = 38; + current_statement__ = 37; stan::model::assign(z, stan::math::bernoulli_rng(lcm_sym172__, base_rng__), "assigning variable z", stan::model::index_uni(i), stan::model::index_uni(1)); - current_statement__ = 39; + current_statement__ = 38; if (lcm_sym145__) { lcm_sym166__ = (1 * (1 - stan::model::rvalue(z, "z", stan::model::index_uni(i), @@ -30062,13 +27791,13 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(1)), (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)) * lcm_sym166__)); - current_statement__ = 35; + current_statement__ = 34; stan::model::assign(z, stan::math::bernoulli_rng(lcm_sym179__, base_rng__), "assigning variable z", stan::model::index_uni(i), stan::model::index_uni(2)); for (int t = 3; t <= n_occasions; ++t) { - current_statement__ = 36; + current_statement__ = 35; q = (q * (1 - stan::model::rvalue(z, "z", stan::model::index_uni(i), stan::model::index_uni((t - 1))))); @@ -30081,7 +27810,7 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni((t - 1))), (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(t)) * q)); - current_statement__ = 35; + current_statement__ = 34; stan::model::assign(z, stan::math::bernoulli_rng(lcm_sym180__, base_rng__), "assigning variable z", stan::model::index_uni(i), @@ -30091,7 +27820,7 @@ class inlining_fail2_model final : public model_base_crtp } } { - current_statement__ = 42; + current_statement__ = 41; stan::math::validate_non_negative_index("cprob", "n_occasions", n_occasions); Eigen::Matrix cprob = @@ -30101,7 +27830,7 @@ class inlining_fail2_model final : public model_base_crtp { int inline_seq_cprob_N_sym11__ = std::numeric_limits::min(); lcm_sym187__ = stan::math::rows(gamma); - current_statement__ = 45; + current_statement__ = 44; stan::math::validate_non_negative_index("log_cprob", "N", lcm_sym187__); Eigen::Matrix inline_seq_cprob_log_cprob_sym12__ = @@ -30109,7 +27838,7 @@ class inlining_fail2_model final : public model_base_crtp std::numeric_limits::quiet_NaN()); double inline_seq_cprob_log_residual_prob_sym13__ = std::numeric_limits::quiet_NaN(); - current_statement__ = 51; + current_statement__ = 50; if (stan::math::logical_gte(lcm_sym187__, 1)) { lcm_sym172__ = stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)); @@ -30117,45 +27846,45 @@ class inlining_fail2_model final : public model_base_crtp (stan::math::log(lcm_sym172__) + 0), "assigning variable inline_seq_cprob_log_cprob_sym12__", stan::model::index_uni(1)); - current_statement__ = 48; + current_statement__ = 47; inline_seq_cprob_log_residual_prob_sym13__ = (0 + stan::math::log1m(lcm_sym172__)); for (int inline_seq_cprob_n_sym14__ = 2; inline_seq_cprob_n_sym14__ <= lcm_sym187__; ++inline_seq_cprob_n_sym14__) { - current_statement__ = 49; + current_statement__ = 48; stan::model::assign(inline_seq_cprob_log_cprob_sym12__, (stan::math::log(gamma[(inline_seq_cprob_n_sym14__ - 1)]) + inline_seq_cprob_log_residual_prob_sym13__), "assigning variable inline_seq_cprob_log_cprob_sym12__", stan::model::index_uni(inline_seq_cprob_n_sym14__)); - current_statement__ = 48; + current_statement__ = 47; inline_seq_cprob_log_residual_prob_sym13__ = (inline_seq_cprob_log_residual_prob_sym13__ + stan::math::log1m(gamma[(inline_seq_cprob_n_sym14__ - 1)])); } } - current_statement__ = 52; + current_statement__ = 51; stan::model::assign(inline_seq_cprob_return_sym10__, stan::math::exp(inline_seq_cprob_log_cprob_sym12__), "assigning variable inline_seq_cprob_return_sym10__"); } - current_statement__ = 53; + current_statement__ = 52; stan::math::validate_non_negative_index("recruit", "M", M); - current_statement__ = 54; + current_statement__ = 53; stan::math::validate_non_negative_index("recruit", "n_occasions", n_occasions); std::vector> recruit = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); - current_statement__ = 55; + current_statement__ = 54; stan::model::assign(recruit, stan::math::rep_array(0, M, n_occasions), "assigning variable recruit"); - current_statement__ = 56; + current_statement__ = 55; stan::math::validate_non_negative_index("Nind", "M", M); std::vector Nind = std::vector(M, std::numeric_limits::min()); - current_statement__ = 58; + current_statement__ = 57; stan::math::validate_non_negative_index("Nalive", "M", M); std::vector Nalive = std::vector(M, std::numeric_limits::min()); @@ -30163,11 +27892,11 @@ class inlining_fail2_model final : public model_base_crtp sigma2 = lcm_sym191__; lcm_sym193__ = stan::math::sum(inline_seq_cprob_return_sym10__); psi = lcm_sym193__; - current_statement__ = 60; + current_statement__ = 59; stan::model::assign(b, stan::math::divide(inline_seq_cprob_return_sym10__, lcm_sym193__), "assigning variable b"); - current_statement__ = 68; + current_statement__ = 67; if (lcm_sym143__) { int f = std::numeric_limits::min(); int inline_first_capture_return_sym16__; @@ -30179,7 +27908,7 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(1))); for (int inline_first_capture_k_sym17__ = 1; inline_first_capture_k_sym17__ <= lcm_sym190__; ++inline_first_capture_k_sym17__) { - current_statement__ = 63; + current_statement__ = 62; if (stan::model::rvalue(z, "z", stan::model::index_uni(1), stan::model::index_uni(inline_first_capture_k_sym17__))) { inline_first_capture_early_ret_check_sym18__ = 1; @@ -30194,9 +27923,9 @@ class inlining_fail2_model final : public model_base_crtp inline_first_capture_return_sym16__ = 0; break; } - current_statement__ = 66; + current_statement__ = 65; if (stan::math::logical_gt(inline_first_capture_return_sym16__, 0)) { - current_statement__ = 65; + current_statement__ = 64; stan::model::assign(recruit, 1, "assigning variable recruit", stan::model::index_uni(1), stan::model::index_uni(inline_first_capture_return_sym16__)); @@ -30212,7 +27941,7 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(i))); for (int inline_first_capture_k_sym17__ = 1; inline_first_capture_k_sym17__ <= lcm_sym189__; ++inline_first_capture_k_sym17__) { - current_statement__ = 63; + current_statement__ = 62; if (stan::model::rvalue(z, "z", stan::model::index_uni(i), stan::model::index_uni(inline_first_capture_k_sym17__))) { inline_first_capture_early_ret_check_sym18__ = 1; @@ -30227,9 +27956,9 @@ class inlining_fail2_model final : public model_base_crtp inline_first_capture_return_sym16__ = 0; break; } - current_statement__ = 66; + current_statement__ = 65; if (stan::math::logical_gt(inline_first_capture_return_sym16__, 0)) { - current_statement__ = 65; + current_statement__ = 64; stan::model::assign(recruit, 1, "assigning variable recruit", stan::model::index_uni(i), stan::model::index_uni(inline_first_capture_return_sym16__)); @@ -30238,26 +27967,26 @@ class inlining_fail2_model final : public model_base_crtp } lcm_sym144__ = stan::math::logical_gte(n_occasions, 1); if (lcm_sym144__) { - current_statement__ = 69; + current_statement__ = 68; stan::model::assign(N, stan::math::sum( stan::model::rvalue(z, "z", stan::model::index_omni(), stan::model::index_uni(1))), "assigning variable N", stan::model::index_uni(1)); - current_statement__ = 70; + current_statement__ = 69; stan::model::assign(B, stan::math::sum( stan::model::rvalue(recruit, "recruit", stan::model::index_omni(), stan::model::index_uni(1))), "assigning variable B", stan::model::index_uni(1)); for (int t = 2; t <= n_occasions; ++t) { - current_statement__ = 69; + current_statement__ = 68; stan::model::assign(N, stan::math::sum( stan::model::rvalue(z, "z", stan::model::index_omni(), stan::model::index_uni(t))), "assigning variable N", stan::model::index_uni(t)); - current_statement__ = 70; + current_statement__ = 69; stan::model::assign(B, stan::math::sum( stan::model::rvalue(recruit, "recruit", @@ -30265,32 +27994,32 @@ class inlining_fail2_model final : public model_base_crtp "assigning variable B", stan::model::index_uni(t)); } } - current_statement__ = 75; + current_statement__ = 74; if (lcm_sym143__) { - current_statement__ = 72; + current_statement__ = 71; stan::model::assign(Nind, stan::math::sum( stan::model::rvalue(z, "z", stan::model::index_uni(1))), "assigning variable Nind", stan::model::index_uni(1)); - current_statement__ = 73; + current_statement__ = 72; stan::model::assign(Nalive, (1 - stan::math::logical_negation( stan::model::rvalue(Nind, "Nind", stan::model::index_uni(1)))), "assigning variable Nalive", stan::model::index_uni(1)); for (int i = 2; i <= M; ++i) { - current_statement__ = 72; + current_statement__ = 71; stan::model::assign(Nind, stan::math::sum( stan::model::rvalue(z, "z", stan::model::index_uni(i))), "assigning variable Nind", stan::model::index_uni(i)); - current_statement__ = 73; + current_statement__ = 72; stan::model::assign(Nalive, (1 - stan::math::logical_negation( stan::model::rvalue(Nind, "Nind", stan::model::index_uni(i)))), "assigning variable Nalive", stan::model::index_uni(i)); } } - current_statement__ = 76; + current_statement__ = 75; Nsuper = stan::math::sum(Nalive); } out__.write(lcm_sym191__); @@ -30525,55 +28254,55 @@ class inlining_fail2_model final : public model_base_crtp emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "mean_phi"); param_names__.emplace_back(std::string() + "mean_p"); - for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { + for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { param_names__.emplace_back(std::string() + "gamma" + '.' + - std::to_string(sym358__)); + std::to_string(sym351__)); } - for (int sym358__ = 1; sym358__ <= epsilon_1dim__; ++sym358__) { + for (int sym351__ = 1; sym351__ <= epsilon_1dim__; ++sym351__) { param_names__.emplace_back(std::string() + "epsilon" + '.' + - std::to_string(sym358__)); + std::to_string(sym351__)); } param_names__.emplace_back(std::string() + "sigma"); if (emit_transformed_parameters__) { - for (int sym358__ = 1; sym358__ <= phi_2dim__; ++sym358__) { - for (int sym359__ = 1; sym359__ <= M; ++sym359__) { + for (int sym351__ = 1; sym351__ <= phi_2dim__; ++sym351__) { + for (int sym352__ = 1; sym352__ <= M; ++sym352__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym359__) + '.' + std::to_string(sym358__)); + std::to_string(sym352__) + '.' + std::to_string(sym351__)); } } - for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { - for (int sym359__ = 1; sym359__ <= M; ++sym359__) { + for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { + for (int sym352__ = 1; sym352__ <= M; ++sym352__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym359__) + '.' + std::to_string(sym358__)); + std::to_string(sym352__) + '.' + std::to_string(sym351__)); } } - for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { - for (int sym359__ = 1; sym359__ <= M; ++sym359__) { + for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { + for (int sym352__ = 1; sym352__ <= M; ++sym352__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym359__) + '.' + std::to_string(sym358__)); + std::to_string(sym352__) + '.' + std::to_string(sym351__)); } } } if (emit_generated_quantities__) { param_names__.emplace_back(std::string() + "sigma2"); param_names__.emplace_back(std::string() + "psi"); - for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { + for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { param_names__.emplace_back(std::string() + "b" + '.' + - std::to_string(sym358__)); + std::to_string(sym351__)); } param_names__.emplace_back(std::string() + "Nsuper"); - for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { + for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { param_names__.emplace_back(std::string() + "N" + '.' + - std::to_string(sym358__)); + std::to_string(sym351__)); } - for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { + for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { param_names__.emplace_back(std::string() + "B" + '.' + - std::to_string(sym358__)); + std::to_string(sym351__)); } - for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { - for (int sym359__ = 1; sym359__ <= M; ++sym359__) { + for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { + for (int sym352__ = 1; sym352__ <= M; ++sym352__) { param_names__.emplace_back(std::string() + "z" + '.' + - std::to_string(sym359__) + '.' + std::to_string(sym358__)); + std::to_string(sym352__) + '.' + std::to_string(sym351__)); } } } @@ -30584,55 +28313,55 @@ class inlining_fail2_model final : public model_base_crtp emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "mean_phi"); param_names__.emplace_back(std::string() + "mean_p"); - for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { + for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { param_names__.emplace_back(std::string() + "gamma" + '.' + - std::to_string(sym358__)); + std::to_string(sym351__)); } - for (int sym358__ = 1; sym358__ <= epsilon_1dim__; ++sym358__) { + for (int sym351__ = 1; sym351__ <= epsilon_1dim__; ++sym351__) { param_names__.emplace_back(std::string() + "epsilon" + '.' + - std::to_string(sym358__)); + std::to_string(sym351__)); } param_names__.emplace_back(std::string() + "sigma"); if (emit_transformed_parameters__) { - for (int sym358__ = 1; sym358__ <= phi_2dim__; ++sym358__) { - for (int sym359__ = 1; sym359__ <= M; ++sym359__) { + for (int sym351__ = 1; sym351__ <= phi_2dim__; ++sym351__) { + for (int sym352__ = 1; sym352__ <= M; ++sym352__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym359__) + '.' + std::to_string(sym358__)); + std::to_string(sym352__) + '.' + std::to_string(sym351__)); } } - for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { - for (int sym359__ = 1; sym359__ <= M; ++sym359__) { + for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { + for (int sym352__ = 1; sym352__ <= M; ++sym352__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym359__) + '.' + std::to_string(sym358__)); + std::to_string(sym352__) + '.' + std::to_string(sym351__)); } } - for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { - for (int sym359__ = 1; sym359__ <= M; ++sym359__) { + for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { + for (int sym352__ = 1; sym352__ <= M; ++sym352__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym359__) + '.' + std::to_string(sym358__)); + std::to_string(sym352__) + '.' + std::to_string(sym351__)); } } } if (emit_generated_quantities__) { param_names__.emplace_back(std::string() + "sigma2"); param_names__.emplace_back(std::string() + "psi"); - for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { + for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { param_names__.emplace_back(std::string() + "b" + '.' + - std::to_string(sym358__)); + std::to_string(sym351__)); } param_names__.emplace_back(std::string() + "Nsuper"); - for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { + for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { param_names__.emplace_back(std::string() + "N" + '.' + - std::to_string(sym358__)); + std::to_string(sym351__)); } - for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { + for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { param_names__.emplace_back(std::string() + "B" + '.' + - std::to_string(sym358__)); + std::to_string(sym351__)); } - for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { - for (int sym359__ = 1; sym359__ <= M; ++sym359__) { + for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { + for (int sym352__ = 1; sym352__ <= M; ++sym352__) { param_names__.emplace_back(std::string() + "z" + '.' + - std::to_string(sym359__) + '.' + std::to_string(sym358__)); + std::to_string(sym352__) + '.' + std::to_string(sym351__)); } } } @@ -30794,8 +28523,6 @@ class lcm_experiment_model final : public model_base_crtp context__.validate_dims("data initialization", "j", "int", std::vector{}); j = std::numeric_limits::min(); - current_statement__ = 1; - j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); lcm_sym4__ = 1; @@ -31160,9 +28887,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + local_scalar_t__ x = in__.template read(); { local_scalar_t__ y = DUMMY_VAR__; lcm_sym8__ = stan::math::log(x); @@ -31210,9 +28935,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + local_scalar_t__ x = in__.template read(); { local_scalar_t__ y = DUMMY_VAR__; lcm_sym5__ = stan::math::log(x); @@ -31270,9 +28993,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + double x = in__.template read(); out__.write(x); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -31512,8 +29233,6 @@ class lcm_fails_model final : public model_base_crtp { std::vector{}); J = std::numeric_limits::min(); current_statement__ = 3; - J = context__.vals_i("J")[(1 - 1)]; - current_statement__ = 3; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 4; stan::math::validate_non_negative_index("y", "J", J); @@ -31521,8 +29240,6 @@ class lcm_fails_model final : public model_base_crtp { context__.validate_dims("data initialization", "y", "double", std::vector{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - y = context__.vals_r("y"); current_statement__ = 6; stan::math::validate_non_negative_index("theta", "J", J); } catch (const std::exception& e) { @@ -31563,9 +29280,7 @@ class lcm_fails_model final : public model_base_crtp { try { double lcm_sym4__; std::vector theta = - std::vector(J, DUMMY_VAR__); - current_statement__ = 1; - theta = in__.template read>(J); + in__.template read>(J); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(y, theta, 1)); @@ -31602,9 +29317,7 @@ class lcm_fails_model final : public model_base_crtp { try { double lcm_sym3__; std::vector theta = - std::vector(J, DUMMY_VAR__); - current_statement__ = 1; - theta = in__.template read>(J); + in__.template read>(J); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(y, theta, 1)); @@ -31653,9 +29366,7 @@ class lcm_fails_model final : public model_base_crtp { int lcm_sym2__; int lcm_sym1__; std::vector theta = - std::vector(J, std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - theta = in__.template read>(J); + in__.template read>(J); out__.write(theta); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -31867,7 +29578,7 @@ namespace lcm_fails2_model_namespace { using stan::model::model_base_crtp; using namespace stan::math; stan::math::profile_map profiles__; -static constexpr std::array locations_array__ = +static constexpr std::array locations_array__ = {" (found before start of program)", " (in 'lcm-fails2.stan', line 66, column 2 to column 34)", " (in 'lcm-fails2.stan', line 67, column 2 to column 32)", @@ -31912,7 +29623,6 @@ static constexpr std::array locations_array__ = " (in 'lcm-fails2.stan', line 57, column 8 to column 12)", " (in 'lcm-fails2.stan', line 57, column 2 to column 51)", " (in 'lcm-fails2.stan', line 61, column 4 to column 35)", - " (in 'lcm-fails2.stan', line 60, column 2 to line 61, column 35)", " (in 'lcm-fails2.stan', line 63, column 4 to column 33)", " (in 'lcm-fails2.stan', line 62, column 2 to line 63, column 33)", " (in 'lcm-fails2.stan', line 70, column 27 to column 31)", @@ -31973,20 +29683,20 @@ int first_capture(const T0__& y_i, std::ostream* pstream__) { { lcm_sym23__ = stan::math::size(y_i); if (stan::math::logical_gte(lcm_sym23__, 1)) { - current_statement__ = 54; + current_statement__ = 53; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(1))) { - current_statement__ = 53; + current_statement__ = 52; return 1; } for (int k = 2; k <= lcm_sym23__; ++k) { - current_statement__ = 54; + current_statement__ = 53; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(k))) { - current_statement__ = 53; + current_statement__ = 52; return k; } } } - current_statement__ = 55; + current_statement__ = 54; return 0; } } catch (const std::exception& e) { @@ -32020,22 +29730,22 @@ int last_capture(const T0__& y_i, std::ostream* pstream__) { if (stan::math::logical_gte(lcm_sym29__, 0)) { int k = std::numeric_limits::min(); lcm_sym28__ = (stan::math::size(y_i) - 0); - current_statement__ = 59; + current_statement__ = 58; if (y_i[(lcm_sym28__ - 1)]) { - current_statement__ = 58; + current_statement__ = 57; return lcm_sym28__; } for (int k_rev = 1; k_rev <= lcm_sym29__; ++k_rev) { int k = std::numeric_limits::min(); lcm_sym27__ = (stan::math::size(y_i) - k_rev); - current_statement__ = 59; + current_statement__ = 58; if (y_i[(lcm_sym27__ - 1)]) { - current_statement__ = 58; + current_statement__ = 57; return lcm_sym27__; } } } - current_statement__ = 61; + current_statement__ = 60; return 0; } } catch (const std::exception& e) { @@ -32183,10 +29893,6 @@ prob_uncaptured(const T0__& nind, const T1__& n_occasions, const T2__& } class lcm_fails2_model final : public model_base_crtp { private: - int lcm_sym152__; - int lcm_sym151__; - int lcm_sym150__; - int lcm_sym149__; int lcm_sym148__; int lcm_sym147__; int lcm_sym146__; @@ -32226,16 +29932,12 @@ class lcm_fails2_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 33; - nind = context__.vals_i("nind")[(1 - 1)]; - current_statement__ = 33; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 34; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 34; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 34; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 35; @@ -32248,52 +29950,14 @@ class lcm_fails2_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 37; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - if (stan::math::logical_gte(n_occasions, 1)) { - lcm_sym144__ = stan::math::logical_gte(nind, 1); - if (lcm_sym144__) { - stan::model::assign(y, - stan::model::rvalue(y_flat__, "y_flat__", - stan::model::index_uni(1)), "assigning variable y", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - for (int sym1__ = 2; sym1__ <= n_occasions; ++sym1__) { - if (lcm_sym144__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(1), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } else { - lcm_sym144__ = stan::math::logical_gte(nind, 1); - } - } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 37; stan::math::check_less_or_equal(function__, "y", y, 1); current_statement__ = 38; n_occ_minus_1 = std::numeric_limits::min(); - lcm_sym145__ = (n_occasions - 1); - n_occ_minus_1 = lcm_sym145__; + lcm_sym144__ = (n_occasions - 1); + n_occ_minus_1 = lcm_sym144__; current_statement__ = 39; stan::math::validate_non_negative_index("first", "nind", nind); current_statement__ = 40; @@ -32302,8 +29966,8 @@ class lcm_fails2_model final : public model_base_crtp { stan::math::validate_non_negative_index("last", "nind", nind); current_statement__ = 42; last = std::vector(nind, std::numeric_limits::min()); - current_statement__ = 44; - if (lcm_sym144__) { + lcm_sym143__ = stan::math::logical_gte(nind, 1); + if (lcm_sym143__) { current_statement__ = 43; stan::model::assign(first, first_capture( @@ -32318,15 +29982,15 @@ class lcm_fails2_model final : public model_base_crtp { stan::model::index_uni(i)); } } - current_statement__ = 46; - if (lcm_sym144__) { - current_statement__ = 45; + current_statement__ = 45; + if (lcm_sym143__) { + current_statement__ = 44; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(1)), pstream__), "assigning variable last", stan::model::index_uni(1)); for (int i = 2; i <= nind; ++i) { - current_statement__ = 45; + current_statement__ = 44; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(i)), @@ -32342,19 +30006,19 @@ class lcm_fails2_model final : public model_base_crtp { stan::math::check_greater_or_equal(function__, "last", last, 0); current_statement__ = 42; stan::math::check_less_or_equal(function__, "last", last, n_occasions); - current_statement__ = 47; + current_statement__ = 46; stan::math::validate_non_negative_index("phi", "nind", nind); - current_statement__ = 48; + current_statement__ = 47; stan::math::validate_non_negative_index("phi", "n_occ_minus_1", - lcm_sym145__); - current_statement__ = 49; + lcm_sym144__); + current_statement__ = 48; stan::math::validate_non_negative_index("p", "nind", nind); - current_statement__ = 50; + current_statement__ = 49; stan::math::validate_non_negative_index("p", "n_occ_minus_1", - lcm_sym145__); - current_statement__ = 51; + lcm_sym144__); + current_statement__ = 50; stan::math::validate_non_negative_index("chi", "nind", nind); - current_statement__ = 52; + current_statement__ = 51; stan::math::validate_non_negative_index("chi", "n_occasions", n_occasions); } catch (const std::exception& e) { @@ -32432,14 +30096,12 @@ class lcm_fails2_model final : public model_base_crtp { int lcm_sym106__; int lcm_sym105__; int lcm_sym104__; - local_scalar_t__ mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, (n_occasions - 1), DUMMY_VAR__); @@ -32843,14 +30505,12 @@ class lcm_fails2_model final : public model_base_crtp { int lcm_sym67__; int lcm_sym66__; int lcm_sym65__; - local_scalar_t__ mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, (n_occasions - 1), DUMMY_VAR__); @@ -33248,14 +30908,12 @@ class lcm_fails2_model final : public model_base_crtp { int lcm_sym44__; int lcm_sym43__; int lcm_sym42__; - double mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + double mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, (n_occasions - 1), std::numeric_limits::quiet_NaN()); @@ -33607,22 +31265,22 @@ class lcm_fails2_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "mean_phi"); param_names__.emplace_back(std::string() + "mean_p"); if (emit_transformed_parameters__) { - for (int sym153__ = 1; sym153__ <= n_occ_minus_1; ++sym153__) { - for (int sym154__ = 1; sym154__ <= nind; ++sym154__) { + for (int sym149__ = 1; sym149__ <= n_occ_minus_1; ++sym149__) { + for (int sym150__ = 1; sym150__ <= nind; ++sym150__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym154__) + '.' + std::to_string(sym153__)); + std::to_string(sym150__) + '.' + std::to_string(sym149__)); } } - for (int sym153__ = 1; sym153__ <= n_occ_minus_1; ++sym153__) { - for (int sym154__ = 1; sym154__ <= nind; ++sym154__) { + for (int sym149__ = 1; sym149__ <= n_occ_minus_1; ++sym149__) { + for (int sym150__ = 1; sym150__ <= nind; ++sym150__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym154__) + '.' + std::to_string(sym153__)); + std::to_string(sym150__) + '.' + std::to_string(sym149__)); } } - for (int sym153__ = 1; sym153__ <= n_occasions; ++sym153__) { - for (int sym154__ = 1; sym154__ <= nind; ++sym154__) { + for (int sym149__ = 1; sym149__ <= n_occasions; ++sym149__) { + for (int sym150__ = 1; sym150__ <= nind; ++sym150__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym154__) + '.' + std::to_string(sym153__)); + std::to_string(sym150__) + '.' + std::to_string(sym149__)); } } } @@ -33635,22 +31293,22 @@ class lcm_fails2_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "mean_phi"); param_names__.emplace_back(std::string() + "mean_p"); if (emit_transformed_parameters__) { - for (int sym153__ = 1; sym153__ <= n_occ_minus_1; ++sym153__) { - for (int sym154__ = 1; sym154__ <= nind; ++sym154__) { + for (int sym149__ = 1; sym149__ <= n_occ_minus_1; ++sym149__) { + for (int sym150__ = 1; sym150__ <= nind; ++sym150__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym154__) + '.' + std::to_string(sym153__)); + std::to_string(sym150__) + '.' + std::to_string(sym149__)); } } - for (int sym153__ = 1; sym153__ <= n_occ_minus_1; ++sym153__) { - for (int sym154__ = 1; sym154__ <= nind; ++sym154__) { + for (int sym149__ = 1; sym149__ <= n_occ_minus_1; ++sym149__) { + for (int sym150__ = 1; sym150__ <= nind; ++sym150__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym154__) + '.' + std::to_string(sym153__)); + std::to_string(sym150__) + '.' + std::to_string(sym149__)); } } - for (int sym153__ = 1; sym153__ <= n_occasions; ++sym153__) { - for (int sym154__ = 1; sym154__ <= nind; ++sym154__) { + for (int sym149__ = 1; sym149__ <= n_occasions; ++sym149__) { + for (int sym150__ = 1; sym150__ <= nind; ++sym150__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym154__) + '.' + std::to_string(sym153__)); + std::to_string(sym150__) + '.' + std::to_string(sym149__)); } } } @@ -33896,8 +31554,6 @@ class lupdf_inlining_model final : public model_base_crtp context__.validate_dims("data initialization", "n", "int", std::vector{}); n = std::numeric_limits::min(); - current_statement__ = 6; - n = context__.vals_i("n")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -33937,9 +31593,7 @@ class lupdf_inlining_model final : public model_base_crtp local_scalar_t__ lcm_sym43__; local_scalar_t__ lcm_sym42__; local_scalar_t__ lcm_sym41__; - local_scalar_t__ mu; - current_statement__ = 1; - mu = in__.template read(); + local_scalar_t__ mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; double inline_foo_lpdf_return_sym23__; { @@ -33994,9 +31648,7 @@ class lupdf_inlining_model final : public model_base_crtp local_scalar_t__ lcm_sym40__; local_scalar_t__ lcm_sym39__; local_scalar_t__ lcm_sym38__; - local_scalar_t__ mu; - current_statement__ = 1; - mu = in__.template read(); + local_scalar_t__ mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; double inline_foo_lpdf_return_sym16__; { @@ -34064,9 +31716,7 @@ class lupdf_inlining_model final : public model_base_crtp double lcm_sym35__; int lcm_sym34__; int lcm_sym33__; - double mu; - current_statement__ = 1; - mu = in__.template read(); + double mu = in__.template read(); double tp = std::numeric_limits::quiet_NaN(); out__.write(mu); if (stan::math::logical_negation( @@ -34377,12 +32027,6 @@ static constexpr std::array locations_array__ = " (in 'off-dce.stan', line 56, column 8 to column 9)"}; class off_dce_model final : public model_base_crtp { private: - int lcm_sym53__; - int lcm_sym52__; - int lcm_sym51__; - int lcm_sym50__; - double lcm_sym49__; - double lcm_sym48__; int lcm_sym47__; int lcm_sym46__; int lcm_sym45__; @@ -34423,16 +32067,12 @@ class off_dce_model final : public model_base_crtp { std::vector{}); R = std::numeric_limits::min(); current_statement__ = 31; - R = context__.vals_i("R")[(1 - 1)]; - current_statement__ = 31; stan::math::check_greater_or_equal(function__, "R", R, 1); current_statement__ = 32; context__.validate_dims("data initialization", "T", "int", std::vector{}); T = std::numeric_limits::min(); current_statement__ = 32; - T = context__.vals_i("T")[(1 - 1)]; - current_statement__ = 32; stan::math::check_greater_or_equal(function__, "T", T, 1); current_statement__ = 33; stan::math::validate_non_negative_index("y", "R", R); @@ -34443,44 +32083,6 @@ class off_dce_model final : public model_base_crtp { std::vector{static_cast(R), static_cast(T)}); y = std::vector>(R, std::vector(T, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 35; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - if (stan::math::logical_gte(T, 1)) { - lcm_sym42__ = stan::math::logical_gte(R, 1); - if (lcm_sym42__) { - stan::model::assign(y, - stan::model::rvalue(y_flat__, "y_flat__", - stan::model::index_uni(1)), "assigning variable y", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - for (int sym2__ = 2; sym2__ <= R; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - for (int sym1__ = 2; sym1__ <= T; ++sym1__) { - if (lcm_sym42__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(1), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - for (int sym2__ = 2; sym2__ <= R; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - } else { - lcm_sym42__ = stan::math::logical_gte(R, 1); - } - } current_statement__ = 35; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 35; @@ -34493,24 +32095,6 @@ class off_dce_model final : public model_base_crtp { X_data__ = Eigen::Matrix::Constant(R, std::numeric_limits::quiet_NaN()); new (&X) Eigen::Map>(X_data__.data(), R); - { - std::vector X_flat__; - current_statement__ = 37; - X_flat__ = context__.vals_r("X"); - pos__ = 1; - if (lcm_sym42__) { - stan::model::assign(X, - stan::model::rvalue(X_flat__, "X_flat__", - stan::model::index_uni(1)), "assigning variable X", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= R; ++sym1__) { - stan::model::assign(X, X_flat__[(pos__ - 1)], - "assigning variable X", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 38; stan::math::validate_non_negative_index("sum_y", "R", R); current_statement__ = 39; @@ -34520,7 +32104,7 @@ class off_dce_model final : public model_base_crtp { current_statement__ = 41; occ_obs = 0; current_statement__ = 46; - if (lcm_sym42__) { + if (stan::math::logical_gte(R, 1)) { current_statement__ = 42; stan::model::assign(sum_y, stan::math::sum( @@ -34609,18 +32193,10 @@ class off_dce_model final : public model_base_crtp { double lcm_sym33__; double lcm_sym32__; int lcm_sym31__; - local_scalar_t__ alpha_occ; - current_statement__ = 1; - alpha_occ = in__.template read(); - local_scalar_t__ beta_occ; - current_statement__ = 2; - beta_occ = in__.template read(); - local_scalar_t__ alpha_p; - current_statement__ = 3; - alpha_p = in__.template read(); - local_scalar_t__ beta_p; - current_statement__ = 4; - beta_p = in__.template read(); + local_scalar_t__ alpha_occ = in__.template read(); + local_scalar_t__ beta_occ = in__.template read(); + local_scalar_t__ alpha_p = in__.template read(); + local_scalar_t__ beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); Eigen::Matrix logit_p = @@ -34734,18 +32310,10 @@ class off_dce_model final : public model_base_crtp { double lcm_sym22__; double lcm_sym21__; int lcm_sym20__; - local_scalar_t__ alpha_occ; - current_statement__ = 1; - alpha_occ = in__.template read(); - local_scalar_t__ beta_occ; - current_statement__ = 2; - beta_occ = in__.template read(); - local_scalar_t__ alpha_p; - current_statement__ = 3; - alpha_p = in__.template read(); - local_scalar_t__ beta_p; - current_statement__ = 4; - beta_p = in__.template read(); + local_scalar_t__ alpha_occ = in__.template read(); + local_scalar_t__ beta_occ = in__.template read(); + local_scalar_t__ alpha_p = in__.template read(); + local_scalar_t__ beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); Eigen::Matrix logit_p = @@ -34878,18 +32446,10 @@ class off_dce_model final : public model_base_crtp { int lcm_sym3__; double lcm_sym2__; double lcm_sym1__; - double alpha_occ; - current_statement__ = 1; - alpha_occ = in__.template read(); - double beta_occ; - current_statement__ = 2; - beta_occ = in__.template read(); - double alpha_p; - current_statement__ = 3; - alpha_p = in__.template read(); - double beta_p; - current_statement__ = 4; - beta_p = in__.template read(); + double alpha_occ = in__.template read(); + double beta_occ = in__.template read(); + double alpha_p = in__.template read(); + double beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, std::numeric_limits::quiet_NaN()); @@ -35152,26 +32712,26 @@ class off_dce_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "alpha_p"); param_names__.emplace_back(std::string() + "beta_p"); if (emit_transformed_parameters__) { - for (int sym54__ = 1; sym54__ <= R; ++sym54__) { + for (int sym48__ = 1; sym48__ <= R; ++sym48__) { param_names__.emplace_back(std::string() + "logit_psi" + '.' + - std::to_string(sym54__)); + std::to_string(sym48__)); } - for (int sym54__ = 1; sym54__ <= T; ++sym54__) { - for (int sym55__ = 1; sym55__ <= R; ++sym55__) { + for (int sym48__ = 1; sym48__ <= T; ++sym48__) { + for (int sym49__ = 1; sym49__ <= R; ++sym49__) { param_names__.emplace_back(std::string() + "logit_p" + '.' + - std::to_string(sym55__) + '.' + std::to_string(sym54__)); + std::to_string(sym49__) + '.' + std::to_string(sym48__)); } } } if (emit_generated_quantities__) { param_names__.emplace_back(std::string() + "occ_fs"); - for (int sym54__ = 1; sym54__ <= R; ++sym54__) { + for (int sym48__ = 1; sym48__ <= R; ++sym48__) { param_names__.emplace_back(std::string() + "psi_con" + '.' + - std::to_string(sym54__)); + std::to_string(sym48__)); } - for (int sym54__ = 1; sym54__ <= R; ++sym54__) { + for (int sym48__ = 1; sym48__ <= R; ++sym48__) { param_names__.emplace_back(std::string() + "z" + '.' + - std::to_string(sym54__)); + std::to_string(sym48__)); } } } @@ -35184,26 +32744,26 @@ class off_dce_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "alpha_p"); param_names__.emplace_back(std::string() + "beta_p"); if (emit_transformed_parameters__) { - for (int sym54__ = 1; sym54__ <= R; ++sym54__) { + for (int sym48__ = 1; sym48__ <= R; ++sym48__) { param_names__.emplace_back(std::string() + "logit_psi" + '.' + - std::to_string(sym54__)); + std::to_string(sym48__)); } - for (int sym54__ = 1; sym54__ <= T; ++sym54__) { - for (int sym55__ = 1; sym55__ <= R; ++sym55__) { + for (int sym48__ = 1; sym48__ <= T; ++sym48__) { + for (int sym49__ = 1; sym49__ <= R; ++sym49__) { param_names__.emplace_back(std::string() + "logit_p" + '.' + - std::to_string(sym55__) + '.' + std::to_string(sym54__)); + std::to_string(sym49__) + '.' + std::to_string(sym48__)); } } } if (emit_generated_quantities__) { param_names__.emplace_back(std::string() + "occ_fs"); - for (int sym54__ = 1; sym54__ <= R; ++sym54__) { + for (int sym48__ = 1; sym48__ <= R; ++sym48__) { param_names__.emplace_back(std::string() + "psi_con" + '.' + - std::to_string(sym54__)); + std::to_string(sym48__)); } - for (int sym54__ = 1; sym54__ <= R; ++sym54__) { + for (int sym48__ = 1; sym48__ <= R; ++sym48__) { param_names__.emplace_back(std::string() + "z" + '.' + - std::to_string(sym54__)); + std::to_string(sym48__)); } } } @@ -35358,14 +32918,6 @@ static constexpr std::array locations_array__ = " (in 'off-small.stan', line 22, column 9 to column 10)"}; class off_small_model final : public model_base_crtp { private: - double lcm_sym43__; - double lcm_sym42__; - double lcm_sym41__; - double lcm_sym40__; - double lcm_sym39__; - double lcm_sym38__; - int lcm_sym37__; - int lcm_sym36__; int J; int N; std::vector person; @@ -35402,16 +32954,12 @@ class off_small_model final : public model_base_crtp { std::vector{}); J = std::numeric_limits::min(); current_statement__ = 20; - J = context__.vals_i("J")[(1 - 1)]; - current_statement__ = 20; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 21; context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); current_statement__ = 21; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 21; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 22; stan::math::validate_non_negative_index("person", "N", N); @@ -35420,8 +32968,6 @@ class off_small_model final : public model_base_crtp { std::vector{static_cast(N)}); person = std::vector(N, std::numeric_limits::min()); current_statement__ = 23; - person = context__.vals_i("person"); - current_statement__ = 23; stan::math::check_greater_or_equal(function__, "person", person, 1); current_statement__ = 23; stan::math::check_less_or_equal(function__, "person", person, J); @@ -35434,25 +32980,6 @@ class off_small_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&time) Eigen::Map>(time_data__.data(), N); - { - std::vector time_flat__; - current_statement__ = 25; - time_flat__ = context__.vals_r("time"); - pos__ = 1; - lcm_sym36__ = stan::math::logical_gte(N, 1); - if (lcm_sym36__) { - stan::model::assign(time, - stan::model::rvalue(time_flat__, "time_flat__", - stan::model::index_uni(1)), "assigning variable time", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= N; ++sym1__) { - stan::model::assign(time, time_flat__[(pos__ - 1)], - "assigning variable time", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 26; stan::math::validate_non_negative_index("treatment", "N", N); current_statement__ = 27; @@ -35462,24 +32989,6 @@ class off_small_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&treatment) Eigen::Map>(treatment_data__.data(), N); - { - std::vector treatment_flat__; - current_statement__ = 27; - treatment_flat__ = context__.vals_r("treatment"); - pos__ = 1; - if (lcm_sym36__) { - stan::model::assign(treatment, - stan::model::rvalue(treatment_flat__, "treatment_flat__", - stan::model::index_uni(1)), "assigning variable treatment", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= N; ++sym1__) { - stan::model::assign(treatment, treatment_flat__[(pos__ - 1)], - "assigning variable treatment", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 28; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 29; @@ -35488,24 +32997,6 @@ class off_small_model final : public model_base_crtp { y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); - { - std::vector y_flat__; - current_statement__ = 29; - y_flat__ = context__.vals_r("y"); - pos__ = 1; - if (lcm_sym36__) { - stan::model::assign(y, - stan::model::rvalue(y_flat__, "y_flat__", - stan::model::index_uni(1)), "assigning variable y", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= N; ++sym1__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 30; stan::math::validate_non_negative_index("eta1", "J", J); current_statement__ = 31; @@ -35563,33 +33054,22 @@ class off_small_model final : public model_base_crtp { double lcm_sym27__; Eigen::Matrix lcm_sym26__; int lcm_sym25__; - local_scalar_t__ beta; - current_statement__ = 1; - beta = in__.template read(); - Eigen::Matrix eta1; - current_statement__ = 2; - eta1 = in__.template read>(J); - Eigen::Matrix eta2; - current_statement__ = 3; - eta2 = in__.template read>(J); - local_scalar_t__ mu_a1; - current_statement__ = 4; - mu_a1 = in__.template read(); - local_scalar_t__ mu_a2; - current_statement__ = 5; - mu_a2 = in__.template read(); - local_scalar_t__ sigma_a1; - current_statement__ = 6; - sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_a2; - current_statement__ = 7; - sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y; - current_statement__ = 8; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + local_scalar_t__ beta = in__.template read(); + Eigen::Matrix eta1 = + in__.template read>(J); + Eigen::Matrix eta2 = + in__.template read>(J); + local_scalar_t__ mu_a1 = in__.template read(); + local_scalar_t__ mu_a2 = in__.template read(); + local_scalar_t__ sigma_a1 = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_a2 = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix a1 = Eigen::Matrix::Constant(J, DUMMY_VAR__); Eigen::Matrix a2 = @@ -35698,33 +33178,22 @@ class off_small_model final : public model_base_crtp { double lcm_sym16__; Eigen::Matrix lcm_sym15__; int lcm_sym14__; - local_scalar_t__ beta; - current_statement__ = 1; - beta = in__.template read(); - Eigen::Matrix eta1; - current_statement__ = 2; - eta1 = in__.template read>(J); - Eigen::Matrix eta2; - current_statement__ = 3; - eta2 = in__.template read>(J); - local_scalar_t__ mu_a1; - current_statement__ = 4; - mu_a1 = in__.template read(); - local_scalar_t__ mu_a2; - current_statement__ = 5; - mu_a2 = in__.template read(); - local_scalar_t__ sigma_a1; - current_statement__ = 6; - sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_a2; - current_statement__ = 7; - sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y; - current_statement__ = 8; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + local_scalar_t__ beta = in__.template read(); + Eigen::Matrix eta1 = + in__.template read>(J); + Eigen::Matrix eta2 = + in__.template read>(J); + local_scalar_t__ mu_a1 = in__.template read(); + local_scalar_t__ mu_a2 = in__.template read(); + local_scalar_t__ sigma_a1 = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_a2 = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix a1 = Eigen::Matrix::Constant(J, DUMMY_VAR__); Eigen::Matrix a2 = @@ -35840,33 +33309,22 @@ class off_small_model final : public model_base_crtp { int lcm_sym9__; int lcm_sym8__; int lcm_sym7__; - double beta; - current_statement__ = 1; - beta = in__.template read(); - Eigen::Matrix eta1; - current_statement__ = 2; - eta1 = in__.template read>(J); - Eigen::Matrix eta2; - current_statement__ = 3; - eta2 = in__.template read>(J); - double mu_a1; - current_statement__ = 4; - mu_a1 = in__.template read(); - double mu_a2; - current_statement__ = 5; - mu_a2 = in__.template read(); - double sigma_a1; - current_statement__ = 6; - sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - double sigma_a2; - current_statement__ = 7; - sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - double sigma_y; - current_statement__ = 8; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + double beta = in__.template read(); + Eigen::Matrix eta1 = + in__.template read>(J); + Eigen::Matrix eta2 = + in__.template read>(J); + double mu_a1 = in__.template read(); + double mu_a2 = in__.template read(); + double sigma_a1 = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_a2 = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix a1 = Eigen::Matrix::Constant(J, std::numeric_limits::quiet_NaN()); @@ -36158,13 +33616,13 @@ class off_small_model final : public model_base_crtp { emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "beta"); - for (int sym44__ = 1; sym44__ <= J; ++sym44__) { + for (int sym36__ = 1; sym36__ <= J; ++sym36__) { param_names__.emplace_back(std::string() + "eta1" + '.' + - std::to_string(sym44__)); + std::to_string(sym36__)); } - for (int sym44__ = 1; sym44__ <= J; ++sym44__) { + for (int sym36__ = 1; sym36__ <= J; ++sym36__) { param_names__.emplace_back(std::string() + "eta2" + '.' + - std::to_string(sym44__)); + std::to_string(sym36__)); } param_names__.emplace_back(std::string() + "mu_a1"); param_names__.emplace_back(std::string() + "mu_a2"); @@ -36172,17 +33630,17 @@ class off_small_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "sigma_a2"); param_names__.emplace_back(std::string() + "sigma_y"); if (emit_transformed_parameters__) { - for (int sym44__ = 1; sym44__ <= J; ++sym44__) { + for (int sym36__ = 1; sym36__ <= J; ++sym36__) { param_names__.emplace_back(std::string() + "a1" + '.' + - std::to_string(sym44__)); + std::to_string(sym36__)); } - for (int sym44__ = 1; sym44__ <= J; ++sym44__) { + for (int sym36__ = 1; sym36__ <= J; ++sym36__) { param_names__.emplace_back(std::string() + "a2" + '.' + - std::to_string(sym44__)); + std::to_string(sym36__)); } - for (int sym44__ = 1; sym44__ <= N; ++sym44__) { + for (int sym36__ = 1; sym36__ <= N; ++sym36__) { param_names__.emplace_back(std::string() + "y_hat" + '.' + - std::to_string(sym44__)); + std::to_string(sym36__)); } } if (emit_generated_quantities__) {} @@ -36192,13 +33650,13 @@ class off_small_model final : public model_base_crtp { emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "beta"); - for (int sym44__ = 1; sym44__ <= J; ++sym44__) { + for (int sym36__ = 1; sym36__ <= J; ++sym36__) { param_names__.emplace_back(std::string() + "eta1" + '.' + - std::to_string(sym44__)); + std::to_string(sym36__)); } - for (int sym44__ = 1; sym44__ <= J; ++sym44__) { + for (int sym36__ = 1; sym36__ <= J; ++sym36__) { param_names__.emplace_back(std::string() + "eta2" + '.' + - std::to_string(sym44__)); + std::to_string(sym36__)); } param_names__.emplace_back(std::string() + "mu_a1"); param_names__.emplace_back(std::string() + "mu_a2"); @@ -36206,17 +33664,17 @@ class off_small_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "sigma_a2"); param_names__.emplace_back(std::string() + "sigma_y"); if (emit_transformed_parameters__) { - for (int sym44__ = 1; sym44__ <= J; ++sym44__) { + for (int sym36__ = 1; sym36__ <= J; ++sym36__) { param_names__.emplace_back(std::string() + "a1" + '.' + - std::to_string(sym44__)); + std::to_string(sym36__)); } - for (int sym44__ = 1; sym44__ <= J; ++sym44__) { + for (int sym36__ = 1; sym36__ <= J; ++sym36__) { param_names__.emplace_back(std::string() + "a2" + '.' + - std::to_string(sym44__)); + std::to_string(sym36__)); } - for (int sym44__ = 1; sym44__ <= N; ++sym44__) { + for (int sym36__ = 1; sym36__ <= N; ++sym36__) { param_names__.emplace_back(std::string() + "y_hat" + '.' + - std::to_string(sym44__)); + std::to_string(sym36__)); } } if (emit_generated_quantities__) {} @@ -36598,23 +34056,15 @@ class optimizations_model final : public model_base_crtp { int lcm_sym94__; int lcm_sym93__; int lcm_sym92__; - local_scalar_t__ theta; - current_statement__ = 1; - theta = in__.template read(); - local_scalar_t__ phi; - current_statement__ = 2; - phi = in__.template read(); - Eigen::Matrix x_matrix; - current_statement__ = 3; - x_matrix = in__.template read>(3, - 2); - Eigen::Matrix x_vector; - current_statement__ = 4; - x_vector = in__.template read>(2); - Eigen::Matrix x_cov; - current_statement__ = 5; - x_cov = in__.template read_constrain_cov_matrix< - Eigen::Matrix, jacobian__>(lp__, 2); + local_scalar_t__ theta = in__.template read(); + local_scalar_t__ phi = in__.template read(); + Eigen::Matrix x_matrix = + in__.template read>(3, 2); + Eigen::Matrix x_vector = + in__.template read>(2); + Eigen::Matrix x_cov = + in__.template read_constrain_cov_matrix< + Eigen::Matrix, jacobian__>(lp__, 2); { double x = std::numeric_limits::quiet_NaN(); { @@ -37127,25 +34577,15 @@ class optimizations_model final : public model_base_crtp { int lcm_sym70__; int lcm_sym69__; int lcm_sym68__; - local_scalar_t__ theta; - current_statement__ = 1; - theta = in__.template read(); - local_scalar_t__ phi; - current_statement__ = 2; - phi = in__.template read(); - stan::math::var_value> x_matrix; - current_statement__ = 3; - x_matrix = in__.template read< - stan::math::var_value>>(3, 2); - stan::math::var_value> x_vector; - current_statement__ = 4; - x_vector = in__.template read< - stan::math::var_value>>(2); - stan::math::var_value> x_cov; - current_statement__ = 5; - x_cov = in__.template read_constrain_cov_matrix< - stan::math::var_value>, - jacobian__>(lp__, 2); + local_scalar_t__ theta = in__.template read(); + local_scalar_t__ phi = in__.template read(); + stan::math::var_value> x_matrix = + in__.template read>(3, 2); + stan::math::var_value> x_vector = + in__.template read>(2); + stan::math::var_value> x_cov = + in__.template read_constrain_cov_matrix< + Eigen::Matrix, jacobian__>(lp__, 2); { double x = std::numeric_limits::quiet_NaN(); { @@ -37647,23 +35087,15 @@ class optimizations_model final : public model_base_crtp { try { int lcm_sym67__; int lcm_sym66__; - double theta; - current_statement__ = 1; - theta = in__.template read(); - double phi; - current_statement__ = 2; - phi = in__.template read(); - Eigen::Matrix x_matrix; - current_statement__ = 3; - x_matrix = in__.template read>(3, - 2); - Eigen::Matrix x_vector; - current_statement__ = 4; - x_vector = in__.template read>(2); - Eigen::Matrix x_cov; - current_statement__ = 5; - x_cov = in__.template read_constrain_cov_matrix< - Eigen::Matrix, jacobian__>(lp__, 2); + double theta = in__.template read(); + double phi = in__.template read(); + Eigen::Matrix x_matrix = + in__.template read>(3, 2); + Eigen::Matrix x_vector = + in__.template read>(2); + Eigen::Matrix x_cov = + in__.template read_constrain_cov_matrix< + Eigen::Matrix, jacobian__>(lp__, 2); out__.write(theta); out__.write(phi); out__.write(x_matrix); @@ -39261,14 +36693,6 @@ static constexpr std::array locations_array__ = " (in 'partial-eval.stan', line 17, column 9 to column 10)"}; class partial_eval_model final : public model_base_crtp { private: - double lcm_sym39__; - double lcm_sym38__; - double lcm_sym37__; - double lcm_sym36__; - double lcm_sym35__; - double lcm_sym34__; - int lcm_sym33__; - int lcm_sym32__; int N; int n_pair; std::vector pair; @@ -39305,16 +36729,12 @@ class partial_eval_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 16; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 16; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 17; context__.validate_dims("data initialization", "n_pair", "int", std::vector{}); n_pair = std::numeric_limits::min(); current_statement__ = 17; - n_pair = context__.vals_i("n_pair")[(1 - 1)]; - current_statement__ = 17; stan::math::check_greater_or_equal(function__, "n_pair", n_pair, 0); current_statement__ = 18; stan::math::validate_non_negative_index("pair", "N", N); @@ -39323,8 +36743,6 @@ class partial_eval_model final : public model_base_crtp { std::vector{static_cast(N)}); pair = std::vector(N, std::numeric_limits::min()); current_statement__ = 19; - pair = context__.vals_i("pair"); - current_statement__ = 19; stan::math::check_greater_or_equal(function__, "pair", pair, 1); current_statement__ = 19; stan::math::check_less_or_equal(function__, "pair", pair, n_pair); @@ -39337,25 +36755,6 @@ class partial_eval_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&pre_test) Eigen::Map>(pre_test_data__.data(), N); - { - std::vector pre_test_flat__; - current_statement__ = 21; - pre_test_flat__ = context__.vals_r("pre_test"); - pos__ = 1; - lcm_sym32__ = stan::math::logical_gte(N, 1); - if (lcm_sym32__) { - stan::model::assign(pre_test, - stan::model::rvalue(pre_test_flat__, "pre_test_flat__", - stan::model::index_uni(1)), "assigning variable pre_test", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= N; ++sym1__) { - stan::model::assign(pre_test, pre_test_flat__[(pos__ - 1)], - "assigning variable pre_test", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 22; stan::math::validate_non_negative_index("treatment", "N", N); current_statement__ = 23; @@ -39365,24 +36764,6 @@ class partial_eval_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&treatment) Eigen::Map>(treatment_data__.data(), N); - { - std::vector treatment_flat__; - current_statement__ = 23; - treatment_flat__ = context__.vals_r("treatment"); - pos__ = 1; - if (lcm_sym32__) { - stan::model::assign(treatment, - stan::model::rvalue(treatment_flat__, "treatment_flat__", - stan::model::index_uni(1)), "assigning variable treatment", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= N; ++sym1__) { - stan::model::assign(treatment, treatment_flat__[(pos__ - 1)], - "assigning variable treatment", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 23; stan::math::check_greater_or_equal(function__, "treatment", treatment, 0); @@ -39396,24 +36777,6 @@ class partial_eval_model final : public model_base_crtp { y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); - { - std::vector y_flat__; - current_statement__ = 25; - y_flat__ = context__.vals_r("y"); - pos__ = 1; - if (lcm_sym32__) { - stan::model::assign(y, - stan::model::rvalue(y_flat__, "y_flat__", - stan::model::index_uni(1)), "assigning variable y", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= N; ++sym1__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 26; stan::math::validate_non_negative_index("a", "n_pair", n_pair); current_statement__ = 27; @@ -39464,23 +36827,17 @@ class partial_eval_model final : public model_base_crtp { double lcm_sym24__; double lcm_sym23__; int lcm_sym22__; - Eigen::Matrix a; - current_statement__ = 1; - a = in__.template read>(n_pair); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read>(2); - local_scalar_t__ mu_a; - current_statement__ = 3; - mu_a = in__.template read(); - local_scalar_t__ sigma_a; - current_statement__ = 4; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y; - current_statement__ = 5; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + Eigen::Matrix a = + in__.template read>(n_pair); + Eigen::Matrix beta = + in__.template read>(2); + local_scalar_t__ mu_a = in__.template read(); + local_scalar_t__ sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 8; @@ -39580,23 +36937,17 @@ class partial_eval_model final : public model_base_crtp { double lcm_sym14__; double lcm_sym13__; int lcm_sym12__; - Eigen::Matrix a; - current_statement__ = 1; - a = in__.template read>(n_pair); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read>(2); - local_scalar_t__ mu_a; - current_statement__ = 3; - mu_a = in__.template read(); - local_scalar_t__ sigma_a; - current_statement__ = 4; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y; - current_statement__ = 5; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + Eigen::Matrix a = + in__.template read>(n_pair); + Eigen::Matrix beta = + in__.template read>(2); + local_scalar_t__ mu_a = in__.template read(); + local_scalar_t__ sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 8; @@ -39702,23 +37053,17 @@ class partial_eval_model final : public model_base_crtp { int lcm_sym9__; int lcm_sym8__; int lcm_sym7__; - Eigen::Matrix a; - current_statement__ = 1; - a = in__.template read>(n_pair); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read>(2); - double mu_a; - current_statement__ = 3; - mu_a = in__.template read(); - double sigma_a; - current_statement__ = 4; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - double sigma_y; - current_statement__ = 5; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + Eigen::Matrix a = + in__.template read>(n_pair); + Eigen::Matrix beta = + in__.template read>(2); + double mu_a = in__.template read(); + double sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); @@ -39949,21 +37294,21 @@ class partial_eval_model final : public model_base_crtp { constrained_param_names(std::vector& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym40__ = 1; sym40__ <= n_pair; ++sym40__) { + for (int sym32__ = 1; sym32__ <= n_pair; ++sym32__) { param_names__.emplace_back(std::string() + "a" + '.' + - std::to_string(sym40__)); + std::to_string(sym32__)); } - for (int sym40__ = 1; sym40__ <= 2; ++sym40__) { + for (int sym32__ = 1; sym32__ <= 2; ++sym32__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym40__)); + std::to_string(sym32__)); } param_names__.emplace_back(std::string() + "mu_a"); param_names__.emplace_back(std::string() + "sigma_a"); param_names__.emplace_back(std::string() + "sigma_y"); if (emit_transformed_parameters__) { - for (int sym40__ = 1; sym40__ <= N; ++sym40__) { + for (int sym32__ = 1; sym32__ <= N; ++sym32__) { param_names__.emplace_back(std::string() + "y_hat" + '.' + - std::to_string(sym40__)); + std::to_string(sym32__)); } } if (emit_generated_quantities__) {} @@ -39972,21 +37317,21 @@ class partial_eval_model final : public model_base_crtp { unconstrained_param_names(std::vector& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym40__ = 1; sym40__ <= n_pair; ++sym40__) { + for (int sym32__ = 1; sym32__ <= n_pair; ++sym32__) { param_names__.emplace_back(std::string() + "a" + '.' + - std::to_string(sym40__)); + std::to_string(sym32__)); } - for (int sym40__ = 1; sym40__ <= 2; ++sym40__) { + for (int sym32__ = 1; sym32__ <= 2; ++sym32__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym40__)); + std::to_string(sym32__)); } param_names__.emplace_back(std::string() + "mu_a"); param_names__.emplace_back(std::string() + "sigma_a"); param_names__.emplace_back(std::string() + "sigma_y"); if (emit_transformed_parameters__) { - for (int sym40__ = 1; sym40__ <= N; ++sym40__) { + for (int sym32__ = 1; sym32__ <= N; ++sym32__) { param_names__.emplace_back(std::string() + "y_hat" + '.' + - std::to_string(sym40__)); + std::to_string(sym32__)); } } if (emit_generated_quantities__) {} @@ -40114,11 +37459,6 @@ static constexpr std::array locations_array__ = " (in 'partial_eval_multiply.stan', line 5, column 2 to column 20)"}; class partial_eval_multiply_model final : public model_base_crtp { private: - double lcm_sym18__; - double lcm_sym17__; - double lcm_sym16__; - double lcm_sym15__; - int lcm_sym14__; Eigen::Matrix m1_data__; Eigen::Matrix m4_data__; std::vector idx; @@ -40154,1855 +37494,625 @@ class partial_eval_multiply_model final : public model_base_crtp::quiet_NaN()); new (&m1) Eigen::Map>(m1_data__.data(), 10, 10); + current_statement__ = 8; + context__.validate_dims("data initialization", "m4", "double", + std::vector{static_cast(10), static_cast(10)}); + m4_data__ = Eigen::Matrix::Constant(10, 10, + std::numeric_limits::quiet_NaN()); + new (&m4) Eigen::Map>(m4_data__.data(), 10, + 10); + current_statement__ = 9; + context__.validate_dims("data initialization", "idx", "int", + std::vector{static_cast(10)}); + idx = std::vector(10, std::numeric_limits::min()); + current_statement__ = 10; + context__.validate_dims("data initialization", "idy", "int", + std::vector{static_cast(10)}); + idy = std::vector(10, std::numeric_limits::min()); + } catch (const std::exception& e) { + stan::lang::rethrow_located(e, locations_array__[current_statement__]); + } + num_params_r__ = (10 * 10) + (10 * 10); + } + inline std::string model_name() const final { + return "partial_eval_multiply_model"; + } + inline std::vector model_compile_info() const noexcept { + return std::vector{"stanc_version = %%NAME%%3 %%VERSION%%", + "stancflags = --O --print-cpp"}; + } + // Base log prob + template * = nullptr, + stan::require_vector_like_vt* = nullptr, + stan::require_not_st_var* = nullptr> + inline stan::scalar_type_t + log_prob_impl(VecR& params_r__, VecI& params_i__, std::ostream* + pstream__ = nullptr) const { + using T__ = stan::scalar_type_t; + using local_scalar_t__ = T__; + T__ lp__(0.0); + stan::math::accumulator lp_accum__; + stan::io::deserializer in__(params_r__, params_i__); + int current_statement__ = 0; + // suppress unused var warning + (void) current_statement__; + local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); + // suppress unused var warning + (void) DUMMY_VAR__; + static constexpr const char* function__ = + "partial_eval_multiply_model_namespace::log_prob"; + // suppress unused var warning + (void) function__; + try { + Eigen::Matrix lcm_sym13__; + Eigen::Matrix lcm_sym12__; + double lcm_sym11__; + Eigen::Matrix m2 = + in__.template read>(10, 10); + Eigen::Matrix m3 = + in__.template read>(10, 10); { - std::vector m1_flat__; - current_statement__ = 7; - m1_flat__ = context__.vals_r("m1"); + Eigen::Matrix m5 = + Eigen::Matrix::Constant(10, 10, + std::numeric_limits::quiet_NaN()); + stan::model::assign(lcm_sym12__, + stan::math::add( + stan::math::multiply(m1, + stan::math::elt_multiply(m2, + stan::model::rvalue(m3, "m3", stan::model::index_multi(idx), + stan::model::index_multi(idy)))), m4), + "assigning variable lcm_sym12__"); + Eigen::Matrix m6 = + Eigen::Matrix::Constant(10, 10, + std::numeric_limits::quiet_NaN()); + stan::model::assign(lcm_sym13__, stan::math::fma(m1, m2, m4), + "assigning variable lcm_sym13__"); + Eigen::Matrix m7 = + Eigen::Matrix::Constant(10, 10, + std::numeric_limits::quiet_NaN()); + current_statement__ = 6; + lp_accum__.add(((stan::math::sum(lcm_sym12__) + + stan::math::sum(lcm_sym13__)) + stan::math::sum(lcm_sym13__))); + } + } catch (const std::exception& e) { + stan::lang::rethrow_located(e, locations_array__[current_statement__]); + } + lp_accum__.add(lp__); + return lp_accum__.sum(); + } + // Reverse mode autodiff log prob + template * = nullptr, + stan::require_vector_like_vt* = nullptr, + stan::require_st_var* = nullptr> + inline stan::scalar_type_t + log_prob_impl(VecR& params_r__, VecI& params_i__, std::ostream* + pstream__ = nullptr) const { + using T__ = stan::scalar_type_t; + using local_scalar_t__ = T__; + T__ lp__(0.0); + stan::math::accumulator lp_accum__; + stan::io::deserializer in__(params_r__, params_i__); + int current_statement__ = 0; + // suppress unused var warning + (void) current_statement__; + local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); + // suppress unused var warning + (void) DUMMY_VAR__; + static constexpr const char* function__ = + "partial_eval_multiply_model_namespace::log_prob"; + // suppress unused var warning + (void) function__; + try { + Eigen::Matrix lcm_sym10__; + Eigen::Matrix lcm_sym9__; + double lcm_sym8__; + stan::math::var_value> m2 = + in__.template read>(10, 10); + stan::math::var_value> m3 = + in__.template read>(10, 10); + { + stan::math::var_value> m5 = + Eigen::Matrix::Constant(10, 10, + std::numeric_limits::quiet_NaN()); + stan::model::assign(lcm_sym9__, + stan::math::add( + stan::math::multiply(m1, + stan::math::elt_multiply(m2, + stan::model::rvalue(m3, "m3", stan::model::index_multi(idx), + stan::model::index_multi(idy)))), m4), + "assigning variable lcm_sym9__"); + stan::math::var_value> m6 = + Eigen::Matrix::Constant(10, 10, + std::numeric_limits::quiet_NaN()); + stan::model::assign(lcm_sym10__, stan::math::fma(m1, m2, m4), + "assigning variable lcm_sym10__"); + stan::math::var_value> m7 = + Eigen::Matrix::Constant(10, 10, + std::numeric_limits::quiet_NaN()); + current_statement__ = 6; + lp_accum__.add(((stan::math::sum(lcm_sym9__) + + stan::math::sum(lcm_sym10__)) + stan::math::sum(lcm_sym10__))); + } + } catch (const std::exception& e) { + stan::lang::rethrow_located(e, locations_array__[current_statement__]); + } + lp_accum__.add(lp__); + return lp_accum__.sum(); + } + template * = nullptr, stan::require_vector_like_vt* = nullptr, stan::require_vector_vt* = nullptr> + inline void + write_array_impl(RNG& base_rng__, VecR& params_r__, VecI& params_i__, + VecVar& vars__, const bool + emit_transformed_parameters__ = true, const bool + emit_generated_quantities__ = true, std::ostream* + pstream__ = nullptr) const { + using local_scalar_t__ = double; + stan::io::deserializer in__(params_r__, params_i__); + stan::io::serializer out__(vars__); + static constexpr bool propto__ = true; + // suppress unused var warning + (void) propto__; + double lp__ = 0.0; + // suppress unused var warning + (void) lp__; + int current_statement__ = 0; + // suppress unused var warning + (void) current_statement__; + stan::math::accumulator lp_accum__; + local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); + // suppress unused var warning + (void) DUMMY_VAR__; + constexpr bool jacobian__ = false; + // suppress unused var warning + (void) jacobian__; + static constexpr const char* function__ = + "partial_eval_multiply_model_namespace::write_array"; + // suppress unused var warning + (void) function__; + try { + int lcm_sym7__; + int lcm_sym6__; + Eigen::Matrix m2 = + in__.template read>(10, 10); + Eigen::Matrix m3 = + in__.template read>(10, 10); + out__.write(m2); + out__.write(m3); + if (stan::math::logical_negation( + (stan::math::primitive_value(emit_transformed_parameters__) || + stan::math::primitive_value(emit_generated_quantities__)))) { + return ; + } + if (stan::math::logical_negation(emit_generated_quantities__)) { + return ; + } + } catch (const std::exception& e) { + stan::lang::rethrow_located(e, locations_array__[current_statement__]); + } + } + template * = nullptr, + stan::require_vector_like_vt* = nullptr> + inline void + unconstrain_array_impl(const VecVar& params_r__, const VecI& params_i__, + VecVar& vars__, std::ostream* pstream__ = nullptr) const { + using local_scalar_t__ = double; + stan::io::deserializer in__(params_r__, params_i__); + stan::io::serializer out__(vars__); + int current_statement__ = 0; + // suppress unused var warning + (void) current_statement__; + local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); + // suppress unused var warning + (void) DUMMY_VAR__; + try { + Eigen::Matrix m2; + current_statement__ = 1; + stan::model::assign(m2, + in__.read>(10, 10), + "assigning variable m2"); + out__.write(m2); + Eigen::Matrix m3; + current_statement__ = 2; + stan::model::assign(m3, + in__.read>(10, 10), + "assigning variable m3"); + out__.write(m3); + } catch (const std::exception& e) { + stan::lang::rethrow_located(e, locations_array__[current_statement__]); + } + } + template * = nullptr> + inline void + transform_inits_impl(const stan::io::var_context& context__, VecVar& + vars__, std::ostream* pstream__ = nullptr) const { + using local_scalar_t__ = double; + stan::io::serializer out__(vars__); + int current_statement__ = 0; + // suppress unused var warning + (void) current_statement__; + local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); + // suppress unused var warning + (void) DUMMY_VAR__; + try { + current_statement__ = 1; + context__.validate_dims("parameter initialization", "m2", "double", + std::vector{static_cast(10), static_cast(10)}); + current_statement__ = 2; + context__.validate_dims("parameter initialization", "m3", "double", + std::vector{static_cast(10), static_cast(10)}); + double lcm_sym5__; + double lcm_sym4__; + double lcm_sym3__; + double lcm_sym2__; + int lcm_sym1__; + int pos__; + pos__ = 1; + Eigen::Matrix m2 = + Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); + { + std::vector m2_flat__; + current_statement__ = 1; + m2_flat__ = context__.vals_r("m2"); pos__ = 1; { { - stan::model::assign(m1, - stan::model::rvalue(m1_flat__, "m1_flat__", - stan::model::index_uni(1)), "assigning variable m1", + stan::model::assign(m2, + stan::model::rvalue(m2_flat__, "m2_flat__", + stan::model::index_uni(1)), "assigning variable m2", stan::model::index_uni(1), stan::model::index_uni(1)); pos__ = 2; { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(2), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(2), stan::model::index_uni(1)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(3), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(3), stan::model::index_uni(1)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(4), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(4), stan::model::index_uni(1)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(5), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(5), stan::model::index_uni(1)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(6), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(6), stan::model::index_uni(1)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(7), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(7), stan::model::index_uni(1)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(8), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(8), stan::model::index_uni(1)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(9), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(9), stan::model::index_uni(1)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(10), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(10), stan::model::index_uni(1)); pos__ = (pos__ + 1); } } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(1), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(1), stan::model::index_uni(2)); pos__ = (pos__ + 1); { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(2), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(2), stan::model::index_uni(2)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(3), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(3), stan::model::index_uni(2)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(4), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(4), stan::model::index_uni(2)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(5), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(5), stan::model::index_uni(2)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(6), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(6), stan::model::index_uni(2)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(7), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(7), stan::model::index_uni(2)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(8), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(8), stan::model::index_uni(2)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(9), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(9), stan::model::index_uni(2)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(10), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(10), stan::model::index_uni(2)); pos__ = (pos__ + 1); } } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(1), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(1), stan::model::index_uni(3)); pos__ = (pos__ + 1); { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(2), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(2), stan::model::index_uni(3)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(3), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(3), stan::model::index_uni(3)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(4), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(4), stan::model::index_uni(3)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(5), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(5), stan::model::index_uni(3)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(6), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(6), stan::model::index_uni(3)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(7), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(7), stan::model::index_uni(3)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(8), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(8), stan::model::index_uni(3)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(9), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(9), stan::model::index_uni(3)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(10), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(10), stan::model::index_uni(3)); pos__ = (pos__ + 1); } } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(1), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(1), stan::model::index_uni(4)); pos__ = (pos__ + 1); { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(2), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(2), stan::model::index_uni(4)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(3), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(3), stan::model::index_uni(4)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(4), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(4), stan::model::index_uni(4)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(5), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(5), stan::model::index_uni(4)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(6), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(6), stan::model::index_uni(4)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(7), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(7), stan::model::index_uni(4)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(8), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(8), stan::model::index_uni(4)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(9), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(9), stan::model::index_uni(4)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(10), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(10), stan::model::index_uni(4)); pos__ = (pos__ + 1); } } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(1), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(1), stan::model::index_uni(5)); pos__ = (pos__ + 1); { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(2), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(2), stan::model::index_uni(5)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(3), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(3), stan::model::index_uni(5)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(4), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(4), stan::model::index_uni(5)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(5), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(5), stan::model::index_uni(5)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(6), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(6), stan::model::index_uni(5)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(7), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(7), stan::model::index_uni(5)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(8), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(8), stan::model::index_uni(5)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(9), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(9), stan::model::index_uni(5)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(10), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(10), stan::model::index_uni(5)); pos__ = (pos__ + 1); } } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(1), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(1), stan::model::index_uni(6)); pos__ = (pos__ + 1); { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(2), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(2), stan::model::index_uni(6)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(3), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(3), stan::model::index_uni(6)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(4), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(4), stan::model::index_uni(6)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(5), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(5), stan::model::index_uni(6)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(6), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(6), stan::model::index_uni(6)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(7), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(7), stan::model::index_uni(6)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(8), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(8), stan::model::index_uni(6)); pos__ = (pos__ + 1); } { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(9), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(10), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(1), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(2), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(3), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(4), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(5), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(6), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(7), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(8), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(9), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(10), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(1), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(2), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(3), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(4), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(5), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(6), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(7), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(8), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(9), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(10), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(1), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(2), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(3), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(4), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(5), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(6), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(7), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(8), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(9), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(10), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(1), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(2), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(3), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(4), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(5), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(6), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(7), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(8), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(9), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(10), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - } - } - } - current_statement__ = 8; - context__.validate_dims("data initialization", "m4", "double", - std::vector{static_cast(10), static_cast(10)}); - m4_data__ = Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - new (&m4) Eigen::Map>(m4_data__.data(), 10, - 10); - { - std::vector m4_flat__; - current_statement__ = 8; - m4_flat__ = context__.vals_r("m4"); - pos__ = 1; - { - { - stan::model::assign(m4, - stan::model::rvalue(m4_flat__, "m4_flat__", - stan::model::index_uni(1)), "assigning variable m4", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(2), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(3), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(4), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(5), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(6), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(7), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(8), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(9), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(10), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(1), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(2), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(3), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(4), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(5), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(6), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(7), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(8), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(9), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(10), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(1), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(2), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(3), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(4), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(5), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(6), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(7), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(8), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(9), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(10), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(1), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(2), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(3), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(4), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(5), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(6), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(7), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(8), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(9), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(10), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(1), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(2), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(3), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(4), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(5), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(6), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(7), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(8), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(9), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(10), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(1), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(2), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(3), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(4), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(5), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(6), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(7), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(8), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(9), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(10), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(1), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(2), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(3), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(4), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(5), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(6), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(7), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(8), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(9), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(10), - stan::model::index_uni(7)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(1), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(2), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(3), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(4), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(5), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(6), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(7), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(8), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(9), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(10), - stan::model::index_uni(8)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(1), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(2), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(3), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(4), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(5), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(6), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(7), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(8), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(9), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(10), - stan::model::index_uni(9)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(1), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(2), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(3), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(4), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(5), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(6), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(7), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(8), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(9), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(10), - stan::model::index_uni(10)); - pos__ = (pos__ + 1); - } - } - } - } - current_statement__ = 9; - context__.validate_dims("data initialization", "idx", "int", - std::vector{static_cast(10)}); - idx = std::vector(10, std::numeric_limits::min()); - current_statement__ = 9; - idx = context__.vals_i("idx"); - current_statement__ = 10; - context__.validate_dims("data initialization", "idy", "int", - std::vector{static_cast(10)}); - idy = std::vector(10, std::numeric_limits::min()); - current_statement__ = 10; - idy = context__.vals_i("idy"); - } catch (const std::exception& e) { - stan::lang::rethrow_located(e, locations_array__[current_statement__]); - } - num_params_r__ = (10 * 10) + (10 * 10); - } - inline std::string model_name() const final { - return "partial_eval_multiply_model"; - } - inline std::vector model_compile_info() const noexcept { - return std::vector{"stanc_version = %%NAME%%3 %%VERSION%%", - "stancflags = --O --print-cpp"}; - } - // Base log prob - template * = nullptr, - stan::require_vector_like_vt* = nullptr, - stan::require_not_st_var* = nullptr> - inline stan::scalar_type_t - log_prob_impl(VecR& params_r__, VecI& params_i__, std::ostream* - pstream__ = nullptr) const { - using T__ = stan::scalar_type_t; - using local_scalar_t__ = T__; - T__ lp__(0.0); - stan::math::accumulator lp_accum__; - stan::io::deserializer in__(params_r__, params_i__); - int current_statement__ = 0; - // suppress unused var warning - (void) current_statement__; - local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); - // suppress unused var warning - (void) DUMMY_VAR__; - static constexpr const char* function__ = - "partial_eval_multiply_model_namespace::log_prob"; - // suppress unused var warning - (void) function__; - try { - Eigen::Matrix lcm_sym13__; - Eigen::Matrix lcm_sym12__; - double lcm_sym11__; - Eigen::Matrix m2; - current_statement__ = 1; - m2 = in__.template read>(10, 10); - Eigen::Matrix m3; - current_statement__ = 2; - m3 = in__.template read>(10, 10); - { - Eigen::Matrix m5 = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym12__, - stan::math::add( - stan::math::multiply(m1, - stan::math::elt_multiply(m2, - stan::model::rvalue(m3, "m3", stan::model::index_multi(idx), - stan::model::index_multi(idy)))), m4), - "assigning variable lcm_sym12__"); - Eigen::Matrix m6 = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym13__, stan::math::fma(m1, m2, m4), - "assigning variable lcm_sym13__"); - Eigen::Matrix m7 = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 6; - lp_accum__.add(((stan::math::sum(lcm_sym12__) + - stan::math::sum(lcm_sym13__)) + stan::math::sum(lcm_sym13__))); - } - } catch (const std::exception& e) { - stan::lang::rethrow_located(e, locations_array__[current_statement__]); - } - lp_accum__.add(lp__); - return lp_accum__.sum(); - } - // Reverse mode autodiff log prob - template * = nullptr, - stan::require_vector_like_vt* = nullptr, - stan::require_st_var* = nullptr> - inline stan::scalar_type_t - log_prob_impl(VecR& params_r__, VecI& params_i__, std::ostream* - pstream__ = nullptr) const { - using T__ = stan::scalar_type_t; - using local_scalar_t__ = T__; - T__ lp__(0.0); - stan::math::accumulator lp_accum__; - stan::io::deserializer in__(params_r__, params_i__); - int current_statement__ = 0; - // suppress unused var warning - (void) current_statement__; - local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); - // suppress unused var warning - (void) DUMMY_VAR__; - static constexpr const char* function__ = - "partial_eval_multiply_model_namespace::log_prob"; - // suppress unused var warning - (void) function__; - try { - Eigen::Matrix lcm_sym10__; - Eigen::Matrix lcm_sym9__; - double lcm_sym8__; - stan::math::var_value> m2; - current_statement__ = 1; - m2 = in__.template read< - stan::math::var_value>>(10, 10); - stan::math::var_value> m3; - current_statement__ = 2; - m3 = in__.template read< - stan::math::var_value>>(10, 10); - { - stan::math::var_value> m5 = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym9__, - stan::math::add( - stan::math::multiply(m1, - stan::math::elt_multiply(m2, - stan::model::rvalue(m3, "m3", stan::model::index_multi(idx), - stan::model::index_multi(idy)))), m4), - "assigning variable lcm_sym9__"); - stan::math::var_value> m6 = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym10__, stan::math::fma(m1, m2, m4), - "assigning variable lcm_sym10__"); - stan::math::var_value> m7 = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 6; - lp_accum__.add(((stan::math::sum(lcm_sym9__) + - stan::math::sum(lcm_sym10__)) + stan::math::sum(lcm_sym10__))); - } - } catch (const std::exception& e) { - stan::lang::rethrow_located(e, locations_array__[current_statement__]); - } - lp_accum__.add(lp__); - return lp_accum__.sum(); - } - template * = nullptr, stan::require_vector_like_vt* = nullptr, stan::require_vector_vt* = nullptr> - inline void - write_array_impl(RNG& base_rng__, VecR& params_r__, VecI& params_i__, - VecVar& vars__, const bool - emit_transformed_parameters__ = true, const bool - emit_generated_quantities__ = true, std::ostream* - pstream__ = nullptr) const { - using local_scalar_t__ = double; - stan::io::deserializer in__(params_r__, params_i__); - stan::io::serializer out__(vars__); - static constexpr bool propto__ = true; - // suppress unused var warning - (void) propto__; - double lp__ = 0.0; - // suppress unused var warning - (void) lp__; - int current_statement__ = 0; - // suppress unused var warning - (void) current_statement__; - stan::math::accumulator lp_accum__; - local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); - // suppress unused var warning - (void) DUMMY_VAR__; - constexpr bool jacobian__ = false; - // suppress unused var warning - (void) jacobian__; - static constexpr const char* function__ = - "partial_eval_multiply_model_namespace::write_array"; - // suppress unused var warning - (void) function__; - try { - int lcm_sym7__; - int lcm_sym6__; - Eigen::Matrix m2; - current_statement__ = 1; - m2 = in__.template read>(10, 10); - Eigen::Matrix m3; - current_statement__ = 2; - m3 = in__.template read>(10, 10); - out__.write(m2); - out__.write(m3); - if (stan::math::logical_negation( - (stan::math::primitive_value(emit_transformed_parameters__) || - stan::math::primitive_value(emit_generated_quantities__)))) { - return ; - } - if (stan::math::logical_negation(emit_generated_quantities__)) { - return ; - } - } catch (const std::exception& e) { - stan::lang::rethrow_located(e, locations_array__[current_statement__]); - } - } - template * = nullptr, - stan::require_vector_like_vt* = nullptr> - inline void - unconstrain_array_impl(const VecVar& params_r__, const VecI& params_i__, - VecVar& vars__, std::ostream* pstream__ = nullptr) const { - using local_scalar_t__ = double; - stan::io::deserializer in__(params_r__, params_i__); - stan::io::serializer out__(vars__); - int current_statement__ = 0; - // suppress unused var warning - (void) current_statement__; - local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); - // suppress unused var warning - (void) DUMMY_VAR__; - try { - Eigen::Matrix m2; - current_statement__ = 1; - stan::model::assign(m2, - in__.read>(10, 10), - "assigning variable m2"); - out__.write(m2); - Eigen::Matrix m3; - current_statement__ = 2; - stan::model::assign(m3, - in__.read>(10, 10), - "assigning variable m3"); - out__.write(m3); - } catch (const std::exception& e) { - stan::lang::rethrow_located(e, locations_array__[current_statement__]); - } - } - template * = nullptr> - inline void - transform_inits_impl(const stan::io::var_context& context__, VecVar& - vars__, std::ostream* pstream__ = nullptr) const { - using local_scalar_t__ = double; - stan::io::serializer out__(vars__); - int current_statement__ = 0; - // suppress unused var warning - (void) current_statement__; - local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); - // suppress unused var warning - (void) DUMMY_VAR__; - try { - current_statement__ = 1; - context__.validate_dims("parameter initialization", "m2", "double", - std::vector{static_cast(10), static_cast(10)}); - current_statement__ = 2; - context__.validate_dims("parameter initialization", "m3", "double", - std::vector{static_cast(10), static_cast(10)}); - double lcm_sym5__; - double lcm_sym4__; - double lcm_sym3__; - double lcm_sym2__; - int lcm_sym1__; - int pos__; - pos__ = 1; - Eigen::Matrix m2 = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - { - std::vector m2_flat__; - current_statement__ = 1; - m2_flat__ = context__.vals_r("m2"); - pos__ = 1; - { - { - stan::model::assign(m2, - stan::model::rvalue(m2_flat__, "m2_flat__", - stan::model::index_uni(1)), "assigning variable m2", - stan::model::index_uni(1), stan::model::index_uni(1)); - pos__ = 2; - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(2), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(3), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(4), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(5), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(6), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(7), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(8), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(9), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(10), - stan::model::index_uni(1)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(1), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(2), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(3), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(4), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(5), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(6), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(7), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(8), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(9), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(10), - stan::model::index_uni(2)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(1), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(2), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(3), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(4), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(5), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(6), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(7), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(8), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(9), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(10), - stan::model::index_uni(3)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(1), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(2), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(3), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(4), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(5), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(6), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(7), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(8), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(9), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(10), - stan::model::index_uni(4)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(1), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(2), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(3), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(4), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(5), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(6), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(7), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(8), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(9), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(10), - stan::model::index_uni(5)); - pos__ = (pos__ + 1); - } - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(1), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(2), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(3), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(4), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(5), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(6), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(7), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(8), - stan::model::index_uni(6)); - pos__ = (pos__ + 1); - } - { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(9), + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(9), stan::model::index_uni(6)); pos__ = (pos__ + 1); } @@ -42897,16 +39007,16 @@ class partial_eval_multiply_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym19__ = 1; sym19__ <= 10; ++sym19__) { - for (int sym20__ = 1; sym20__ <= 10; ++sym20__) { + for (int sym14__ = 1; sym14__ <= 10; ++sym14__) { + for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { param_names__.emplace_back(std::string() + "m2" + '.' + - std::to_string(sym20__) + '.' + std::to_string(sym19__)); + std::to_string(sym15__) + '.' + std::to_string(sym14__)); } } - for (int sym19__ = 1; sym19__ <= 10; ++sym19__) { - for (int sym20__ = 1; sym20__ <= 10; ++sym20__) { + for (int sym14__ = 1; sym14__ <= 10; ++sym14__) { + for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { param_names__.emplace_back(std::string() + "m3" + '.' + - std::to_string(sym20__) + '.' + std::to_string(sym19__)); + std::to_string(sym15__) + '.' + std::to_string(sym14__)); } } if (emit_transformed_parameters__) {} @@ -42916,16 +39026,16 @@ class partial_eval_multiply_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym19__ = 1; sym19__ <= 10; ++sym19__) { - for (int sym20__ = 1; sym20__ <= 10; ++sym20__) { + for (int sym14__ = 1; sym14__ <= 10; ++sym14__) { + for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { param_names__.emplace_back(std::string() + "m2" + '.' + - std::to_string(sym20__) + '.' + std::to_string(sym19__)); + std::to_string(sym15__) + '.' + std::to_string(sym14__)); } } - for (int sym19__ = 1; sym19__ <= 10; ++sym19__) { - for (int sym20__ = 1; sym20__ <= 10; ++sym20__) { + for (int sym14__ = 1; sym14__ <= 10; ++sym14__) { + for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { param_names__.emplace_back(std::string() + "m3" + '.' + - std::to_string(sym20__) + '.' + std::to_string(sym19__)); + std::to_string(sym15__) + '.' + std::to_string(sym14__)); } } if (emit_transformed_parameters__) {} @@ -43416,12 +39526,6 @@ static constexpr std::array locations_array__ = " (in 'stalled1-failure.stan', line 32, column 18 to column 19)"}; class stalled1_failure_model final : public model_base_crtp { private: - double lcm_sym41__; - double lcm_sym40__; - double lcm_sym39__; - double lcm_sym38__; - int lcm_sym37__; - int lcm_sym36__; Eigen::Matrix lcm_sym35___data__; int I; std::vector n; @@ -43461,8 +39565,6 @@ class stalled1_failure_model final : public model_base_crtp{}); I = std::numeric_limits::min(); current_statement__ = 17; - I = context__.vals_i("I")[(1 - 1)]; - current_statement__ = 17; stan::math::check_greater_or_equal(function__, "I", I, 0); current_statement__ = 18; stan::math::validate_non_negative_index("n", "I", I); @@ -43471,8 +39573,6 @@ class stalled1_failure_model final : public model_base_crtp{static_cast(I)}); n = std::vector(I, std::numeric_limits::min()); current_statement__ = 19; - n = context__.vals_i("n"); - current_statement__ = 19; stan::math::check_greater_or_equal(function__, "n", n, 0); current_statement__ = 20; stan::math::validate_non_negative_index("N", "I", I); @@ -43481,8 +39581,6 @@ class stalled1_failure_model final : public model_base_crtp{static_cast(I)}); N = std::vector(I, std::numeric_limits::min()); current_statement__ = 21; - N = context__.vals_i("N"); - current_statement__ = 21; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 22; stan::math::validate_non_negative_index("x1", "I", I); @@ -43492,25 +39590,6 @@ class stalled1_failure_model final : public model_base_crtp::Constant(I, std::numeric_limits::quiet_NaN()); new (&x1) Eigen::Map>(x1_data__.data(), I); - { - std::vector x1_flat__; - current_statement__ = 23; - x1_flat__ = context__.vals_r("x1"); - pos__ = 1; - lcm_sym36__ = stan::math::logical_gte(I, 1); - if (lcm_sym36__) { - stan::model::assign(x1, - stan::model::rvalue(x1_flat__, "x1_flat__", - stan::model::index_uni(1)), "assigning variable x1", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= I; ++sym1__) { - stan::model::assign(x1, x1_flat__[(pos__ - 1)], - "assigning variable x1", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 24; stan::math::validate_non_negative_index("x2", "I", I); current_statement__ = 25; @@ -43519,24 +39598,6 @@ class stalled1_failure_model final : public model_base_crtp::Constant(I, std::numeric_limits::quiet_NaN()); new (&x2) Eigen::Map>(x2_data__.data(), I); - { - std::vector x2_flat__; - current_statement__ = 25; - x2_flat__ = context__.vals_r("x2"); - pos__ = 1; - if (lcm_sym36__) { - stan::model::assign(x2, - stan::model::rvalue(x2_flat__, "x2_flat__", - stan::model::index_uni(1)), "assigning variable x2", - stan::model::index_uni(1)); - pos__ = 2; - for (int sym1__ = 2; sym1__ <= I; ++sym1__) { - stan::model::assign(x2, x2_flat__[(pos__ - 1)], - "assigning variable x2", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 26; K = std::numeric_limits::min(); current_statement__ = 27; @@ -43602,28 +39663,16 @@ class stalled1_failure_model final : public model_base_crtp(); - local_scalar_t__ alpha1; - current_statement__ = 2; - alpha1 = in__.template read(); - local_scalar_t__ alpha2; - current_statement__ = 3; - alpha2 = in__.template read(); - local_scalar_t__ alpha12; - current_statement__ = 4; - alpha12 = in__.template read(); - local_scalar_t__ tau; - current_statement__ = 5; - tau = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ alpha0 = in__.template read(); + local_scalar_t__ alpha1 = in__.template read(); + local_scalar_t__ alpha2 = in__.template read(); + local_scalar_t__ alpha12 = in__.template read(); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); std::vector> b = - std::vector>(I, - Eigen::Matrix::Constant(8, DUMMY_VAR__)); - current_statement__ = 6; - b = in__.template read< - std::vector>>(I, 8); + in__.template read< + std::vector>>(I, 8); local_scalar_t__ sigma = DUMMY_VAR__; lcm_sym24__ = (1 / stan::math::sqrt(tau)); sigma = lcm_sym24__; @@ -43731,31 +39780,16 @@ class stalled1_failure_model final : public model_base_crtp(); - local_scalar_t__ alpha1; - current_statement__ = 2; - alpha1 = in__.template read(); - local_scalar_t__ alpha2; - current_statement__ = 3; - alpha2 = in__.template read(); - local_scalar_t__ alpha12; - current_statement__ = 4; - alpha12 = in__.template read(); - local_scalar_t__ tau; - current_statement__ = 5; - tau = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ alpha0 = in__.template read(); + local_scalar_t__ alpha1 = in__.template read(); + local_scalar_t__ alpha2 = in__.template read(); + local_scalar_t__ alpha12 = in__.template read(); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); std::vector>> b = - std::vector>>(I, - stan::math::var_value>(Eigen::Matrix::Constant(8, - std::numeric_limits::quiet_NaN( - )))); - current_statement__ = 6; - b = in__.template read< - std::vector>>>(I, - 8); + in__.template read< + std::vector>>(I, 8); local_scalar_t__ sigma = DUMMY_VAR__; lcm_sym13__ = (1 / stan::math::sqrt(tau)); sigma = lcm_sym13__; @@ -43871,29 +39905,16 @@ class stalled1_failure_model final : public model_base_crtp(); - double alpha1; - current_statement__ = 2; - alpha1 = in__.template read(); - double alpha2; - current_statement__ = 3; - alpha2 = in__.template read(); - double alpha12; - current_statement__ = 4; - alpha12 = in__.template read(); - double tau; - current_statement__ = 5; - tau = in__.template read_constrain_lb(0, - lp__); + double alpha0 = in__.template read(); + double alpha1 = in__.template read(); + double alpha2 = in__.template read(); + double alpha12 = in__.template read(); + double tau = + in__.template read_constrain_lb(0, + lp__); std::vector> b = - std::vector>(I, - Eigen::Matrix::Constant(8, - std::numeric_limits::quiet_NaN())); - current_statement__ = 6; - b = in__.template read< - std::vector>>(I, 8); + in__.template read< + std::vector>>(I, 8); double sigma = std::numeric_limits::quiet_NaN(); out__.write(alpha0); out__.write(alpha1); @@ -44289,10 +40310,10 @@ class stalled1_failure_model final : public model_base_crtp(); + local_scalar_t__ param = in__.template read(); std::vector> local = std::vector>(2, Eigen::Matrix::Constant(5, @@ -44639,9 +40658,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + local_scalar_t__ param = in__.template read(); std::vector>> local = std::vector>(2, Eigen::Matrix::Constant(5, @@ -44779,9 +40796,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + double param = in__.template read(); std::vector> local = std::vector>(2, Eigen::Matrix::Constant(5, @@ -45207,9 +41222,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + local_scalar_t__ y = in__.template read(); double no_init = std::numeric_limits::quiet_NaN(); local_scalar_t__ init_from_param; current_statement__ = 3; @@ -45298,9 +41311,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + local_scalar_t__ y = in__.template read(); double no_init = std::numeric_limits::quiet_NaN(); local_scalar_t__ init_from_param; current_statement__ = 3; @@ -45402,9 +41413,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + double y = in__.template read(); double no_init = std::numeric_limits::quiet_NaN(); double init_from_param = std::numeric_limits::quiet_NaN(); double dependent_no_init = std::numeric_limits::quiet_NaN(); diff --git a/test/integration/good/compiler-optimizations/cppO0.expected b/test/integration/good/compiler-optimizations/cppO0.expected index 2b1ba1011..4bdcef164 100644 --- a/test/integration/good/compiler-optimizations/cppO0.expected +++ b/test/integration/good/compiler-optimizations/cppO0.expected @@ -51,20 +51,6 @@ class ad_level_deep_dependence_model final : public model_base_crtp::quiet_NaN()); new (&X_d) Eigen::Map>(X_d_data__.data(), 10, 10); - { - std::vector X_d_flat__; - current_statement__ = 10; - X_d_flat__ = context__.vals_r("X_d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -102,9 +88,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp X_p = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 1; - X_p = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); current_statement__ = 2; @@ -172,9 +156,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp X_p = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 1; - X_p = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); current_statement__ = 2; @@ -253,10 +235,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp X_p = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - X_p = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, std::numeric_limits::quiet_NaN()); @@ -866,8 +845,6 @@ class ad_level_failing_model final : public model_base_crtp{}); N_t = std::numeric_limits::min(); current_statement__ = 17; - N_t = context__.vals_i("N_t")[(1 - 1)]; - current_statement__ = 17; stan::math::check_greater_or_equal(function__, "N_t", N_t, 0); current_statement__ = 18; stan::math::validate_non_negative_index("t", "N_t", N_t); @@ -875,22 +852,16 @@ class ad_level_failing_model final : public model_base_crtp{static_cast(N_t)}); t = std::vector(N_t, std::numeric_limits::quiet_NaN()); - current_statement__ = 19; - t = context__.vals_r("t"); current_statement__ = 20; context__.validate_dims("data initialization", "y0", "double", std::vector{static_cast(4)}); y0 = std::vector(4, std::numeric_limits::quiet_NaN()); - current_statement__ = 20; - y0 = context__.vals_r("y0"); current_statement__ = 21; stan::math::validate_non_negative_index("stoi_hat", "N_t", N_t); current_statement__ = 22; context__.validate_dims("data initialization", "stoi_hat", "int", std::vector{static_cast(N_t)}); stoi_hat = std::vector(N_t, std::numeric_limits::min()); - current_statement__ = 22; - stoi_hat = context__.vals_i("stoi_hat"); current_statement__ = 23; stan::math::validate_non_negative_index("B_hat", "N_t", N_t); current_statement__ = 24; @@ -898,8 +869,6 @@ class ad_level_failing_model final : public model_base_crtp{static_cast(N_t)}); B_hat = std::vector(N_t, std::numeric_limits::quiet_NaN()); - current_statement__ = 24; - B_hat = context__.vals_r("B_hat"); current_statement__ = 25; t0 = std::numeric_limits::quiet_NaN(); current_statement__ = 25; @@ -952,22 +921,18 @@ class ad_level_failing_model final : public model_base_crtp(0, - lp__); - local_scalar_t__ gamma = DUMMY_VAR__; - current_statement__ = 2; - gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi = DUMMY_VAR__; - current_statement__ = 3; - xi = in__.template read_constrain_lb(0, - lp__); - local_scalar_t__ delta = DUMMY_VAR__; - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ beta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ gamma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ xi = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ delta = + in__.template read_constrain_lb(0, + lp__); std::vector> y = std::vector>(N_t, std::vector(4, DUMMY_VAR__)); @@ -1052,22 +1017,18 @@ class ad_level_failing_model final : public model_base_crtp(0, - lp__); - local_scalar_t__ gamma = DUMMY_VAR__; - current_statement__ = 2; - gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi = DUMMY_VAR__; - current_statement__ = 3; - xi = in__.template read_constrain_lb(0, - lp__); - local_scalar_t__ delta = DUMMY_VAR__; - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ beta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ gamma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ xi = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ delta = + in__.template read_constrain_lb(0, + lp__); std::vector> y = std::vector>(N_t, std::vector(4, DUMMY_VAR__)); @@ -1163,22 +1124,18 @@ class ad_level_failing_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - beta = in__.template read_constrain_lb(0, - lp__); - double gamma = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - gamma = in__.template read_constrain_lb(0, lp__); - double xi = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - xi = in__.template read_constrain_lb(0, - lp__); - double delta = std::numeric_limits::quiet_NaN(); - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + double beta = + in__.template read_constrain_lb(0, + lp__); + double gamma = + in__.template read_constrain_lb(0, + lp__); + double xi = + in__.template read_constrain_lb(0, + lp__); + double delta = + in__.template read_constrain_lb(0, + lp__); std::vector> y = std::vector>(N_t, std::vector(4, std::numeric_limits::quiet_NaN())); @@ -1518,20 +1475,6 @@ class ad_levels_deep_model final : public model_base_crtp std::numeric_limits::quiet_NaN()); new (&X_data) Eigen::Map>(X_data_data__.data(), 10, 10); - { - std::vector X_data_flat__; - current_statement__ = 5; - X_data_flat__ = context__.vals_r("X_data"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -1569,9 +1512,7 @@ class ad_levels_deep_model final : public model_base_crtp (void) function__; try { Eigen::Matrix X_p = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 1; - X_p = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); current_statement__ = 2; @@ -1615,9 +1556,7 @@ class ad_levels_deep_model final : public model_base_crtp (void) function__; try { Eigen::Matrix X_p = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 1; - X_p = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); current_statement__ = 2; @@ -1672,10 +1611,7 @@ class ad_levels_deep_model final : public model_base_crtp (void) function__; try { Eigen::Matrix X_p = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - X_p = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, std::numeric_limits::quiet_NaN()); @@ -2015,8 +1951,6 @@ class copy_prop_profile_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 16; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 16; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 17; stan::math::validate_non_negative_index("X", "N", N); @@ -2059,9 +1993,7 @@ class copy_prop_profile_model final : public model_base_crtp X = - Eigen::Matrix::Constant(N, N, DUMMY_VAR__); - current_statement__ = 1; - X = in__.template read>(N, N); + in__.template read>(N, N); { current_statement__ = 2; stan::math::validate_non_negative_index("vec", "N", N); @@ -2132,9 +2064,7 @@ class copy_prop_profile_model final : public model_base_crtp X = - Eigen::Matrix::Constant(N, N, DUMMY_VAR__); - current_statement__ = 1; - X = in__.template read>(N, N); + in__.template read>(N, N); { current_statement__ = 2; stan::math::validate_non_negative_index("vec", "N", N); @@ -2216,10 +2146,7 @@ class copy_prop_profile_model final : public model_base_crtp X = - Eigen::Matrix::Constant(N, N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - X = in__.template read>(N, N); + in__.template read>(N, N); out__.write(X); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -2711,16 +2638,12 @@ class copy_fail_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 26; - nind = context__.vals_i("nind")[(1 - 1)]; - current_statement__ = 26; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 27; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 27; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 27; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 28; @@ -2733,20 +2656,6 @@ class copy_fail_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 30; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { - for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 30; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 30; @@ -2756,8 +2665,6 @@ class copy_fail_model final : public model_base_crtp { std::vector{}); max_age = std::numeric_limits::min(); current_statement__ = 31; - max_age = context__.vals_i("max_age")[(1 - 1)]; - current_statement__ = 31; stan::math::check_greater_or_equal(function__, "max_age", max_age, 1); current_statement__ = 32; stan::math::validate_non_negative_index("x", "nind", nind); @@ -2771,20 +2678,6 @@ class copy_fail_model final : public model_base_crtp { x = std::vector>(nind, std::vector((n_occasions - 1), std::numeric_limits::min())); - { - std::vector x_flat__; - current_statement__ = 34; - x_flat__ = context__.vals_i("x"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= (n_occasions - 1); ++sym1__) { - for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 34; stan::math::check_greater_or_equal(function__, "x", x, 0); current_statement__ = 34; @@ -2878,16 +2771,13 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p = DUMMY_VAR__; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix beta = - Eigen::Matrix::Constant(max_age, DUMMY_VAR__); - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -3008,16 +2898,13 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p = DUMMY_VAR__; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix beta = - Eigen::Matrix::Constant(max_age, DUMMY_VAR__); - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -3149,17 +3036,13 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double mean_p = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix beta = - Eigen::Matrix::Constant(max_age, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, std::numeric_limits::quiet_NaN()); @@ -3621,40 +3504,30 @@ class dce_fail_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 39; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 39; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 40; context__.validate_dims("data initialization", "n_age", "int", std::vector{}); n_age = std::numeric_limits::min(); current_statement__ = 40; - n_age = context__.vals_i("n_age")[(1 - 1)]; - current_statement__ = 40; stan::math::check_greater_or_equal(function__, "n_age", n_age, 0); current_statement__ = 41; context__.validate_dims("data initialization", "n_edu", "int", std::vector{}); n_edu = std::numeric_limits::min(); current_statement__ = 41; - n_edu = context__.vals_i("n_edu")[(1 - 1)]; - current_statement__ = 41; stan::math::check_greater_or_equal(function__, "n_edu", n_edu, 0); current_statement__ = 42; context__.validate_dims("data initialization", "n_region", "int", std::vector{}); n_region = std::numeric_limits::min(); current_statement__ = 42; - n_region = context__.vals_i("n_region")[(1 - 1)]; - current_statement__ = 42; stan::math::check_greater_or_equal(function__, "n_region", n_region, 0); current_statement__ = 43; context__.validate_dims("data initialization", "n_state", "int", std::vector{}); n_state = std::numeric_limits::min(); current_statement__ = 43; - n_state = context__.vals_i("n_state")[(1 - 1)]; - current_statement__ = 43; stan::math::check_greater_or_equal(function__, "n_state", n_state, 0); current_statement__ = 44; stan::math::validate_non_negative_index("female", "N", N); @@ -3663,8 +3536,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); female = std::vector(N, std::numeric_limits::min()); current_statement__ = 45; - female = context__.vals_i("female"); - current_statement__ = 45; stan::math::check_greater_or_equal(function__, "female", female, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "female", female, 1); @@ -3675,8 +3546,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); black = std::vector(N, std::numeric_limits::min()); current_statement__ = 47; - black = context__.vals_i("black"); - current_statement__ = 47; stan::math::check_greater_or_equal(function__, "black", black, 0); current_statement__ = 47; stan::math::check_less_or_equal(function__, "black", black, 1); @@ -3687,8 +3556,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); age = std::vector(N, std::numeric_limits::min()); current_statement__ = 49; - age = context__.vals_i("age"); - current_statement__ = 49; stan::math::check_greater_or_equal(function__, "age", age, 0); current_statement__ = 49; stan::math::check_less_or_equal(function__, "age", age, n_age); @@ -3699,8 +3566,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 51; - edu = context__.vals_i("edu"); - current_statement__ = 51; stan::math::check_greater_or_equal(function__, "edu", edu, 0); current_statement__ = 51; stan::math::check_less_or_equal(function__, "edu", edu, n_edu); @@ -3711,8 +3576,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(n_state)}); region = std::vector(n_state, std::numeric_limits::min()); current_statement__ = 53; - region = context__.vals_i("region"); - current_statement__ = 53; stan::math::check_greater_or_equal(function__, "region", region, 0); current_statement__ = 53; stan::math::check_less_or_equal(function__, "region", region, n_state); @@ -3723,8 +3586,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); state = std::vector(N, std::numeric_limits::min()); current_statement__ = 55; - state = context__.vals_i("state"); - current_statement__ = 55; stan::math::check_greater_or_equal(function__, "state", state, 0); current_statement__ = 55; stan::math::check_less_or_equal(function__, "state", state, n_state); @@ -3735,8 +3596,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 57; - y = context__.vals_i("y"); - current_statement__ = 57; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 57; stan::math::check_less_or_equal(function__, "y", y, 1); @@ -3749,17 +3608,6 @@ class dce_fail_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&v_prev) Eigen::Map>(v_prev_data__.data(), n_state); - { - std::vector v_prev_flat__; - current_statement__ = 59; - v_prev_flat__ = context__.vals_r("v_prev"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n_state; ++sym1__) { - stan::model::assign(v_prev, v_prev_flat__[(pos__ - 1)], - "assigning variable v_prev", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 60; stan::math::validate_non_negative_index("b_age", "n_age", n_age); current_statement__ = 61; @@ -3810,69 +3658,41 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 1; - sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age = DUMMY_VAR__; - current_statement__ = 2; - sigma_age = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_edu = DUMMY_VAR__; - current_statement__ = 3; - sigma_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_state = DUMMY_VAR__; - current_statement__ = 4; - sigma_state = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_region = DUMMY_VAR__; - current_statement__ = 5; - sigma_region = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age_edu = DUMMY_VAR__; - current_statement__ = 6; - sigma_age_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ b_0 = DUMMY_VAR__; - current_statement__ = 7; - b_0 = in__.template read(); - local_scalar_t__ b_female = DUMMY_VAR__; - current_statement__ = 8; - b_female = in__.template read(); - local_scalar_t__ b_black = DUMMY_VAR__; - current_statement__ = 9; - b_black = in__.template read(); - local_scalar_t__ b_female_black = DUMMY_VAR__; - current_statement__ = 10; - b_female_black = in__.template read(); - local_scalar_t__ b_v_prev = DUMMY_VAR__; - current_statement__ = 11; - b_v_prev = in__.template read(); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_age = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_edu = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_state = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_region = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_age_edu = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ b_0 = in__.template read(); + local_scalar_t__ b_female = in__.template read(); + local_scalar_t__ b_black = in__.template read(); + local_scalar_t__ b_female_black = + in__.template read(); + local_scalar_t__ b_v_prev = in__.template read(); Eigen::Matrix b_age = - Eigen::Matrix::Constant(n_age, DUMMY_VAR__); - current_statement__ = 12; - b_age = in__.template read>(n_age); + in__.template read>(n_age); Eigen::Matrix b_edu = - Eigen::Matrix::Constant(n_edu, DUMMY_VAR__); - current_statement__ = 13; - b_edu = in__.template read>(n_edu); + in__.template read>(n_edu); Eigen::Matrix b_region = - Eigen::Matrix::Constant(n_region, DUMMY_VAR__); - current_statement__ = 14; - b_region = in__.template read< - Eigen::Matrix>(n_region); + in__.template read>(n_region); Eigen::Matrix b_age_edu = - Eigen::Matrix::Constant(n_age, n_edu, - DUMMY_VAR__); - current_statement__ = 15; - b_age_edu = in__.template read< - Eigen::Matrix>(n_age, n_edu); + in__.template read>(n_age, + n_edu); Eigen::Matrix b_hat = - Eigen::Matrix::Constant(n_state, DUMMY_VAR__); - current_statement__ = 16; - b_hat = in__.template read< - Eigen::Matrix>(n_state); + in__.template read>(n_state); { current_statement__ = 17; stan::math::validate_non_negative_index("p", "N", N); @@ -3996,69 +3816,41 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 1; - sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age = DUMMY_VAR__; - current_statement__ = 2; - sigma_age = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_edu = DUMMY_VAR__; - current_statement__ = 3; - sigma_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_state = DUMMY_VAR__; - current_statement__ = 4; - sigma_state = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_region = DUMMY_VAR__; - current_statement__ = 5; - sigma_region = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age_edu = DUMMY_VAR__; - current_statement__ = 6; - sigma_age_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ b_0 = DUMMY_VAR__; - current_statement__ = 7; - b_0 = in__.template read(); - local_scalar_t__ b_female = DUMMY_VAR__; - current_statement__ = 8; - b_female = in__.template read(); - local_scalar_t__ b_black = DUMMY_VAR__; - current_statement__ = 9; - b_black = in__.template read(); - local_scalar_t__ b_female_black = DUMMY_VAR__; - current_statement__ = 10; - b_female_black = in__.template read(); - local_scalar_t__ b_v_prev = DUMMY_VAR__; - current_statement__ = 11; - b_v_prev = in__.template read(); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_age = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_edu = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_state = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_region = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_age_edu = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ b_0 = in__.template read(); + local_scalar_t__ b_female = in__.template read(); + local_scalar_t__ b_black = in__.template read(); + local_scalar_t__ b_female_black = + in__.template read(); + local_scalar_t__ b_v_prev = in__.template read(); Eigen::Matrix b_age = - Eigen::Matrix::Constant(n_age, DUMMY_VAR__); - current_statement__ = 12; - b_age = in__.template read>(n_age); + in__.template read>(n_age); Eigen::Matrix b_edu = - Eigen::Matrix::Constant(n_edu, DUMMY_VAR__); - current_statement__ = 13; - b_edu = in__.template read>(n_edu); + in__.template read>(n_edu); Eigen::Matrix b_region = - Eigen::Matrix::Constant(n_region, DUMMY_VAR__); - current_statement__ = 14; - b_region = in__.template read< - Eigen::Matrix>(n_region); + in__.template read>(n_region); Eigen::Matrix b_age_edu = - Eigen::Matrix::Constant(n_age, n_edu, - DUMMY_VAR__); - current_statement__ = 15; - b_age_edu = in__.template read< - Eigen::Matrix>(n_age, n_edu); + in__.template read>(n_age, + n_edu); Eigen::Matrix b_hat = - Eigen::Matrix::Constant(n_state, DUMMY_VAR__); - current_statement__ = 16; - b_hat = in__.template read< - Eigen::Matrix>(n_state); + in__.template read>(n_state); { current_statement__ = 17; stan::math::validate_non_negative_index("p", "N", N); @@ -4193,73 +3985,40 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double sigma = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - sigma = in__.template read_constrain_lb(0, lp__); - double sigma_age = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - sigma_age = in__.template read_constrain_lb(0, lp__); - double sigma_edu = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - sigma_edu = in__.template read_constrain_lb(0, lp__); - double sigma_state = std::numeric_limits::quiet_NaN(); - current_statement__ = 4; - sigma_state = in__.template read_constrain_lb(0, lp__); - double sigma_region = std::numeric_limits::quiet_NaN(); - current_statement__ = 5; - sigma_region = in__.template read_constrain_lb(0, lp__); - double sigma_age_edu = std::numeric_limits::quiet_NaN(); - current_statement__ = 6; - sigma_age_edu = in__.template read_constrain_lb(0, lp__); - double b_0 = std::numeric_limits::quiet_NaN(); - current_statement__ = 7; - b_0 = in__.template read(); - double b_female = std::numeric_limits::quiet_NaN(); - current_statement__ = 8; - b_female = in__.template read(); - double b_black = std::numeric_limits::quiet_NaN(); - current_statement__ = 9; - b_black = in__.template read(); - double b_female_black = std::numeric_limits::quiet_NaN(); - current_statement__ = 10; - b_female_black = in__.template read(); - double b_v_prev = std::numeric_limits::quiet_NaN(); - current_statement__ = 11; - b_v_prev = in__.template read(); + double sigma = + in__.template read_constrain_lb(0, + lp__); + double sigma_age = + in__.template read_constrain_lb(0, + lp__); + double sigma_edu = + in__.template read_constrain_lb(0, + lp__); + double sigma_state = + in__.template read_constrain_lb(0, + lp__); + double sigma_region = + in__.template read_constrain_lb(0, + lp__); + double sigma_age_edu = + in__.template read_constrain_lb(0, + lp__); + double b_0 = in__.template read(); + double b_female = in__.template read(); + double b_black = in__.template read(); + double b_female_black = in__.template read(); + double b_v_prev = in__.template read(); Eigen::Matrix b_age = - Eigen::Matrix::Constant(n_age, - std::numeric_limits::quiet_NaN()); - current_statement__ = 12; - b_age = in__.template read>(n_age); + in__.template read>(n_age); Eigen::Matrix b_edu = - Eigen::Matrix::Constant(n_edu, - std::numeric_limits::quiet_NaN()); - current_statement__ = 13; - b_edu = in__.template read>(n_edu); + in__.template read>(n_edu); Eigen::Matrix b_region = - Eigen::Matrix::Constant(n_region, - std::numeric_limits::quiet_NaN()); - current_statement__ = 14; - b_region = in__.template read< - Eigen::Matrix>(n_region); + in__.template read>(n_region); Eigen::Matrix b_age_edu = - Eigen::Matrix::Constant(n_age, n_edu, - std::numeric_limits::quiet_NaN()); - current_statement__ = 15; - b_age_edu = in__.template read< - Eigen::Matrix>(n_age, n_edu); + in__.template read>(n_age, + n_edu); Eigen::Matrix b_hat = - Eigen::Matrix::Constant(n_state, - std::numeric_limits::quiet_NaN()); - current_statement__ = 16; - b_hat = in__.template read< - Eigen::Matrix>(n_state); + in__.template read>(n_state); out__.write(sigma); out__.write(sigma_age); out__.write(sigma_edu); @@ -4840,8 +4599,6 @@ class expr_prop_experiment_model final : public model_base_crtp{}); j = std::numeric_limits::min(); - current_statement__ = 1; - j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 3; @@ -5178,8 +4935,6 @@ class expr_prop_experiment2_model final : public model_base_crtp{}); j = std::numeric_limits::min(); - current_statement__ = 1; - j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 2; @@ -5521,8 +5276,6 @@ class expr_prop_fail_model final : public model_base_crtp std::vector{}); N = std::numeric_limits::min(); current_statement__ = 9; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 9; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 10; stan::math::validate_non_negative_index("y", "N", N); @@ -5532,17 +5285,6 @@ class expr_prop_fail_model final : public model_base_crtp y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); - { - std::vector y_flat__; - current_statement__ = 11; - y_flat__ = context__.vals_r("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -5580,19 +5322,14 @@ class expr_prop_fail_model final : public model_base_crtp (void) function__; try { Eigen::Matrix mu = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 1; - mu = in__.template read_constrain_ordered< - Eigen::Matrix, jacobian__>(lp__, 2); + in__.template read_constrain_ordered< + Eigen::Matrix, jacobian__>(lp__, 2); std::vector sigma = - std::vector(2, DUMMY_VAR__); - current_statement__ = 2; - sigma = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); - local_scalar_t__ theta = DUMMY_VAR__; - current_statement__ = 3; - theta = in__.template read_constrain_lub(0, 1, lp__); + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); + local_scalar_t__ theta = + in__.template read_constrain_lub(0, 1, + lp__); { current_statement__ = 4; lp_accum__.add(stan::math::normal_lpdf(sigma, 0, 2)); @@ -5651,19 +5388,14 @@ class expr_prop_fail_model final : public model_base_crtp (void) function__; try { Eigen::Matrix mu = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 1; - mu = in__.template read_constrain_ordered< - Eigen::Matrix, jacobian__>(lp__, 2); + in__.template read_constrain_ordered< + Eigen::Matrix, jacobian__>(lp__, 2); std::vector sigma = - std::vector(2, DUMMY_VAR__); - current_statement__ = 2; - sigma = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); - local_scalar_t__ theta = DUMMY_VAR__; - current_statement__ = 3; - theta = in__.template read_constrain_lub(0, 1, lp__); + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); + local_scalar_t__ theta = + in__.template read_constrain_lub(0, 1, + lp__); { current_statement__ = 4; lp_accum__.add(stan::math::normal_lpdf(sigma, 0, 2)); @@ -5733,20 +5465,14 @@ class expr_prop_fail_model final : public model_base_crtp (void) function__; try { Eigen::Matrix mu = - Eigen::Matrix::Constant(2, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - mu = in__.template read_constrain_ordered< - Eigen::Matrix, jacobian__>(lp__, 2); + in__.template read_constrain_ordered< + Eigen::Matrix, jacobian__>(lp__, 2); std::vector sigma = - std::vector(2, std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - sigma = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); - double theta = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - theta = in__.template read_constrain_lub(0, 1, lp__); + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); + double theta = + in__.template read_constrain_lub(0, 1, + lp__); out__.write(mu); out__.write(sigma); out__.write(theta); @@ -6053,8 +5779,6 @@ class expr_prop_fail2_model final : public model_base_crtp{}); J = std::numeric_limits::min(); current_statement__ = 6; - J = context__.vals_i("J")[(1 - 1)]; - current_statement__ = 6; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 7; stan::math::validate_non_negative_index("y", "J", J); @@ -6062,8 +5786,6 @@ class expr_prop_fail2_model final : public model_base_crtp{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); - current_statement__ = 8; - y = context__.vals_r("y"); current_statement__ = 9; stan::math::validate_non_negative_index("sigma", "J", J); current_statement__ = 10; @@ -6072,8 +5794,6 @@ class expr_prop_fail2_model final : public model_base_crtp(J, std::numeric_limits::quiet_NaN()); current_statement__ = 10; - sigma = context__.vals_r("sigma"); - current_statement__ = 10; stan::math::check_greater_or_equal(function__, "sigma", sigma, 0); current_statement__ = 11; stan::math::validate_non_negative_index("theta", "J", J); @@ -6113,17 +5833,12 @@ class expr_prop_fail2_model final : public model_base_crtp(); + local_scalar_t__ mu = in__.template read(); std::vector theta = - std::vector(J, DUMMY_VAR__); - current_statement__ = 2; - theta = in__.template read>(J); - local_scalar_t__ tau = DUMMY_VAR__; - current_statement__ = 3; - tau = in__.template read_constrain_lb(0, - lp__); + in__.template read>(J); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 4; lp_accum__.add(stan::math::normal_lpdf(theta, mu, tau)); @@ -6160,17 +5875,12 @@ class expr_prop_fail2_model final : public model_base_crtp(); + local_scalar_t__ mu = in__.template read(); std::vector theta = - std::vector(J, DUMMY_VAR__); - current_statement__ = 2; - theta = in__.template read>(J); - local_scalar_t__ tau = DUMMY_VAR__; - current_statement__ = 3; - tau = in__.template read_constrain_lb(0, - lp__); + in__.template read>(J); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 4; lp_accum__.add(stan::math::normal_lpdf(theta, mu, tau)); @@ -6218,17 +5928,12 @@ class expr_prop_fail2_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - mu = in__.template read(); + double mu = in__.template read(); std::vector theta = - std::vector(J, std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - theta = in__.template read>(J); - double tau = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - tau = in__.template read_constrain_lb(0, - lp__); + in__.template read>(J); + double tau = + in__.template read_constrain_lb(0, + lp__); out__.write(mu); out__.write(theta); out__.write(tau); @@ -6570,24 +6275,18 @@ class expr_prop_fail3_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 22; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 22; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 23; context__.validate_dims("data initialization", "n_age", "int", std::vector{}); n_age = std::numeric_limits::min(); current_statement__ = 23; - n_age = context__.vals_i("n_age")[(1 - 1)]; - current_statement__ = 23; stan::math::check_greater_or_equal(function__, "n_age", n_age, 0); current_statement__ = 24; context__.validate_dims("data initialization", "n_age_edu", "int", std::vector{}); n_age_edu = std::numeric_limits::min(); current_statement__ = 24; - n_age_edu = context__.vals_i("n_age_edu")[(1 - 1)]; - current_statement__ = 24; stan::math::check_greater_or_equal(function__, "n_age_edu", n_age_edu, 0); current_statement__ = 25; @@ -6595,16 +6294,12 @@ class expr_prop_fail3_model final : public model_base_crtp{}); n_edu = std::numeric_limits::min(); current_statement__ = 25; - n_edu = context__.vals_i("n_edu")[(1 - 1)]; - current_statement__ = 25; stan::math::check_greater_or_equal(function__, "n_edu", n_edu, 0); current_statement__ = 26; context__.validate_dims("data initialization", "n_region_full", "int", std::vector{}); n_region_full = std::numeric_limits::min(); current_statement__ = 26; - n_region_full = context__.vals_i("n_region_full")[(1 - 1)]; - current_statement__ = 26; stan::math::check_greater_or_equal(function__, "n_region_full", n_region_full, 0); current_statement__ = 27; @@ -6612,8 +6307,6 @@ class expr_prop_fail3_model final : public model_base_crtp{}); n_state = std::numeric_limits::min(); current_statement__ = 27; - n_state = context__.vals_i("n_state")[(1 - 1)]; - current_statement__ = 27; stan::math::check_greater_or_equal(function__, "n_state", n_state, 0); current_statement__ = 28; stan::math::validate_non_negative_index("age", "N", N); @@ -6622,8 +6315,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); age = std::vector(N, std::numeric_limits::min()); current_statement__ = 29; - age = context__.vals_i("age"); - current_statement__ = 29; stan::math::check_greater_or_equal(function__, "age", age, 0); current_statement__ = 29; stan::math::check_less_or_equal(function__, "age", age, n_age); @@ -6634,8 +6325,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); age_edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 31; - age_edu = context__.vals_i("age_edu"); - current_statement__ = 31; stan::math::check_greater_or_equal(function__, "age_edu", age_edu, 0); current_statement__ = 31; stan::math::check_less_or_equal(function__, "age_edu", age_edu, @@ -6649,17 +6338,6 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&black) Eigen::Map>(black_data__.data(), N); - { - std::vector black_flat__; - current_statement__ = 33; - black_flat__ = context__.vals_r("black"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(black, black_flat__[(pos__ - 1)], - "assigning variable black", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 33; stan::math::check_greater_or_equal(function__, "black", black, 0); current_statement__ = 33; @@ -6671,8 +6349,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 35; - edu = context__.vals_i("edu"); - current_statement__ = 35; stan::math::check_greater_or_equal(function__, "edu", edu, 0); current_statement__ = 35; stan::math::check_less_or_equal(function__, "edu", edu, n_edu); @@ -6685,17 +6361,6 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&female) Eigen::Map>(female_data__.data(), N); - { - std::vector female_flat__; - current_statement__ = 37; - female_flat__ = context__.vals_r("female"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(female, female_flat__[(pos__ - 1)], - "assigning variable female", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "female", female, 0); current_statement__ = 37; @@ -6707,8 +6372,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); region_full = std::vector(N, std::numeric_limits::min()); current_statement__ = 39; - region_full = context__.vals_i("region_full"); - current_statement__ = 39; stan::math::check_greater_or_equal(function__, "region_full", region_full, 0); current_statement__ = 39; @@ -6721,8 +6384,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); state = std::vector(N, std::numeric_limits::min()); current_statement__ = 41; - state = context__.vals_i("state"); - current_statement__ = 41; stan::math::check_greater_or_equal(function__, "state", state, 0); current_statement__ = 41; stan::math::check_less_or_equal(function__, "state", state, n_state); @@ -6735,17 +6396,6 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&v_prev_full) Eigen::Map>(v_prev_full_data__.data(), N); - { - std::vector v_prev_full_flat__; - current_statement__ = 43; - v_prev_full_flat__ = context__.vals_r("v_prev_full"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(v_prev_full, v_prev_full_flat__[(pos__ - 1)], - "assigning variable v_prev_full", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 44; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 45; @@ -6753,8 +6403,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 45; - y = context__.vals_i("y"); - current_statement__ = 45; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "y", y, 1); @@ -6809,52 +6457,33 @@ class expr_prop_fail3_model final : public model_base_crtp a = - Eigen::Matrix::Constant(n_age, DUMMY_VAR__); - current_statement__ = 1; - a = in__.template read>(n_age); + in__.template read>(n_age); Eigen::Matrix b = - Eigen::Matrix::Constant(n_edu, DUMMY_VAR__); - current_statement__ = 2; - b = in__.template read>(n_edu); + in__.template read>(n_edu); Eigen::Matrix c = - Eigen::Matrix::Constant(n_age_edu, - DUMMY_VAR__); - current_statement__ = 3; - c = in__.template read>(n_age_edu); + in__.template read>(n_age_edu); Eigen::Matrix d = - Eigen::Matrix::Constant(n_state, DUMMY_VAR__); - current_statement__ = 4; - d = in__.template read>(n_state); + in__.template read>(n_state); Eigen::Matrix e = - Eigen::Matrix::Constant(n_region_full, - DUMMY_VAR__); - current_statement__ = 5; - e = in__.template read< - Eigen::Matrix>(n_region_full); + in__.template read< + Eigen::Matrix>(n_region_full); Eigen::Matrix beta = - Eigen::Matrix::Constant(5, DUMMY_VAR__); - current_statement__ = 6; - beta = in__.template read>(5); - local_scalar_t__ sigma_a = DUMMY_VAR__; - current_statement__ = 7; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_b = DUMMY_VAR__; - current_statement__ = 8; - sigma_b = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_c = DUMMY_VAR__; - current_statement__ = 9; - sigma_c = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_d = DUMMY_VAR__; - current_statement__ = 10; - sigma_d = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_e = DUMMY_VAR__; - current_statement__ = 11; - sigma_e = in__.template read_constrain_lub(0, 100, lp__); + in__.template read>(5); + local_scalar_t__ sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_b = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_c = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_d = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_e = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 14; @@ -6940,52 +6569,33 @@ class expr_prop_fail3_model final : public model_base_crtp a = - Eigen::Matrix::Constant(n_age, DUMMY_VAR__); - current_statement__ = 1; - a = in__.template read>(n_age); + in__.template read>(n_age); Eigen::Matrix b = - Eigen::Matrix::Constant(n_edu, DUMMY_VAR__); - current_statement__ = 2; - b = in__.template read>(n_edu); + in__.template read>(n_edu); Eigen::Matrix c = - Eigen::Matrix::Constant(n_age_edu, - DUMMY_VAR__); - current_statement__ = 3; - c = in__.template read>(n_age_edu); + in__.template read>(n_age_edu); Eigen::Matrix d = - Eigen::Matrix::Constant(n_state, DUMMY_VAR__); - current_statement__ = 4; - d = in__.template read>(n_state); + in__.template read>(n_state); Eigen::Matrix e = - Eigen::Matrix::Constant(n_region_full, - DUMMY_VAR__); - current_statement__ = 5; - e = in__.template read< - Eigen::Matrix>(n_region_full); + in__.template read< + Eigen::Matrix>(n_region_full); Eigen::Matrix beta = - Eigen::Matrix::Constant(5, DUMMY_VAR__); - current_statement__ = 6; - beta = in__.template read>(5); - local_scalar_t__ sigma_a = DUMMY_VAR__; - current_statement__ = 7; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_b = DUMMY_VAR__; - current_statement__ = 8; - sigma_b = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_c = DUMMY_VAR__; - current_statement__ = 9; - sigma_c = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_d = DUMMY_VAR__; - current_statement__ = 10; - sigma_d = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_e = DUMMY_VAR__; - current_statement__ = 11; - sigma_e = in__.template read_constrain_lub(0, 100, lp__); + in__.template read>(5); + local_scalar_t__ sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_b = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_c = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_d = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_e = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 14; @@ -7082,56 +6692,33 @@ class expr_prop_fail3_model final : public model_base_crtp a = - Eigen::Matrix::Constant(n_age, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - a = in__.template read>(n_age); + in__.template read>(n_age); Eigen::Matrix b = - Eigen::Matrix::Constant(n_edu, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - b = in__.template read>(n_edu); + in__.template read>(n_edu); Eigen::Matrix c = - Eigen::Matrix::Constant(n_age_edu, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - c = in__.template read>(n_age_edu); + in__.template read>(n_age_edu); Eigen::Matrix d = - Eigen::Matrix::Constant(n_state, - std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - d = in__.template read>(n_state); + in__.template read>(n_state); Eigen::Matrix e = - Eigen::Matrix::Constant(n_region_full, - std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - e = in__.template read< - Eigen::Matrix>(n_region_full); + in__.template read< + Eigen::Matrix>(n_region_full); Eigen::Matrix beta = - Eigen::Matrix::Constant(5, - std::numeric_limits::quiet_NaN()); - current_statement__ = 6; - beta = in__.template read>(5); - double sigma_a = std::numeric_limits::quiet_NaN(); - current_statement__ = 7; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - double sigma_b = std::numeric_limits::quiet_NaN(); - current_statement__ = 8; - sigma_b = in__.template read_constrain_lub(0, 100, lp__); - double sigma_c = std::numeric_limits::quiet_NaN(); - current_statement__ = 9; - sigma_c = in__.template read_constrain_lub(0, 100, lp__); - double sigma_d = std::numeric_limits::quiet_NaN(); - current_statement__ = 10; - sigma_d = in__.template read_constrain_lub(0, 100, lp__); - double sigma_e = std::numeric_limits::quiet_NaN(); - current_statement__ = 11; - sigma_e = in__.template read_constrain_lub(0, 100, lp__); + in__.template read>(5); + double sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_b = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_c = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_d = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_e = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); @@ -7753,16 +7340,12 @@ class expr_prop_fail4_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 30; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 30; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 31; context__.validate_dims("data initialization", "N_edges", "int", std::vector{}); N_edges = std::numeric_limits::min(); current_statement__ = 31; - N_edges = context__.vals_i("N_edges")[(1 - 1)]; - current_statement__ = 31; stan::math::check_greater_or_equal(function__, "N_edges", N_edges, 0); current_statement__ = 32; stan::math::validate_non_negative_index("node1", "N_edges", N_edges); @@ -7771,8 +7354,6 @@ class expr_prop_fail4_model final : public model_base_crtp{static_cast(N_edges)}); node1 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 33; - node1 = context__.vals_i("node1"); - current_statement__ = 33; stan::math::check_greater_or_equal(function__, "node1", node1, 1); current_statement__ = 33; stan::math::check_less_or_equal(function__, "node1", node1, N); @@ -7783,8 +7364,6 @@ class expr_prop_fail4_model final : public model_base_crtp{static_cast(N_edges)}); node2 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 35; - node2 = context__.vals_i("node2"); - current_statement__ = 35; stan::math::check_greater_or_equal(function__, "node2", node2, 1); current_statement__ = 35; stan::math::check_less_or_equal(function__, "node2", node2, N); @@ -7796,17 +7375,6 @@ class expr_prop_fail4_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&E) Eigen::Map>(E_data__.data(), N); - { - std::vector E_flat__; - current_statement__ = 37; - E_flat__ = context__.vals_r("E"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(E, E_flat__[(pos__ - 1)], - "assigning variable E", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "E", E, 0); current_statement__ = 38; @@ -7872,16 +7440,12 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); + local_scalar_t__ tau_phi = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix phi_std_raw = - Eigen::Matrix::Constant(phi_std_raw_1dim__, - DUMMY_VAR__); - current_statement__ = 2; - phi_std_raw = in__.template read< - Eigen::Matrix>(phi_std_raw_1dim__); + in__.template read< + Eigen::Matrix>(phi_std_raw_1dim__); local_scalar_t__ sigma_phi = DUMMY_VAR__; current_statement__ = 3; sigma_phi = stan::math::inv(stan::math::sqrt(tau_phi)); @@ -7940,16 +7504,12 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); + local_scalar_t__ tau_phi = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix phi_std_raw = - Eigen::Matrix::Constant(phi_std_raw_1dim__, - DUMMY_VAR__); - current_statement__ = 2; - phi_std_raw = in__.template read< - Eigen::Matrix>(phi_std_raw_1dim__); + in__.template read< + Eigen::Matrix>(phi_std_raw_1dim__); local_scalar_t__ sigma_phi = DUMMY_VAR__; current_statement__ = 3; sigma_phi = stan::math::inv(stan::math::sqrt(tau_phi)); @@ -8019,16 +7579,12 @@ class expr_prop_fail4_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - tau_phi = in__.template read_constrain_lb(0, lp__); + double tau_phi = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix phi_std_raw = - Eigen::Matrix::Constant(phi_std_raw_1dim__, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - phi_std_raw = in__.template read< - Eigen::Matrix>(phi_std_raw_1dim__); + in__.template read< + Eigen::Matrix>(phi_std_raw_1dim__); double sigma_phi = std::numeric_limits::quiet_NaN(); Eigen::Matrix phi = Eigen::Matrix::Constant(N, @@ -8704,16 +8260,12 @@ class expr_prop_fail5_model final : public model_base_crtp{}); nind = std::numeric_limits::min(); current_statement__ = 33; - nind = context__.vals_i("nind")[(1 - 1)]; - current_statement__ = 33; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 34; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 34; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 34; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 35; @@ -8726,20 +8278,6 @@ class expr_prop_fail5_model final : public model_base_crtp(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 37; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { - for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 37; @@ -8833,23 +8371,17 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p = DUMMY_VAR__; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix epsilon = - Eigen::Matrix::Constant(nind, DUMMY_VAR__); - current_statement__ = 3; - epsilon = in__.template read< - Eigen::Matrix>(nind); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 4; - sigma = in__.template read_constrain_lub(0, 5, lp__); + in__.template read>(nind); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -8974,23 +8506,17 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p = DUMMY_VAR__; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix epsilon = - Eigen::Matrix::Constant(nind, DUMMY_VAR__); - current_statement__ = 3; - epsilon = in__.template read< - Eigen::Matrix>(nind); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 4; - sigma = in__.template read_constrain_lub(0, 5, lp__); + in__.template read>(nind); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -9126,24 +8652,17 @@ class expr_prop_fail5_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + double mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix epsilon = - Eigen::Matrix::Constant(nind, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - epsilon = in__.template read< - Eigen::Matrix>(nind); - double sigma = std::numeric_limits::quiet_NaN(); - current_statement__ = 4; - sigma = in__.template read_constrain_lub(0, 5, lp__); + in__.template read>(nind); + double sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, std::numeric_limits::quiet_NaN()); @@ -10167,16 +9686,12 @@ class expr_prop_fail6_model final : public model_base_crtp{}); M = std::numeric_limits::min(); current_statement__ = 68; - M = context__.vals_i("M")[(1 - 1)]; - current_statement__ = 68; stan::math::check_greater_or_equal(function__, "M", M, 0); current_statement__ = 69; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 69; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 69; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 0); current_statement__ = 70; @@ -10189,20 +9704,6 @@ class expr_prop_fail6_model final : public model_base_crtp(n_occasions)}); y = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 72; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { - for (int sym2__ = 1; sym2__ <= M; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 72; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 72; @@ -10311,33 +9812,23 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p = DUMMY_VAR__; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ psi = DUMMY_VAR__; - current_statement__ = 3; - psi = in__.template read_constrain_lub(0, - 1, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ psi = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix beta = - Eigen::Matrix::Constant(n_occasions, - DUMMY_VAR__); - current_statement__ = 4; - beta = in__.template read_constrain_lb< - Eigen::Matrix, jacobian__>(0, lp__, - n_occasions); + in__.template read_constrain_lb, + jacobian__>(0, lp__, n_occasions); Eigen::Matrix epsilon = - Eigen::Matrix::Constant(M, DUMMY_VAR__); - current_statement__ = 5; - epsilon = in__.template read>(M); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 6; - sigma = in__.template read_constrain_lub(0, 5, lp__); + in__.template read>(M); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, phi_2dim__, DUMMY_VAR__); @@ -10451,33 +9942,23 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p = DUMMY_VAR__; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ psi = DUMMY_VAR__; - current_statement__ = 3; - psi = in__.template read_constrain_lub(0, - 1, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ psi = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix beta = - Eigen::Matrix::Constant(n_occasions, - DUMMY_VAR__); - current_statement__ = 4; - beta = in__.template read_constrain_lb< - Eigen::Matrix, jacobian__>(0, lp__, - n_occasions); + in__.template read_constrain_lb, + jacobian__>(0, lp__, n_occasions); Eigen::Matrix epsilon = - Eigen::Matrix::Constant(M, DUMMY_VAR__); - current_statement__ = 5; - epsilon = in__.template read>(M); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 6; - sigma = in__.template read_constrain_lub(0, 5, lp__); + in__.template read>(M); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, phi_2dim__, DUMMY_VAR__); @@ -10602,34 +10083,23 @@ class expr_prop_fail6_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - double psi = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - psi = in__.template read_constrain_lub(0, - 1, lp__); + double mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + double psi = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix beta = - Eigen::Matrix::Constant(n_occasions, - std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - beta = in__.template read_constrain_lb< - Eigen::Matrix, jacobian__>(0, lp__, - n_occasions); + in__.template read_constrain_lb, + jacobian__>(0, lp__, n_occasions); Eigen::Matrix epsilon = - Eigen::Matrix::Constant(M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - epsilon = in__.template read>(M); - double sigma = std::numeric_limits::quiet_NaN(); - current_statement__ = 6; - sigma = in__.template read_constrain_lub(0, 5, lp__); + in__.template read>(M); + double sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, phi_2dim__, std::numeric_limits::quiet_NaN()); @@ -11365,24 +10835,18 @@ class expr_prop_fail7_model final : public model_base_crtp{}); K = std::numeric_limits::min(); current_statement__ = 22; - K = context__.vals_i("K")[(1 - 1)]; - current_statement__ = 22; stan::math::check_greater_or_equal(function__, "K", K, 2); current_statement__ = 23; context__.validate_dims("data initialization", "I", "int", std::vector{}); I = std::numeric_limits::min(); current_statement__ = 23; - I = context__.vals_i("I")[(1 - 1)]; - current_statement__ = 23; stan::math::check_greater_or_equal(function__, "I", I, 1); current_statement__ = 24; context__.validate_dims("data initialization", "J", "int", std::vector{}); J = std::numeric_limits::min(); current_statement__ = 24; - J = context__.vals_i("J")[(1 - 1)]; - current_statement__ = 24; stan::math::check_greater_or_equal(function__, "J", J, 1); current_statement__ = 25; stan::math::validate_non_negative_index("y", "I", I); @@ -11393,20 +10857,6 @@ class expr_prop_fail7_model final : public model_base_crtp{static_cast(I), static_cast(J)}); y = std::vector>(I, std::vector(J, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 27; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= J; ++sym1__) { - for (int sym2__ = 1; sym2__ <= I; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 27; stan::math::check_greater_or_equal(function__, "y", y, 1); current_statement__ = 27; @@ -11420,17 +10870,6 @@ class expr_prop_fail7_model final : public model_base_crtp::quiet_NaN()); new (&alpha) Eigen::Map>(alpha_data__.data(), K); - { - std::vector alpha_flat__; - current_statement__ = 29; - alpha_flat__ = context__.vals_r("alpha"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= K; ++sym1__) { - stan::model::assign(alpha, alpha_flat__[(pos__ - 1)], - "assigning variable alpha", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 29; stan::math::check_greater_or_equal(function__, "alpha", alpha, 0); current_statement__ = 30; @@ -11443,20 +10882,6 @@ class expr_prop_fail7_model final : public model_base_crtp>(K, Eigen::Matrix::Constant(K, std::numeric_limits::quiet_NaN())); - { - std::vector beta_flat__; - current_statement__ = 32; - beta_flat__ = context__.vals_r("beta"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= K; ++sym1__) { - for (int sym2__ = 1; sym2__ <= K; ++sym2__) { - stan::model::assign(beta, beta_flat__[(pos__ - 1)], - "assigning variable beta", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 32; stan::math::check_greater_or_equal(function__, "beta", beta, 0); current_statement__ = 33; @@ -11506,21 +10931,14 @@ class expr_prop_fail7_model final : public model_base_crtp pi = - Eigen::Matrix::Constant(K, DUMMY_VAR__); - current_statement__ = 1; - pi = in__.template read_constrain_simplex< - Eigen::Matrix, jacobian__>(lp__, K); - std::vector>> theta = - std::vector>>(J, - std::vector>(K, - Eigen::Matrix::Constant(K, DUMMY_VAR__))); - current_statement__ = 2; - theta = in__.template read_constrain_simplex< - std::vector< - std::vector>>, - jacobian__>(lp__, J, K, K); + try { + Eigen::Matrix pi = + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, K); + std::vector>> theta = + in__.template read_constrain_simplex< + std::vector>>, + jacobian__>(lp__, J, K, K); { current_statement__ = 11; lp_accum__.add(stan::math::dirichlet_lpdf(pi, alpha)); @@ -11596,19 +11014,12 @@ class expr_prop_fail7_model final : public model_base_crtp pi = - Eigen::Matrix::Constant(K, DUMMY_VAR__); - current_statement__ = 1; - pi = in__.template read_constrain_simplex< - Eigen::Matrix, jacobian__>(lp__, K); + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, K); std::vector>> theta = - std::vector>>(J, - std::vector>(K, - Eigen::Matrix::Constant(K, DUMMY_VAR__))); - current_statement__ = 2; - theta = in__.template read_constrain_simplex< - std::vector< - std::vector>>, - jacobian__>(lp__, J, K, K); + in__.template read_constrain_simplex< + std::vector>>, + jacobian__>(lp__, J, K, K); { current_statement__ = 11; lp_accum__.add(stan::math::dirichlet_lpdf(pi, alpha)); @@ -11695,21 +11106,12 @@ class expr_prop_fail7_model final : public model_base_crtp pi = - Eigen::Matrix::Constant(K, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - pi = in__.template read_constrain_simplex< - Eigen::Matrix, jacobian__>(lp__, K); + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, K); std::vector>> theta = - std::vector>>(J, - std::vector>(K, - Eigen::Matrix::Constant(K, - std::numeric_limits::quiet_NaN()))); - current_statement__ = 2; - theta = in__.template read_constrain_simplex< - std::vector< - std::vector>>, - jacobian__>(lp__, J, K, K); + in__.template read_constrain_simplex< + std::vector>>, + jacobian__>(lp__, J, K, K); out__.write(pi); current_statement__ = 2; for (int sym1__ = 1; sym1__ <= K; ++sym1__) { @@ -12129,16 +11531,12 @@ class expr_prop_fail8_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 12; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 12; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 13; context__.validate_dims("data initialization", "N_edges", "int", std::vector{}); N_edges = std::numeric_limits::min(); current_statement__ = 13; - N_edges = context__.vals_i("N_edges")[(1 - 1)]; - current_statement__ = 13; stan::math::check_greater_or_equal(function__, "N_edges", N_edges, 0); current_statement__ = 14; stan::math::validate_non_negative_index("node1", "N_edges", N_edges); @@ -12147,8 +11545,6 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N_edges)}); node1 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 15; - node1 = context__.vals_i("node1"); - current_statement__ = 15; stan::math::check_greater_or_equal(function__, "node1", node1, 1); current_statement__ = 15; stan::math::check_less_or_equal(function__, "node1", node1, N); @@ -12159,8 +11555,6 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N_edges)}); node2 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 17; - node2 = context__.vals_i("node2"); - current_statement__ = 17; stan::math::check_greater_or_equal(function__, "node2", node2, 1); current_statement__ = 17; stan::math::check_less_or_equal(function__, "node2", node2, N); @@ -12171,8 +11565,6 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 19; - y = context__.vals_i("y"); - current_statement__ = 19; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 20; stan::math::validate_non_negative_index("x", "N", N); @@ -12182,17 +11574,6 @@ class expr_prop_fail8_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&x) Eigen::Map>(x_data__.data(), N); - { - std::vector x_flat__; - current_statement__ = 21; - x_flat__ = context__.vals_r("x"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 22; stan::math::validate_non_negative_index("theta_std", "N", N); current_statement__ = 23; @@ -12235,29 +11616,18 @@ class expr_prop_fail8_model final : public model_base_crtp(); - local_scalar_t__ beta1 = DUMMY_VAR__; - current_statement__ = 2; - beta1 = in__.template read(); - local_scalar_t__ tau_theta = DUMMY_VAR__; - current_statement__ = 3; - tau_theta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ tau_phi = DUMMY_VAR__; - current_statement__ = 4; - tau_phi = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ beta0 = in__.template read(); + local_scalar_t__ beta1 = in__.template read(); + local_scalar_t__ tau_theta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ tau_phi = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix theta_std = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 5; - theta_std = in__.template read>(N); + in__.template read>(N); Eigen::Matrix phi_std_raw = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 6; - phi_std_raw = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); local_scalar_t__ sigma_phi = DUMMY_VAR__; current_statement__ = 7; sigma_phi = stan::math::inv(stan::math::sqrt(tau_phi)); @@ -12309,29 +11679,18 @@ class expr_prop_fail8_model final : public model_base_crtp(); - local_scalar_t__ beta1 = DUMMY_VAR__; - current_statement__ = 2; - beta1 = in__.template read(); - local_scalar_t__ tau_theta = DUMMY_VAR__; - current_statement__ = 3; - tau_theta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ tau_phi = DUMMY_VAR__; - current_statement__ = 4; - tau_phi = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ beta0 = in__.template read(); + local_scalar_t__ beta1 = in__.template read(); + local_scalar_t__ tau_theta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ tau_phi = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix theta_std = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 5; - theta_std = in__.template read>(N); + in__.template read>(N); Eigen::Matrix phi_std_raw = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 6; - phi_std_raw = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); local_scalar_t__ sigma_phi = DUMMY_VAR__; current_statement__ = 7; sigma_phi = stan::math::inv(stan::math::sqrt(tau_phi)); @@ -12394,31 +11753,18 @@ class expr_prop_fail8_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - beta0 = in__.template read(); - double beta1 = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - beta1 = in__.template read(); - double tau_theta = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - tau_theta = in__.template read_constrain_lb(0, lp__); - double tau_phi = std::numeric_limits::quiet_NaN(); - current_statement__ = 4; - tau_phi = in__.template read_constrain_lb(0, lp__); + double beta0 = in__.template read(); + double beta1 = in__.template read(); + double tau_theta = + in__.template read_constrain_lb(0, + lp__); + double tau_phi = + in__.template read_constrain_lb(0, + lp__); Eigen::Matrix theta_std = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - theta_std = in__.template read>(N); + in__.template read>(N); Eigen::Matrix phi_std_raw = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 6; - phi_std_raw = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); double sigma_phi = std::numeric_limits::quiet_NaN(); Eigen::Matrix phi = Eigen::Matrix::Constant(N, @@ -13037,16 +12383,12 @@ class fails_test_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 26; - nind = context__.vals_i("nind")[(1 - 1)]; - current_statement__ = 26; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 27; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 27; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 27; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 28; @@ -13059,20 +12401,6 @@ class fails_test_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 30; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { - for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 30; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 30; @@ -13082,8 +12410,6 @@ class fails_test_model final : public model_base_crtp { std::vector{}); max_age = std::numeric_limits::min(); current_statement__ = 31; - max_age = context__.vals_i("max_age")[(1 - 1)]; - current_statement__ = 31; stan::math::check_greater_or_equal(function__, "max_age", max_age, 1); current_statement__ = 32; stan::math::validate_non_negative_index("x", "nind", nind); @@ -13097,20 +12423,6 @@ class fails_test_model final : public model_base_crtp { x = std::vector>(nind, std::vector((n_occasions - 1), std::numeric_limits::min())); - { - std::vector x_flat__; - current_statement__ = 34; - x_flat__ = context__.vals_i("x"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= (n_occasions - 1); ++sym1__) { - for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 34; stan::math::check_greater_or_equal(function__, "x", x, 0); current_statement__ = 34; @@ -13204,16 +12516,13 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p = DUMMY_VAR__; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix beta = - Eigen::Matrix::Constant(max_age, DUMMY_VAR__); - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -13334,16 +12643,13 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p = DUMMY_VAR__; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix beta = - Eigen::Matrix::Constant(max_age, DUMMY_VAR__); - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -13475,17 +12781,13 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double mean_p = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix beta = - Eigen::Matrix::Constant(max_age, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, std::numeric_limits::quiet_NaN()); @@ -13932,17 +13234,6 @@ class function_in_function_inline_model final : public model_base_crtp::quiet_NaN()); new (&phi) Eigen::Map>(phi_data__.data(), 10); - { - std::vector phi_flat__; - current_statement__ = 3; - phi_flat__ = context__.vals_r("phi"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { - stan::model::assign(phi, phi_flat__[(pos__ - 1)], - "assigning variable phi", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -14362,8 +13653,6 @@ class function_in_function_loops_model final : public model_base_crtp{}); N = std::numeric_limits::min(); - current_statement__ = 5; - N = context__.vals_i("N")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -15099,15 +14388,10 @@ class initialize_SoA_model final : public model_base_crtp (void) function__; try { Eigen::Matrix y = - Eigen::Matrix::Constant(3, DUMMY_VAR__); - current_statement__ = 1; - y = in__.template read>(3); + in__.template read>(3); std::vector> arr_vec = - std::vector>(3, - Eigen::Matrix::Constant(4, DUMMY_VAR__)); - current_statement__ = 2; - arr_vec = in__.template read< - std::vector>>(3, 4); + in__.template read< + std::vector>>(3, 4); Eigen::Matrix x = Eigen::Matrix::Constant(3, DUMMY_VAR__); current_statement__ = 3; @@ -15156,15 +14440,10 @@ class initialize_SoA_model final : public model_base_crtp (void) function__; try { Eigen::Matrix y = - Eigen::Matrix::Constant(3, DUMMY_VAR__); - current_statement__ = 1; - y = in__.template read>(3); + in__.template read>(3); std::vector> arr_vec = - std::vector>(3, - Eigen::Matrix::Constant(4, DUMMY_VAR__)); - current_statement__ = 2; - arr_vec = in__.template read< - std::vector>>(3, 4); + in__.template read< + std::vector>>(3, 4); Eigen::Matrix x = Eigen::Matrix::Constant(3, DUMMY_VAR__); current_statement__ = 3; @@ -15224,17 +14503,10 @@ class initialize_SoA_model final : public model_base_crtp (void) function__; try { Eigen::Matrix y = - Eigen::Matrix::Constant(3, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - y = in__.template read>(3); + in__.template read>(3); std::vector> arr_vec = - std::vector>(3, - Eigen::Matrix::Constant(4, - std::numeric_limits::quiet_NaN())); - current_statement__ = 2; - arr_vec = in__.template read< - std::vector>>(3, 4); + in__.template read< + std::vector>>(3, 4); Eigen::Matrix x = Eigen::Matrix::Constant(3, std::numeric_limits::quiet_NaN()); @@ -15681,15 +14953,9 @@ class inline_functions_varmat_model final : public model_base_crtp p_single_ret_vec = - Eigen::Matrix::Constant(5, DUMMY_VAR__); - current_statement__ = 1; - p_single_ret_vec = in__.template read< - Eigen::Matrix>(5); + in__.template read>(5); Eigen::Matrix p_multi_ret_vec = - Eigen::Matrix::Constant(5, DUMMY_VAR__); - current_statement__ = 2; - p_multi_ret_vec = in__.template read< - Eigen::Matrix>(5); + in__.template read>(5); Eigen::Matrix tp_single_ret_vec = Eigen::Matrix::Constant(5, DUMMY_VAR__); current_statement__ = 3; @@ -15733,15 +14999,9 @@ class inline_functions_varmat_model final : public model_base_crtp p_single_ret_vec = - Eigen::Matrix::Constant(5, DUMMY_VAR__); - current_statement__ = 1; - p_single_ret_vec = in__.template read< - Eigen::Matrix>(5); + in__.template read>(5); Eigen::Matrix p_multi_ret_vec = - Eigen::Matrix::Constant(5, DUMMY_VAR__); - current_statement__ = 2; - p_multi_ret_vec = in__.template read< - Eigen::Matrix>(5); + in__.template read>(5); Eigen::Matrix tp_single_ret_vec = Eigen::Matrix::Constant(5, DUMMY_VAR__); current_statement__ = 3; @@ -15796,17 +15056,9 @@ class inline_functions_varmat_model final : public model_base_crtp p_single_ret_vec = - Eigen::Matrix::Constant(5, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - p_single_ret_vec = in__.template read< - Eigen::Matrix>(5); + in__.template read>(5); Eigen::Matrix p_multi_ret_vec = - Eigen::Matrix::Constant(5, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - p_multi_ret_vec = in__.template read< - Eigen::Matrix>(5); + in__.template read>(5); Eigen::Matrix tp_single_ret_vec = Eigen::Matrix::Constant(5, std::numeric_limits::quiet_NaN()); @@ -16235,9 +15487,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha = DUMMY_VAR__; - current_statement__ = 1; - alpha = in__.template read(); + local_scalar_t__ alpha = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf( @@ -16273,9 +15523,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha = DUMMY_VAR__; - current_statement__ = 1; - alpha = in__.template read(); + local_scalar_t__ alpha = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf( @@ -16322,9 +15570,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double alpha = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - alpha = in__.template read(); + double alpha = in__.template read(); out__.write(alpha); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -16605,8 +15851,6 @@ class inliner_same_names_model final : public model_base_crtp{}); N = std::numeric_limits::min(); - current_statement__ = 4; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 5; stan::math::validate_non_negative_index("R", "N", N); current_statement__ = 6; @@ -17619,16 +16863,12 @@ class inlining_fail2_model final : public model_base_crtp std::vector{}); M = std::numeric_limits::min(); current_statement__ = 60; - M = context__.vals_i("M")[(1 - 1)]; - current_statement__ = 60; stan::math::check_greater_or_equal(function__, "M", M, 0); current_statement__ = 61; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 61; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 61; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 0); current_statement__ = 62; @@ -17641,20 +16881,6 @@ class inlining_fail2_model final : public model_base_crtp static_cast(n_occasions)}); y = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 64; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { - for (int sym2__ = 1; sym2__ <= M; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 64; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 64; @@ -17765,31 +16991,22 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi = DUMMY_VAR__; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = DUMMY_VAR__; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix gamma = - Eigen::Matrix::Constant(n_occasions, - DUMMY_VAR__); - current_statement__ = 3; - gamma = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - n_occasions); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + n_occasions); Eigen::Matrix epsilon = - Eigen::Matrix::Constant(epsilon_1dim__, - DUMMY_VAR__); - current_statement__ = 4; - epsilon = in__.template read< - Eigen::Matrix>(epsilon_1dim__); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 5; - sigma = in__.template read_constrain_lub(0, 5, lp__); + in__.template read< + Eigen::Matrix>(epsilon_1dim__); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, phi_2dim__, DUMMY_VAR__); @@ -17866,31 +17083,22 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi = DUMMY_VAR__; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = DUMMY_VAR__; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix gamma = - Eigen::Matrix::Constant(n_occasions, - DUMMY_VAR__); - current_statement__ = 3; - gamma = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - n_occasions); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + n_occasions); Eigen::Matrix epsilon = - Eigen::Matrix::Constant(epsilon_1dim__, - DUMMY_VAR__); - current_statement__ = 4; - epsilon = in__.template read< - Eigen::Matrix>(epsilon_1dim__); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 5; - sigma = in__.template read_constrain_lub(0, 5, lp__); + in__.template read< + Eigen::Matrix>(epsilon_1dim__); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, phi_2dim__, DUMMY_VAR__); @@ -17978,31 +17186,22 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double mean_phi = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + double mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix gamma = - Eigen::Matrix::Constant(n_occasions, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - gamma = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - n_occasions); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + n_occasions); Eigen::Matrix epsilon = - Eigen::Matrix::Constant(epsilon_1dim__, - std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - epsilon = in__.template read< - Eigen::Matrix>(epsilon_1dim__); - double sigma = std::numeric_limits::quiet_NaN(); - current_statement__ = 5; - sigma = in__.template read_constrain_lub(0, 5, lp__); + in__.template read< + Eigen::Matrix>(epsilon_1dim__); + double sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, phi_2dim__, std::numeric_limits::quiet_NaN()); @@ -18652,8 +17851,6 @@ class lcm_experiment_model final : public model_base_crtp context__.validate_dims("data initialization", "j", "int", std::vector{}); j = std::numeric_limits::min(); - current_statement__ = 1; - j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 2; @@ -19016,9 +18213,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + local_scalar_t__ x = in__.template read(); { local_scalar_t__ y = DUMMY_VAR__; current_statement__ = 2; @@ -19066,9 +18261,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + local_scalar_t__ x = in__.template read(); { local_scalar_t__ y = DUMMY_VAR__; current_statement__ = 2; @@ -19127,9 +18320,7 @@ class lcm_experiment2_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - x = in__.template read(); + double x = in__.template read(); out__.write(x); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -19369,8 +18560,6 @@ class lcm_fails_model final : public model_base_crtp { std::vector{}); J = std::numeric_limits::min(); current_statement__ = 3; - J = context__.vals_i("J")[(1 - 1)]; - current_statement__ = 3; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 4; stan::math::validate_non_negative_index("y", "J", J); @@ -19378,8 +18567,6 @@ class lcm_fails_model final : public model_base_crtp { context__.validate_dims("data initialization", "y", "double", std::vector{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - y = context__.vals_r("y"); current_statement__ = 6; stan::math::validate_non_negative_index("theta", "J", J); } catch (const std::exception& e) { @@ -19419,9 +18606,7 @@ class lcm_fails_model final : public model_base_crtp { (void) function__; try { std::vector theta = - std::vector(J, DUMMY_VAR__); - current_statement__ = 1; - theta = in__.template read>(J); + in__.template read>(J); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(y, theta, 1)); @@ -19457,9 +18642,7 @@ class lcm_fails_model final : public model_base_crtp { (void) function__; try { std::vector theta = - std::vector(J, DUMMY_VAR__); - current_statement__ = 1; - theta = in__.template read>(J); + in__.template read>(J); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(y, theta, 1)); @@ -19506,9 +18689,7 @@ class lcm_fails_model final : public model_base_crtp { (void) function__; try { std::vector theta = - std::vector(J, std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - theta = in__.template read>(J); + in__.template read>(J); out__.write(theta); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -19973,16 +19154,12 @@ class lcm_fails2_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 26; - nind = context__.vals_i("nind")[(1 - 1)]; - current_statement__ = 26; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 27; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 27; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 27; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 28; @@ -19995,20 +19172,6 @@ class lcm_fails2_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 30; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { - for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 30; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 30; @@ -20100,14 +19263,12 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi = DUMMY_VAR__; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = DUMMY_VAR__; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -20224,14 +19385,12 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi = DUMMY_VAR__; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = DUMMY_VAR__; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -20359,14 +19518,12 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double mean_phi = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + double mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, std::numeric_limits::quiet_NaN()); @@ -20814,8 +19971,6 @@ class lupdf_inlining_model final : public model_base_crtp context__.validate_dims("data initialization", "n", "int", std::vector{}); n = std::numeric_limits::min(); - current_statement__ = 7; - n = context__.vals_i("n")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -20852,9 +20007,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mu = DUMMY_VAR__; - current_statement__ = 1; - mu = in__.template read(); + local_scalar_t__ mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; current_statement__ = 2; tp = foo_lpdf(mu, 1.0, pstream__); @@ -20894,9 +20047,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mu = DUMMY_VAR__; - current_statement__ = 1; - mu = in__.template read(); + local_scalar_t__ mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; current_statement__ = 2; tp = foo_lpdf(mu, 1.0, pstream__); @@ -20947,9 +20098,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double mu = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - mu = in__.template read(); + double mu = in__.template read(); double tp = std::numeric_limits::quiet_NaN(); out__.write(mu); if (stan::math::logical_negation( @@ -21285,16 +20434,12 @@ class off_dce_model final : public model_base_crtp { std::vector{}); R = std::numeric_limits::min(); current_statement__ = 34; - R = context__.vals_i("R")[(1 - 1)]; - current_statement__ = 34; stan::math::check_greater_or_equal(function__, "R", R, 1); current_statement__ = 35; context__.validate_dims("data initialization", "T", "int", std::vector{}); T = std::numeric_limits::min(); current_statement__ = 35; - T = context__.vals_i("T")[(1 - 1)]; - current_statement__ = 35; stan::math::check_greater_or_equal(function__, "T", T, 1); current_statement__ = 36; stan::math::validate_non_negative_index("y", "R", R); @@ -21305,20 +20450,6 @@ class off_dce_model final : public model_base_crtp { std::vector{static_cast(R), static_cast(T)}); y = std::vector>(R, std::vector(T, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 38; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= T; ++sym1__) { - for (int sym2__ = 1; sym2__ <= R; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 38; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 38; @@ -21331,17 +20462,6 @@ class off_dce_model final : public model_base_crtp { X_data__ = Eigen::Matrix::Constant(R, std::numeric_limits::quiet_NaN()); new (&X) Eigen::Map>(X_data__.data(), R); - { - std::vector X_flat__; - current_statement__ = 40; - X_flat__ = context__.vals_r("X"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= R; ++sym1__) { - stan::model::assign(X, X_flat__[(pos__ - 1)], - "assigning variable X", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 41; stan::math::validate_non_negative_index("sum_y", "R", R); current_statement__ = 42; @@ -21417,18 +20537,10 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha_occ = DUMMY_VAR__; - current_statement__ = 1; - alpha_occ = in__.template read(); - local_scalar_t__ beta_occ = DUMMY_VAR__; - current_statement__ = 2; - beta_occ = in__.template read(); - local_scalar_t__ alpha_p = DUMMY_VAR__; - current_statement__ = 3; - alpha_p = in__.template read(); - local_scalar_t__ beta_p = DUMMY_VAR__; - current_statement__ = 4; - beta_p = in__.template read(); + local_scalar_t__ alpha_occ = in__.template read(); + local_scalar_t__ beta_occ = in__.template read(); + local_scalar_t__ alpha_p = in__.template read(); + local_scalar_t__ beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); Eigen::Matrix logit_p = @@ -21501,19 +20613,11 @@ class off_dce_model final : public model_base_crtp { "off_dce_model_namespace::log_prob"; // suppress unused var warning (void) function__; - try { - local_scalar_t__ alpha_occ = DUMMY_VAR__; - current_statement__ = 1; - alpha_occ = in__.template read(); - local_scalar_t__ beta_occ = DUMMY_VAR__; - current_statement__ = 2; - beta_occ = in__.template read(); - local_scalar_t__ alpha_p = DUMMY_VAR__; - current_statement__ = 3; - alpha_p = in__.template read(); - local_scalar_t__ beta_p = DUMMY_VAR__; - current_statement__ = 4; - beta_p = in__.template read(); + try { + local_scalar_t__ alpha_occ = in__.template read(); + local_scalar_t__ beta_occ = in__.template read(); + local_scalar_t__ alpha_p = in__.template read(); + local_scalar_t__ beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); Eigen::Matrix logit_p = @@ -21598,18 +20702,10 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double alpha_occ = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - alpha_occ = in__.template read(); - double beta_occ = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - beta_occ = in__.template read(); - double alpha_p = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - alpha_p = in__.template read(); - double beta_p = std::numeric_limits::quiet_NaN(); - current_statement__ = 4; - beta_p = in__.template read(); + double alpha_occ = in__.template read(); + double beta_occ = in__.template read(); + double alpha_p = in__.template read(); + double beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, std::numeric_limits::quiet_NaN()); @@ -22075,16 +21171,12 @@ class off_small_model final : public model_base_crtp { std::vector{}); J = std::numeric_limits::min(); current_statement__ = 22; - J = context__.vals_i("J")[(1 - 1)]; - current_statement__ = 22; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 23; context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); current_statement__ = 23; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 23; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 24; stan::math::validate_non_negative_index("person", "N", N); @@ -22093,8 +21185,6 @@ class off_small_model final : public model_base_crtp { std::vector{static_cast(N)}); person = std::vector(N, std::numeric_limits::min()); current_statement__ = 25; - person = context__.vals_i("person"); - current_statement__ = 25; stan::math::check_greater_or_equal(function__, "person", person, 1); current_statement__ = 25; stan::math::check_less_or_equal(function__, "person", person, J); @@ -22107,17 +21197,6 @@ class off_small_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&time) Eigen::Map>(time_data__.data(), N); - { - std::vector time_flat__; - current_statement__ = 27; - time_flat__ = context__.vals_r("time"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(time, time_flat__[(pos__ - 1)], - "assigning variable time", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 28; stan::math::validate_non_negative_index("treatment", "N", N); current_statement__ = 29; @@ -22127,17 +21206,6 @@ class off_small_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&treatment) Eigen::Map>(treatment_data__.data(), N); - { - std::vector treatment_flat__; - current_statement__ = 29; - treatment_flat__ = context__.vals_r("treatment"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(treatment, treatment_flat__[(pos__ - 1)], - "assigning variable treatment", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 30; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 31; @@ -22146,17 +21214,6 @@ class off_small_model final : public model_base_crtp { y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); - { - std::vector y_flat__; - current_statement__ = 31; - y_flat__ = context__.vals_r("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 32; stan::math::validate_non_negative_index("eta1", "J", J); current_statement__ = 33; @@ -22203,35 +21260,22 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ beta = DUMMY_VAR__; - current_statement__ = 1; - beta = in__.template read(); + local_scalar_t__ beta = in__.template read(); Eigen::Matrix eta1 = - Eigen::Matrix::Constant(J, DUMMY_VAR__); - current_statement__ = 2; - eta1 = in__.template read>(J); + in__.template read>(J); Eigen::Matrix eta2 = - Eigen::Matrix::Constant(J, DUMMY_VAR__); - current_statement__ = 3; - eta2 = in__.template read>(J); - local_scalar_t__ mu_a1 = DUMMY_VAR__; - current_statement__ = 4; - mu_a1 = in__.template read(); - local_scalar_t__ mu_a2 = DUMMY_VAR__; - current_statement__ = 5; - mu_a2 = in__.template read(); - local_scalar_t__ sigma_a1 = DUMMY_VAR__; - current_statement__ = 6; - sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_a2 = DUMMY_VAR__; - current_statement__ = 7; - sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = DUMMY_VAR__; - current_statement__ = 8; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + in__.template read>(J); + local_scalar_t__ mu_a1 = in__.template read(); + local_scalar_t__ mu_a2 = in__.template read(); + local_scalar_t__ sigma_a1 = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_a2 = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix a1 = Eigen::Matrix::Constant(J, DUMMY_VAR__); Eigen::Matrix a2 = @@ -22308,35 +21352,22 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ beta = DUMMY_VAR__; - current_statement__ = 1; - beta = in__.template read(); + local_scalar_t__ beta = in__.template read(); Eigen::Matrix eta1 = - Eigen::Matrix::Constant(J, DUMMY_VAR__); - current_statement__ = 2; - eta1 = in__.template read>(J); + in__.template read>(J); Eigen::Matrix eta2 = - Eigen::Matrix::Constant(J, DUMMY_VAR__); - current_statement__ = 3; - eta2 = in__.template read>(J); - local_scalar_t__ mu_a1 = DUMMY_VAR__; - current_statement__ = 4; - mu_a1 = in__.template read(); - local_scalar_t__ mu_a2 = DUMMY_VAR__; - current_statement__ = 5; - mu_a2 = in__.template read(); - local_scalar_t__ sigma_a1 = DUMMY_VAR__; - current_statement__ = 6; - sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_a2 = DUMMY_VAR__; - current_statement__ = 7; - sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = DUMMY_VAR__; - current_statement__ = 8; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + in__.template read>(J); + local_scalar_t__ mu_a1 = in__.template read(); + local_scalar_t__ mu_a2 = in__.template read(); + local_scalar_t__ sigma_a1 = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_a2 = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix a1 = Eigen::Matrix::Constant(J, DUMMY_VAR__); Eigen::Matrix a2 = @@ -22424,37 +21455,22 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double beta = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - beta = in__.template read(); + double beta = in__.template read(); Eigen::Matrix eta1 = - Eigen::Matrix::Constant(J, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - eta1 = in__.template read>(J); + in__.template read>(J); Eigen::Matrix eta2 = - Eigen::Matrix::Constant(J, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - eta2 = in__.template read>(J); - double mu_a1 = std::numeric_limits::quiet_NaN(); - current_statement__ = 4; - mu_a1 = in__.template read(); - double mu_a2 = std::numeric_limits::quiet_NaN(); - current_statement__ = 5; - mu_a2 = in__.template read(); - double sigma_a1 = std::numeric_limits::quiet_NaN(); - current_statement__ = 6; - sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - double sigma_a2 = std::numeric_limits::quiet_NaN(); - current_statement__ = 7; - sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - double sigma_y = std::numeric_limits::quiet_NaN(); - current_statement__ = 8; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + in__.template read>(J); + double mu_a1 = in__.template read(); + double mu_a2 = in__.template read(); + double sigma_a1 = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_a2 = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix a1 = Eigen::Matrix::Constant(J, std::numeric_limits::quiet_NaN()); @@ -23167,26 +22183,15 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ theta = DUMMY_VAR__; - current_statement__ = 1; - theta = in__.template read(); - local_scalar_t__ phi = DUMMY_VAR__; - current_statement__ = 2; - phi = in__.template read(); + local_scalar_t__ theta = in__.template read(); + local_scalar_t__ phi = in__.template read(); Eigen::Matrix x_matrix = - Eigen::Matrix::Constant(3, 2, DUMMY_VAR__); - current_statement__ = 3; - x_matrix = in__.template read>(3, - 2); + in__.template read>(3, 2); Eigen::Matrix x_vector = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 4; - x_vector = in__.template read>(2); + in__.template read>(2); Eigen::Matrix x_cov = - Eigen::Matrix::Constant(2, 2, DUMMY_VAR__); - current_statement__ = 5; - x_cov = in__.template read_constrain_cov_matrix< - Eigen::Matrix, jacobian__>(lp__, 2); + in__.template read_constrain_cov_matrix< + Eigen::Matrix, jacobian__>(lp__, 2); { local_scalar_t__ x = DUMMY_VAR__; current_statement__ = 7; @@ -23463,26 +22468,15 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ theta = DUMMY_VAR__; - current_statement__ = 1; - theta = in__.template read(); - local_scalar_t__ phi = DUMMY_VAR__; - current_statement__ = 2; - phi = in__.template read(); + local_scalar_t__ theta = in__.template read(); + local_scalar_t__ phi = in__.template read(); Eigen::Matrix x_matrix = - Eigen::Matrix::Constant(3, 2, DUMMY_VAR__); - current_statement__ = 3; - x_matrix = in__.template read>(3, - 2); + in__.template read>(3, 2); Eigen::Matrix x_vector = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 4; - x_vector = in__.template read>(2); + in__.template read>(2); Eigen::Matrix x_cov = - Eigen::Matrix::Constant(2, 2, DUMMY_VAR__); - current_statement__ = 5; - x_cov = in__.template read_constrain_cov_matrix< - Eigen::Matrix, jacobian__>(lp__, 2); + in__.template read_constrain_cov_matrix< + Eigen::Matrix, jacobian__>(lp__, 2); { local_scalar_t__ x = DUMMY_VAR__; current_statement__ = 7; @@ -23770,29 +22764,15 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double theta = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - theta = in__.template read(); - double phi = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - phi = in__.template read(); + double theta = in__.template read(); + double phi = in__.template read(); Eigen::Matrix x_matrix = - Eigen::Matrix::Constant(3, 2, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - x_matrix = in__.template read>(3, - 2); + in__.template read>(3, 2); Eigen::Matrix x_vector = - Eigen::Matrix::Constant(2, - std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - x_vector = in__.template read>(2); + in__.template read>(2); Eigen::Matrix x_cov = - Eigen::Matrix::Constant(2, 2, - std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - x_cov = in__.template read_constrain_cov_matrix< - Eigen::Matrix, jacobian__>(lp__, 2); + in__.template read_constrain_cov_matrix< + Eigen::Matrix, jacobian__>(lp__, 2); out__.write(theta); out__.write(phi); out__.write(x_matrix); @@ -25340,16 +24320,12 @@ class partial_eval_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 17; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 17; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 18; context__.validate_dims("data initialization", "n_pair", "int", std::vector{}); n_pair = std::numeric_limits::min(); current_statement__ = 18; - n_pair = context__.vals_i("n_pair")[(1 - 1)]; - current_statement__ = 18; stan::math::check_greater_or_equal(function__, "n_pair", n_pair, 0); current_statement__ = 19; stan::math::validate_non_negative_index("pair", "N", N); @@ -25358,8 +24334,6 @@ class partial_eval_model final : public model_base_crtp { std::vector{static_cast(N)}); pair = std::vector(N, std::numeric_limits::min()); current_statement__ = 20; - pair = context__.vals_i("pair"); - current_statement__ = 20; stan::math::check_greater_or_equal(function__, "pair", pair, 1); current_statement__ = 20; stan::math::check_less_or_equal(function__, "pair", pair, n_pair); @@ -25372,17 +24346,6 @@ class partial_eval_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&pre_test) Eigen::Map>(pre_test_data__.data(), N); - { - std::vector pre_test_flat__; - current_statement__ = 22; - pre_test_flat__ = context__.vals_r("pre_test"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(pre_test, pre_test_flat__[(pos__ - 1)], - "assigning variable pre_test", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 23; stan::math::validate_non_negative_index("treatment", "N", N); current_statement__ = 24; @@ -25392,17 +24355,6 @@ class partial_eval_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&treatment) Eigen::Map>(treatment_data__.data(), N); - { - std::vector treatment_flat__; - current_statement__ = 24; - treatment_flat__ = context__.vals_r("treatment"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(treatment, treatment_flat__[(pos__ - 1)], - "assigning variable treatment", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 24; stan::math::check_greater_or_equal(function__, "treatment", treatment, 0); @@ -25416,17 +24368,6 @@ class partial_eval_model final : public model_base_crtp { y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); - { - std::vector y_flat__; - current_statement__ = 26; - y_flat__ = context__.vals_r("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 27; stan::math::validate_non_negative_index("a", "n_pair", n_pair); current_statement__ = 28; @@ -25468,24 +24409,16 @@ class partial_eval_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix a = - Eigen::Matrix::Constant(n_pair, DUMMY_VAR__); - current_statement__ = 1; - a = in__.template read>(n_pair); + in__.template read>(n_pair); Eigen::Matrix beta = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 2; - beta = in__.template read>(2); - local_scalar_t__ mu_a = DUMMY_VAR__; - current_statement__ = 3; - mu_a = in__.template read(); - local_scalar_t__ sigma_a = DUMMY_VAR__; - current_statement__ = 4; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = DUMMY_VAR__; - current_statement__ = 5; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + in__.template read>(2); + local_scalar_t__ mu_a = in__.template read(); + local_scalar_t__ sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 8; @@ -25557,24 +24490,16 @@ class partial_eval_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix a = - Eigen::Matrix::Constant(n_pair, DUMMY_VAR__); - current_statement__ = 1; - a = in__.template read>(n_pair); + in__.template read>(n_pair); Eigen::Matrix beta = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 2; - beta = in__.template read>(2); - local_scalar_t__ mu_a = DUMMY_VAR__; - current_statement__ = 3; - mu_a = in__.template read(); - local_scalar_t__ sigma_a = DUMMY_VAR__; - current_statement__ = 4; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = DUMMY_VAR__; - current_statement__ = 5; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + in__.template read>(2); + local_scalar_t__ mu_a = in__.template read(); + local_scalar_t__ sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 8; @@ -25657,26 +24582,16 @@ class partial_eval_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix a = - Eigen::Matrix::Constant(n_pair, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - a = in__.template read>(n_pair); + in__.template read>(n_pair); Eigen::Matrix beta = - Eigen::Matrix::Constant(2, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - beta = in__.template read>(2); - double mu_a = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - mu_a = in__.template read(); - double sigma_a = std::numeric_limits::quiet_NaN(); - current_statement__ = 4; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - double sigma_y = std::numeric_limits::quiet_NaN(); - current_statement__ = 5; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + in__.template read>(2); + double mu_a = in__.template read(); + double sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); @@ -26069,20 +24984,6 @@ class partial_eval_multiply_model final : public model_base_crtp::quiet_NaN()); new (&m1) Eigen::Map>(m1_data__.data(), 10, 10); - { - std::vector m1_flat__; - current_statement__ = 7; - m1_flat__ = context__.vals_r("m1"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 8; context__.validate_dims("data initialization", "m4", "double", std::vector{static_cast(10), static_cast(10)}); @@ -26090,32 +24991,14 @@ class partial_eval_multiply_model final : public model_base_crtp::quiet_NaN()); new (&m4) Eigen::Map>(m4_data__.data(), 10, 10); - { - std::vector m4_flat__; - current_statement__ = 8; - m4_flat__ = context__.vals_r("m4"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 9; context__.validate_dims("data initialization", "idx", "int", std::vector{static_cast(10)}); idx = std::vector(10, std::numeric_limits::min()); - current_statement__ = 9; - idx = context__.vals_i("idx"); current_statement__ = 10; context__.validate_dims("data initialization", "idy", "int", std::vector{static_cast(10)}); idy = std::vector(10, std::numeric_limits::min()); - current_statement__ = 10; - idy = context__.vals_i("idy"); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -26153,13 +25036,9 @@ class partial_eval_multiply_model final : public model_base_crtp m2 = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 1; - m2 = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix m3 = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 2; - m3 = in__.template read>(10, 10); + in__.template read>(10, 10); { Eigen::Matrix m5 = Eigen::Matrix::Constant(10, 10, @@ -26221,13 +25100,9 @@ class partial_eval_multiply_model final : public model_base_crtp m2 = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 1; - m2 = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix m3 = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 2; - m3 = in__.template read>(10, 10); + in__.template read>(10, 10); { Eigen::Matrix m5 = Eigen::Matrix::Constant(10, 10, @@ -26300,15 +25175,9 @@ class partial_eval_multiply_model final : public model_base_crtp m2 = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - m2 = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix m3 = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - m3 = in__.template read>(10, 10); + in__.template read>(10, 10); out__.write(m2); out__.write(m3); if (stan::math::logical_negation( @@ -26994,8 +25863,6 @@ class stalled1_failure_model final : public model_base_crtp{}); I = std::numeric_limits::min(); current_statement__ = 18; - I = context__.vals_i("I")[(1 - 1)]; - current_statement__ = 18; stan::math::check_greater_or_equal(function__, "I", I, 0); current_statement__ = 19; stan::math::validate_non_negative_index("n", "I", I); @@ -27004,8 +25871,6 @@ class stalled1_failure_model final : public model_base_crtp{static_cast(I)}); n = std::vector(I, std::numeric_limits::min()); current_statement__ = 20; - n = context__.vals_i("n"); - current_statement__ = 20; stan::math::check_greater_or_equal(function__, "n", n, 0); current_statement__ = 21; stan::math::validate_non_negative_index("N", "I", I); @@ -27014,8 +25879,6 @@ class stalled1_failure_model final : public model_base_crtp{static_cast(I)}); N = std::vector(I, std::numeric_limits::min()); current_statement__ = 22; - N = context__.vals_i("N"); - current_statement__ = 22; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 23; stan::math::validate_non_negative_index("x1", "I", I); @@ -27025,17 +25888,6 @@ class stalled1_failure_model final : public model_base_crtp::Constant(I, std::numeric_limits::quiet_NaN()); new (&x1) Eigen::Map>(x1_data__.data(), I); - { - std::vector x1_flat__; - current_statement__ = 24; - x1_flat__ = context__.vals_r("x1"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= I; ++sym1__) { - stan::model::assign(x1, x1_flat__[(pos__ - 1)], - "assigning variable x1", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 25; stan::math::validate_non_negative_index("x2", "I", I); current_statement__ = 26; @@ -27044,17 +25896,6 @@ class stalled1_failure_model final : public model_base_crtp::Constant(I, std::numeric_limits::quiet_NaN()); new (&x2) Eigen::Map>(x2_data__.data(), I); - { - std::vector x2_flat__; - current_statement__ = 26; - x2_flat__ = context__.vals_r("x2"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= I; ++sym1__) { - stan::model::assign(x2, x2_flat__[(pos__ - 1)], - "assigning variable x2", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 27; K = std::numeric_limits::min(); current_statement__ = 28; @@ -27109,28 +25950,16 @@ class stalled1_failure_model final : public model_base_crtp(); - local_scalar_t__ alpha1 = DUMMY_VAR__; - current_statement__ = 2; - alpha1 = in__.template read(); - local_scalar_t__ alpha2 = DUMMY_VAR__; - current_statement__ = 3; - alpha2 = in__.template read(); - local_scalar_t__ alpha12 = DUMMY_VAR__; - current_statement__ = 4; - alpha12 = in__.template read(); - local_scalar_t__ tau = DUMMY_VAR__; - current_statement__ = 5; - tau = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ alpha0 = in__.template read(); + local_scalar_t__ alpha1 = in__.template read(); + local_scalar_t__ alpha2 = in__.template read(); + local_scalar_t__ alpha12 = in__.template read(); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); std::vector> b = - std::vector>(I, - Eigen::Matrix::Constant(K, DUMMY_VAR__)); - current_statement__ = 6; - b = in__.template read< - std::vector>>(I, K); + in__.template read< + std::vector>>(I, K); local_scalar_t__ sigma = DUMMY_VAR__; current_statement__ = 8; sigma = (1 / stan::math::sqrt(tau)); @@ -27198,28 +26027,16 @@ class stalled1_failure_model final : public model_base_crtp(); - local_scalar_t__ alpha1 = DUMMY_VAR__; - current_statement__ = 2; - alpha1 = in__.template read(); - local_scalar_t__ alpha2 = DUMMY_VAR__; - current_statement__ = 3; - alpha2 = in__.template read(); - local_scalar_t__ alpha12 = DUMMY_VAR__; - current_statement__ = 4; - alpha12 = in__.template read(); - local_scalar_t__ tau = DUMMY_VAR__; - current_statement__ = 5; - tau = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ alpha0 = in__.template read(); + local_scalar_t__ alpha1 = in__.template read(); + local_scalar_t__ alpha2 = in__.template read(); + local_scalar_t__ alpha12 = in__.template read(); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); std::vector> b = - std::vector>(I, - Eigen::Matrix::Constant(K, DUMMY_VAR__)); - current_statement__ = 6; - b = in__.template read< - std::vector>>(I, K); + in__.template read< + std::vector>>(I, K); local_scalar_t__ sigma = DUMMY_VAR__; current_statement__ = 8; sigma = (1 / stan::math::sqrt(tau)); @@ -27298,29 +26115,16 @@ class stalled1_failure_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - alpha0 = in__.template read(); - double alpha1 = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - alpha1 = in__.template read(); - double alpha2 = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - alpha2 = in__.template read(); - double alpha12 = std::numeric_limits::quiet_NaN(); - current_statement__ = 4; - alpha12 = in__.template read(); - double tau = std::numeric_limits::quiet_NaN(); - current_statement__ = 5; - tau = in__.template read_constrain_lb(0, - lp__); + double alpha0 = in__.template read(); + double alpha1 = in__.template read(); + double alpha2 = in__.template read(); + double alpha12 = in__.template read(); + double tau = + in__.template read_constrain_lb(0, + lp__); std::vector> b = - std::vector>(I, - Eigen::Matrix::Constant(K, - std::numeric_limits::quiet_NaN())); - current_statement__ = 6; - b = in__.template read< - std::vector>>(I, K); + in__.template read< + std::vector>>(I, K); double sigma = std::numeric_limits::quiet_NaN(); out__.write(alpha0); out__.write(alpha1); @@ -27737,9 +26541,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + local_scalar_t__ param = in__.template read(); std::vector> local = std::vector>(2, Eigen::Matrix::Constant(5, DUMMY_VAR__)); @@ -27790,9 +26592,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + local_scalar_t__ param = in__.template read(); std::vector> local = std::vector>(2, Eigen::Matrix::Constant(5, DUMMY_VAR__)); @@ -27854,9 +26654,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - param = in__.template read(); + double param = in__.template read(); std::vector> local = std::vector>(2, Eigen::Matrix::Constant(5, @@ -28178,9 +26976,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + local_scalar_t__ y = in__.template read(); local_scalar_t__ no_init = DUMMY_VAR__; local_scalar_t__ init_from_param = DUMMY_VAR__; current_statement__ = 3; @@ -28233,9 +27029,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + local_scalar_t__ y = in__.template read(); local_scalar_t__ no_init = DUMMY_VAR__; local_scalar_t__ init_from_param = DUMMY_VAR__; current_statement__ = 3; @@ -28299,9 +27093,7 @@ class unenforce_initialize_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - y = in__.template read(); + double y = in__.template read(); double no_init = std::numeric_limits::quiet_NaN(); double init_from_param = std::numeric_limits::quiet_NaN(); double dependent_no_init = std::numeric_limits::quiet_NaN(); diff --git a/test/integration/good/compiler-optimizations/cppO1.expected b/test/integration/good/compiler-optimizations/cppO1.expected index ae3108494..04d0d3581 100644 --- a/test/integration/good/compiler-optimizations/cppO1.expected +++ b/test/integration/good/compiler-optimizations/cppO1.expected @@ -51,20 +51,6 @@ class ad_level_deep_dependence_model final : public model_base_crtp::quiet_NaN()); new (&X_d) Eigen::Map>(X_d_data__.data(), 10, 10); - { - std::vector X_d_flat__; - current_statement__ = 10; - X_d_flat__ = context__.vals_r("X_d"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { - stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], - "assigning variable X_d", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -101,9 +87,8 @@ class ad_level_deep_dependence_model final : public model_base_crtp X_p; - current_statement__ = 1; - X_p = in__.template read>(10, 10); + Eigen::Matrix X_p = + in__.template read>(10, 10); Eigen::Matrix X_tp1; current_statement__ = 2; stan::model::assign(X_tp1, X_d, "assigning variable X_tp1"); @@ -163,10 +148,8 @@ class ad_level_deep_dependence_model final : public model_base_crtp> X_p; - current_statement__ = 1; - X_p = in__.template read< - stan::math::var_value>>(10, 10); + stan::math::var_value> X_p = + in__.template read>(10, 10); stan::math::var_value> X_tp1; current_statement__ = 2; stan::model::assign(X_tp1, X_d, "assigning variable X_tp1"); @@ -237,9 +220,8 @@ class ad_level_deep_dependence_model final : public model_base_crtp X_p; - current_statement__ = 1; - X_p = in__.template read>(10, 10); + Eigen::Matrix X_p = + in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, std::numeric_limits::quiet_NaN()); @@ -848,8 +830,6 @@ class ad_level_failing_model final : public model_base_crtp{}); N_t = std::numeric_limits::min(); current_statement__ = 17; - N_t = context__.vals_i("N_t")[(1 - 1)]; - current_statement__ = 17; stan::math::check_greater_or_equal(function__, "N_t", N_t, 0); current_statement__ = 18; stan::math::validate_non_negative_index("t", "N_t", N_t); @@ -857,22 +837,16 @@ class ad_level_failing_model final : public model_base_crtp{static_cast(N_t)}); t = std::vector(N_t, std::numeric_limits::quiet_NaN()); - current_statement__ = 19; - t = context__.vals_r("t"); current_statement__ = 20; context__.validate_dims("data initialization", "y0", "double", std::vector{static_cast(4)}); y0 = std::vector(4, std::numeric_limits::quiet_NaN()); - current_statement__ = 20; - y0 = context__.vals_r("y0"); current_statement__ = 21; stan::math::validate_non_negative_index("stoi_hat", "N_t", N_t); current_statement__ = 22; context__.validate_dims("data initialization", "stoi_hat", "int", std::vector{static_cast(N_t)}); stoi_hat = std::vector(N_t, std::numeric_limits::min()); - current_statement__ = 22; - stoi_hat = context__.vals_i("stoi_hat"); current_statement__ = 23; stan::math::validate_non_negative_index("B_hat", "N_t", N_t); current_statement__ = 24; @@ -880,8 +854,6 @@ class ad_level_failing_model final : public model_base_crtp{static_cast(N_t)}); B_hat = std::vector(N_t, std::numeric_limits::quiet_NaN()); - current_statement__ = 24; - B_hat = context__.vals_r("B_hat"); current_statement__ = 25; t0 = std::numeric_limits::quiet_NaN(); current_statement__ = 25; @@ -934,22 +906,18 @@ class ad_level_failing_model final : public model_base_crtp(0, - lp__); - local_scalar_t__ gamma; - current_statement__ = 2; - gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi; - current_statement__ = 3; - xi = in__.template read_constrain_lb(0, - lp__); - local_scalar_t__ delta; - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ beta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ gamma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ xi = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ delta = + in__.template read_constrain_lb(0, + lp__); std::vector> y = std::vector>(N_t, std::vector(4, DUMMY_VAR__)); @@ -1034,22 +1002,18 @@ class ad_level_failing_model final : public model_base_crtp(0, - lp__); - local_scalar_t__ gamma; - current_statement__ = 2; - gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi; - current_statement__ = 3; - xi = in__.template read_constrain_lb(0, - lp__); - local_scalar_t__ delta; - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + local_scalar_t__ beta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ gamma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ xi = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ delta = + in__.template read_constrain_lb(0, + lp__); std::vector> y = std::vector>(N_t, std::vector(4, DUMMY_VAR__)); @@ -1145,22 +1109,18 @@ class ad_level_failing_model final : public model_base_crtp(0, - lp__); - double gamma; - current_statement__ = 2; - gamma = in__.template read_constrain_lb(0, lp__); - double xi; - current_statement__ = 3; - xi = in__.template read_constrain_lb(0, - lp__); - double delta; - current_statement__ = 4; - delta = in__.template read_constrain_lb(0, lp__); + double beta = + in__.template read_constrain_lb(0, + lp__); + double gamma = + in__.template read_constrain_lb(0, + lp__); + double xi = + in__.template read_constrain_lb(0, + lp__); + double delta = + in__.template read_constrain_lb(0, + lp__); std::vector> y = std::vector>(N_t, std::vector(4, std::numeric_limits::quiet_NaN())); @@ -1500,20 +1460,6 @@ class ad_levels_deep_model final : public model_base_crtp std::numeric_limits::quiet_NaN()); new (&X_data) Eigen::Map>(X_data_data__.data(), 10, 10); - { - std::vector X_data_flat__; - current_statement__ = 5; - X_data_flat__ = context__.vals_r("X_data"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -1550,9 +1496,8 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix X_p; - current_statement__ = 1; - X_p = in__.template read>(10, 10); + Eigen::Matrix X_p = + in__.template read>(10, 10); Eigen::Matrix X_tp1; current_statement__ = 2; stan::model::assign(X_tp1, stan::math::exp(X_data), @@ -1593,10 +1538,8 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - stan::math::var_value> X_p; - current_statement__ = 1; - X_p = in__.template read< - stan::math::var_value>>(10, 10); + stan::math::var_value> X_p = + in__.template read>(10, 10); stan::math::var_value> X_tp1; current_statement__ = 2; stan::model::assign(X_tp1, stan::math::exp(X_data), @@ -1648,9 +1591,8 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix X_p; - current_statement__ = 1; - X_p = in__.template read>(10, 10); + Eigen::Matrix X_p = + in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, std::numeric_limits::quiet_NaN()); @@ -1989,8 +1931,6 @@ class copy_prop_profile_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 16; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 16; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 17; stan::math::validate_non_negative_index("X", "N", N); @@ -2032,9 +1972,8 @@ class copy_prop_profile_model final : public model_base_crtp X; - current_statement__ = 1; - X = in__.template read>(N, N); + Eigen::Matrix X = + in__.template read>(N, N); { current_statement__ = 2; stan::math::validate_non_negative_index("vec", "N", N); @@ -2102,9 +2041,8 @@ class copy_prop_profile_model final : public model_base_crtp X; - current_statement__ = 1; - X = in__.template read>(N, N); + Eigen::Matrix X = + in__.template read>(N, N); { current_statement__ = 2; stan::math::validate_non_negative_index("vec", "N", N); @@ -2183,9 +2121,8 @@ class copy_prop_profile_model final : public model_base_crtp X; - current_statement__ = 1; - X = in__.template read>(N, N); + Eigen::Matrix X = + in__.template read>(N, N); out__.write(X); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -2675,16 +2612,12 @@ class copy_fail_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 37; - nind = context__.vals_i("nind")[(1 - 1)]; - current_statement__ = 37; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 38; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 38; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 38; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 39; @@ -2697,20 +2630,6 @@ class copy_fail_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 41; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { - for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 41; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 41; @@ -2720,8 +2639,6 @@ class copy_fail_model final : public model_base_crtp { std::vector{}); max_age = std::numeric_limits::min(); current_statement__ = 42; - max_age = context__.vals_i("max_age")[(1 - 1)]; - current_statement__ = 42; stan::math::check_greater_or_equal(function__, "max_age", max_age, 1); current_statement__ = 43; stan::math::validate_non_negative_index("x", "nind", nind); @@ -2735,20 +2652,6 @@ class copy_fail_model final : public model_base_crtp { x = std::vector>(nind, std::vector((n_occasions - 1), std::numeric_limits::min())); - { - std::vector x_flat__; - current_statement__ = 45; - x_flat__ = context__.vals_i("x"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= (n_occasions - 1); ++sym1__) { - for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 45; stan::math::check_greater_or_equal(function__, "x", x, 0); current_statement__ = 45; @@ -2842,15 +2745,13 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -3030,15 +2931,13 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -3229,15 +3128,13 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double mean_p; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, std::numeric_limits::quiet_NaN()); @@ -3755,40 +3652,30 @@ class dce_fail_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 39; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 39; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 40; context__.validate_dims("data initialization", "n_age", "int", std::vector{}); n_age = std::numeric_limits::min(); current_statement__ = 40; - n_age = context__.vals_i("n_age")[(1 - 1)]; - current_statement__ = 40; stan::math::check_greater_or_equal(function__, "n_age", n_age, 0); current_statement__ = 41; context__.validate_dims("data initialization", "n_edu", "int", std::vector{}); n_edu = std::numeric_limits::min(); current_statement__ = 41; - n_edu = context__.vals_i("n_edu")[(1 - 1)]; - current_statement__ = 41; stan::math::check_greater_or_equal(function__, "n_edu", n_edu, 0); current_statement__ = 42; context__.validate_dims("data initialization", "n_region", "int", std::vector{}); n_region = std::numeric_limits::min(); current_statement__ = 42; - n_region = context__.vals_i("n_region")[(1 - 1)]; - current_statement__ = 42; stan::math::check_greater_or_equal(function__, "n_region", n_region, 0); current_statement__ = 43; context__.validate_dims("data initialization", "n_state", "int", std::vector{}); n_state = std::numeric_limits::min(); current_statement__ = 43; - n_state = context__.vals_i("n_state")[(1 - 1)]; - current_statement__ = 43; stan::math::check_greater_or_equal(function__, "n_state", n_state, 0); current_statement__ = 44; stan::math::validate_non_negative_index("female", "N", N); @@ -3797,8 +3684,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); female = std::vector(N, std::numeric_limits::min()); current_statement__ = 45; - female = context__.vals_i("female"); - current_statement__ = 45; stan::math::check_greater_or_equal(function__, "female", female, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "female", female, 1); @@ -3809,8 +3694,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); black = std::vector(N, std::numeric_limits::min()); current_statement__ = 47; - black = context__.vals_i("black"); - current_statement__ = 47; stan::math::check_greater_or_equal(function__, "black", black, 0); current_statement__ = 47; stan::math::check_less_or_equal(function__, "black", black, 1); @@ -3821,8 +3704,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); age = std::vector(N, std::numeric_limits::min()); current_statement__ = 49; - age = context__.vals_i("age"); - current_statement__ = 49; stan::math::check_greater_or_equal(function__, "age", age, 0); current_statement__ = 49; stan::math::check_less_or_equal(function__, "age", age, n_age); @@ -3833,8 +3714,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 51; - edu = context__.vals_i("edu"); - current_statement__ = 51; stan::math::check_greater_or_equal(function__, "edu", edu, 0); current_statement__ = 51; stan::math::check_less_or_equal(function__, "edu", edu, n_edu); @@ -3845,8 +3724,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(n_state)}); region = std::vector(n_state, std::numeric_limits::min()); current_statement__ = 53; - region = context__.vals_i("region"); - current_statement__ = 53; stan::math::check_greater_or_equal(function__, "region", region, 0); current_statement__ = 53; stan::math::check_less_or_equal(function__, "region", region, n_state); @@ -3857,8 +3734,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); state = std::vector(N, std::numeric_limits::min()); current_statement__ = 55; - state = context__.vals_i("state"); - current_statement__ = 55; stan::math::check_greater_or_equal(function__, "state", state, 0); current_statement__ = 55; stan::math::check_less_or_equal(function__, "state", state, n_state); @@ -3869,8 +3744,6 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 57; - y = context__.vals_i("y"); - current_statement__ = 57; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 57; stan::math::check_less_or_equal(function__, "y", y, 1); @@ -3883,17 +3756,6 @@ class dce_fail_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&v_prev) Eigen::Map>(v_prev_data__.data(), n_state); - { - std::vector v_prev_flat__; - current_statement__ = 59; - v_prev_flat__ = context__.vals_r("v_prev"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n_state; ++sym1__) { - stan::model::assign(v_prev, v_prev_flat__[(pos__ - 1)], - "assigning variable v_prev", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 60; stan::math::validate_non_negative_index("b_age", "n_age", n_age); current_statement__ = 61; @@ -3944,63 +3806,41 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ sigma; - current_statement__ = 1; - sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age; - current_statement__ = 2; - sigma_age = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_edu; - current_statement__ = 3; - sigma_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_state; - current_statement__ = 4; - sigma_state = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_region; - current_statement__ = 5; - sigma_region = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age_edu; - current_statement__ = 6; - sigma_age_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ b_0; - current_statement__ = 7; - b_0 = in__.template read(); - local_scalar_t__ b_female; - current_statement__ = 8; - b_female = in__.template read(); - local_scalar_t__ b_black; - current_statement__ = 9; - b_black = in__.template read(); - local_scalar_t__ b_female_black; - current_statement__ = 10; - b_female_black = in__.template read(); - local_scalar_t__ b_v_prev; - current_statement__ = 11; - b_v_prev = in__.template read(); - Eigen::Matrix b_age; - current_statement__ = 12; - b_age = in__.template read>(n_age); - Eigen::Matrix b_edu; - current_statement__ = 13; - b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region; - current_statement__ = 14; - b_region = in__.template read< - Eigen::Matrix>(n_region); - Eigen::Matrix b_age_edu; - current_statement__ = 15; - b_age_edu = in__.template read< - Eigen::Matrix>(n_age, n_edu); - Eigen::Matrix b_hat; - current_statement__ = 16; - b_hat = in__.template read< - Eigen::Matrix>(n_state); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_age = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_edu = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_state = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_region = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_age_edu = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ b_0 = in__.template read(); + local_scalar_t__ b_female = in__.template read(); + local_scalar_t__ b_black = in__.template read(); + local_scalar_t__ b_female_black = + in__.template read(); + local_scalar_t__ b_v_prev = in__.template read(); + Eigen::Matrix b_age = + in__.template read>(n_age); + Eigen::Matrix b_edu = + in__.template read>(n_edu); + Eigen::Matrix b_region = + in__.template read>(n_region); + Eigen::Matrix b_age_edu = + in__.template read>(n_age, + n_edu); + Eigen::Matrix b_hat = + in__.template read>(n_state); { current_statement__ = 17; stan::math::validate_non_negative_index("p", "N", N); @@ -4128,63 +3968,41 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ sigma; - current_statement__ = 1; - sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age; - current_statement__ = 2; - sigma_age = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_edu; - current_statement__ = 3; - sigma_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_state; - current_statement__ = 4; - sigma_state = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_region; - current_statement__ = 5; - sigma_region = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age_edu; - current_statement__ = 6; - sigma_age_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ b_0; - current_statement__ = 7; - b_0 = in__.template read(); - local_scalar_t__ b_female; - current_statement__ = 8; - b_female = in__.template read(); - local_scalar_t__ b_black; - current_statement__ = 9; - b_black = in__.template read(); - local_scalar_t__ b_female_black; - current_statement__ = 10; - b_female_black = in__.template read(); - local_scalar_t__ b_v_prev; - current_statement__ = 11; - b_v_prev = in__.template read(); - Eigen::Matrix b_age; - current_statement__ = 12; - b_age = in__.template read>(n_age); - Eigen::Matrix b_edu; - current_statement__ = 13; - b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region; - current_statement__ = 14; - b_region = in__.template read< - Eigen::Matrix>(n_region); - Eigen::Matrix b_age_edu; - current_statement__ = 15; - b_age_edu = in__.template read< - Eigen::Matrix>(n_age, n_edu); - Eigen::Matrix b_hat; - current_statement__ = 16; - b_hat = in__.template read< - Eigen::Matrix>(n_state); + local_scalar_t__ sigma = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_age = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_edu = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_state = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_region = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ sigma_age_edu = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ b_0 = in__.template read(); + local_scalar_t__ b_female = in__.template read(); + local_scalar_t__ b_black = in__.template read(); + local_scalar_t__ b_female_black = + in__.template read(); + local_scalar_t__ b_v_prev = in__.template read(); + Eigen::Matrix b_age = + in__.template read>(n_age); + Eigen::Matrix b_edu = + in__.template read>(n_edu); + Eigen::Matrix b_region = + in__.template read>(n_region); + Eigen::Matrix b_age_edu = + in__.template read>(n_age, + n_edu); + Eigen::Matrix b_hat = + in__.template read>(n_state); { current_statement__ = 17; stan::math::validate_non_negative_index("p", "N", N); @@ -4323,63 +4141,40 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double sigma; - current_statement__ = 1; - sigma = in__.template read_constrain_lb(0, lp__); - double sigma_age; - current_statement__ = 2; - sigma_age = in__.template read_constrain_lb(0, lp__); - double sigma_edu; - current_statement__ = 3; - sigma_edu = in__.template read_constrain_lb(0, lp__); - double sigma_state; - current_statement__ = 4; - sigma_state = in__.template read_constrain_lb(0, lp__); - double sigma_region; - current_statement__ = 5; - sigma_region = in__.template read_constrain_lb(0, lp__); - double sigma_age_edu; - current_statement__ = 6; - sigma_age_edu = in__.template read_constrain_lb(0, lp__); - double b_0; - current_statement__ = 7; - b_0 = in__.template read(); - double b_female; - current_statement__ = 8; - b_female = in__.template read(); - double b_black; - current_statement__ = 9; - b_black = in__.template read(); - double b_female_black; - current_statement__ = 10; - b_female_black = in__.template read(); - double b_v_prev; - current_statement__ = 11; - b_v_prev = in__.template read(); - Eigen::Matrix b_age; - current_statement__ = 12; - b_age = in__.template read>(n_age); - Eigen::Matrix b_edu; - current_statement__ = 13; - b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region; - current_statement__ = 14; - b_region = in__.template read< - Eigen::Matrix>(n_region); - Eigen::Matrix b_age_edu; - current_statement__ = 15; - b_age_edu = in__.template read< - Eigen::Matrix>(n_age, n_edu); - Eigen::Matrix b_hat; - current_statement__ = 16; - b_hat = in__.template read< - Eigen::Matrix>(n_state); + double sigma = + in__.template read_constrain_lb(0, + lp__); + double sigma_age = + in__.template read_constrain_lb(0, + lp__); + double sigma_edu = + in__.template read_constrain_lb(0, + lp__); + double sigma_state = + in__.template read_constrain_lb(0, + lp__); + double sigma_region = + in__.template read_constrain_lb(0, + lp__); + double sigma_age_edu = + in__.template read_constrain_lb(0, + lp__); + double b_0 = in__.template read(); + double b_female = in__.template read(); + double b_black = in__.template read(); + double b_female_black = in__.template read(); + double b_v_prev = in__.template read(); + Eigen::Matrix b_age = + in__.template read>(n_age); + Eigen::Matrix b_edu = + in__.template read>(n_edu); + Eigen::Matrix b_region = + in__.template read>(n_region); + Eigen::Matrix b_age_edu = + in__.template read>(n_age, + n_edu); + Eigen::Matrix b_hat = + in__.template read>(n_state); out__.write(sigma); out__.write(sigma_age); out__.write(sigma_edu); @@ -4954,8 +4749,6 @@ class expr_prop_experiment_model final : public model_base_crtp{}); j = std::numeric_limits::min(); - current_statement__ = 1; - j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 3; @@ -5292,8 +5085,6 @@ class expr_prop_experiment2_model final : public model_base_crtp{}); j = std::numeric_limits::min(); - current_statement__ = 1; - j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 2; @@ -5635,8 +5426,6 @@ class expr_prop_fail_model final : public model_base_crtp std::vector{}); N = std::numeric_limits::min(); current_statement__ = 9; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 9; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 10; stan::math::validate_non_negative_index("y", "N", N); @@ -5646,17 +5435,6 @@ class expr_prop_fail_model final : public model_base_crtp y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); - { - std::vector y_flat__; - current_statement__ = 11; - y_flat__ = context__.vals_r("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -5693,18 +5471,15 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix mu; - current_statement__ = 1; - mu = in__.template read_constrain_ordered< - Eigen::Matrix, jacobian__>(lp__, 2); - std::vector sigma; - current_statement__ = 2; - sigma = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); - local_scalar_t__ theta; - current_statement__ = 3; - theta = in__.template read_constrain_lub(0, 1, lp__); + Eigen::Matrix mu = + in__.template read_constrain_ordered< + Eigen::Matrix, jacobian__>(lp__, 2); + std::vector sigma = + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); + local_scalar_t__ theta = + in__.template read_constrain_lub(0, 1, + lp__); { current_statement__ = 4; lp_accum__.add(stan::math::normal_lpdf(sigma, 0, 2)); @@ -5762,18 +5537,15 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix mu; - current_statement__ = 1; - mu = in__.template read_constrain_ordered< - Eigen::Matrix, jacobian__>(lp__, 2); - std::vector sigma; - current_statement__ = 2; - sigma = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); - local_scalar_t__ theta; - current_statement__ = 3; - theta = in__.template read_constrain_lub(0, 1, lp__); + Eigen::Matrix mu = + in__.template read_constrain_ordered< + Eigen::Matrix, jacobian__>(lp__, 2); + std::vector sigma = + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); + local_scalar_t__ theta = + in__.template read_constrain_lub(0, 1, + lp__); { current_statement__ = 4; lp_accum__.add(stan::math::normal_lpdf(sigma, 0, 2)); @@ -5842,18 +5614,15 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix mu; - current_statement__ = 1; - mu = in__.template read_constrain_ordered< - Eigen::Matrix, jacobian__>(lp__, 2); - std::vector sigma; - current_statement__ = 2; - sigma = in__.template read_constrain_lb, - jacobian__>(0, lp__, 2); - double theta; - current_statement__ = 3; - theta = in__.template read_constrain_lub(0, 1, lp__); + Eigen::Matrix mu = + in__.template read_constrain_ordered< + Eigen::Matrix, jacobian__>(lp__, 2); + std::vector sigma = + in__.template read_constrain_lb, + jacobian__>(0, lp__, 2); + double theta = + in__.template read_constrain_lub(0, 1, + lp__); out__.write(mu); out__.write(sigma); out__.write(theta); @@ -6158,8 +5927,6 @@ class expr_prop_fail2_model final : public model_base_crtp{}); J = std::numeric_limits::min(); current_statement__ = 6; - J = context__.vals_i("J")[(1 - 1)]; - current_statement__ = 6; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 7; stan::math::validate_non_negative_index("y", "J", J); @@ -6167,8 +5934,6 @@ class expr_prop_fail2_model final : public model_base_crtp{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); - current_statement__ = 8; - y = context__.vals_r("y"); current_statement__ = 9; stan::math::validate_non_negative_index("sigma", "J", J); current_statement__ = 10; @@ -6177,8 +5942,6 @@ class expr_prop_fail2_model final : public model_base_crtp(J, std::numeric_limits::quiet_NaN()); current_statement__ = 10; - sigma = context__.vals_r("sigma"); - current_statement__ = 10; stan::math::check_greater_or_equal(function__, "sigma", sigma, 0); current_statement__ = 11; stan::math::validate_non_negative_index("theta", "J", J); @@ -6218,16 +5981,12 @@ class expr_prop_fail2_model final : public model_base_crtp(); - std::vector theta; - current_statement__ = 2; - theta = in__.template read>(J); - local_scalar_t__ tau; - current_statement__ = 3; - tau = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ mu = in__.template read(); + std::vector theta = + in__.template read>(J); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 4; lp_accum__.add(stan::math::normal_lpdf(theta, mu, tau)); @@ -6264,16 +6023,12 @@ class expr_prop_fail2_model final : public model_base_crtp(); - std::vector theta; - current_statement__ = 2; - theta = in__.template read>(J); - local_scalar_t__ tau; - current_statement__ = 3; - tau = in__.template read_constrain_lb(0, - lp__); + local_scalar_t__ mu = in__.template read(); + std::vector theta = + in__.template read>(J); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); { current_statement__ = 4; lp_accum__.add(stan::math::normal_lpdf(theta, mu, tau)); @@ -6321,16 +6076,12 @@ class expr_prop_fail2_model final : public model_base_crtp(); - std::vector theta; - current_statement__ = 2; - theta = in__.template read>(J); - double tau; - current_statement__ = 3; - tau = in__.template read_constrain_lb(0, - lp__); + double mu = in__.template read(); + std::vector theta = + in__.template read>(J); + double tau = + in__.template read_constrain_lb(0, + lp__); out__.write(mu); out__.write(theta); out__.write(tau); @@ -6671,24 +6422,18 @@ class expr_prop_fail3_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 22; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 22; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 23; context__.validate_dims("data initialization", "n_age", "int", std::vector{}); n_age = std::numeric_limits::min(); current_statement__ = 23; - n_age = context__.vals_i("n_age")[(1 - 1)]; - current_statement__ = 23; stan::math::check_greater_or_equal(function__, "n_age", n_age, 0); current_statement__ = 24; context__.validate_dims("data initialization", "n_age_edu", "int", std::vector{}); n_age_edu = std::numeric_limits::min(); current_statement__ = 24; - n_age_edu = context__.vals_i("n_age_edu")[(1 - 1)]; - current_statement__ = 24; stan::math::check_greater_or_equal(function__, "n_age_edu", n_age_edu, 0); current_statement__ = 25; @@ -6696,16 +6441,12 @@ class expr_prop_fail3_model final : public model_base_crtp{}); n_edu = std::numeric_limits::min(); current_statement__ = 25; - n_edu = context__.vals_i("n_edu")[(1 - 1)]; - current_statement__ = 25; stan::math::check_greater_or_equal(function__, "n_edu", n_edu, 0); current_statement__ = 26; context__.validate_dims("data initialization", "n_region_full", "int", std::vector{}); n_region_full = std::numeric_limits::min(); current_statement__ = 26; - n_region_full = context__.vals_i("n_region_full")[(1 - 1)]; - current_statement__ = 26; stan::math::check_greater_or_equal(function__, "n_region_full", n_region_full, 0); current_statement__ = 27; @@ -6713,8 +6454,6 @@ class expr_prop_fail3_model final : public model_base_crtp{}); n_state = std::numeric_limits::min(); current_statement__ = 27; - n_state = context__.vals_i("n_state")[(1 - 1)]; - current_statement__ = 27; stan::math::check_greater_or_equal(function__, "n_state", n_state, 0); current_statement__ = 28; stan::math::validate_non_negative_index("age", "N", N); @@ -6723,8 +6462,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); age = std::vector(N, std::numeric_limits::min()); current_statement__ = 29; - age = context__.vals_i("age"); - current_statement__ = 29; stan::math::check_greater_or_equal(function__, "age", age, 0); current_statement__ = 29; stan::math::check_less_or_equal(function__, "age", age, n_age); @@ -6735,8 +6472,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); age_edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 31; - age_edu = context__.vals_i("age_edu"); - current_statement__ = 31; stan::math::check_greater_or_equal(function__, "age_edu", age_edu, 0); current_statement__ = 31; stan::math::check_less_or_equal(function__, "age_edu", age_edu, @@ -6750,17 +6485,6 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&black) Eigen::Map>(black_data__.data(), N); - { - std::vector black_flat__; - current_statement__ = 33; - black_flat__ = context__.vals_r("black"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(black, black_flat__[(pos__ - 1)], - "assigning variable black", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 33; stan::math::check_greater_or_equal(function__, "black", black, 0); current_statement__ = 33; @@ -6772,8 +6496,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 35; - edu = context__.vals_i("edu"); - current_statement__ = 35; stan::math::check_greater_or_equal(function__, "edu", edu, 0); current_statement__ = 35; stan::math::check_less_or_equal(function__, "edu", edu, n_edu); @@ -6786,17 +6508,6 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&female) Eigen::Map>(female_data__.data(), N); - { - std::vector female_flat__; - current_statement__ = 37; - female_flat__ = context__.vals_r("female"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(female, female_flat__[(pos__ - 1)], - "assigning variable female", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "female", female, 0); current_statement__ = 37; @@ -6808,8 +6519,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); region_full = std::vector(N, std::numeric_limits::min()); current_statement__ = 39; - region_full = context__.vals_i("region_full"); - current_statement__ = 39; stan::math::check_greater_or_equal(function__, "region_full", region_full, 0); current_statement__ = 39; @@ -6822,8 +6531,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); state = std::vector(N, std::numeric_limits::min()); current_statement__ = 41; - state = context__.vals_i("state"); - current_statement__ = 41; stan::math::check_greater_or_equal(function__, "state", state, 0); current_statement__ = 41; stan::math::check_less_or_equal(function__, "state", state, n_state); @@ -6836,17 +6543,6 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&v_prev_full) Eigen::Map>(v_prev_full_data__.data(), N); - { - std::vector v_prev_full_flat__; - current_statement__ = 43; - v_prev_full_flat__ = context__.vals_r("v_prev_full"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(v_prev_full, v_prev_full_flat__[(pos__ - 1)], - "assigning variable v_prev_full", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 44; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 45; @@ -6854,8 +6550,6 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 45; - y = context__.vals_i("y"); - current_statement__ = 45; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "y", y, 1); @@ -6909,45 +6603,34 @@ class expr_prop_fail3_model final : public model_base_crtp a; - current_statement__ = 1; - a = in__.template read>(n_age); - Eigen::Matrix b; - current_statement__ = 2; - b = in__.template read>(n_edu); - Eigen::Matrix c; - current_statement__ = 3; - c = in__.template read>(n_age_edu); - Eigen::Matrix d; - current_statement__ = 4; - d = in__.template read>(n_state); - Eigen::Matrix e; - current_statement__ = 5; - e = in__.template read< - Eigen::Matrix>(n_region_full); - Eigen::Matrix beta; - current_statement__ = 6; - beta = in__.template read>(5); - local_scalar_t__ sigma_a; - current_statement__ = 7; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_b; - current_statement__ = 8; - sigma_b = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_c; - current_statement__ = 9; - sigma_c = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_d; - current_statement__ = 10; - sigma_d = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_e; - current_statement__ = 11; - sigma_e = in__.template read_constrain_lub(0, 100, lp__); + Eigen::Matrix a = + in__.template read>(n_age); + Eigen::Matrix b = + in__.template read>(n_edu); + Eigen::Matrix c = + in__.template read>(n_age_edu); + Eigen::Matrix d = + in__.template read>(n_state); + Eigen::Matrix e = + in__.template read< + Eigen::Matrix>(n_region_full); + Eigen::Matrix beta = + in__.template read>(5); + local_scalar_t__ sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_b = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_c = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_d = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_e = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 14; @@ -7043,45 +6726,34 @@ class expr_prop_fail3_model final : public model_base_crtp a; - current_statement__ = 1; - a = in__.template read>(n_age); - Eigen::Matrix b; - current_statement__ = 2; - b = in__.template read>(n_edu); - Eigen::Matrix c; - current_statement__ = 3; - c = in__.template read>(n_age_edu); - Eigen::Matrix d; - current_statement__ = 4; - d = in__.template read>(n_state); - Eigen::Matrix e; - current_statement__ = 5; - e = in__.template read< - Eigen::Matrix>(n_region_full); - Eigen::Matrix beta; - current_statement__ = 6; - beta = in__.template read>(5); - local_scalar_t__ sigma_a; - current_statement__ = 7; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_b; - current_statement__ = 8; - sigma_b = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_c; - current_statement__ = 9; - sigma_c = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_d; - current_statement__ = 10; - sigma_d = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_e; - current_statement__ = 11; - sigma_e = in__.template read_constrain_lub(0, 100, lp__); + Eigen::Matrix a = + in__.template read>(n_age); + Eigen::Matrix b = + in__.template read>(n_edu); + Eigen::Matrix c = + in__.template read>(n_age_edu); + Eigen::Matrix d = + in__.template read>(n_state); + Eigen::Matrix e = + in__.template read< + Eigen::Matrix>(n_region_full); + Eigen::Matrix beta = + in__.template read>(5); + local_scalar_t__ sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_b = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_c = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_d = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_e = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 14; @@ -7188,45 +6860,34 @@ class expr_prop_fail3_model final : public model_base_crtp a; - current_statement__ = 1; - a = in__.template read>(n_age); - Eigen::Matrix b; - current_statement__ = 2; - b = in__.template read>(n_edu); - Eigen::Matrix c; - current_statement__ = 3; - c = in__.template read>(n_age_edu); - Eigen::Matrix d; - current_statement__ = 4; - d = in__.template read>(n_state); - Eigen::Matrix e; - current_statement__ = 5; - e = in__.template read< - Eigen::Matrix>(n_region_full); - Eigen::Matrix beta; - current_statement__ = 6; - beta = in__.template read>(5); - double sigma_a; - current_statement__ = 7; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - double sigma_b; - current_statement__ = 8; - sigma_b = in__.template read_constrain_lub(0, 100, lp__); - double sigma_c; - current_statement__ = 9; - sigma_c = in__.template read_constrain_lub(0, 100, lp__); - double sigma_d; - current_statement__ = 10; - sigma_d = in__.template read_constrain_lub(0, 100, lp__); - double sigma_e; - current_statement__ = 11; - sigma_e = in__.template read_constrain_lub(0, 100, lp__); + Eigen::Matrix a = + in__.template read>(n_age); + Eigen::Matrix b = + in__.template read>(n_edu); + Eigen::Matrix c = + in__.template read>(n_age_edu); + Eigen::Matrix d = + in__.template read>(n_state); + Eigen::Matrix e = + in__.template read< + Eigen::Matrix>(n_region_full); + Eigen::Matrix beta = + in__.template read>(5); + double sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_b = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_c = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_d = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_e = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); @@ -7851,16 +7512,12 @@ class expr_prop_fail4_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 30; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 30; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 31; context__.validate_dims("data initialization", "N_edges", "int", std::vector{}); N_edges = std::numeric_limits::min(); current_statement__ = 31; - N_edges = context__.vals_i("N_edges")[(1 - 1)]; - current_statement__ = 31; stan::math::check_greater_or_equal(function__, "N_edges", N_edges, 0); current_statement__ = 32; stan::math::validate_non_negative_index("node1", "N_edges", N_edges); @@ -7869,8 +7526,6 @@ class expr_prop_fail4_model final : public model_base_crtp{static_cast(N_edges)}); node1 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 33; - node1 = context__.vals_i("node1"); - current_statement__ = 33; stan::math::check_greater_or_equal(function__, "node1", node1, 1); current_statement__ = 33; stan::math::check_less_or_equal(function__, "node1", node1, N); @@ -7881,8 +7536,6 @@ class expr_prop_fail4_model final : public model_base_crtp{static_cast(N_edges)}); node2 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 35; - node2 = context__.vals_i("node2"); - current_statement__ = 35; stan::math::check_greater_or_equal(function__, "node2", node2, 1); current_statement__ = 35; stan::math::check_less_or_equal(function__, "node2", node2, N); @@ -7894,17 +7547,6 @@ class expr_prop_fail4_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&E) Eigen::Map>(E_data__.data(), N); - { - std::vector E_flat__; - current_statement__ = 37; - E_flat__ = context__.vals_r("E"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(E, E_flat__[(pos__ - 1)], - "assigning variable E", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "E", E, 0); current_statement__ = 38; @@ -7970,14 +7612,12 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); - Eigen::Matrix phi_std_raw; - current_statement__ = 2; - phi_std_raw = in__.template read< - Eigen::Matrix>(phi_std_raw_1dim__); + local_scalar_t__ tau_phi = + in__.template read_constrain_lb(0, + lp__); + Eigen::Matrix phi_std_raw = + in__.template read< + Eigen::Matrix>(phi_std_raw_1dim__); local_scalar_t__ sigma_phi; current_statement__ = 3; sigma_phi = stan::math::inv_sqrt(tau_phi); @@ -8036,14 +7676,12 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); - stan::math::var_value> phi_std_raw; - current_statement__ = 2; - phi_std_raw = in__.template read< - stan::math::var_value>>(phi_std_raw_1dim__); + local_scalar_t__ tau_phi = + in__.template read_constrain_lb(0, + lp__); + stan::math::var_value> phi_std_raw = + in__.template read< + Eigen::Matrix>(phi_std_raw_1dim__); local_scalar_t__ sigma_phi; current_statement__ = 3; sigma_phi = stan::math::inv_sqrt(tau_phi); @@ -8115,14 +7753,12 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); - Eigen::Matrix phi_std_raw; - current_statement__ = 2; - phi_std_raw = in__.template read< - Eigen::Matrix>(phi_std_raw_1dim__); + double tau_phi = + in__.template read_constrain_lb(0, + lp__); + Eigen::Matrix phi_std_raw = + in__.template read< + Eigen::Matrix>(phi_std_raw_1dim__); double sigma_phi = std::numeric_limits::quiet_NaN(); Eigen::Matrix phi = Eigen::Matrix::Constant(N, @@ -8793,16 +8429,12 @@ class expr_prop_fail5_model final : public model_base_crtp{}); nind = std::numeric_limits::min(); current_statement__ = 46; - nind = context__.vals_i("nind")[(1 - 1)]; - current_statement__ = 46; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 47; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 47; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 47; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 48; @@ -8815,20 +8447,6 @@ class expr_prop_fail5_model final : public model_base_crtp(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 50; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { - for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 50; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 50; @@ -8922,22 +8540,17 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon; - current_statement__ = 3; - epsilon = in__.template read< - Eigen::Matrix>(nind); - local_scalar_t__ sigma; - current_statement__ = 4; - sigma = in__.template read_constrain_lub(0, 5, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix epsilon = + in__.template read>(nind); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -9123,22 +8736,17 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon; - current_statement__ = 3; - epsilon = in__.template read< - Eigen::Matrix>(nind); - local_scalar_t__ sigma; - current_statement__ = 4; - sigma = in__.template read_constrain_lub(0, 5, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix epsilon = + in__.template read>(nind); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -9335,22 +8943,17 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - double mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon; - current_statement__ = 3; - epsilon = in__.template read< - Eigen::Matrix>(nind); - double sigma; - current_statement__ = 4; - sigma = in__.template read_constrain_lub(0, 5, lp__); + double mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix epsilon = + in__.template read>(nind); + double sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, std::numeric_limits::quiet_NaN()); @@ -10428,16 +10031,12 @@ class expr_prop_fail6_model final : public model_base_crtp{}); M = std::numeric_limits::min(); current_statement__ = 119; - M = context__.vals_i("M")[(1 - 1)]; - current_statement__ = 119; stan::math::check_greater_or_equal(function__, "M", M, 0); current_statement__ = 120; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 120; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 120; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 0); current_statement__ = 121; @@ -10450,20 +10049,6 @@ class expr_prop_fail6_model final : public model_base_crtp(n_occasions)}); y = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 123; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { - for (int sym2__ = 1; sym2__ <= M; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 123; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 123; @@ -10572,30 +10157,23 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ psi; - current_statement__ = 3; - psi = in__.template read_constrain_lub(0, - 1, lp__); - Eigen::Matrix beta; - current_statement__ = 4; - beta = in__.template read_constrain_lb< - Eigen::Matrix, jacobian__>(0, lp__, - n_occasions); - Eigen::Matrix epsilon; - current_statement__ = 5; - epsilon = in__.template read>(M); - local_scalar_t__ sigma; - current_statement__ = 6; - sigma = in__.template read_constrain_lub(0, 5, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ psi = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lb, + jacobian__>(0, lp__, n_occasions); + Eigen::Matrix epsilon = + in__.template read>(M); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, phi_2dim__, DUMMY_VAR__); @@ -11018,30 +10596,23 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ psi; - current_statement__ = 3; - psi = in__.template read_constrain_lub(0, - 1, lp__); - Eigen::Matrix beta; - current_statement__ = 4; - beta = in__.template read_constrain_lb< - Eigen::Matrix, jacobian__>(0, lp__, - n_occasions); - Eigen::Matrix epsilon; - current_statement__ = 5; - epsilon = in__.template read>(M); - local_scalar_t__ sigma; - current_statement__ = 6; - sigma = in__.template read_constrain_lub(0, 5, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ psi = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lb, + jacobian__>(0, lp__, n_occasions); + Eigen::Matrix epsilon = + in__.template read>(M); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, phi_2dim__, DUMMY_VAR__); @@ -11475,30 +11046,23 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); - double mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - double psi; - current_statement__ = 3; - psi = in__.template read_constrain_lub(0, - 1, lp__); - Eigen::Matrix beta; - current_statement__ = 4; - beta = in__.template read_constrain_lb< - Eigen::Matrix, jacobian__>(0, lp__, - n_occasions); - Eigen::Matrix epsilon; - current_statement__ = 5; - epsilon = in__.template read>(M); - double sigma; - current_statement__ = 6; - sigma = in__.template read_constrain_lub(0, 5, lp__); + double mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + double psi = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lb, + jacobian__>(0, lp__, n_occasions); + Eigen::Matrix epsilon = + in__.template read>(M); + double sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, phi_2dim__, std::numeric_limits::quiet_NaN()); @@ -12318,49 +11882,29 @@ class expr_prop_fail7_model final : public model_base_crtp{}); K = std::numeric_limits::min(); current_statement__ = 22; - K = context__.vals_i("K")[(1 - 1)]; - current_statement__ = 22; stan::math::check_greater_or_equal(function__, "K", K, 2); current_statement__ = 23; context__.validate_dims("data initialization", "I", "int", std::vector{}); I = std::numeric_limits::min(); current_statement__ = 23; - I = context__.vals_i("I")[(1 - 1)]; - current_statement__ = 23; stan::math::check_greater_or_equal(function__, "I", I, 1); current_statement__ = 24; context__.validate_dims("data initialization", "J", "int", std::vector{}); J = std::numeric_limits::min(); current_statement__ = 24; - J = context__.vals_i("J")[(1 - 1)]; - current_statement__ = 24; stan::math::check_greater_or_equal(function__, "J", J, 1); current_statement__ = 25; stan::math::validate_non_negative_index("y", "I", I); current_statement__ = 26; stan::math::validate_non_negative_index("y", "J", J); current_statement__ = 27; - context__.validate_dims("data initialization", "y", "int", - std::vector{static_cast(I), static_cast(J)}); - y = std::vector>(I, - std::vector(J, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 27; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= J; ++sym1__) { - for (int sym2__ = 1; sym2__ <= I; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } - current_statement__ = 27; + context__.validate_dims("data initialization", "y", "int", + std::vector{static_cast(I), static_cast(J)}); + y = std::vector>(I, + std::vector(J, std::numeric_limits::min())); + current_statement__ = 27; stan::math::check_greater_or_equal(function__, "y", y, 1); current_statement__ = 27; stan::math::check_less_or_equal(function__, "y", y, K); @@ -12373,17 +11917,6 @@ class expr_prop_fail7_model final : public model_base_crtp::quiet_NaN()); new (&alpha) Eigen::Map>(alpha_data__.data(), K); - { - std::vector alpha_flat__; - current_statement__ = 29; - alpha_flat__ = context__.vals_r("alpha"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= K; ++sym1__) { - stan::model::assign(alpha, alpha_flat__[(pos__ - 1)], - "assigning variable alpha", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 29; stan::math::check_greater_or_equal(function__, "alpha", alpha, 0); current_statement__ = 30; @@ -12396,20 +11929,6 @@ class expr_prop_fail7_model final : public model_base_crtp>(K, Eigen::Matrix::Constant(K, std::numeric_limits::quiet_NaN())); - { - std::vector beta_flat__; - current_statement__ = 32; - beta_flat__ = context__.vals_r("beta"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= K; ++sym1__) { - for (int sym2__ = 1; sym2__ <= K; ++sym2__) { - stan::model::assign(beta, beta_flat__[(pos__ - 1)], - "assigning variable beta", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 32; stan::math::check_greater_or_equal(function__, "beta", beta, 0); current_statement__ = 33; @@ -12460,16 +11979,13 @@ class expr_prop_fail7_model final : public model_base_crtp pi; - current_statement__ = 1; - pi = in__.template read_constrain_simplex< - Eigen::Matrix, jacobian__>(lp__, K); - std::vector>> theta; - current_statement__ = 2; - theta = in__.template read_constrain_simplex< - std::vector< - std::vector>>, - jacobian__>(lp__, J, K, K); + Eigen::Matrix pi = + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, K); + std::vector>> theta = + in__.template read_constrain_simplex< + std::vector>>, + jacobian__>(lp__, J, K, K); { current_statement__ = 11; lp_accum__.add(stan::math::dirichlet_lpdf(pi, alpha)); @@ -12543,17 +12059,13 @@ class expr_prop_fail7_model final : public model_base_crtp> pi; - current_statement__ = 1; - pi = in__.template read_constrain_simplex< - stan::math::var_value>, - jacobian__>(lp__, K); - std::vector>> theta; - current_statement__ = 2; - theta = in__.template read_constrain_simplex< - std::vector< - std::vector>>, - jacobian__>(lp__, J, K, K); + stan::math::var_value> pi = + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, K); + std::vector>> theta = + in__.template read_constrain_simplex< + std::vector>>, + jacobian__>(lp__, J, K, K); { current_statement__ = 11; lp_accum__.add(stan::math::dirichlet_lpdf(pi, alpha)); @@ -12638,16 +12150,13 @@ class expr_prop_fail7_model final : public model_base_crtp pi; - current_statement__ = 1; - pi = in__.template read_constrain_simplex< - Eigen::Matrix, jacobian__>(lp__, K); - std::vector>> theta; - current_statement__ = 2; - theta = in__.template read_constrain_simplex< - std::vector< - std::vector>>, - jacobian__>(lp__, J, K, K); + Eigen::Matrix pi = + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, K); + std::vector>> theta = + in__.template read_constrain_simplex< + std::vector>>, + jacobian__>(lp__, J, K, K); out__.write(pi); current_statement__ = 2; for (int sym1__ = 1; sym1__ <= K; ++sym1__) { @@ -13064,16 +12573,12 @@ class expr_prop_fail8_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 12; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 12; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 13; context__.validate_dims("data initialization", "N_edges", "int", std::vector{}); N_edges = std::numeric_limits::min(); current_statement__ = 13; - N_edges = context__.vals_i("N_edges")[(1 - 1)]; - current_statement__ = 13; stan::math::check_greater_or_equal(function__, "N_edges", N_edges, 0); current_statement__ = 14; stan::math::validate_non_negative_index("node1", "N_edges", N_edges); @@ -13082,8 +12587,6 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N_edges)}); node1 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 15; - node1 = context__.vals_i("node1"); - current_statement__ = 15; stan::math::check_greater_or_equal(function__, "node1", node1, 1); current_statement__ = 15; stan::math::check_less_or_equal(function__, "node1", node1, N); @@ -13094,8 +12597,6 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N_edges)}); node2 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 17; - node2 = context__.vals_i("node2"); - current_statement__ = 17; stan::math::check_greater_or_equal(function__, "node2", node2, 1); current_statement__ = 17; stan::math::check_less_or_equal(function__, "node2", node2, N); @@ -13106,8 +12607,6 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 19; - y = context__.vals_i("y"); - current_statement__ = 19; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 20; stan::math::validate_non_negative_index("x", "N", N); @@ -13117,17 +12616,6 @@ class expr_prop_fail8_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&x) Eigen::Map>(x_data__.data(), N); - { - std::vector x_flat__; - current_statement__ = 21; - x_flat__ = context__.vals_r("x"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 22; stan::math::validate_non_negative_index("theta_std", "N", N); current_statement__ = 23; @@ -13170,27 +12658,18 @@ class expr_prop_fail8_model final : public model_base_crtp(); - local_scalar_t__ beta1; - current_statement__ = 2; - beta1 = in__.template read(); - local_scalar_t__ tau_theta; - current_statement__ = 3; - tau_theta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ tau_phi; - current_statement__ = 4; - tau_phi = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_std; - current_statement__ = 5; - theta_std = in__.template read>(N); - Eigen::Matrix phi_std_raw; - current_statement__ = 6; - phi_std_raw = in__.template read< - Eigen::Matrix>(N); + local_scalar_t__ beta0 = in__.template read(); + local_scalar_t__ beta1 = in__.template read(); + local_scalar_t__ tau_theta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ tau_phi = + in__.template read_constrain_lb(0, + lp__); + Eigen::Matrix theta_std = + in__.template read>(N); + Eigen::Matrix phi_std_raw = + in__.template read>(N); local_scalar_t__ sigma_phi; current_statement__ = 7; sigma_phi = stan::math::inv_sqrt(tau_phi); @@ -13242,28 +12721,18 @@ class expr_prop_fail8_model final : public model_base_crtp(); - local_scalar_t__ beta1; - current_statement__ = 2; - beta1 = in__.template read(); - local_scalar_t__ tau_theta; - current_statement__ = 3; - tau_theta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ tau_phi; - current_statement__ = 4; - tau_phi = in__.template read_constrain_lb(0, lp__); - stan::math::var_value> theta_std; - current_statement__ = 5; - theta_std = in__.template read< - stan::math::var_value>>(N); - stan::math::var_value> phi_std_raw; - current_statement__ = 6; - phi_std_raw = in__.template read< - stan::math::var_value>>(N); + local_scalar_t__ beta0 = in__.template read(); + local_scalar_t__ beta1 = in__.template read(); + local_scalar_t__ tau_theta = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ tau_phi = + in__.template read_constrain_lb(0, + lp__); + stan::math::var_value> theta_std = + in__.template read>(N); + stan::math::var_value> phi_std_raw = + in__.template read>(N); local_scalar_t__ sigma_phi; current_statement__ = 7; sigma_phi = stan::math::inv_sqrt(tau_phi); @@ -13328,27 +12797,18 @@ class expr_prop_fail8_model final : public model_base_crtp(); - double beta1; - current_statement__ = 2; - beta1 = in__.template read(); - double tau_theta; - current_statement__ = 3; - tau_theta = in__.template read_constrain_lb(0, lp__); - double tau_phi; - current_statement__ = 4; - tau_phi = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_std; - current_statement__ = 5; - theta_std = in__.template read>(N); - Eigen::Matrix phi_std_raw; - current_statement__ = 6; - phi_std_raw = in__.template read< - Eigen::Matrix>(N); + double beta0 = in__.template read(); + double beta1 = in__.template read(); + double tau_theta = + in__.template read_constrain_lb(0, + lp__); + double tau_phi = + in__.template read_constrain_lb(0, + lp__); + Eigen::Matrix theta_std = + in__.template read>(N); + Eigen::Matrix phi_std_raw = + in__.template read>(N); double sigma_phi = std::numeric_limits::quiet_NaN(); Eigen::Matrix phi = Eigen::Matrix::Constant(N, @@ -13965,16 +13425,12 @@ class fails_test_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 37; - nind = context__.vals_i("nind")[(1 - 1)]; - current_statement__ = 37; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 38; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 38; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 38; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 39; @@ -13987,20 +13443,6 @@ class fails_test_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 41; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { - for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 41; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 41; @@ -14010,8 +13452,6 @@ class fails_test_model final : public model_base_crtp { std::vector{}); max_age = std::numeric_limits::min(); current_statement__ = 42; - max_age = context__.vals_i("max_age")[(1 - 1)]; - current_statement__ = 42; stan::math::check_greater_or_equal(function__, "max_age", max_age, 1); current_statement__ = 43; stan::math::validate_non_negative_index("x", "nind", nind); @@ -14025,20 +13465,6 @@ class fails_test_model final : public model_base_crtp { x = std::vector>(nind, std::vector((n_occasions - 1), std::numeric_limits::min())); - { - std::vector x_flat__; - current_statement__ = 45; - x_flat__ = context__.vals_i("x"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= (n_occasions - 1); ++sym1__) { - for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 45; stan::math::check_greater_or_equal(function__, "x", x, 0); current_statement__ = 45; @@ -14132,15 +13558,13 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -14320,15 +13744,13 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -14519,15 +13941,13 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double mean_p; - current_statement__ = 1; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - max_age); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix beta = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + max_age); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, std::numeric_limits::quiet_NaN()); @@ -15030,17 +14450,6 @@ class function_in_function_inline_model final : public model_base_crtp::quiet_NaN()); new (&phi) Eigen::Map>(phi_data__.data(), 10); - { - std::vector phi_flat__; - current_statement__ = 4; - phi_flat__ = context__.vals_r("phi"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { - stan::model::assign(phi, phi_flat__[(pos__ - 1)], - "assigning variable phi", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -15471,8 +14880,6 @@ class function_in_function_loops_model final : public model_base_crtp{}); N = std::numeric_limits::min(); - current_statement__ = 12; - N = context__.vals_i("N")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -16260,13 +15667,11 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix y; - current_statement__ = 1; - y = in__.template read>(3); - std::vector> arr_vec; - current_statement__ = 2; - arr_vec = in__.template read< - std::vector>>(3, 4); + Eigen::Matrix y = + in__.template read>(3); + std::vector> arr_vec = + in__.template read< + std::vector>>(3, 4); Eigen::Matrix x; current_statement__ = 3; stan::model::assign(x, @@ -16313,15 +15718,12 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - stan::math::var_value> y; - current_statement__ = 1; - y = in__.template read< - stan::math::var_value>>(3); - std::vector>> arr_vec; - current_statement__ = 2; - arr_vec = in__.template read< - std::vector< - stan::math::var_value>>>(3, 4); + stan::math::var_value> y = + in__.template read>(3); + std::vector>> + arr_vec = + in__.template read< + std::vector>>(3, 4); stan::math::var_value> x; current_statement__ = 3; stan::model::assign(x, @@ -16379,13 +15781,11 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix y; - current_statement__ = 1; - y = in__.template read>(3); - std::vector> arr_vec; - current_statement__ = 2; - arr_vec = in__.template read< - std::vector>>(3, 4); + Eigen::Matrix y = + in__.template read>(3); + std::vector> arr_vec = + in__.template read< + std::vector>>(3, 4); Eigen::Matrix x = Eigen::Matrix::Constant(3, std::numeric_limits::quiet_NaN()); @@ -16829,14 +16229,10 @@ class inline_functions_varmat_model final : public model_base_crtp p_single_ret_vec; - current_statement__ = 1; - p_single_ret_vec = in__.template read< - Eigen::Matrix>(5); - Eigen::Matrix p_multi_ret_vec; - current_statement__ = 2; - p_multi_ret_vec = in__.template read< - Eigen::Matrix>(5); + Eigen::Matrix p_single_ret_vec = + in__.template read>(5); + Eigen::Matrix p_multi_ret_vec = + in__.template read>(5); Eigen::Matrix tp_single_ret_vec = Eigen::Matrix::Constant(5, DUMMY_VAR__); Eigen::Matrix @@ -16900,14 +16296,10 @@ class inline_functions_varmat_model final : public model_base_crtp> p_single_ret_vec; - current_statement__ = 1; - p_single_ret_vec = in__.template read< - stan::math::var_value>>(5); - stan::math::var_value> p_multi_ret_vec; - current_statement__ = 2; - p_multi_ret_vec = in__.template read< - stan::math::var_value>>(5); + stan::math::var_value> p_single_ret_vec = + in__.template read>(5); + stan::math::var_value> p_multi_ret_vec = + in__.template read>(5); stan::math::var_value> tp_single_ret_vec = stan::math::var_value>(Eigen::Matrix::Constant(5, std::numeric_limits::quiet_NaN( @@ -16989,14 +16381,10 @@ class inline_functions_varmat_model final : public model_base_crtp p_single_ret_vec; - current_statement__ = 1; - p_single_ret_vec = in__.template read< - Eigen::Matrix>(5); - Eigen::Matrix p_multi_ret_vec; - current_statement__ = 2; - p_multi_ret_vec = in__.template read< - Eigen::Matrix>(5); + Eigen::Matrix p_single_ret_vec = + in__.template read>(5); + Eigen::Matrix p_multi_ret_vec = + in__.template read>(5); Eigen::Matrix tp_single_ret_vec = Eigen::Matrix::Constant(5, std::numeric_limits::quiet_NaN()); @@ -17442,9 +16830,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha; - current_statement__ = 1; - alpha = in__.template read(); + local_scalar_t__ alpha = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf( @@ -17480,9 +16866,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha; - current_statement__ = 1; - alpha = in__.template read(); + local_scalar_t__ alpha = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf( @@ -17529,9 +16913,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double alpha; - current_statement__ = 1; - alpha = in__.template read(); + double alpha = in__.template read(); out__.write(alpha); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -17810,8 +17192,6 @@ class inliner_same_names_model final : public model_base_crtp{}); N = std::numeric_limits::min(); - current_statement__ = 6; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 7; stan::math::validate_non_negative_index("R", "N", N); current_statement__ = 8; @@ -18860,16 +18240,12 @@ class inlining_fail2_model final : public model_base_crtp std::vector{}); M = std::numeric_limits::min(); current_statement__ = 119; - M = context__.vals_i("M")[(1 - 1)]; - current_statement__ = 119; stan::math::check_greater_or_equal(function__, "M", M, 0); current_statement__ = 120; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 120; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 120; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 0); current_statement__ = 121; @@ -18882,20 +18258,6 @@ class inlining_fail2_model final : public model_base_crtp static_cast(n_occasions)}); y = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 123; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { - for (int sym2__ = 1; sym2__ <= M; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 123; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 123; @@ -19006,27 +18368,22 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma; - current_statement__ = 3; - gamma = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - n_occasions); - Eigen::Matrix epsilon; - current_statement__ = 4; - epsilon = in__.template read< - Eigen::Matrix>(epsilon_1dim__); - local_scalar_t__ sigma; - current_statement__ = 5; - sigma = in__.template read_constrain_lub(0, 5, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix gamma = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + n_occasions); + Eigen::Matrix epsilon = + in__.template read< + Eigen::Matrix>(epsilon_1dim__); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, phi_2dim__, DUMMY_VAR__); @@ -19417,27 +18774,22 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma; - current_statement__ = 3; - gamma = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - n_occasions); - Eigen::Matrix epsilon; - current_statement__ = 4; - epsilon = in__.template read< - Eigen::Matrix>(epsilon_1dim__); - local_scalar_t__ sigma; - current_statement__ = 5; - sigma = in__.template read_constrain_lub(0, 5, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix gamma = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + n_occasions); + Eigen::Matrix epsilon = + in__.template read< + Eigen::Matrix>(epsilon_1dim__); + local_scalar_t__ sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, phi_2dim__, DUMMY_VAR__); @@ -19839,27 +19191,22 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma; - current_statement__ = 3; - gamma = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(0, 1, lp__, - n_occasions); - Eigen::Matrix epsilon; - current_statement__ = 4; - epsilon = in__.template read< - Eigen::Matrix>(epsilon_1dim__); - double sigma; - current_statement__ = 5; - sigma = in__.template read_constrain_lub(0, 5, lp__); + double mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); + Eigen::Matrix gamma = + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(0, 1, lp__, + n_occasions); + Eigen::Matrix epsilon = + in__.template read< + Eigen::Matrix>(epsilon_1dim__); + double sigma = + in__.template read_constrain_lub(0, 5, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(M, phi_2dim__, std::numeric_limits::quiet_NaN()); @@ -20622,8 +19969,6 @@ class lcm_experiment_model final : public model_base_crtp context__.validate_dims("data initialization", "j", "int", std::vector{}); j = std::numeric_limits::min(); - current_statement__ = 1; - j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 2; @@ -20986,9 +20331,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + local_scalar_t__ x = in__.template read(); { local_scalar_t__ y; current_statement__ = 2; @@ -21035,9 +20378,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + local_scalar_t__ x = in__.template read(); { local_scalar_t__ y; current_statement__ = 2; @@ -21095,9 +20436,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + double x = in__.template read(); out__.write(x); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -21337,8 +20676,6 @@ class lcm_fails_model final : public model_base_crtp { std::vector{}); J = std::numeric_limits::min(); current_statement__ = 3; - J = context__.vals_i("J")[(1 - 1)]; - current_statement__ = 3; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 4; stan::math::validate_non_negative_index("y", "J", J); @@ -21346,8 +20683,6 @@ class lcm_fails_model final : public model_base_crtp { context__.validate_dims("data initialization", "y", "double", std::vector{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - y = context__.vals_r("y"); current_statement__ = 6; stan::math::validate_non_negative_index("theta", "J", J); } catch (const std::exception& e) { @@ -21386,9 +20721,8 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector theta; - current_statement__ = 1; - theta = in__.template read>(J); + std::vector theta = + in__.template read>(J); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(y, theta, 1)); @@ -21423,9 +20757,8 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector theta; - current_statement__ = 1; - theta = in__.template read>(J); + std::vector theta = + in__.template read>(J); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(y, theta, 1)); @@ -21471,9 +20804,8 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector theta; - current_statement__ = 1; - theta = in__.template read>(J); + std::vector theta = + in__.template read>(J); out__.write(theta); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -21937,16 +21269,12 @@ class lcm_fails2_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 37; - nind = context__.vals_i("nind")[(1 - 1)]; - current_statement__ = 37; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 38; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 38; - n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 38; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 39; @@ -21959,20 +21287,6 @@ class lcm_fails2_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 41; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { - for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 41; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 41; @@ -22064,14 +21378,12 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -22247,14 +21559,12 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + local_scalar_t__ mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, DUMMY_VAR__); @@ -22441,14 +21751,12 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double mean_phi; - current_statement__ = 1; - mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p; - current_statement__ = 2; - mean_p = in__.template read_constrain_lub(0, 1, lp__); + double mean_phi = + in__.template read_constrain_lub(0, 1, + lp__); + double mean_p = + in__.template read_constrain_lub(0, 1, + lp__); Eigen::Matrix phi = Eigen::Matrix::Constant(nind, n_occ_minus_1, std::numeric_limits::quiet_NaN()); @@ -22952,8 +22260,6 @@ class lupdf_inlining_model final : public model_base_crtp context__.validate_dims("data initialization", "n", "int", std::vector{}); n = std::numeric_limits::min(); - current_statement__ = 8; - n = context__.vals_i("n")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -22990,9 +22296,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mu; - current_statement__ = 1; - mu = in__.template read(); + local_scalar_t__ mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; local_scalar_t__ inline_foo_lpdf_return_sym23__; { @@ -23054,9 +22358,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mu; - current_statement__ = 1; - mu = in__.template read(); + local_scalar_t__ mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; local_scalar_t__ inline_foo_lpdf_return_sym16__; { @@ -23129,9 +22431,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double mu; - current_statement__ = 1; - mu = in__.template read(); + double mu = in__.template read(); double tp = std::numeric_limits::quiet_NaN(); out__.write(mu); if (stan::math::logical_negation( @@ -23488,16 +22788,12 @@ class off_dce_model final : public model_base_crtp { std::vector{}); R = std::numeric_limits::min(); current_statement__ = 34; - R = context__.vals_i("R")[(1 - 1)]; - current_statement__ = 34; stan::math::check_greater_or_equal(function__, "R", R, 1); current_statement__ = 35; context__.validate_dims("data initialization", "T", "int", std::vector{}); T = std::numeric_limits::min(); current_statement__ = 35; - T = context__.vals_i("T")[(1 - 1)]; - current_statement__ = 35; stan::math::check_greater_or_equal(function__, "T", T, 1); current_statement__ = 36; stan::math::validate_non_negative_index("y", "R", R); @@ -23508,20 +22804,6 @@ class off_dce_model final : public model_base_crtp { std::vector{static_cast(R), static_cast(T)}); y = std::vector>(R, std::vector(T, std::numeric_limits::min())); - { - std::vector y_flat__; - current_statement__ = 38; - y_flat__ = context__.vals_i("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= T; ++sym1__) { - for (int sym2__ = 1; sym2__ <= R; ++sym2__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 38; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 38; @@ -23534,17 +22816,6 @@ class off_dce_model final : public model_base_crtp { X_data__ = Eigen::Matrix::Constant(R, std::numeric_limits::quiet_NaN()); new (&X) Eigen::Map>(X_data__.data(), R); - { - std::vector X_flat__; - current_statement__ = 40; - X_flat__ = context__.vals_r("X"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= R; ++sym1__) { - stan::model::assign(X, X_flat__[(pos__ - 1)], - "assigning variable X", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 41; stan::math::validate_non_negative_index("sum_y", "R", R); current_statement__ = 42; @@ -23616,22 +22887,14 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) DUMMY_VAR__; static constexpr const char* function__ = - "off_dce_model_namespace::log_prob"; - // suppress unused var warning - (void) function__; - try { - local_scalar_t__ alpha_occ; - current_statement__ = 1; - alpha_occ = in__.template read(); - local_scalar_t__ beta_occ; - current_statement__ = 2; - beta_occ = in__.template read(); - local_scalar_t__ alpha_p; - current_statement__ = 3; - alpha_p = in__.template read(); - local_scalar_t__ beta_p; - current_statement__ = 4; - beta_p = in__.template read(); + "off_dce_model_namespace::log_prob"; + // suppress unused var warning + (void) function__; + try { + local_scalar_t__ alpha_occ = in__.template read(); + local_scalar_t__ beta_occ = in__.template read(); + local_scalar_t__ alpha_p = in__.template read(); + local_scalar_t__ beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); Eigen::Matrix logit_p = @@ -23703,18 +22966,10 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha_occ; - current_statement__ = 1; - alpha_occ = in__.template read(); - local_scalar_t__ beta_occ; - current_statement__ = 2; - beta_occ = in__.template read(); - local_scalar_t__ alpha_p; - current_statement__ = 3; - alpha_p = in__.template read(); - local_scalar_t__ beta_p; - current_statement__ = 4; - beta_p = in__.template read(); + local_scalar_t__ alpha_occ = in__.template read(); + local_scalar_t__ beta_occ = in__.template read(); + local_scalar_t__ alpha_p = in__.template read(); + local_scalar_t__ beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); Eigen::Matrix logit_p = @@ -23797,18 +23052,10 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double alpha_occ; - current_statement__ = 1; - alpha_occ = in__.template read(); - double beta_occ; - current_statement__ = 2; - beta_occ = in__.template read(); - double alpha_p; - current_statement__ = 3; - alpha_p = in__.template read(); - double beta_p; - current_statement__ = 4; - beta_p = in__.template read(); + double alpha_occ = in__.template read(); + double beta_occ = in__.template read(); + double alpha_p = in__.template read(); + double beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, std::numeric_limits::quiet_NaN()); @@ -24270,16 +23517,12 @@ class off_small_model final : public model_base_crtp { std::vector{}); J = std::numeric_limits::min(); current_statement__ = 22; - J = context__.vals_i("J")[(1 - 1)]; - current_statement__ = 22; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 23; context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); current_statement__ = 23; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 23; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 24; stan::math::validate_non_negative_index("person", "N", N); @@ -24288,8 +23531,6 @@ class off_small_model final : public model_base_crtp { std::vector{static_cast(N)}); person = std::vector(N, std::numeric_limits::min()); current_statement__ = 25; - person = context__.vals_i("person"); - current_statement__ = 25; stan::math::check_greater_or_equal(function__, "person", person, 1); current_statement__ = 25; stan::math::check_less_or_equal(function__, "person", person, J); @@ -24302,17 +23543,6 @@ class off_small_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&time) Eigen::Map>(time_data__.data(), N); - { - std::vector time_flat__; - current_statement__ = 27; - time_flat__ = context__.vals_r("time"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(time, time_flat__[(pos__ - 1)], - "assigning variable time", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 28; stan::math::validate_non_negative_index("treatment", "N", N); current_statement__ = 29; @@ -24322,17 +23552,6 @@ class off_small_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&treatment) Eigen::Map>(treatment_data__.data(), N); - { - std::vector treatment_flat__; - current_statement__ = 29; - treatment_flat__ = context__.vals_r("treatment"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(treatment, treatment_flat__[(pos__ - 1)], - "assigning variable treatment", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 30; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 31; @@ -24341,17 +23560,6 @@ class off_small_model final : public model_base_crtp { y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); - { - std::vector y_flat__; - current_statement__ = 31; - y_flat__ = context__.vals_r("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 32; stan::math::validate_non_negative_index("eta1", "J", J); current_statement__ = 33; @@ -24398,33 +23606,22 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ beta; - current_statement__ = 1; - beta = in__.template read(); - Eigen::Matrix eta1; - current_statement__ = 2; - eta1 = in__.template read>(J); - Eigen::Matrix eta2; - current_statement__ = 3; - eta2 = in__.template read>(J); - local_scalar_t__ mu_a1; - current_statement__ = 4; - mu_a1 = in__.template read(); - local_scalar_t__ mu_a2; - current_statement__ = 5; - mu_a2 = in__.template read(); - local_scalar_t__ sigma_a1; - current_statement__ = 6; - sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_a2; - current_statement__ = 7; - sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y; - current_statement__ = 8; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + local_scalar_t__ beta = in__.template read(); + Eigen::Matrix eta1 = + in__.template read>(J); + Eigen::Matrix eta2 = + in__.template read>(J); + local_scalar_t__ mu_a1 = in__.template read(); + local_scalar_t__ mu_a2 = in__.template read(); + local_scalar_t__ sigma_a1 = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_a2 = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix a1 = Eigen::Matrix::Constant(J, DUMMY_VAR__); Eigen::Matrix a2 = @@ -24503,33 +23700,22 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ beta; - current_statement__ = 1; - beta = in__.template read(); - Eigen::Matrix eta1; - current_statement__ = 2; - eta1 = in__.template read>(J); - Eigen::Matrix eta2; - current_statement__ = 3; - eta2 = in__.template read>(J); - local_scalar_t__ mu_a1; - current_statement__ = 4; - mu_a1 = in__.template read(); - local_scalar_t__ mu_a2; - current_statement__ = 5; - mu_a2 = in__.template read(); - local_scalar_t__ sigma_a1; - current_statement__ = 6; - sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_a2; - current_statement__ = 7; - sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y; - current_statement__ = 8; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + local_scalar_t__ beta = in__.template read(); + Eigen::Matrix eta1 = + in__.template read>(J); + Eigen::Matrix eta2 = + in__.template read>(J); + local_scalar_t__ mu_a1 = in__.template read(); + local_scalar_t__ mu_a2 = in__.template read(); + local_scalar_t__ sigma_a1 = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_a2 = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix a1 = Eigen::Matrix::Constant(J, DUMMY_VAR__); Eigen::Matrix a2 = @@ -24619,33 +23805,22 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double beta; - current_statement__ = 1; - beta = in__.template read(); - Eigen::Matrix eta1; - current_statement__ = 2; - eta1 = in__.template read>(J); - Eigen::Matrix eta2; - current_statement__ = 3; - eta2 = in__.template read>(J); - double mu_a1; - current_statement__ = 4; - mu_a1 = in__.template read(); - double mu_a2; - current_statement__ = 5; - mu_a2 = in__.template read(); - double sigma_a1; - current_statement__ = 6; - sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - double sigma_a2; - current_statement__ = 7; - sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - double sigma_y; - current_statement__ = 8; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + double beta = in__.template read(); + Eigen::Matrix eta1 = + in__.template read>(J); + Eigen::Matrix eta2 = + in__.template read>(J); + double mu_a1 = in__.template read(); + double mu_a2 = in__.template read(); + double sigma_a1 = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_a2 = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix a1 = Eigen::Matrix::Constant(J, std::numeric_limits::quiet_NaN()); @@ -25310,23 +24485,15 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ theta; - current_statement__ = 1; - theta = in__.template read(); - local_scalar_t__ phi; - current_statement__ = 2; - phi = in__.template read(); - Eigen::Matrix x_matrix; - current_statement__ = 3; - x_matrix = in__.template read>(3, - 2); - Eigen::Matrix x_vector; - current_statement__ = 4; - x_vector = in__.template read>(2); - Eigen::Matrix x_cov; - current_statement__ = 5; - x_cov = in__.template read_constrain_cov_matrix< - Eigen::Matrix, jacobian__>(lp__, 2); + local_scalar_t__ theta = in__.template read(); + local_scalar_t__ phi = in__.template read(); + Eigen::Matrix x_matrix = + in__.template read>(3, 2); + Eigen::Matrix x_vector = + in__.template read>(2); + Eigen::Matrix x_cov = + in__.template read_constrain_cov_matrix< + Eigen::Matrix, jacobian__>(lp__, 2); { local_scalar_t__ x = DUMMY_VAR__; { @@ -25635,25 +24802,15 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ theta; - current_statement__ = 1; - theta = in__.template read(); - local_scalar_t__ phi; - current_statement__ = 2; - phi = in__.template read(); - stan::math::var_value> x_matrix; - current_statement__ = 3; - x_matrix = in__.template read< - stan::math::var_value>>(3, 2); - stan::math::var_value> x_vector; - current_statement__ = 4; - x_vector = in__.template read< - stan::math::var_value>>(2); - stan::math::var_value> x_cov; - current_statement__ = 5; - x_cov = in__.template read_constrain_cov_matrix< - stan::math::var_value>, - jacobian__>(lp__, 2); + local_scalar_t__ theta = in__.template read(); + local_scalar_t__ phi = in__.template read(); + stan::math::var_value> x_matrix = + in__.template read>(3, 2); + stan::math::var_value> x_vector = + in__.template read>(2); + stan::math::var_value> x_cov = + in__.template read_constrain_cov_matrix< + Eigen::Matrix, jacobian__>(lp__, 2); { local_scalar_t__ x = DUMMY_VAR__; { @@ -25973,23 +25130,15 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double theta; - current_statement__ = 1; - theta = in__.template read(); - double phi; - current_statement__ = 2; - phi = in__.template read(); - Eigen::Matrix x_matrix; - current_statement__ = 3; - x_matrix = in__.template read>(3, - 2); - Eigen::Matrix x_vector; - current_statement__ = 4; - x_vector = in__.template read>(2); - Eigen::Matrix x_cov; - current_statement__ = 5; - x_cov = in__.template read_constrain_cov_matrix< - Eigen::Matrix, jacobian__>(lp__, 2); + double theta = in__.template read(); + double phi = in__.template read(); + Eigen::Matrix x_matrix = + in__.template read>(3, 2); + Eigen::Matrix x_vector = + in__.template read>(2); + Eigen::Matrix x_cov = + in__.template read_constrain_cov_matrix< + Eigen::Matrix, jacobian__>(lp__, 2); out__.write(theta); out__.write(phi); out__.write(x_matrix); @@ -27529,16 +26678,12 @@ class partial_eval_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 17; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 17; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 18; context__.validate_dims("data initialization", "n_pair", "int", std::vector{}); n_pair = std::numeric_limits::min(); current_statement__ = 18; - n_pair = context__.vals_i("n_pair")[(1 - 1)]; - current_statement__ = 18; stan::math::check_greater_or_equal(function__, "n_pair", n_pair, 0); current_statement__ = 19; stan::math::validate_non_negative_index("pair", "N", N); @@ -27547,8 +26692,6 @@ class partial_eval_model final : public model_base_crtp { std::vector{static_cast(N)}); pair = std::vector(N, std::numeric_limits::min()); current_statement__ = 20; - pair = context__.vals_i("pair"); - current_statement__ = 20; stan::math::check_greater_or_equal(function__, "pair", pair, 1); current_statement__ = 20; stan::math::check_less_or_equal(function__, "pair", pair, n_pair); @@ -27561,17 +26704,6 @@ class partial_eval_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&pre_test) Eigen::Map>(pre_test_data__.data(), N); - { - std::vector pre_test_flat__; - current_statement__ = 22; - pre_test_flat__ = context__.vals_r("pre_test"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(pre_test, pre_test_flat__[(pos__ - 1)], - "assigning variable pre_test", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 23; stan::math::validate_non_negative_index("treatment", "N", N); current_statement__ = 24; @@ -27581,17 +26713,6 @@ class partial_eval_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&treatment) Eigen::Map>(treatment_data__.data(), N); - { - std::vector treatment_flat__; - current_statement__ = 24; - treatment_flat__ = context__.vals_r("treatment"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(treatment, treatment_flat__[(pos__ - 1)], - "assigning variable treatment", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 24; stan::math::check_greater_or_equal(function__, "treatment", treatment, 0); @@ -27605,17 +26726,6 @@ class partial_eval_model final : public model_base_crtp { y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); - { - std::vector y_flat__; - current_statement__ = 26; - y_flat__ = context__.vals_r("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 27; stan::math::validate_non_negative_index("a", "n_pair", n_pair); current_statement__ = 28; @@ -27656,23 +26766,17 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix a; - current_statement__ = 1; - a = in__.template read>(n_pair); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read>(2); - local_scalar_t__ mu_a; - current_statement__ = 3; - mu_a = in__.template read(); - local_scalar_t__ sigma_a; - current_statement__ = 4; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y; - current_statement__ = 5; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + Eigen::Matrix a = + in__.template read>(n_pair); + Eigen::Matrix beta = + in__.template read>(2); + local_scalar_t__ mu_a = in__.template read(); + local_scalar_t__ sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 8; @@ -27745,23 +26849,17 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix a; - current_statement__ = 1; - a = in__.template read>(n_pair); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read>(2); - local_scalar_t__ mu_a; - current_statement__ = 3; - mu_a = in__.template read(); - local_scalar_t__ sigma_a; - current_statement__ = 4; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y; - current_statement__ = 5; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + Eigen::Matrix a = + in__.template read>(n_pair); + Eigen::Matrix beta = + in__.template read>(2); + local_scalar_t__ mu_a = in__.template read(); + local_scalar_t__ sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + local_scalar_t__ sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 8; @@ -27845,23 +26943,17 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix a; - current_statement__ = 1; - a = in__.template read>(n_pair); - Eigen::Matrix beta; - current_statement__ = 2; - beta = in__.template read>(2); - double mu_a; - current_statement__ = 3; - mu_a = in__.template read(); - double sigma_a; - current_statement__ = 4; - sigma_a = in__.template read_constrain_lub(0, 100, lp__); - double sigma_y; - current_statement__ = 5; - sigma_y = in__.template read_constrain_lub(0, 100, lp__); + Eigen::Matrix a = + in__.template read>(n_pair); + Eigen::Matrix beta = + in__.template read>(2); + double mu_a = in__.template read(); + double sigma_a = + in__.template read_constrain_lub(0, + 100, lp__); + double sigma_y = + in__.template read_constrain_lub(0, + 100, lp__); Eigen::Matrix y_hat = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); @@ -28255,20 +27347,6 @@ class partial_eval_multiply_model final : public model_base_crtp::quiet_NaN()); new (&m1) Eigen::Map>(m1_data__.data(), 10, 10); - { - std::vector m1_flat__; - current_statement__ = 7; - m1_flat__ = context__.vals_r("m1"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 8; context__.validate_dims("data initialization", "m4", "double", std::vector{static_cast(10), static_cast(10)}); @@ -28276,32 +27354,14 @@ class partial_eval_multiply_model final : public model_base_crtp::quiet_NaN()); new (&m4) Eigen::Map>(m4_data__.data(), 10, 10); - { - std::vector m4_flat__; - current_statement__ = 8; - m4_flat__ = context__.vals_r("m4"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { - stan::model::assign(m4, m4_flat__[(pos__ - 1)], - "assigning variable m4", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 9; context__.validate_dims("data initialization", "idx", "int", std::vector{static_cast(10)}); idx = std::vector(10, std::numeric_limits::min()); - current_statement__ = 9; - idx = context__.vals_i("idx"); current_statement__ = 10; context__.validate_dims("data initialization", "idy", "int", std::vector{static_cast(10)}); idy = std::vector(10, std::numeric_limits::min()); - current_statement__ = 10; - idy = context__.vals_i("idy"); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -28338,12 +27398,10 @@ class partial_eval_multiply_model final : public model_base_crtp m2; - current_statement__ = 1; - m2 = in__.template read>(10, 10); - Eigen::Matrix m3; - current_statement__ = 2; - m3 = in__.template read>(10, 10); + Eigen::Matrix m2 = + in__.template read>(10, 10); + Eigen::Matrix m3 = + in__.template read>(10, 10); { Eigen::Matrix m5; current_statement__ = 3; @@ -28396,14 +27454,10 @@ class partial_eval_multiply_model final : public model_base_crtp> m2; - current_statement__ = 1; - m2 = in__.template read< - stan::math::var_value>>(10, 10); - stan::math::var_value> m3; - current_statement__ = 2; - m3 = in__.template read< - stan::math::var_value>>(10, 10); + stan::math::var_value> m2 = + in__.template read>(10, 10); + stan::math::var_value> m3 = + in__.template read>(10, 10); { stan::math::var_value> m5; current_statement__ = 3; @@ -28467,12 +27521,10 @@ class partial_eval_multiply_model final : public model_base_crtp m2; - current_statement__ = 1; - m2 = in__.template read>(10, 10); - Eigen::Matrix m3; - current_statement__ = 2; - m3 = in__.template read>(10, 10); + Eigen::Matrix m2 = + in__.template read>(10, 10); + Eigen::Matrix m3 = + in__.template read>(10, 10); out__.write(m2); out__.write(m3); if (stan::math::logical_negation( @@ -29156,8 +28208,6 @@ class stalled1_failure_model final : public model_base_crtp{}); I = std::numeric_limits::min(); current_statement__ = 18; - I = context__.vals_i("I")[(1 - 1)]; - current_statement__ = 18; stan::math::check_greater_or_equal(function__, "I", I, 0); current_statement__ = 19; stan::math::validate_non_negative_index("n", "I", I); @@ -29166,8 +28216,6 @@ class stalled1_failure_model final : public model_base_crtp{static_cast(I)}); n = std::vector(I, std::numeric_limits::min()); current_statement__ = 20; - n = context__.vals_i("n"); - current_statement__ = 20; stan::math::check_greater_or_equal(function__, "n", n, 0); current_statement__ = 21; stan::math::validate_non_negative_index("N", "I", I); @@ -29176,8 +28224,6 @@ class stalled1_failure_model final : public model_base_crtp{static_cast(I)}); N = std::vector(I, std::numeric_limits::min()); current_statement__ = 22; - N = context__.vals_i("N"); - current_statement__ = 22; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 23; stan::math::validate_non_negative_index("x1", "I", I); @@ -29187,17 +28233,6 @@ class stalled1_failure_model final : public model_base_crtp::Constant(I, std::numeric_limits::quiet_NaN()); new (&x1) Eigen::Map>(x1_data__.data(), I); - { - std::vector x1_flat__; - current_statement__ = 24; - x1_flat__ = context__.vals_r("x1"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= I; ++sym1__) { - stan::model::assign(x1, x1_flat__[(pos__ - 1)], - "assigning variable x1", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 25; stan::math::validate_non_negative_index("x2", "I", I); current_statement__ = 26; @@ -29206,17 +28241,6 @@ class stalled1_failure_model final : public model_base_crtp::Constant(I, std::numeric_limits::quiet_NaN()); new (&x2) Eigen::Map>(x2_data__.data(), I); - { - std::vector x2_flat__; - current_statement__ = 26; - x2_flat__ = context__.vals_r("x2"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= I; ++sym1__) { - stan::model::assign(x2, x2_flat__[(pos__ - 1)], - "assigning variable x2", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 27; K = std::numeric_limits::min(); current_statement__ = 28; @@ -29271,26 +28295,16 @@ class stalled1_failure_model final : public model_base_crtp(); - local_scalar_t__ alpha1; - current_statement__ = 2; - alpha1 = in__.template read(); - local_scalar_t__ alpha2; - current_statement__ = 3; - alpha2 = in__.template read(); - local_scalar_t__ alpha12; - current_statement__ = 4; - alpha12 = in__.template read(); - local_scalar_t__ tau; - current_statement__ = 5; - tau = in__.template read_constrain_lb(0, - lp__); - std::vector> b; - current_statement__ = 6; - b = in__.template read< - std::vector>>(I, 8); + local_scalar_t__ alpha0 = in__.template read(); + local_scalar_t__ alpha1 = in__.template read(); + local_scalar_t__ alpha2 = in__.template read(); + local_scalar_t__ alpha12 = in__.template read(); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); + std::vector> b = + in__.template read< + std::vector>>(I, 8); local_scalar_t__ sigma; current_statement__ = 8; sigma = (1 / stan::math::sqrt(tau)); @@ -29361,27 +28375,16 @@ class stalled1_failure_model final : public model_base_crtp(); - local_scalar_t__ alpha1; - current_statement__ = 2; - alpha1 = in__.template read(); - local_scalar_t__ alpha2; - current_statement__ = 3; - alpha2 = in__.template read(); - local_scalar_t__ alpha12; - current_statement__ = 4; - alpha12 = in__.template read(); - local_scalar_t__ tau; - current_statement__ = 5; - tau = in__.template read_constrain_lb(0, - lp__); - std::vector>> b; - current_statement__ = 6; - b = in__.template read< - std::vector>>>(I, - 8); + local_scalar_t__ alpha0 = in__.template read(); + local_scalar_t__ alpha1 = in__.template read(); + local_scalar_t__ alpha2 = in__.template read(); + local_scalar_t__ alpha12 = in__.template read(); + local_scalar_t__ tau = + in__.template read_constrain_lb(0, + lp__); + std::vector>> b = + in__.template read< + std::vector>>(I, 8); local_scalar_t__ sigma; current_statement__ = 8; sigma = (1 / stan::math::sqrt(tau)); @@ -29463,26 +28466,16 @@ class stalled1_failure_model final : public model_base_crtp(); - double alpha1; - current_statement__ = 2; - alpha1 = in__.template read(); - double alpha2; - current_statement__ = 3; - alpha2 = in__.template read(); - double alpha12; - current_statement__ = 4; - alpha12 = in__.template read(); - double tau; - current_statement__ = 5; - tau = in__.template read_constrain_lb(0, - lp__); - std::vector> b; - current_statement__ = 6; - b = in__.template read< - std::vector>>(I, 8); + double alpha0 = in__.template read(); + double alpha1 = in__.template read(); + double alpha2 = in__.template read(); + double alpha12 = in__.template read(); + double tau = + in__.template read_constrain_lb(0, + lp__); + std::vector> b = + in__.template read< + std::vector>>(I, 8); double sigma = std::numeric_limits::quiet_NaN(); out__.write(alpha0); out__.write(alpha1); @@ -29899,9 +28892,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + local_scalar_t__ param = in__.template read(); std::vector> local; current_statement__ = 2; stan::model::assign(local, inputs, "assigning variable local"); @@ -29950,9 +28941,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + local_scalar_t__ param = in__.template read(); std::vector> local; current_statement__ = 2; stan::model::assign(local, inputs, "assigning variable local"); @@ -30012,9 +29001,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + double param = in__.template read(); std::vector> local = std::vector>(2, Eigen::Matrix::Constant(5, @@ -30335,9 +29322,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + local_scalar_t__ y = in__.template read(); local_scalar_t__ no_init = DUMMY_VAR__; local_scalar_t__ init_from_param; current_statement__ = 3; @@ -30389,9 +29374,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + local_scalar_t__ y = in__.template read(); local_scalar_t__ no_init = DUMMY_VAR__; local_scalar_t__ init_from_param; current_statement__ = 3; @@ -30454,9 +29437,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + double y = in__.template read(); double no_init = std::numeric_limits::quiet_NaN(); double init_from_param = std::numeric_limits::quiet_NaN(); double dependent_no_init = std::numeric_limits::quiet_NaN(); diff --git a/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected b/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected index 3f4ace7c4..114c760fe 100644 --- a/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected +++ b/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected @@ -81,8 +81,6 @@ class ad_scalar_data_matrix_model final : public model_base_crtp{}); N = std::numeric_limits::min(); - current_statement__ = 35; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 36; stan::math::validate_non_negative_index("X_data", "N", N); current_statement__ = 37; @@ -94,20 +92,6 @@ class ad_scalar_data_matrix_model final : public model_base_crtp::quiet_NaN()); new (&X_data) Eigen::Map>(X_data_data__.data(), N, N); - { - std::vector X_data_flat__; - current_statement__ = 38; - X_data_flat__ = context__.vals_r("X_data"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], - "assigning variable X_data", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 39; stan::math::validate_non_negative_index("y_data", "N", N); current_statement__ = 40; @@ -117,17 +101,6 @@ class ad_scalar_data_matrix_model final : public model_base_crtp::quiet_NaN()); new (&y_data) Eigen::Map>(y_data_data__.data(), N); - { - std::vector y_data_flat__; - current_statement__ = 40; - y_data_flat__ = context__.vals_r("y_data"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(y_data, y_data_flat__[(pos__ - 1)], - "assigning variable y_data", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 41; stan::math::validate_non_negative_index("beta", "N", N); } catch (const std::exception& e) { @@ -166,16 +139,10 @@ class ad_scalar_data_matrix_model final : public model_base_crtp(); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 2; - sigma = in__.template read(); + local_scalar_t__ alpha = in__.template read(); + local_scalar_t__ sigma = in__.template read(); Eigen::Matrix beta = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 3; - beta = in__.template read>(N); + in__.template read>(N); { current_statement__ = 4; stan::math::validate_non_negative_index("soa_simple", "N", N); @@ -332,19 +299,10 @@ class ad_scalar_data_matrix_model final : public model_base_crtp(); - local_scalar_t__ sigma = DUMMY_VAR__; - current_statement__ = 2; - sigma = in__.template read(); + local_scalar_t__ alpha = in__.template read(); + local_scalar_t__ sigma = in__.template read(); stan::math::var_value> beta = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 3; - beta = in__.template read< - stan::math::var_value>>(N); + in__.template read>(N); { current_statement__ = 4; stan::math::validate_non_negative_index("soa_simple", "N", N); @@ -533,17 +491,10 @@ class ad_scalar_data_matrix_model final : public model_base_crtp::quiet_NaN(); - current_statement__ = 1; - alpha = in__.template read(); - double sigma = std::numeric_limits::quiet_NaN(); - current_statement__ = 2; - sigma = in__.template read(); + double alpha = in__.template read(); + double sigma = in__.template read(); Eigen::Matrix beta = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - beta = in__.template read>(N); + in__.template read>(N); out__.write(alpha); out__.write(sigma); out__.write(beta); @@ -857,9 +808,7 @@ class complex_fails_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix A_p = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 1; - A_p = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix,-1,-1> A_complex_tp = Eigen::Matrix,-1,-1>::Constant(10, 10, std::complex(DUMMY_VAR__, DUMMY_VAR__)); @@ -897,9 +846,7 @@ class complex_fails_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix A_p = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 1; - A_p = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix,-1,-1> A_complex_tp = Eigen::Matrix,-1,-1>::Constant(10, 10, std::complex(DUMMY_VAR__, DUMMY_VAR__)); @@ -948,10 +895,7 @@ class complex_fails_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix A_p = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - A_p = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix,-1,-1> A_complex_tp = Eigen::Matrix,-1,-1>::Constant(10, 10, std::complex(std::numeric_limits::quiet_NaN(), @@ -1368,16 +1312,12 @@ class constraints_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 51; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 51; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 52; context__.validate_dims("data initialization", "K", "int", std::vector{}); K = std::numeric_limits::min(); current_statement__ = 52; - K = context__.vals_i("K")[(1 - 1)]; - current_statement__ = 52; stan::math::check_greater_or_equal(function__, "K", K, 1); current_statement__ = 53; stan::math::validate_non_negative_index("diff_low_mid", "N", N); @@ -1388,17 +1328,6 @@ class constraints_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&diff_low_mid) Eigen::Map>(diff_low_mid_data__.data(), N); - { - std::vector diff_low_mid_flat__; - current_statement__ = 54; - diff_low_mid_flat__ = context__.vals_r("diff_low_mid"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(diff_low_mid, diff_low_mid_flat__[(pos__ - 1)], - "assigning variable diff_low_mid", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 55; stan::math::validate_non_negative_index("diff_high_mid", "N", N); current_statement__ = 56; @@ -1409,18 +1338,6 @@ class constraints_model final : public model_base_crtp { new (&diff_high_mid) Eigen::Map>(diff_high_mid_data__.data(), N); - { - std::vector diff_high_mid_flat__; - current_statement__ = 56; - diff_high_mid_flat__ = context__.vals_r("diff_high_mid"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(diff_high_mid, diff_high_mid_flat__[(pos__ - - 1)], "assigning variable diff_high_mid", - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 57; stan::math::validate_non_negative_index("mid_price", "N", N); current_statement__ = 58; @@ -1430,17 +1347,6 @@ class constraints_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&mid_price) Eigen::Map>(mid_price_data__.data(), N); - { - std::vector mid_price_flat__; - current_statement__ = 58; - mid_price_flat__ = context__.vals_r("mid_price"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(mid_price, mid_price_flat__[(pos__ - 1)], - "assigning variable mid_price", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 59; stan::math::validate_non_negative_index("X_all", "N", N); current_statement__ = 60; @@ -1452,27 +1358,11 @@ class constraints_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&X_all) Eigen::Map>(X_all_data__.data(), N, K); - { - std::vector X_all_flat__; - current_statement__ = 61; - X_all_flat__ = context__.vals_r("X_all"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= K; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(X_all, X_all_flat__[(pos__ - 1)], - "assigning variable X_all", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 62; context__.validate_dims("data initialization", "phi_prior_a", "double", std::vector{}); phi_prior_a = std::numeric_limits::quiet_NaN(); current_statement__ = 62; - phi_prior_a = context__.vals_r("phi_prior_a")[(1 - 1)]; - current_statement__ = 62; stan::math::check_greater_or_equal(function__, "phi_prior_a", phi_prior_a, 0); current_statement__ = 63; @@ -1480,23 +1370,17 @@ class constraints_model final : public model_base_crtp { std::vector{}); phi_prior_b = std::numeric_limits::quiet_NaN(); current_statement__ = 63; - phi_prior_b = context__.vals_r("phi_prior_b")[(1 - 1)]; - current_statement__ = 63; stan::math::check_greater_or_equal(function__, "phi_prior_b", phi_prior_b, 0); current_statement__ = 64; context__.validate_dims("data initialization", "mu_prior_mu", "double", std::vector{}); mu_prior_mu = std::numeric_limits::quiet_NaN(); - current_statement__ = 64; - mu_prior_mu = context__.vals_r("mu_prior_mu")[(1 - 1)]; current_statement__ = 65; context__.validate_dims("data initialization", "mu_prior_sigma", "double", std::vector{}); mu_prior_sigma = std::numeric_limits::quiet_NaN(); current_statement__ = 65; - mu_prior_sigma = context__.vals_r("mu_prior_sigma")[(1 - 1)]; - current_statement__ = 65; stan::math::check_greater_or_equal(function__, "mu_prior_sigma", mu_prior_sigma, 0); current_statement__ = 66; @@ -1504,8 +1388,6 @@ class constraints_model final : public model_base_crtp { "double", std::vector{}); sigma_prior_shape = std::numeric_limits::quiet_NaN(); current_statement__ = 66; - sigma_prior_shape = context__.vals_r("sigma_prior_shape")[(1 - 1)]; - current_statement__ = 66; stan::math::check_greater_or_equal(function__, "sigma_prior_shape", sigma_prior_shape, 0); current_statement__ = 67; @@ -1513,8 +1395,6 @@ class constraints_model final : public model_base_crtp { "double", std::vector{}); sigma_prior_rate = std::numeric_limits::quiet_NaN(); current_statement__ = 67; - sigma_prior_rate = context__.vals_r("sigma_prior_rate")[(1 - 1)]; - current_statement__ = 67; stan::math::check_greater_or_equal(function__, "sigma_prior_rate", sigma_prior_rate, 0); current_statement__ = 68; @@ -1619,11 +1499,9 @@ class constraints_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix high_low_est = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 1; - high_low_est = in__.template read_constrain_lub< - Eigen::Matrix, - jacobian__>(diff_low_mid, diff_high_mid, lp__, N); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(diff_low_mid, + diff_high_mid, lp__, N); current_statement__ = 1; stan::math::check_matching_dims("constraint", "high_low_est", high_low_est, "lower", diff_low_mid); @@ -1631,57 +1509,32 @@ class constraints_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "high_low_est", high_low_est, "upper", diff_high_mid); Eigen::Matrix b = - Eigen::Matrix::Constant(K, DUMMY_VAR__); - current_statement__ = 2; - b = in__.template read>(K); + in__.template read>(K); Eigen::Matrix h = - Eigen::Matrix::Constant(Nr, DUMMY_VAR__); - current_statement__ = 3; - h = in__.template read>(Nr); + in__.template read>(Nr); Eigen::Matrix ar = - Eigen::Matrix::Constant(2, DUMMY_VAR__); - current_statement__ = 4; - ar = in__.template read>(2); - local_scalar_t__ ma = DUMMY_VAR__; - current_statement__ = 5; - ma = in__.template read(); - local_scalar_t__ phi_beta = DUMMY_VAR__; - current_statement__ = 6; - phi_beta = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ sigma2 = DUMMY_VAR__; - current_statement__ = 7; - sigma2 = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ Intercept = DUMMY_VAR__; - current_statement__ = 8; - Intercept = in__.template read(); + in__.template read>(2); + local_scalar_t__ ma = in__.template read(); + local_scalar_t__ phi_beta = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ sigma2 = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ Intercept = in__.template read(); Eigen::Matrix mean_price = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 9; - mean_price = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); Eigen::Matrix sigma_price = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 10; - sigma_price = in__.template read_constrain_lb< - Eigen::Matrix, jacobian__>(0.0, - lp__, N); - local_scalar_t__ theta = DUMMY_VAR__; - current_statement__ = 11; - theta = in__.template read(); + in__.template read_constrain_lb, + jacobian__>(0.0, lp__, N); + local_scalar_t__ theta = in__.template read(); Eigen::Matrix upper_test = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 12; - upper_test = in__.template read_constrain_ub< - Eigen::Matrix, jacobian__>(ma, - lp__, N); + in__.template read_constrain_ub, + jacobian__>(ma, lp__, N); Eigen::Matrix lower_upper_test = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 13; - lower_upper_test = in__.template read_constrain_lub< - Eigen::Matrix, - jacobian__>(sigma_price, upper_test, lp__, N); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(sigma_price, + upper_test, lp__, N); current_statement__ = 13; stan::math::check_matching_dims("constraint", "lower_upper_test", lower_upper_test, "lower", sigma_price); @@ -1689,14 +1542,10 @@ class constraints_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "lower_upper_test", lower_upper_test, "upper", upper_test); Eigen::Matrix row_vec_lower_upper_test = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 14; - row_vec_lower_upper_test = in__.template read_constrain_lub< - Eigen::Matrix, - jacobian__>(stan::math::transpose( - sigma_price), - stan::math::transpose(upper_test), lp__, - N); + in__.template read_constrain_lub< + Eigen::Matrix, + jacobian__>(stan::math::transpose(sigma_price), + stan::math::transpose(upper_test), lp__, N); current_statement__ = 14; stan::math::check_matching_dims("constraint", "row_vec_lower_upper_test", row_vec_lower_upper_test, "lower", @@ -1706,11 +1555,9 @@ class constraints_model final : public model_base_crtp { "row_vec_lower_upper_test", row_vec_lower_upper_test, "upper", stan::math::transpose(upper_test)); Eigen::Matrix offset_mult_test = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 15; - offset_mult_test = in__.template read_constrain_offset_multiplier< - Eigen::Matrix, - jacobian__>(mean_price, sigma_price, lp__, N); + in__.template read_constrain_offset_multiplier< + Eigen::Matrix, jacobian__>(mean_price, + sigma_price, lp__, N); current_statement__ = 15; stan::math::check_matching_dims("constraint", "offset_mult_test", offset_mult_test, "offset", mean_price); @@ -1718,47 +1565,26 @@ class constraints_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "offset_mult_test", offset_mult_test, "multiplier", sigma_price); Eigen::Matrix ordered_test = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 16; - ordered_test = in__.template read_constrain_ordered< - Eigen::Matrix, - jacobian__>(lp__, N); + in__.template read_constrain_ordered< + Eigen::Matrix, jacobian__>(lp__, N); Eigen::Matrix unit_vec_test = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 17; - unit_vec_test = in__.template read_constrain_unit_vector< - Eigen::Matrix, - jacobian__>(lp__, N); + in__.template read_constrain_unit_vector< + Eigen::Matrix, jacobian__>(lp__, N); Eigen::Matrix pos_ordered_test = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 18; - pos_ordered_test = in__.template read_constrain_positive_ordered< - Eigen::Matrix, - jacobian__>(lp__, N); + in__.template read_constrain_positive_ordered< + Eigen::Matrix, jacobian__>(lp__, N); Eigen::Matrix corr_matrix_test = - Eigen::Matrix::Constant(N, N, DUMMY_VAR__); - current_statement__ = 19; - corr_matrix_test = in__.template read_constrain_corr_matrix< - Eigen::Matrix, - jacobian__>(lp__, N); + in__.template read_constrain_corr_matrix< + Eigen::Matrix, jacobian__>(lp__, N); Eigen::Matrix cov_matrix_test = - Eigen::Matrix::Constant(N, N, DUMMY_VAR__); - current_statement__ = 20; - cov_matrix_test = in__.template read_constrain_cov_matrix< - Eigen::Matrix, - jacobian__>(lp__, N); + in__.template read_constrain_cov_matrix< + Eigen::Matrix, jacobian__>(lp__, N); Eigen::Matrix chol_fac_cov_test = - Eigen::Matrix::Constant(K, K, DUMMY_VAR__); - current_statement__ = 21; - chol_fac_cov_test = in__.template read_constrain_cholesky_factor_cov< - Eigen::Matrix, - jacobian__>(lp__, K, K); + in__.template read_constrain_cholesky_factor_cov< + Eigen::Matrix, jacobian__>(lp__, K, K); Eigen::Matrix chol_fac_corr_test = - Eigen::Matrix::Constant(K, K, DUMMY_VAR__); - current_statement__ = 22; - chol_fac_corr_test = in__.template read_constrain_cholesky_factor_corr< - Eigen::Matrix, - jacobian__>(lp__, K); + in__.template read_constrain_cholesky_factor_corr< + Eigen::Matrix, jacobian__>(lp__, K); local_scalar_t__ phi = DUMMY_VAR__; current_statement__ = 23; phi = stan::math::fma(phi_beta, 2.0, -(1.0)); @@ -1925,13 +1751,9 @@ class constraints_model final : public model_base_crtp { (void) function__; try { stan::math::var_value> high_low_est = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 1; - high_low_est = in__.template read_constrain_lub< - stan::math::var_value>, - jacobian__>(diff_low_mid, diff_high_mid, lp__, N); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(diff_low_mid, + diff_high_mid, lp__, N); current_statement__ = 1; stan::math::check_matching_dims("constraint", "high_low_est", high_low_est, "lower", diff_low_mid); @@ -1939,74 +1761,32 @@ class constraints_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "high_low_est", high_low_est, "upper", diff_high_mid); stan::math::var_value> b = - stan::math::var_value>(Eigen::Matrix::Constant(K, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 2; - b = in__.template read< - stan::math::var_value>>(K); + in__.template read>(K); stan::math::var_value> h = - stan::math::var_value>(Eigen::Matrix::Constant(Nr, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 3; - h = in__.template read< - stan::math::var_value>>(Nr); + in__.template read>(Nr); stan::math::var_value> ar = - stan::math::var_value>(Eigen::Matrix::Constant(2, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 4; - ar = in__.template read< - stan::math::var_value>>(2); - local_scalar_t__ ma = DUMMY_VAR__; - current_statement__ = 5; - ma = in__.template read(); - local_scalar_t__ phi_beta = DUMMY_VAR__; - current_statement__ = 6; - phi_beta = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ sigma2 = DUMMY_VAR__; - current_statement__ = 7; - sigma2 = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ Intercept = DUMMY_VAR__; - current_statement__ = 8; - Intercept = in__.template read(); + in__.template read>(2); + local_scalar_t__ ma = in__.template read(); + local_scalar_t__ phi_beta = + in__.template read_constrain_lub(0, 1, + lp__); + local_scalar_t__ sigma2 = + in__.template read_constrain_lb(0, + lp__); + local_scalar_t__ Intercept = in__.template read(); stan::math::var_value> mean_price = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 9; - mean_price = in__.template read< - stan::math::var_value>>(N); + in__.template read>(N); stan::math::var_value> sigma_price = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 10; - sigma_price = in__.template read_constrain_lb< - stan::math::var_value>, - jacobian__>(0.0, lp__, N); - local_scalar_t__ theta = DUMMY_VAR__; - current_statement__ = 11; - theta = in__.template read(); + in__.template read_constrain_lb, + jacobian__>(0.0, lp__, N); + local_scalar_t__ theta = in__.template read(); stan::math::var_value> upper_test = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 12; - upper_test = in__.template read_constrain_ub< - stan::math::var_value>, - jacobian__>(ma, lp__, N); + in__.template read_constrain_ub, + jacobian__>(ma, lp__, N); stan::math::var_value> lower_upper_test = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 13; - lower_upper_test = in__.template read_constrain_lub< - stan::math::var_value>, - jacobian__>(sigma_price, upper_test, lp__, N); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(sigma_price, + upper_test, lp__, N); current_statement__ = 13; stan::math::check_matching_dims("constraint", "lower_upper_test", lower_upper_test, "lower", sigma_price); @@ -2015,16 +1795,10 @@ class constraints_model final : public model_base_crtp { lower_upper_test, "upper", upper_test); stan::math::var_value> row_vec_lower_upper_test = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 14; - row_vec_lower_upper_test = in__.template read_constrain_lub< - stan::math::var_value>, - jacobian__>(stan::math::transpose( - sigma_price), - stan::math::transpose(upper_test), lp__, - N); + in__.template read_constrain_lub< + Eigen::Matrix, + jacobian__>(stan::math::transpose(sigma_price), + stan::math::transpose(upper_test), lp__, N); current_statement__ = 14; stan::math::check_matching_dims("constraint", "row_vec_lower_upper_test", row_vec_lower_upper_test, "lower", @@ -2034,13 +1808,9 @@ class constraints_model final : public model_base_crtp { "row_vec_lower_upper_test", row_vec_lower_upper_test, "upper", stan::math::transpose(upper_test)); stan::math::var_value> offset_mult_test = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 15; - offset_mult_test = in__.template read_constrain_offset_multiplier< - stan::math::var_value>, - jacobian__>(mean_price, sigma_price, lp__, N); + in__.template read_constrain_offset_multiplier< + Eigen::Matrix, jacobian__>(mean_price, + sigma_price, lp__, N); current_statement__ = 15; stan::math::check_matching_dims("constraint", "offset_mult_test", offset_mult_test, "offset", mean_price); @@ -2048,65 +1818,26 @@ class constraints_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "offset_mult_test", offset_mult_test, "multiplier", sigma_price); stan::math::var_value> ordered_test = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 16; - ordered_test = in__.template read_constrain_ordered< - stan::math::var_value>, - jacobian__>(lp__, N); + in__.template read_constrain_ordered< + Eigen::Matrix, jacobian__>(lp__, N); stan::math::var_value> unit_vec_test = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 17; - unit_vec_test = in__.template read_constrain_unit_vector< - stan::math::var_value>, - jacobian__>(lp__, N); + in__.template read_constrain_unit_vector< + Eigen::Matrix, jacobian__>(lp__, N); stan::math::var_value> pos_ordered_test = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 18; - pos_ordered_test = in__.template read_constrain_positive_ordered< - stan::math::var_value>, - jacobian__>(lp__, N); + in__.template read_constrain_positive_ordered< + Eigen::Matrix, jacobian__>(lp__, N); stan::math::var_value> corr_matrix_test = - stan::math::var_value>(Eigen::Matrix::Constant(N, - N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 19; - corr_matrix_test = in__.template read_constrain_corr_matrix< - stan::math::var_value>, - jacobian__>(lp__, N); + in__.template read_constrain_corr_matrix< + Eigen::Matrix, jacobian__>(lp__, N); stan::math::var_value> cov_matrix_test = - stan::math::var_value>(Eigen::Matrix::Constant(N, - N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 20; - cov_matrix_test = in__.template read_constrain_cov_matrix< - stan::math::var_value>, - jacobian__>(lp__, N); + in__.template read_constrain_cov_matrix< + Eigen::Matrix, jacobian__>(lp__, N); stan::math::var_value> chol_fac_cov_test = - stan::math::var_value>(Eigen::Matrix::Constant(K, - K, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 21; - chol_fac_cov_test = in__.template read_constrain_cholesky_factor_cov< - stan::math::var_value>, - jacobian__>(lp__, K, K); + in__.template read_constrain_cholesky_factor_cov< + Eigen::Matrix, jacobian__>(lp__, K, K); stan::math::var_value> chol_fac_corr_test = - stan::math::var_value>(Eigen::Matrix::Constant(K, - K, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 22; - chol_fac_corr_test = in__.template read_constrain_cholesky_factor_corr< - stan::math::var_value>, - jacobian__>(lp__, K); + in__.template read_constrain_cholesky_factor_corr< + Eigen::Matrix, jacobian__>(lp__, K); local_scalar_t__ phi = DUMMY_VAR__; current_statement__ = 23; phi = stan::math::fma(phi_beta, 2.0, -(1.0)); @@ -2298,12 +2029,9 @@ class constraints_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix high_low_est = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - high_low_est = in__.template read_constrain_lub< - Eigen::Matrix, - jacobian__>(diff_low_mid, diff_high_mid, lp__, N); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(diff_low_mid, + diff_high_mid, lp__, N); current_statement__ = 1; stan::math::check_matching_dims("constraint", "high_low_est", high_low_est, "lower", diff_low_mid); @@ -2311,64 +2039,32 @@ class constraints_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "high_low_est", high_low_est, "upper", diff_high_mid); Eigen::Matrix b = - Eigen::Matrix::Constant(K, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - b = in__.template read>(K); + in__.template read>(K); Eigen::Matrix h = - Eigen::Matrix::Constant(Nr, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - h = in__.template read>(Nr); + in__.template read>(Nr); Eigen::Matrix ar = - Eigen::Matrix::Constant(2, - std::numeric_limits::quiet_NaN()); - current_statement__ = 4; - ar = in__.template read>(2); - double ma = std::numeric_limits::quiet_NaN(); - current_statement__ = 5; - ma = in__.template read(); - double phi_beta = std::numeric_limits::quiet_NaN(); - current_statement__ = 6; - phi_beta = in__.template read_constrain_lub(0, 1, lp__); - double sigma2 = std::numeric_limits::quiet_NaN(); - current_statement__ = 7; - sigma2 = in__.template read_constrain_lb(0, lp__); - double Intercept = std::numeric_limits::quiet_NaN(); - current_statement__ = 8; - Intercept = in__.template read(); + in__.template read>(2); + double ma = in__.template read(); + double phi_beta = + in__.template read_constrain_lub(0, 1, + lp__); + double sigma2 = + in__.template read_constrain_lb(0, + lp__); + double Intercept = in__.template read(); Eigen::Matrix mean_price = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 9; - mean_price = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); Eigen::Matrix sigma_price = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 10; - sigma_price = in__.template read_constrain_lb< - Eigen::Matrix, jacobian__>(0.0, - lp__, N); - double theta = std::numeric_limits::quiet_NaN(); - current_statement__ = 11; - theta = in__.template read(); + in__.template read_constrain_lb, + jacobian__>(0.0, lp__, N); + double theta = in__.template read(); Eigen::Matrix upper_test = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 12; - upper_test = in__.template read_constrain_ub< - Eigen::Matrix, jacobian__>(ma, - lp__, N); + in__.template read_constrain_ub, + jacobian__>(ma, lp__, N); Eigen::Matrix lower_upper_test = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 13; - lower_upper_test = in__.template read_constrain_lub< - Eigen::Matrix, - jacobian__>(sigma_price, upper_test, lp__, N); + in__.template read_constrain_lub< + Eigen::Matrix, jacobian__>(sigma_price, + upper_test, lp__, N); current_statement__ = 13; stan::math::check_matching_dims("constraint", "lower_upper_test", lower_upper_test, "lower", sigma_price); @@ -2376,15 +2072,10 @@ class constraints_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "lower_upper_test", lower_upper_test, "upper", upper_test); Eigen::Matrix row_vec_lower_upper_test = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 14; - row_vec_lower_upper_test = in__.template read_constrain_lub< - Eigen::Matrix, - jacobian__>(stan::math::transpose( - sigma_price), - stan::math::transpose(upper_test), lp__, - N); + in__.template read_constrain_lub< + Eigen::Matrix, + jacobian__>(stan::math::transpose(sigma_price), + stan::math::transpose(upper_test), lp__, N); current_statement__ = 14; stan::math::check_matching_dims("constraint", "row_vec_lower_upper_test", row_vec_lower_upper_test, "lower", @@ -2394,12 +2085,9 @@ class constraints_model final : public model_base_crtp { "row_vec_lower_upper_test", row_vec_lower_upper_test, "upper", stan::math::transpose(upper_test)); Eigen::Matrix offset_mult_test = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 15; - offset_mult_test = in__.template read_constrain_offset_multiplier< - Eigen::Matrix, - jacobian__>(mean_price, sigma_price, lp__, N); + in__.template read_constrain_offset_multiplier< + Eigen::Matrix, jacobian__>(mean_price, + sigma_price, lp__, N); current_statement__ = 15; stan::math::check_matching_dims("constraint", "offset_mult_test", offset_mult_test, "offset", mean_price); @@ -2407,54 +2095,26 @@ class constraints_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "offset_mult_test", offset_mult_test, "multiplier", sigma_price); Eigen::Matrix ordered_test = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 16; - ordered_test = in__.template read_constrain_ordered< - Eigen::Matrix, - jacobian__>(lp__, N); + in__.template read_constrain_ordered< + Eigen::Matrix, jacobian__>(lp__, N); Eigen::Matrix unit_vec_test = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 17; - unit_vec_test = in__.template read_constrain_unit_vector< - Eigen::Matrix, - jacobian__>(lp__, N); + in__.template read_constrain_unit_vector< + Eigen::Matrix, jacobian__>(lp__, N); Eigen::Matrix pos_ordered_test = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 18; - pos_ordered_test = in__.template read_constrain_positive_ordered< - Eigen::Matrix, - jacobian__>(lp__, N); + in__.template read_constrain_positive_ordered< + Eigen::Matrix, jacobian__>(lp__, N); Eigen::Matrix corr_matrix_test = - Eigen::Matrix::Constant(N, N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 19; - corr_matrix_test = in__.template read_constrain_corr_matrix< - Eigen::Matrix, - jacobian__>(lp__, N); + in__.template read_constrain_corr_matrix< + Eigen::Matrix, jacobian__>(lp__, N); Eigen::Matrix cov_matrix_test = - Eigen::Matrix::Constant(N, N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 20; - cov_matrix_test = in__.template read_constrain_cov_matrix< - Eigen::Matrix, - jacobian__>(lp__, N); + in__.template read_constrain_cov_matrix< + Eigen::Matrix, jacobian__>(lp__, N); Eigen::Matrix chol_fac_cov_test = - Eigen::Matrix::Constant(K, K, - std::numeric_limits::quiet_NaN()); - current_statement__ = 21; - chol_fac_cov_test = in__.template read_constrain_cholesky_factor_cov< - Eigen::Matrix, - jacobian__>(lp__, K, K); + in__.template read_constrain_cholesky_factor_cov< + Eigen::Matrix, jacobian__>(lp__, K, K); Eigen::Matrix chol_fac_corr_test = - Eigen::Matrix::Constant(K, K, - std::numeric_limits::quiet_NaN()); - current_statement__ = 22; - chol_fac_corr_test = in__.template read_constrain_cholesky_factor_corr< - Eigen::Matrix, - jacobian__>(lp__, K); + in__.template read_constrain_cholesky_factor_corr< + Eigen::Matrix, jacobian__>(lp__, K); double phi = std::numeric_limits::quiet_NaN(); double sigma = std::numeric_limits::quiet_NaN(); Eigen::Matrix prices = @@ -3626,9 +3286,7 @@ class deep_dependence_model final : public model_base_crtp X_p = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 1; - X_p = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); current_statement__ = 2; @@ -3707,9 +3365,7 @@ class deep_dependence_model final : public model_base_crtp X_p = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 1; - X_p = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); current_statement__ = 2; @@ -3799,10 +3455,7 @@ class deep_dependence_model final : public model_base_crtp X_p = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - X_p = in__.template read>(10, 10); + in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, std::numeric_limits::quiet_NaN()); @@ -4416,14 +4069,10 @@ class indexing_model final : public model_base_crtp { context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); - current_statement__ = 69; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 70; context__.validate_dims("data initialization", "M", "int", std::vector{}); M = std::numeric_limits::min(); - current_statement__ = 70; - M = context__.vals_i("M")[(1 - 1)]; current_statement__ = 71; stan::math::validate_non_negative_index("dat_x", "N", N); current_statement__ = 72; @@ -4435,20 +4084,6 @@ class indexing_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&dat_x) Eigen::Map>(dat_x_data__.data(), N, M); - { - std::vector dat_x_flat__; - current_statement__ = 73; - dat_x_flat__ = context__.vals_r("dat_x"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= M; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(dat_x, dat_x_flat__[(pos__ - 1)], - "assigning variable dat_x", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 74; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 75; @@ -4457,25 +4092,12 @@ class indexing_model final : public model_base_crtp { y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); - { - std::vector y_flat__; - current_statement__ = 75; - y_flat__ = context__.vals_r("y"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(y, y_flat__[(pos__ - 1)], - "assigning variable y", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 76; stan::math::validate_non_negative_index("idx_tester", "N", N); current_statement__ = 77; context__.validate_dims("data initialization", "idx_tester", "int", std::vector{static_cast(N)}); idx_tester = std::vector(N, std::numeric_limits::min()); - current_statement__ = 77; - idx_tester = context__.vals_i("idx_tester"); current_statement__ = 78; stan::math::validate_non_negative_index("p_soa_vec_v", "M", M); current_statement__ = 79; @@ -4604,122 +4226,52 @@ class indexing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha = DUMMY_VAR__; - current_statement__ = 1; - alpha = in__.template read(); + local_scalar_t__ alpha = in__.template read(); Eigen::Matrix p_soa_vec_v = - Eigen::Matrix::Constant(M, DUMMY_VAR__); - current_statement__ = 2; - p_soa_vec_v = in__.template read< - Eigen::Matrix>(M); + in__.template read>(M); Eigen::Matrix p_soa_mat = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 3; - p_soa_mat = in__.template read< - Eigen::Matrix>(N, M); + in__.template read>(N, M); std::vector> p_soa_arr_vec_v = - std::vector>(10, - Eigen::Matrix::Constant(N, DUMMY_VAR__)); - current_statement__ = 4; - p_soa_arr_vec_v = in__.template read< - std::vector>>(10, - N); + in__.template read< + std::vector>>(10, N); Eigen::Matrix p_soa_mat_uni_col_idx = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 5; - p_soa_mat_uni_col_idx = in__.template read< - Eigen::Matrix>(N, M); + in__.template read>(N, M); Eigen::Matrix p_soa_vec_uni_idx = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 6; - p_soa_vec_uni_idx = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); Eigen::Matrix p_soa_loop_mat_uni_col_idx = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 7; - p_soa_loop_mat_uni_col_idx = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_soa_lhs_loop_mul = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 8; - p_soa_lhs_loop_mul = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); Eigen::Matrix p_soa_rhs_loop_mul = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 9; - p_soa_rhs_loop_mul = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); Eigen::Matrix p_soa_used_with_aos_in_excluded_fun = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 10; - p_soa_used_with_aos_in_excluded_fun = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); Eigen::Matrix p_soa_loop_mat_multi_uni_uni_idx = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 11; - p_soa_loop_mat_multi_uni_uni_idx = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_vec_v_assign_to_aos = - Eigen::Matrix::Constant(M, DUMMY_VAR__); - current_statement__ = 12; - p_aos_vec_v_assign_to_aos = in__.template read< - Eigen::Matrix>(M); + in__.template read>(M); Eigen::Matrix p_aos_vec_v_tp_fails_func = - Eigen::Matrix::Constant(M, DUMMY_VAR__); - current_statement__ = 13; - p_aos_vec_v_tp_fails_func = in__.template read< - Eigen::Matrix>(M); + in__.template read>(M); Eigen::Matrix p_aos_loop_vec_v_uni_idx = - Eigen::Matrix::Constant(M, DUMMY_VAR__); - current_statement__ = 14; - p_aos_loop_vec_v_uni_idx = in__.template read< - Eigen::Matrix>(M); + in__.template read>(M); Eigen::Matrix p_aos_fail_assign_from_top_idx = - Eigen::Matrix::Constant(M, DUMMY_VAR__); - current_statement__ = 15; - p_aos_fail_assign_from_top_idx = in__.template read< - Eigen::Matrix>(M); + in__.template read>(M); Eigen::Matrix p_aos_loop_mat_uni_uni_idx = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 16; - p_aos_loop_mat_uni_uni_idx = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 17; - p_aos_mat = in__.template read< - Eigen::Matrix>(N, M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat_pass_func_outer_single_indexed1 = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 18; - p_aos_mat_pass_func_outer_single_indexed1 = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat_pass_func_outer_single_indexed2 = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 19; - p_aos_mat_pass_func_outer_single_indexed2 = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat_fail_uni_uni_idx1 = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 20; - p_aos_mat_fail_uni_uni_idx1 = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat_fail_uni_uni_idx2 = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 21; - p_aos_mat_fail_uni_uni_idx2 = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); local_scalar_t__ tp_real_from_aos = DUMMY_VAR__; current_statement__ = 22; tp_real_from_aos = stan::model::rvalue(p_soa_vec_v, "p_soa_vec_v", @@ -5020,151 +4572,55 @@ class indexing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha = DUMMY_VAR__; - current_statement__ = 1; - alpha = in__.template read(); + local_scalar_t__ alpha = in__.template read(); stan::math::var_value> p_soa_vec_v = - stan::math::var_value>(Eigen::Matrix::Constant(M, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 2; - p_soa_vec_v = in__.template read< - stan::math::var_value>>(M); + in__.template read>(M); stan::math::var_value> p_soa_mat = - stan::math::var_value>(Eigen::Matrix::Constant(N, - M, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 3; - p_soa_mat = in__.template read< - stan::math::var_value>>(N, M); + in__.template read>(N, M); std::vector>> p_soa_arr_vec_v = - std::vector>>(10, - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - )))); - current_statement__ = 4; - p_soa_arr_vec_v = in__.template read< - std::vector< - stan::math::var_value>>>(10, - N); + in__.template read< + std::vector>>(10, N); stan::math::var_value> p_soa_mat_uni_col_idx = - stan::math::var_value>(Eigen::Matrix::Constant(N, - M, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 5; - p_soa_mat_uni_col_idx = in__.template read< - stan::math::var_value>>(N, - M); + in__.template read>(N, M); stan::math::var_value> p_soa_vec_uni_idx = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 6; - p_soa_vec_uni_idx = in__.template read< - stan::math::var_value>>(N); + in__.template read>(N); stan::math::var_value> p_soa_loop_mat_uni_col_idx = - stan::math::var_value>(Eigen::Matrix::Constant(N, - M, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 7; - p_soa_loop_mat_uni_col_idx = in__.template read< - stan::math::var_value>>(N, - M); + in__.template read>(N, M); stan::math::var_value> p_soa_lhs_loop_mul = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 8; - p_soa_lhs_loop_mul = in__.template read< - stan::math::var_value>>(N); + in__.template read>(N); stan::math::var_value> p_soa_rhs_loop_mul = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 9; - p_soa_rhs_loop_mul = in__.template read< - stan::math::var_value>>(N); + in__.template read>(N); stan::math::var_value> p_soa_used_with_aos_in_excluded_fun = - stan::math::var_value>(Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 10; - p_soa_used_with_aos_in_excluded_fun = in__.template read< - stan::math::var_value>>(N); + in__.template read>(N); stan::math::var_value> p_soa_loop_mat_multi_uni_uni_idx = - stan::math::var_value>(Eigen::Matrix::Constant(N, - M, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 11; - p_soa_loop_mat_multi_uni_uni_idx = in__.template read< - stan::math::var_value>>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_vec_v_assign_to_aos = - Eigen::Matrix::Constant(M, DUMMY_VAR__); - current_statement__ = 12; - p_aos_vec_v_assign_to_aos = in__.template read< - Eigen::Matrix>(M); + in__.template read>(M); Eigen::Matrix p_aos_vec_v_tp_fails_func = - Eigen::Matrix::Constant(M, DUMMY_VAR__); - current_statement__ = 13; - p_aos_vec_v_tp_fails_func = in__.template read< - Eigen::Matrix>(M); + in__.template read>(M); Eigen::Matrix p_aos_loop_vec_v_uni_idx = - Eigen::Matrix::Constant(M, DUMMY_VAR__); - current_statement__ = 14; - p_aos_loop_vec_v_uni_idx = in__.template read< - Eigen::Matrix>(M); + in__.template read>(M); Eigen::Matrix p_aos_fail_assign_from_top_idx = - Eigen::Matrix::Constant(M, DUMMY_VAR__); - current_statement__ = 15; - p_aos_fail_assign_from_top_idx = in__.template read< - Eigen::Matrix>(M); + in__.template read>(M); Eigen::Matrix p_aos_loop_mat_uni_uni_idx = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 16; - p_aos_loop_mat_uni_uni_idx = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 17; - p_aos_mat = in__.template read< - Eigen::Matrix>(N, M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat_pass_func_outer_single_indexed1 = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 18; - p_aos_mat_pass_func_outer_single_indexed1 = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat_pass_func_outer_single_indexed2 = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 19; - p_aos_mat_pass_func_outer_single_indexed2 = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat_fail_uni_uni_idx1 = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 20; - p_aos_mat_fail_uni_uni_idx1 = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat_fail_uni_uni_idx2 = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 21; - p_aos_mat_fail_uni_uni_idx2 = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); local_scalar_t__ tp_real_from_aos = DUMMY_VAR__; current_statement__ = 22; tp_real_from_aos = stan::model::rvalue(p_soa_vec_v, "p_soa_vec_v", @@ -5489,138 +4945,48 @@ class indexing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double alpha = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - alpha = in__.template read(); + double alpha = in__.template read(); Eigen::Matrix p_soa_vec_v = - Eigen::Matrix::Constant(M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - p_soa_vec_v = in__.template read< - Eigen::Matrix>(M); + in__.template read>(M); Eigen::Matrix p_soa_mat = - Eigen::Matrix::Constant(N, M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - p_soa_mat = in__.template read< - Eigen::Matrix>(N, M); + in__.template read>(N, M); std::vector> p_soa_arr_vec_v = - std::vector>(10, - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN())); - current_statement__ = 4; - p_soa_arr_vec_v = in__.template read< - std::vector>>(10, - N); + in__.template read< + std::vector>>(10, N); Eigen::Matrix p_soa_mat_uni_col_idx = - Eigen::Matrix::Constant(N, M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - p_soa_mat_uni_col_idx = in__.template read< - Eigen::Matrix>(N, M); + in__.template read>(N, M); Eigen::Matrix p_soa_vec_uni_idx = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 6; - p_soa_vec_uni_idx = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); Eigen::Matrix p_soa_loop_mat_uni_col_idx = - Eigen::Matrix::Constant(N, M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 7; - p_soa_loop_mat_uni_col_idx = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_soa_lhs_loop_mul = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 8; - p_soa_lhs_loop_mul = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); Eigen::Matrix p_soa_rhs_loop_mul = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 9; - p_soa_rhs_loop_mul = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); Eigen::Matrix p_soa_used_with_aos_in_excluded_fun = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 10; - p_soa_used_with_aos_in_excluded_fun = in__.template read< - Eigen::Matrix>(N); + in__.template read>(N); Eigen::Matrix p_soa_loop_mat_multi_uni_uni_idx = - Eigen::Matrix::Constant(N, M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 11; - p_soa_loop_mat_multi_uni_uni_idx = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_vec_v_assign_to_aos = - Eigen::Matrix::Constant(M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 12; - p_aos_vec_v_assign_to_aos = in__.template read< - Eigen::Matrix>(M); + in__.template read>(M); Eigen::Matrix p_aos_vec_v_tp_fails_func = - Eigen::Matrix::Constant(M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 13; - p_aos_vec_v_tp_fails_func = in__.template read< - Eigen::Matrix>(M); + in__.template read>(M); Eigen::Matrix p_aos_loop_vec_v_uni_idx = - Eigen::Matrix::Constant(M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 14; - p_aos_loop_vec_v_uni_idx = in__.template read< - Eigen::Matrix>(M); + in__.template read>(M); Eigen::Matrix p_aos_fail_assign_from_top_idx = - Eigen::Matrix::Constant(M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 15; - p_aos_fail_assign_from_top_idx = in__.template read< - Eigen::Matrix>(M); + in__.template read>(M); Eigen::Matrix p_aos_loop_mat_uni_uni_idx = - Eigen::Matrix::Constant(N, M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 16; - p_aos_loop_mat_uni_uni_idx = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat = - Eigen::Matrix::Constant(N, M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 17; - p_aos_mat = in__.template read< - Eigen::Matrix>(N, M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat_pass_func_outer_single_indexed1 = - Eigen::Matrix::Constant(N, M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 18; - p_aos_mat_pass_func_outer_single_indexed1 = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat_pass_func_outer_single_indexed2 = - Eigen::Matrix::Constant(N, M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 19; - p_aos_mat_pass_func_outer_single_indexed2 = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat_fail_uni_uni_idx1 = - Eigen::Matrix::Constant(N, M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 20; - p_aos_mat_fail_uni_uni_idx1 = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); Eigen::Matrix p_aos_mat_fail_uni_uni_idx2 = - Eigen::Matrix::Constant(N, M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 21; - p_aos_mat_fail_uni_uni_idx2 = in__.template read< - Eigen::Matrix>(N, - M); + in__.template read>(N, M); double tp_real_from_aos = std::numeric_limits::quiet_NaN(); Eigen::Matrix tp_aos_vec_v = Eigen::Matrix::Constant(M, @@ -6840,22 +6206,16 @@ class indexing2_model final : public model_base_crtp { context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); - current_statement__ = 13; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 14; context__.validate_dims("data initialization", "M", "int", std::vector{}); M = std::numeric_limits::min(); - current_statement__ = 14; - M = context__.vals_i("M")[(1 - 1)]; current_statement__ = 15; stan::math::validate_non_negative_index("Idx", "N", N); current_statement__ = 16; context__.validate_dims("data initialization", "Idx", "int", std::vector{static_cast(N)}); Idx = std::vector(N, std::numeric_limits::min()); - current_statement__ = 16; - Idx = context__.vals_i("Idx"); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -6892,14 +6252,9 @@ class indexing2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha = DUMMY_VAR__; - current_statement__ = 1; - alpha = in__.template read(); + local_scalar_t__ alpha = in__.template read(); Eigen::Matrix p_aos_loop_single_idx = - Eigen::Matrix::Constant(10, DUMMY_VAR__); - current_statement__ = 2; - p_aos_loop_single_idx = in__.template read< - Eigen::Matrix>(10); + in__.template read>(10); { current_statement__ = 3; stan::math::validate_non_negative_index( @@ -6968,14 +6323,9 @@ class indexing2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha = DUMMY_VAR__; - current_statement__ = 1; - alpha = in__.template read(); + local_scalar_t__ alpha = in__.template read(); Eigen::Matrix p_aos_loop_single_idx = - Eigen::Matrix::Constant(10, DUMMY_VAR__); - current_statement__ = 2; - p_aos_loop_single_idx = in__.template read< - Eigen::Matrix>(10); + in__.template read>(10); { current_statement__ = 3; stan::math::validate_non_negative_index( @@ -7060,15 +6410,9 @@ class indexing2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double alpha = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - alpha = in__.template read(); + double alpha = in__.template read(); Eigen::Matrix p_aos_loop_single_idx = - Eigen::Matrix::Constant(10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - p_aos_loop_single_idx = in__.template read< - Eigen::Matrix>(10); + in__.template read>(10); out__.write(alpha); out__.write(p_aos_loop_single_idx); if (stan::math::logical_negation( @@ -7415,8 +6759,6 @@ class reductions_allowed_model final : public model_base_crtp{}); data_r = std::numeric_limits::quiet_NaN(); - current_statement__ = 7; - data_r = context__.vals_r("data_r")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -7454,20 +6796,11 @@ class reductions_allowed_model final : public model_base_crtp soa_x = - Eigen::Matrix::Constant(5, 10, DUMMY_VAR__); - current_statement__ = 1; - soa_x = in__.template read>(5, - 10); + in__.template read>(5, 10); Eigen::Matrix aos_x = - Eigen::Matrix::Constant(5, 10, DUMMY_VAR__); - current_statement__ = 2; - aos_x = in__.template read>(5, - 10); + in__.template read>(5, 10); Eigen::Matrix aos_y = - Eigen::Matrix::Constant(5, 10, DUMMY_VAR__); - current_statement__ = 3; - aos_y = in__.template read>(5, - 10); + in__.template read>(5, 10); local_scalar_t__ tp_real_from_soa = DUMMY_VAR__; current_statement__ = 4; tp_real_from_soa = (stan::math::logical_gt(5, 0) ? data_r : stan::math::sum( @@ -7520,23 +6853,11 @@ class reductions_allowed_model final : public model_base_crtp> soa_x = - stan::math::var_value>(Eigen::Matrix::Constant(5, - 10, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 1; - soa_x = in__.template read< - stan::math::var_value>>(5, 10); + in__.template read>(5, 10); Eigen::Matrix aos_x = - Eigen::Matrix::Constant(5, 10, DUMMY_VAR__); - current_statement__ = 2; - aos_x = in__.template read>(5, - 10); + in__.template read>(5, 10); Eigen::Matrix aos_y = - Eigen::Matrix::Constant(5, 10, DUMMY_VAR__); - current_statement__ = 3; - aos_y = in__.template read>(5, - 10); + in__.template read>(5, 10); local_scalar_t__ tp_real_from_soa = DUMMY_VAR__; current_statement__ = 4; tp_real_from_soa = (stan::math::logical_gt(5, 0) ? data_r : stan::math::sum( @@ -7600,23 +6921,11 @@ class reductions_allowed_model final : public model_base_crtp soa_x = - Eigen::Matrix::Constant(5, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - soa_x = in__.template read>(5, - 10); + in__.template read>(5, 10); Eigen::Matrix aos_x = - Eigen::Matrix::Constant(5, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - aos_x = in__.template read>(5, - 10); + in__.template read>(5, 10); Eigen::Matrix aos_y = - Eigen::Matrix::Constant(5, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 3; - aos_y = in__.template read>(5, - 10); + in__.template read>(5, 10); double tp_real_from_soa = std::numeric_limits::quiet_NaN(); Eigen::Matrix tp_matrix_aos_from_mix = Eigen::Matrix::Constant(5, 10, @@ -8130,15 +7439,9 @@ class return_types_and_udfs_demotes_model final : public model_base_crtp row_soa = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 1; - row_soa = in__.template read>(10, - 10); + in__.template read>(10, 10); Eigen::Matrix udf_input_aos = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 2; - udf_input_aos = in__.template read< - Eigen::Matrix>(10, 10); + in__.template read>(10, 10); Eigen::Matrix user_func_aos = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); current_statement__ = 3; @@ -8201,18 +7504,9 @@ class return_types_and_udfs_demotes_model final : public model_base_crtp> row_soa = - stan::math::var_value>(Eigen::Matrix::Constant(10, - 10, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 1; - row_soa = in__.template read< - stan::math::var_value>>(10, 10); + in__.template read>(10, 10); Eigen::Matrix udf_input_aos = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 2; - udf_input_aos = in__.template read< - Eigen::Matrix>(10, 10); + in__.template read>(10, 10); Eigen::Matrix user_func_aos = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); current_statement__ = 3; @@ -8286,17 +7580,9 @@ class return_types_and_udfs_demotes_model final : public model_base_crtp row_soa = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - row_soa = in__.template read>(10, - 10); + in__.template read>(10, 10); Eigen::Matrix udf_input_aos = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - udf_input_aos = in__.template read< - Eigen::Matrix>(10, 10); + in__.template read>(10, 10); Eigen::Matrix user_func_aos = Eigen::Matrix::Constant(10, 10, std::numeric_limits::quiet_NaN()); @@ -8768,15 +8054,9 @@ class single_indexing_model final : public model_base_crtp aos_p = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 1; - aos_p = in__.template read>(10, - 10); + in__.template read>(10, 10); Eigen::Matrix soa_p = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 2; - soa_p = in__.template read>(10, - 10); + in__.template read>(10, 10); local_scalar_t__ tp_real_from_soa = DUMMY_VAR__; current_statement__ = 3; tp_real_from_soa = stan::model::rvalue(soa_p, "soa_p", @@ -8832,18 +8112,9 @@ class single_indexing_model final : public model_base_crtp aos_p = - Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); - current_statement__ = 1; - aos_p = in__.template read>(10, - 10); + in__.template read>(10, 10); stan::math::var_value> soa_p = - stan::math::var_value>(Eigen::Matrix::Constant(10, - 10, - std::numeric_limits::quiet_NaN( - ))); - current_statement__ = 2; - soa_p = in__.template read< - stan::math::var_value>>(10, 10); + in__.template read>(10, 10); local_scalar_t__ tp_real_from_soa = DUMMY_VAR__; current_statement__ = 3; tp_real_from_soa = stan::model::rvalue(soa_p, "soa_p", @@ -8916,17 +8187,9 @@ class single_indexing_model final : public model_base_crtp aos_p = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - aos_p = in__.template read>(10, - 10); + in__.template read>(10, 10); Eigen::Matrix soa_p = - Eigen::Matrix::Constant(10, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - soa_p = in__.template read>(10, - 10); + in__.template read>(10, 10); double tp_real_from_soa = std::numeric_limits::quiet_NaN(); out__.write(aos_p); out__.write(soa_p); @@ -9345,8 +8608,6 @@ class tp_reused_model final : public model_base_crtp { context__.validate_dims("data initialization", "data_r", "double", std::vector{}); data_r = std::numeric_limits::quiet_NaN(); - current_statement__ = 5; - data_r = context__.vals_r("data_r")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -9384,15 +8645,9 @@ class tp_reused_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix first_pass_soa_x = - Eigen::Matrix::Constant(5, 10, DUMMY_VAR__); - current_statement__ = 1; - first_pass_soa_x = in__.template read< - Eigen::Matrix>(5, 10); + in__.template read>(5, 10); Eigen::Matrix aos_x = - Eigen::Matrix::Constant(5, 10, DUMMY_VAR__); - current_statement__ = 2; - aos_x = in__.template read>(5, - 10); + in__.template read>(5, 10); Eigen::Matrix tp_matrix_aos = Eigen::Matrix::Constant(5, 10, DUMMY_VAR__); current_statement__ = 3; @@ -9432,15 +8687,9 @@ class tp_reused_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix first_pass_soa_x = - Eigen::Matrix::Constant(5, 10, DUMMY_VAR__); - current_statement__ = 1; - first_pass_soa_x = in__.template read< - Eigen::Matrix>(5, 10); + in__.template read>(5, 10); Eigen::Matrix aos_x = - Eigen::Matrix::Constant(5, 10, DUMMY_VAR__); - current_statement__ = 2; - aos_x = in__.template read>(5, - 10); + in__.template read>(5, 10); Eigen::Matrix tp_matrix_aos = Eigen::Matrix::Constant(5, 10, DUMMY_VAR__); current_statement__ = 3; @@ -9491,17 +8740,9 @@ class tp_reused_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix first_pass_soa_x = - Eigen::Matrix::Constant(5, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - first_pass_soa_x = in__.template read< - Eigen::Matrix>(5, 10); + in__.template read>(5, 10); Eigen::Matrix aos_x = - Eigen::Matrix::Constant(5, 10, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - aos_x = in__.template read>(5, - 10); + in__.template read>(5, 10); Eigen::Matrix tp_matrix_aos = Eigen::Matrix::Constant(5, 10, std::numeric_limits::quiet_NaN()); @@ -9909,16 +9150,6 @@ class tuple_test_model final : public model_base_crtp { 1, DUMMY_VAR__)), Eigen::Matrix::Constant(1, 2, DUMMY_VAR__), Eigen::Matrix::Constant(1, 3, DUMMY_VAR__)}; - current_statement__ = 1; - std::get<0>(xx) = in__.template read< - std::vector>>(1, - 1, 1); - current_statement__ = 1; - std::get<1>(xx) = in__.template read< - Eigen::Matrix>(1, 2); - current_statement__ = 1; - std::get<2>(xx) = in__.template read< - Eigen::Matrix>(1, 3); Eigen::Matrix x = Eigen::Matrix::Constant(1, 1, DUMMY_VAR__); current_statement__ = 2; @@ -9966,16 +9197,6 @@ class tuple_test_model final : public model_base_crtp { 1, DUMMY_VAR__)), Eigen::Matrix::Constant(1, 2, DUMMY_VAR__), Eigen::Matrix::Constant(1, 3, DUMMY_VAR__)}; - current_statement__ = 1; - std::get<0>(xx) = in__.template read< - std::vector>>(1, - 1, 1); - current_statement__ = 1; - std::get<1>(xx) = in__.template read< - Eigen::Matrix>(1, 2); - current_statement__ = 1; - std::get<2>(xx) = in__.template read< - Eigen::Matrix>(1, 3); Eigen::Matrix x = Eigen::Matrix::Constant(1, 1, DUMMY_VAR__); current_statement__ = 2; @@ -10036,16 +9257,6 @@ class tuple_test_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()), Eigen::Matrix::Constant(1, 3, std::numeric_limits::quiet_NaN())}; - current_statement__ = 1; - std::get<0>(xx) = in__.template read< - std::vector>>(1, - 1, 1); - current_statement__ = 1; - std::get<1>(xx) = in__.template read< - Eigen::Matrix>(1, 2); - current_statement__ = 1; - std::get<2>(xx) = in__.template read< - Eigen::Matrix>(1, 3); Eigen::Matrix x = Eigen::Matrix::Constant(1, 1, std::numeric_limits::quiet_NaN()); @@ -10475,20 +9686,6 @@ class tuple_test2_model final : public model_base_crtp { x_data__ = Eigen::Matrix::Constant(2, 2, std::numeric_limits::quiet_NaN()); new (&x) Eigen::Map>(x_data__.data(), 2, 2); - { - std::vector x_flat__; - current_statement__ = 5; - x_flat__ = context__.vals_r("x"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -10526,13 +9723,9 @@ class tuple_test2_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix m1 = - Eigen::Matrix::Constant(3, 3, DUMMY_VAR__); - current_statement__ = 1; - m1 = in__.template read>(3, 3); + in__.template read>(3, 3); Eigen::Matrix m2 = - Eigen::Matrix::Constant(3, 3, DUMMY_VAR__); - current_statement__ = 1; - m2 = in__.template read>(3, 3); + in__.template read>(3, 3); { std::tuple, Eigen::Matrix> temp = @@ -10588,13 +9781,9 @@ class tuple_test2_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix m1 = - Eigen::Matrix::Constant(3, 3, DUMMY_VAR__); - current_statement__ = 1; - m1 = in__.template read>(3, 3); + in__.template read>(3, 3); Eigen::Matrix m2 = - Eigen::Matrix::Constant(3, 3, DUMMY_VAR__); - current_statement__ = 1; - m2 = in__.template read>(3, 3); + in__.template read>(3, 3); { std::tuple, Eigen::Matrix> temp = @@ -10661,15 +9850,9 @@ class tuple_test2_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix m1 = - Eigen::Matrix::Constant(3, 3, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - m1 = in__.template read>(3, 3); + in__.template read>(3, 3); Eigen::Matrix m2 = - Eigen::Matrix::Constant(3, 3, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - m2 = in__.template read>(3, 3); + in__.template read>(3, 3); out__.write(m1); out__.write(m2); if (stan::math::logical_negation( diff --git a/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected b/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected index b9dcab53c..5f0674475 100644 --- a/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected +++ b/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected @@ -46,21 +46,19 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable N) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -85,80 +83,6 @@ matrix[2, 2] aos_mat_from_vecs: AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id X_data_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable X_data_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str X_data)) - (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable X_data) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UMatrix - ((pattern - (Indexed - ((pattern (Var X_data_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str y_data)) @@ -174,63 +98,6 @@ matrix[2, 2] aos_mat_from_vecs: AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id y_data_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable y_data_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str y_data)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable y_data) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var y_data_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str beta)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) @@ -240,29 +107,25 @@ matrix[2, 2] aos_mat_from_vecs: AoS (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sigma) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id beta) @@ -270,19 +133,18 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable beta) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Block @@ -819,29 +681,25 @@ matrix[2, 2] aos_mat_from_vecs: AoS (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sigma) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id beta) @@ -849,19 +707,18 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable beta) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Block @@ -1398,29 +1255,25 @@ matrix[2, 2] aos_mat_from_vecs: AoS (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sigma) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id beta) @@ -1428,19 +1281,18 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable beta) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp @@ -1726,22 +1578,20 @@ matrix[10, 10] A_p: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable A_p) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id A_complex_tp) @@ -1769,22 +1619,20 @@ matrix[10, 10] A_p: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable A_p) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id A_complex_tp) @@ -1812,22 +1660,20 @@ matrix[10, 10] A_p: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable A_p) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id A_complex_tp) @@ -2163,21 +2009,19 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable N) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -2192,21 +2036,19 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable K) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str K)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -2234,63 +2076,6 @@ vector[Nr] h_sigma: SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id diff_low_mid_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable diff_low_mid_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str diff_low_mid)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable diff_low_mid) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var diff_low_mid_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str diff_high_mid)) @@ -2306,63 +2091,6 @@ vector[Nr] h_sigma: SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id diff_high_mid_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable diff_high_mid_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str diff_high_mid)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable diff_high_mid) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var diff_high_mid_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str mid_price)) @@ -2378,63 +2106,6 @@ vector[Nr] h_sigma: SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id mid_price_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable mid_price_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str mid_price)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable mid_price) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var mid_price_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str X_all)) @@ -2458,97 +2129,21 @@ vector[Nr] h_sigma: SoA ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id X_all_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable X_all_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str X_all)) - (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable X_all) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UMatrix - ((pattern - (Indexed - ((pattern (Var X_all_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi_prior_a) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable phi_prior_a) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str phi_prior_a)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str phi_prior_a)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -2565,21 +2160,19 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi_prior_b) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable phi_prior_b) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str phi_prior_b)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str phi_prior_b)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -2596,39 +2189,35 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id mu_prior_mu) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable mu_prior_mu) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str mu_prior_mu)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id mu_prior_sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str mu_prior_mu)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) (meta )) - ((pattern - (Assignment ((LVariable mu_prior_sigma) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str mu_prior_sigma)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id mu_prior_sigma) (decl_type (Sized SReal)) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str mu_prior_sigma)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -2645,21 +2234,19 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma_prior_shape) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sigma_prior_shape) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str sigma_prior_shape)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str sigma_prior_shape)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -2676,21 +2263,19 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma_prior_rate) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sigma_prior_rate) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str sigma_prior_rate)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str sigma_prior_rate)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -2918,25 +2503,24 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable high_low_est) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern (Var diff_low_mid)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly)))) - ((pattern (Var diff_high_mid)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern (Var diff_low_mid)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly)))) + ((pattern (Var diff_high_mid)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp (StanLib check_matching_dims FnPlain AoS) @@ -2970,19 +2554,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable b) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id h) @@ -2990,19 +2573,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable h) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var Nr)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ar) @@ -3010,84 +2592,74 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable ar) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable ma) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi_beta) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable phi_beta) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma2) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sigma2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id Intercept) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable Intercept) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id mean_price) @@ -3095,19 +2667,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable mean_price) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma_price) @@ -3115,36 +2686,33 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sigma_price) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Real 0.0)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Real 0.0)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable theta) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id upper_test) @@ -3152,23 +2720,22 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable upper_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Upper - ((pattern (Var ma)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Upper + ((pattern (Var ma)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id lower_upper_test) @@ -3176,25 +2743,24 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable lower_upper_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern (Var sigma_price)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))) - ((pattern (Var upper_test)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern (Var sigma_price)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))) + ((pattern (Var upper_test)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp (StanLib check_matching_dims FnPlain AoS) @@ -3228,31 +2794,30 @@ vector[Nr] h_sigma: SoA (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable row_vec_lower_upper_test) ()) URowVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern - (FunApp (StanLib Transpose__ FnPlain AoS) - (((pattern (Var sigma_price)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))) - ((pattern - (FunApp (StanLib Transpose__ FnPlain AoS) - (((pattern (Var upper_test)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern + (FunApp (StanLib Transpose__ FnPlain AoS) + (((pattern (Var sigma_price)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))) + ((pattern + (FunApp (StanLib Transpose__ FnPlain AoS) + (((pattern (Var upper_test)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp (StanLib check_matching_dims FnPlain AoS) @@ -3292,25 +2857,24 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable offset_mult_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (OffsetMultiplier - ((pattern (Var mean_price)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))) - ((pattern (Var sigma_price)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (OffsetMultiplier + ((pattern (Var mean_price)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))) + ((pattern (Var sigma_price)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp (StanLib check_matching_dims FnPlain AoS) @@ -3344,19 +2908,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable ordered_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Ordered) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Ordered) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id unit_vec_test) @@ -3364,19 +2927,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable unit_vec_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain UnitVector) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain UnitVector) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id pos_ordered_test) @@ -3384,19 +2946,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable pos_ordered_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain PositiveOrdered) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain PositiveOrdered) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id corr_matrix_test) @@ -3405,19 +2966,18 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable corr_matrix_test) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Correlation) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Correlation) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id cov_matrix_test) @@ -3426,19 +2986,18 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable cov_matrix_test) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Covariance) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Covariance) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id chol_fac_cov_test) @@ -3447,20 +3006,20 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable chol_fac_cov_test) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id chol_fac_corr_test) @@ -3469,19 +3028,18 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable chol_fac_corr_test) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCorr) - (dims - (((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCorr) + (dims + (((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi) (decl_type (Sized SReal)) @@ -4140,25 +3698,24 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable high_low_est) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern (Var diff_low_mid)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly)))) - ((pattern (Var diff_high_mid)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern (Var diff_low_mid)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly)))) + ((pattern (Var diff_high_mid)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp (StanLib check_matching_dims FnPlain AoS) @@ -4192,19 +3749,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable b) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id h) @@ -4212,19 +3768,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable h) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var Nr)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ar) @@ -4232,84 +3787,74 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable ar) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable ma) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id phi_beta) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable phi_beta) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern SoA))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id sigma2) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern - (Assignment ((LVariable sigma2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern SoA))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (Decl (decl_adtype AutoDiffable) (decl_id phi_beta) (decl_type (Sized SReal)) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id Intercept) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (Decl (decl_adtype AutoDiffable) (decl_id sigma2) (decl_type (Sized SReal)) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern - (Assignment ((LVariable Intercept) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (Decl (decl_adtype AutoDiffable) (decl_id Intercept) (decl_type (Sized SReal)) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id mean_price) @@ -4317,19 +3862,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable mean_price) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma_price) @@ -4337,36 +3881,33 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sigma_price) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Real 0.0)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Real 0.0)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable theta) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id upper_test) @@ -4374,23 +3915,22 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable upper_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Upper - ((pattern (Var ma)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Upper + ((pattern (Var ma)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id lower_upper_test) @@ -4398,25 +3938,24 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable lower_upper_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern (Var sigma_price)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))) - ((pattern (Var upper_test)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern (Var sigma_price)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))) + ((pattern (Var upper_test)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp (StanLib check_matching_dims FnPlain AoS) @@ -4450,31 +3989,30 @@ vector[Nr] h_sigma: SoA (Sized (SRowVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable row_vec_lower_upper_test) ()) URowVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern - (FunApp (StanLib Transpose__ FnPlain SoA) - (((pattern (Var sigma_price)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))) - ((pattern - (FunApp (StanLib Transpose__ FnPlain SoA) - (((pattern (Var upper_test)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern + (FunApp (StanLib Transpose__ FnPlain SoA) + (((pattern (Var sigma_price)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))) + ((pattern + (FunApp (StanLib Transpose__ FnPlain SoA) + (((pattern (Var upper_test)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp (StanLib check_matching_dims FnPlain AoS) @@ -4514,25 +4052,24 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable offset_mult_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (OffsetMultiplier - ((pattern (Var mean_price)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))) - ((pattern (Var sigma_price)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (OffsetMultiplier + ((pattern (Var mean_price)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))) + ((pattern (Var sigma_price)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp (StanLib check_matching_dims FnPlain AoS) @@ -4566,19 +4103,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable ordered_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Ordered) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Ordered) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id unit_vec_test) @@ -4586,19 +4122,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable unit_vec_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain UnitVector) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain UnitVector) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id pos_ordered_test) @@ -4606,19 +4141,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable pos_ordered_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain PositiveOrdered) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain PositiveOrdered) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id corr_matrix_test) @@ -4627,19 +4161,18 @@ vector[Nr] h_sigma: SoA (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable corr_matrix_test) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Correlation) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Correlation) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id cov_matrix_test) @@ -4648,19 +4181,18 @@ vector[Nr] h_sigma: SoA (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable cov_matrix_test) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Covariance) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Covariance) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id chol_fac_cov_test) @@ -4669,20 +4201,20 @@ vector[Nr] h_sigma: SoA (SMatrix SoA ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable chol_fac_cov_test) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id chol_fac_corr_test) @@ -4691,19 +4223,18 @@ vector[Nr] h_sigma: SoA (SMatrix SoA ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable chol_fac_corr_test) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCorr) - (dims - (((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCorr) + (dims + (((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi) (decl_type (Sized SReal)) @@ -5362,25 +4893,24 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable high_low_est) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern (Var diff_low_mid)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly)))) - ((pattern (Var diff_high_mid)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern (Var diff_low_mid)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly)))) + ((pattern (Var diff_high_mid)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp (StanLib check_matching_dims FnPlain AoS) @@ -5414,19 +4944,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable b) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id h) @@ -5434,19 +4963,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable h) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var Nr)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id ar) @@ -5454,84 +4982,74 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable ar) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id ma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable ma) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi_beta) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable phi_beta) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma2) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sigma2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id Intercept) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable Intercept) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id mean_price) @@ -5539,19 +5057,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable mean_price) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma_price) @@ -5559,36 +5076,33 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sigma_price) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Real 0.0)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Real 0.0)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id theta) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable theta) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id upper_test) @@ -5596,23 +5110,22 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable upper_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Upper - ((pattern (Var ma)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Upper + ((pattern (Var ma)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id lower_upper_test) @@ -5620,25 +5133,24 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable lower_upper_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern (Var sigma_price)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))) - ((pattern (Var upper_test)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern (Var sigma_price)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))) + ((pattern (Var upper_test)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp (StanLib check_matching_dims FnPlain AoS) @@ -5672,31 +5184,30 @@ vector[Nr] h_sigma: SoA (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable row_vec_lower_upper_test) ()) URowVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern - (FunApp (StanLib Transpose__ FnPlain AoS) - (((pattern (Var sigma_price)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))) - ((pattern - (FunApp (StanLib Transpose__ FnPlain AoS) - (((pattern (Var upper_test)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern + (FunApp (StanLib Transpose__ FnPlain AoS) + (((pattern (Var sigma_price)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))) + ((pattern + (FunApp (StanLib Transpose__ FnPlain AoS) + (((pattern (Var upper_test)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp (StanLib check_matching_dims FnPlain AoS) @@ -5736,25 +5247,24 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable offset_mult_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (OffsetMultiplier - ((pattern (Var mean_price)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))) - ((pattern (Var sigma_price)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (OffsetMultiplier + ((pattern (Var mean_price)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))) + ((pattern (Var sigma_price)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp (StanLib check_matching_dims FnPlain AoS) @@ -5788,19 +5298,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable ordered_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Ordered) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Ordered) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id unit_vec_test) @@ -5808,19 +5317,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable unit_vec_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain UnitVector) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain UnitVector) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id pos_ordered_test) @@ -5828,19 +5336,18 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable pos_ordered_test) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain PositiveOrdered) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain PositiveOrdered) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id corr_matrix_test) @@ -5848,20 +5355,19 @@ vector[Nr] h_sigma: SoA (Sized (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable corr_matrix_test) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Correlation) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Correlation) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id cov_matrix_test) @@ -5870,19 +5376,18 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable cov_matrix_test) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Covariance) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Covariance) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id chol_fac_cov_test) @@ -5891,20 +5396,20 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable chol_fac_cov_test) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id chol_fac_corr_test) @@ -5913,19 +5418,18 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable chol_fac_corr_test) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCorr) - (dims - (((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCorr) + (dims + (((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi) (decl_type (Sized SReal)) @@ -9289,22 +8793,20 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable X_p) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id X_tp1) @@ -9483,22 +8985,20 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable X_p) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id X_tp1) @@ -9677,22 +9177,20 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable X_p) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id X_tp1) @@ -10299,39 +9797,35 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable N) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable M) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -10356,80 +9850,6 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id dat_x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable dat_x_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str dat_x)) - (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable dat_x) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UMatrix - ((pattern - (Indexed - ((pattern (Var dat_x_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) @@ -10444,63 +9864,6 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id y_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable y_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str y)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable y) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var y_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str idx_tester)) @@ -10514,15 +9877,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable idx_tester) ()) (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str idx_tester)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str idx_tester)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -10765,16 +10126,14 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_vec_v) @@ -10782,19 +10141,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_vec_v) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_mat) @@ -10803,20 +10161,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_mat) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_arr_vec_v) @@ -10826,21 +10184,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_arr_vec_v) ()) (UArray UVector) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_mat_uni_col_idx) @@ -10849,40 +10206,39 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_mat_uni_col_idx) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_vec_uni_idx) (decl_type - (Sized - (SVector AoS - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_vec_uni_idx) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (Sized + (SVector AoS + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_loop_mat_uni_col_idx) @@ -10891,20 +10247,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_loop_mat_uni_col_idx) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_lhs_loop_mul) @@ -10912,19 +10268,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_lhs_loop_mul) ()) URowVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_rhs_loop_mul) @@ -10932,19 +10287,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_rhs_loop_mul) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_used_with_aos_in_excluded_fun) @@ -10952,19 +10306,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_used_with_aos_in_excluded_fun) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_loop_mat_multi_uni_uni_idx) @@ -10973,20 +10326,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_loop_mat_multi_uni_uni_idx) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_vec_v_assign_to_aos) @@ -10994,19 +10347,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_vec_v_assign_to_aos) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_vec_v_tp_fails_func) @@ -11014,19 +10366,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_vec_v_tp_fails_func) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_loop_vec_v_uni_idx) @@ -11034,19 +10385,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_loop_vec_v_uni_idx) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_fail_assign_from_top_idx) @@ -11054,19 +10404,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_fail_assign_from_top_idx) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_loop_mat_uni_uni_idx) @@ -11075,20 +10424,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_loop_mat_uni_uni_idx) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat) @@ -11097,20 +10446,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_pass_func_outer_single_indexed1) @@ -11119,20 +10468,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed1) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_pass_func_outer_single_indexed2) @@ -11141,20 +10490,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_fail_uni_uni_idx1) @@ -11163,20 +10512,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx1) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_fail_uni_uni_idx2) @@ -11185,20 +10534,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_aos) @@ -12153,16 +11502,14 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_vec_v) @@ -12170,19 +11517,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_vec_v) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_mat) @@ -12191,20 +11537,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_mat) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_arr_vec_v) @@ -12214,21 +11560,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_arr_vec_v) ()) (UArray UVector) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_mat_uni_col_idx) @@ -12237,20 +11582,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_mat_uni_col_idx) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_vec_uni_idx) @@ -12258,19 +11603,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_vec_uni_idx) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_loop_mat_uni_col_idx) @@ -12279,20 +11623,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_loop_mat_uni_col_idx) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_lhs_loop_mul) @@ -12300,19 +11644,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SRowVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_lhs_loop_mul) ()) URowVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_rhs_loop_mul) @@ -12320,19 +11663,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_rhs_loop_mul) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_used_with_aos_in_excluded_fun) @@ -12340,19 +11682,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_used_with_aos_in_excluded_fun) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_loop_mat_multi_uni_uni_idx) @@ -12361,20 +11702,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_loop_mat_multi_uni_uni_idx) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_vec_v_assign_to_aos) @@ -12382,19 +11723,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_vec_v_assign_to_aos) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_vec_v_tp_fails_func) @@ -12402,19 +11742,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_vec_v_tp_fails_func) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_loop_vec_v_uni_idx) @@ -12422,19 +11761,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_loop_vec_v_uni_idx) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_fail_assign_from_top_idx) @@ -12442,19 +11780,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_fail_assign_from_top_idx) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_loop_mat_uni_uni_idx) @@ -12463,20 +11800,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_loop_mat_uni_uni_idx) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat) @@ -12485,20 +11822,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_pass_func_outer_single_indexed1) @@ -12507,20 +11844,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed1) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_pass_func_outer_single_indexed2) @@ -12529,20 +11866,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_fail_uni_uni_idx1) @@ -12551,20 +11888,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx1) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_fail_uni_uni_idx2) @@ -12573,20 +11910,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_aos) @@ -13541,16 +12878,14 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_soa_vec_v) @@ -13558,19 +12893,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_vec_v) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_soa_mat) @@ -13579,20 +12913,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_mat) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_soa_arr_vec_v) @@ -13602,21 +12936,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_arr_vec_v) ()) (UArray UVector) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_soa_mat_uni_col_idx) @@ -13625,20 +12958,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_mat_uni_col_idx) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_soa_vec_uni_idx) @@ -13646,19 +12979,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_vec_uni_idx) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_soa_loop_mat_uni_col_idx) @@ -13667,20 +12999,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_loop_mat_uni_col_idx) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_soa_lhs_loop_mul) @@ -13688,19 +13020,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_lhs_loop_mul) ()) URowVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_soa_rhs_loop_mul) @@ -13708,19 +13039,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_rhs_loop_mul) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_soa_used_with_aos_in_excluded_fun) @@ -13728,19 +13058,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_used_with_aos_in_excluded_fun) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_soa_loop_mat_multi_uni_uni_idx) @@ -13749,20 +13078,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_soa_loop_mat_multi_uni_uni_idx) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_aos_vec_v_assign_to_aos) @@ -13770,19 +13099,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_vec_v_assign_to_aos) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_aos_vec_v_tp_fails_func) @@ -13790,19 +13118,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_vec_v_tp_fails_func) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_aos_loop_vec_v_uni_idx) @@ -13810,19 +13137,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_loop_vec_v_uni_idx) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_aos_fail_assign_from_top_idx) @@ -13830,19 +13156,18 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_fail_assign_from_top_idx) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_aos_loop_mat_uni_uni_idx) @@ -13851,20 +13176,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_loop_mat_uni_uni_idx) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_aos_mat) @@ -13873,20 +13198,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_aos_mat_pass_func_outer_single_indexed1) @@ -13895,20 +13220,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed1) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_aos_mat_pass_func_outer_single_indexed2) @@ -13917,20 +13242,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_aos_mat_fail_uni_uni_idx1) @@ -13939,20 +13264,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx1) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_aos_mat_fail_uni_uni_idx2) @@ -13961,20 +13286,20 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_from_aos) (decl_type (Sized SReal)) @@ -16972,39 +16297,35 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable N) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable M) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -17018,29 +16339,25 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable Idx) ()) (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str Idx)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str Idx)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) (meta )))) (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_loop_single_idx) @@ -17048,20 +16365,18 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_loop_single_idx) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Block @@ -17170,16 +16485,14 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_loop_single_idx) @@ -17187,20 +16500,18 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_loop_single_idx) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Block @@ -17309,16 +16620,14 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_aos_loop_single_idx) @@ -17326,20 +16635,18 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable p_aos_loop_single_idx) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp @@ -17588,30 +16895,28 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (meta )))) (fdloc )))) (input_vars - ((data_r - ((begin_loc - ((filename reductions_allowed.stan) (line_num 12) (col_num 4) (included_from ()))) - (end_loc - ((filename reductions_allowed.stan) (line_num 12) (col_num 16) (included_from ())))) - SReal))) - (prepare_data - (((pattern - (Decl (decl_adtype DataOnly) (decl_id data_r) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable data_r) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str data_r)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + ((data_r + ((begin_loc + ((filename reductions_allowed.stan) (line_num 12) (col_num 4) (included_from ()))) + (end_loc + ((filename reductions_allowed.stan) (line_num 12) (col_num 16) (included_from ())))) + SReal))) + (prepare_data + (((pattern + (Decl (decl_adtype DataOnly) (decl_id data_r) (decl_type (Sized SReal)) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str data_r)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) (meta )))) (log_prob (((pattern @@ -17621,22 +16926,20 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable soa_x) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id aos_x) @@ -17645,22 +16948,20 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable aos_x) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id aos_y) @@ -17669,22 +16970,20 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable aos_y) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_soa) @@ -17781,22 +17080,20 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix SoA ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable soa_x) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id aos_x) @@ -17805,22 +17102,20 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable aos_x) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id aos_y) @@ -17829,22 +17124,20 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable aos_y) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_soa) @@ -17941,22 +17234,20 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable soa_x) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id aos_x) @@ -17965,22 +17256,20 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable aos_x) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id aos_y) @@ -17989,22 +17278,20 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable aos_y) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_from_soa) (decl_type (Sized SReal)) @@ -18681,22 +17968,20 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable row_soa) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id udf_input_aos) @@ -18705,22 +17990,20 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable udf_input_aos) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id user_func_aos) @@ -18840,22 +18123,20 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix SoA ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable row_soa) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id udf_input_aos) @@ -18864,22 +18145,20 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable udf_input_aos) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id user_func_aos) @@ -18999,22 +18278,20 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable row_soa) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id udf_input_aos) @@ -19023,22 +18300,20 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable udf_input_aos) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id user_func_aos) @@ -19626,22 +18901,20 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable aos_p) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id soa_p) @@ -19650,22 +18923,20 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable soa_p) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_soa) @@ -19759,22 +19030,20 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable aos_p) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id soa_p) @@ -19783,22 +19052,20 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix SoA ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable soa_p) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_soa) @@ -19892,22 +19159,20 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable aos_p) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id soa_p) @@ -19916,22 +19181,20 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable soa_p) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_from_soa) (decl_type (Sized SReal)) @@ -20407,21 +19670,19 @@ matrix[5, 10] tp_matrix_aos: AoS (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id data_r) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable data_r) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str data_r)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str data_r)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) (meta )))) (log_prob (((pattern @@ -20431,22 +19692,20 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable first_pass_soa_x) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id aos_x) @@ -20455,22 +19714,20 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable aos_x) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_matrix_aos) @@ -20502,22 +19759,20 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable first_pass_soa_x) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id aos_x) @@ -20526,22 +19781,20 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable aos_x) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_matrix_aos) @@ -20573,22 +19826,20 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable first_pass_soa_x) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id aos_x) @@ -20597,22 +19848,20 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable aos_x) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_matrix_aos) @@ -21057,53 +20306,6 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable xx) ()) 1) ()) (UArray UMatrix) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UMatrix)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable xx) ()) 2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable xx) ()) 3) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type @@ -21157,53 +20359,6 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable xx) ()) 1) ()) (UArray UMatrix) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UMatrix)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable xx) ()) 2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable xx) ()) 3) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type @@ -21256,53 +20411,6 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable xx) ()) 1) ()) (UArray UMatrix) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UMatrix)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable xx) ()) 2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable xx) ()) 3) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x) (decl_type @@ -22019,81 +21127,6 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable x_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str x)) - (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable x) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UMatrix - ((pattern - (Indexed - ((pattern (Var x_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) (meta )))) (log_prob (((pattern @@ -22103,22 +21136,20 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable m1) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id m2) @@ -22127,22 +21158,20 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable m2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Block @@ -22211,22 +21240,20 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable m1) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id m2) @@ -22235,22 +21262,20 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable m2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Block @@ -22319,22 +21344,20 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable m1) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id m2) @@ -22343,22 +21366,20 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable m2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp diff --git a/test/integration/good/tuples/cpp.expected b/test/integration/good/tuples/cpp.expected index 0289c417d..f3030b5cc 100644 --- a/test/integration/good/tuples/cpp.expected +++ b/test/integration/good/tuples/cpp.expected @@ -76,9 +76,6 @@ class arrays_tuples_nested_model final : public model_base_crtp::quiet_NaN( )), std::numeric_limits::min()}; - current_statement__ = 8; - std::get<0>(basic) = context__.vals_r("basic.1"); - std::get<1>(basic) = context__.vals_i("basic.2")[(1 - 1)]; current_statement__ = 9; context__.validate_dims("data initialization", "tuple_tuple.1", "int", std::vector{}); @@ -93,22 +90,6 @@ class arrays_tuples_nested_model final : public model_base_crtp::quiet_NaN(), Eigen::Matrix::Constant(2, std::numeric_limits::quiet_NaN())}}; - current_statement__ = 9; - std::get<0>(tuple_tuple) = context__.vals_i("tuple_tuple.1")[(1 - 1)]; - std::get<0>(std::get<1>(tuple_tuple)) = context__.vals_r("tuple_tuple.2.1")[(1 - - 1)]; - { - std::vector tuple_tuple_dot_2_dot_2_flat__; - tuple_tuple_dot_2_dot_2_flat__ = context__.vals_r("tuple_tuple.2.2"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - stan::model::assign(std::get<1>(std::get<1>(tuple_tuple)), - tuple_tuple_dot_2_dot_2_flat__[(pos__ - 1)], - "assigning variable tuple_tuple.2.2", - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 10; context__.validate_dims("data initialization", "arr_tuple.1", "int", std::vector{static_cast(3)}); @@ -126,64 +107,6 @@ class arrays_tuples_nested_model final : public model_base_crtp::quiet_NaN()), Eigen::Matrix::Constant(3, std::numeric_limits::quiet_NaN())}); - { - std::vector arr_tuple_dot_1_flat__; - current_statement__ = 10; - arr_tuple_dot_1_flat__ = context__.vals_i("arr_tuple.1"); - int arr_tuple_dot_1_flat__pos__; - arr_tuple_dot_1_flat__pos__ = 1; - std::vector arr_tuple_dot_2_flat__; - current_statement__ = 10; - arr_tuple_dot_2_flat__ = context__.vals_r("arr_tuple.2"); - int arr_tuple_dot_2_flat__pos__; - arr_tuple_dot_2_flat__pos__ = 1; - std::vector arr_tuple_dot_3_flat__; - current_statement__ = 10; - arr_tuple_dot_3_flat__ = context__.vals_r("arr_tuple.3"); - int arr_tuple_dot_3_flat__pos__; - arr_tuple_dot_3_flat__pos__ = 1; - int arr_tuple_dot_1_temp__ = std::numeric_limits::min(); - std::vector arr_tuple_dot_2_temp__ = - std::vector(4, std::numeric_limits::quiet_NaN()); - Eigen::Matrix arr_tuple_dot_3_temp__ = - Eigen::Matrix::Constant(3, - std::numeric_limits::quiet_NaN()); - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - arr_tuple_dot_1_temp__ = arr_tuple_dot_1_flat__[(arr_tuple_dot_1_flat__pos__ - - 1)]; - arr_tuple_dot_1_flat__pos__ = (arr_tuple_dot_1_flat__pos__ + 1); - stan::model::assign(arr_tuple_dot_2_temp__, - stan::model::rvalue(arr_tuple_dot_2_flat__, - "arr_tuple_dot_2_flat__", - stan::model::index_min_max(arr_tuple_dot_2_flat__pos__, - ((arr_tuple_dot_2_flat__pos__ + 4) - 1))), - "assigning variable arr_tuple_dot_2_temp__"); - arr_tuple_dot_2_flat__pos__ = (arr_tuple_dot_2_flat__pos__ + 4); - { - std::vector arr_tuple_dot_3_temp___flat__; - stan::model::assign(arr_tuple_dot_3_temp___flat__, - stan::model::rvalue(arr_tuple_dot_3_flat__, - "arr_tuple_dot_3_flat__", - stan::model::index_min_max(arr_tuple_dot_3_flat__pos__, - ((arr_tuple_dot_3_flat__pos__ + 3) - 1))), - "assigning variable arr_tuple_dot_3_temp___flat__"); - pos__ = 1; - for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { - stan::model::assign(arr_tuple_dot_3_temp__, - arr_tuple_dot_3_temp___flat__[(pos__ - 1)], - "assigning variable arr_tuple_dot_3_temp__", - stan::model::index_uni(sym2__)); - pos__ = (pos__ + 1); - } - arr_tuple_dot_3_flat__pos__ = (arr_tuple_dot_3_flat__pos__ + 3); - } - stan::model::assign(arr_tuple, - std::tuple&, - Eigen::Matrix>(arr_tuple_dot_1_temp__, - arr_tuple_dot_2_temp__, arr_tuple_dot_3_temp__), - "assigning variable arr_tuple", stan::model::index_uni(sym1__)); - } - } current_statement__ = 11; context__.validate_dims("data initialization", "tuple_arr_tuple.1", "double", std::vector{static_cast(2)}); @@ -204,44 +127,6 @@ class arrays_tuples_nested_model final : public model_base_crtp(4, std::numeric_limits::min())})}; - current_statement__ = 11; - std::get<0>(tuple_arr_tuple) = context__.vals_r("tuple_arr_tuple.1"); - std::get<1>(tuple_arr_tuple) = context__.vals_i("tuple_arr_tuple.2")[(1 - - 1)]; - { - std::vector tuple_arr_tuple_dot_3_dot_1_flat__; - tuple_arr_tuple_dot_3_dot_1_flat__ = context__.vals_r("tuple_arr_tuple.3.1"); - int tuple_arr_tuple_dot_3_dot_1_flat__pos__; - tuple_arr_tuple_dot_3_dot_1_flat__pos__ = 1; - std::vector tuple_arr_tuple_dot_3_dot_2_flat__; - tuple_arr_tuple_dot_3_dot_2_flat__ = context__.vals_i("tuple_arr_tuple.3.2"); - int tuple_arr_tuple_dot_3_dot_2_flat__pos__; - tuple_arr_tuple_dot_3_dot_2_flat__pos__ = 1; - double tuple_arr_tuple_dot_3_dot_1_temp__ = - std::numeric_limits::quiet_NaN(); - std::vector tuple_arr_tuple_dot_3_dot_2_temp__ = - std::vector(4, std::numeric_limits::min()); - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - tuple_arr_tuple_dot_3_dot_1_temp__ = tuple_arr_tuple_dot_3_dot_1_flat__[(tuple_arr_tuple_dot_3_dot_1_flat__pos__ - - 1)]; - tuple_arr_tuple_dot_3_dot_1_flat__pos__ = (tuple_arr_tuple_dot_3_dot_1_flat__pos__ - + 1); - stan::model::assign(tuple_arr_tuple_dot_3_dot_2_temp__, - stan::model::rvalue(tuple_arr_tuple_dot_3_dot_2_flat__, - "tuple_arr_tuple_dot_3_dot_2_flat__", - stan::model::index_min_max( - tuple_arr_tuple_dot_3_dot_2_flat__pos__, - ((tuple_arr_tuple_dot_3_dot_2_flat__pos__ + 4) - 1))), - "assigning variable tuple_arr_tuple_dot_3_dot_2_temp__"); - tuple_arr_tuple_dot_3_dot_2_flat__pos__ = (tuple_arr_tuple_dot_3_dot_2_flat__pos__ - + 4); - stan::model::assign(std::get<2>(tuple_arr_tuple), - std::tuple&>(tuple_arr_tuple_dot_3_dot_1_temp__, - tuple_arr_tuple_dot_3_dot_2_temp__), - "assigning variable tuple_arr_tuple.3", - stan::model::index_uni(sym1__)); - } - } current_statement__ = 12; context__.validate_dims("data initialization", "arr_tuple_tuple.1", "double", std::vector{static_cast(2)}); @@ -270,95 +155,6 @@ class arrays_tuples_nested_model final : public model_base_crtp::min(), Eigen::Matrix::Constant(4, std::numeric_limits::quiet_NaN())}}}); - { - std::vector arr_tuple_tuple_dot_1_flat__; - current_statement__ = 12; - arr_tuple_tuple_dot_1_flat__ = context__.vals_r("arr_tuple_tuple.1"); - int arr_tuple_tuple_dot_1_flat__pos__; - arr_tuple_tuple_dot_1_flat__pos__ = 1; - std::vector arr_tuple_tuple_dot_2_flat__; - current_statement__ = 12; - arr_tuple_tuple_dot_2_flat__ = context__.vals_i("arr_tuple_tuple.2"); - int arr_tuple_tuple_dot_2_flat__pos__; - arr_tuple_tuple_dot_2_flat__pos__ = 1; - std::vector arr_tuple_tuple_dot_3_dot_1_flat__; - current_statement__ = 12; - arr_tuple_tuple_dot_3_dot_1_flat__ = context__.vals_r("arr_tuple_tuple.3.1"); - int arr_tuple_tuple_dot_3_dot_1_flat__pos__; - arr_tuple_tuple_dot_3_dot_1_flat__pos__ = 1; - std::vector arr_tuple_tuple_dot_3_dot_2_dot_1_flat__; - current_statement__ = 12; - arr_tuple_tuple_dot_3_dot_2_dot_1_flat__ = context__.vals_i("arr_tuple_tuple.3.2.1"); - int arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__; - arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__ = 1; - std::vector - arr_tuple_tuple_dot_3_dot_2_dot_2_flat__; - current_statement__ = 12; - arr_tuple_tuple_dot_3_dot_2_dot_2_flat__ = context__.vals_r("arr_tuple_tuple.3.2.2"); - int arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__; - arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__ = 1; - double arr_tuple_tuple_dot_1_temp__ = - std::numeric_limits::quiet_NaN(); - int arr_tuple_tuple_dot_2_temp__ = std::numeric_limits::min(); - std::tuple>> - arr_tuple_tuple_dot_3_temp__ = - std::tuple>>{ - std::numeric_limits::quiet_NaN(), - std::tuple>{std::numeric_limits::min( - ), - Eigen::Matrix::Constant(4, - std::numeric_limits::quiet_NaN())}}; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - arr_tuple_tuple_dot_1_temp__ = arr_tuple_tuple_dot_1_flat__[(arr_tuple_tuple_dot_1_flat__pos__ - - 1)]; - arr_tuple_tuple_dot_1_flat__pos__ = (arr_tuple_tuple_dot_1_flat__pos__ - + 1); - arr_tuple_tuple_dot_2_temp__ = arr_tuple_tuple_dot_2_flat__[(arr_tuple_tuple_dot_2_flat__pos__ - - 1)]; - arr_tuple_tuple_dot_2_flat__pos__ = (arr_tuple_tuple_dot_2_flat__pos__ - + 1); - stan::model::assign(std::get<0>(arr_tuple_tuple_dot_3_temp__), - arr_tuple_tuple_dot_3_dot_1_flat__[(arr_tuple_tuple_dot_3_dot_1_flat__pos__ - - 1)], "assigning variable arr_tuple_tuple_dot_3_temp__.1"); - arr_tuple_tuple_dot_3_dot_1_flat__pos__ = (arr_tuple_tuple_dot_3_dot_1_flat__pos__ - + 1); - stan::model::assign( - std::get<0>(std::get<1>(arr_tuple_tuple_dot_3_temp__)), - arr_tuple_tuple_dot_3_dot_2_dot_1_flat__[(arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__ - - 1)], "assigning variable arr_tuple_tuple_dot_3_temp__.2.1"); - arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__ = (arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__ - + 1); - { - std::vector - arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__; - stan::model::assign( - arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__, - stan::model::rvalue(arr_tuple_tuple_dot_3_dot_2_dot_2_flat__, - "arr_tuple_tuple_dot_3_dot_2_dot_2_flat__", - stan::model::index_min_max( - arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__, - ((arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__ + 4) - 1))), - "assigning variable arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__"); - pos__ = 1; - for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { - stan::model::assign( - std::get<1>(std::get<1>(arr_tuple_tuple_dot_3_temp__)), - arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__[(pos__ - 1)], - "assigning variable arr_tuple_tuple_dot_3_temp__.2.2", - stan::model::index_uni(sym2__)); - pos__ = (pos__ + 1); - } - arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__ = (arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__ - + 4); - } - stan::model::assign(arr_tuple_tuple, - std::tuple>>>(arr_tuple_tuple_dot_1_temp__, - arr_tuple_tuple_dot_2_temp__, arr_tuple_tuple_dot_3_temp__), - "assigning variable arr_tuple_tuple", - stan::model::index_uni(sym1__)); - } - } current_statement__ = 13; context__.validate_dims("data initialization", "arr_tuple_arr_tuple.1", "int", std::vector{static_cast(3)}); @@ -387,86 +183,6 @@ class arrays_tuples_nested_model final : public model_base_crtp::Constant(5, std::numeric_limits::quiet_NaN())})}); - { - std::vector arr_tuple_arr_tuple_dot_1_flat__; - current_statement__ = 13; - arr_tuple_arr_tuple_dot_1_flat__ = context__.vals_i("arr_tuple_arr_tuple.1"); - int arr_tuple_arr_tuple_dot_1_flat__pos__; - arr_tuple_arr_tuple_dot_1_flat__pos__ = 1; - std::vector arr_tuple_arr_tuple_dot_2_dot_1_flat__; - current_statement__ = 13; - arr_tuple_arr_tuple_dot_2_dot_1_flat__ = context__.vals_r("arr_tuple_arr_tuple.2.1"); - int arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__; - arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__ = 1; - std::vector arr_tuple_arr_tuple_dot_2_dot_2_flat__; - current_statement__ = 13; - arr_tuple_arr_tuple_dot_2_dot_2_flat__ = context__.vals_r("arr_tuple_arr_tuple.2.2"); - int arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__; - arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__ = 1; - int arr_tuple_arr_tuple_dot_1_temp__ = - std::numeric_limits::min(); - std::vector>> - arr_tuple_arr_tuple_dot_2_temp__ = - std::vector>>(4, - std::tuple>{std::numeric_limits::quiet_NaN( - ), - Eigen::Matrix::Constant(5, - std::numeric_limits::quiet_NaN())}); - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - arr_tuple_arr_tuple_dot_1_temp__ = arr_tuple_arr_tuple_dot_1_flat__[(arr_tuple_arr_tuple_dot_1_flat__pos__ - - 1)]; - arr_tuple_arr_tuple_dot_1_flat__pos__ = (arr_tuple_arr_tuple_dot_1_flat__pos__ - + 1); - { - double arr_tuple_arr_tuple_dot_2_dot_1_temp__ = - std::numeric_limits::quiet_NaN(); - Eigen::Matrix - arr_tuple_arr_tuple_dot_2_dot_2_temp__ = - Eigen::Matrix::Constant(5, - std::numeric_limits::quiet_NaN()); - for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { - arr_tuple_arr_tuple_dot_2_dot_1_temp__ = arr_tuple_arr_tuple_dot_2_dot_1_flat__[(arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__ - - 1)]; - arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__ = (arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__ - + 1); - { - std::vector - arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__; - stan::model::assign( - arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__, - stan::model::rvalue(arr_tuple_arr_tuple_dot_2_dot_2_flat__, - "arr_tuple_arr_tuple_dot_2_dot_2_flat__", - stan::model::index_min_max( - arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__, - ((arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__ + 5) - 1))), - "assigning variable arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__"); - pos__ = 1; - for (int sym3__ = 1; sym3__ <= 5; ++sym3__) { - stan::model::assign(arr_tuple_arr_tuple_dot_2_dot_2_temp__, - arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__[(pos__ - - 1)], - "assigning variable arr_tuple_arr_tuple_dot_2_dot_2_temp__", - stan::model::index_uni(sym3__)); - pos__ = (pos__ + 1); - } - arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__ = (arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__ - + 5); - } - stan::model::assign(arr_tuple_arr_tuple_dot_2_temp__, - std::tuple>(arr_tuple_arr_tuple_dot_2_dot_1_temp__, - arr_tuple_arr_tuple_dot_2_dot_2_temp__), - "assigning variable arr_tuple_arr_tuple_dot_2_temp__", - stan::model::index_uni(sym2__)); - } - } - stan::model::assign(arr_tuple_arr_tuple, - std::tuple>>>(arr_tuple_arr_tuple_dot_1_temp__, - arr_tuple_arr_tuple_dot_2_temp__), - "assigning variable arr_tuple_arr_tuple", - stan::model::index_uni(sym1__)); - } - } current_statement__ = 14; context__.validate_dims("data initialization", "very_deep.1", "int", std::vector{static_cast(3)}); @@ -517,141 +233,6 @@ class arrays_tuples_nested_model final : public model_base_crtp::Constant(6, 7, std::numeric_limits::quiet_NaN())})})}); - { - std::vector very_deep_dot_1_flat__; - current_statement__ = 14; - very_deep_dot_1_flat__ = context__.vals_i("very_deep.1"); - int very_deep_dot_1_flat__pos__; - very_deep_dot_1_flat__pos__ = 1; - std::vector very_deep_dot_2_dot_1_flat__; - current_statement__ = 14; - very_deep_dot_2_dot_1_flat__ = context__.vals_r("very_deep.2.1"); - int very_deep_dot_2_dot_1_flat__pos__; - very_deep_dot_2_dot_1_flat__pos__ = 1; - std::vector> - very_deep_dot_2_dot_2_dot_1_flat__; - current_statement__ = 14; - very_deep_dot_2_dot_2_dot_1_flat__ = context__.vals_c("very_deep.2.2.1"); - int very_deep_dot_2_dot_2_dot_1_flat__pos__; - very_deep_dot_2_dot_2_dot_1_flat__pos__ = 1; - std::vector very_deep_dot_2_dot_2_dot_2_flat__; - current_statement__ = 14; - very_deep_dot_2_dot_2_dot_2_flat__ = context__.vals_r("very_deep.2.2.2"); - int very_deep_dot_2_dot_2_dot_2_flat__pos__; - very_deep_dot_2_dot_2_dot_2_flat__pos__ = 1; - int very_deep_dot_1_temp__ = std::numeric_limits::min(); - std::vector< - std::tuple, Eigen::Matrix>>>> - very_deep_dot_2_temp__ = - std::vector< - std::tuple, Eigen::Matrix>>>>(4, - std::tuple, Eigen::Matrix>>>{ - std::numeric_limits::quiet_NaN(), - std::vector< - std::tuple, Eigen::Matrix>>(5, - std::tuple, Eigen::Matrix>{ - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN()), - Eigen::Matrix::Constant(6, 7, - std::numeric_limits::quiet_NaN())})}); - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - very_deep_dot_1_temp__ = very_deep_dot_1_flat__[(very_deep_dot_1_flat__pos__ - - 1)]; - very_deep_dot_1_flat__pos__ = (very_deep_dot_1_flat__pos__ + 1); - { - double very_deep_dot_2_dot_1_temp__ = - std::numeric_limits::quiet_NaN(); - std::vector< - std::tuple, Eigen::Matrix>> - very_deep_dot_2_dot_2_temp__ = - std::vector< - std::tuple, Eigen::Matrix>>(5, - std::tuple, Eigen::Matrix>{ - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN()), - Eigen::Matrix::Constant(6, 7, - std::numeric_limits::quiet_NaN())}); - for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { - very_deep_dot_2_dot_1_temp__ = very_deep_dot_2_dot_1_flat__[(very_deep_dot_2_dot_1_flat__pos__ - - 1)]; - very_deep_dot_2_dot_1_flat__pos__ = (very_deep_dot_2_dot_1_flat__pos__ - + 1); - { - std::complex very_deep_dot_2_dot_2_dot_1_temp__ = - std::complex(std::numeric_limits::quiet_NaN(), - std::numeric_limits::quiet_NaN()); - Eigen::Matrix - very_deep_dot_2_dot_2_dot_2_temp__ = - Eigen::Matrix::Constant(6, 7, - std::numeric_limits::quiet_NaN()); - for (int sym3__ = 1; sym3__ <= 5; ++sym3__) { - very_deep_dot_2_dot_2_dot_1_temp__ = very_deep_dot_2_dot_2_dot_1_flat__[(very_deep_dot_2_dot_2_dot_1_flat__pos__ - - 1)]; - very_deep_dot_2_dot_2_dot_1_flat__pos__ = (very_deep_dot_2_dot_2_dot_1_flat__pos__ - + 2); - { - std::vector - very_deep_dot_2_dot_2_dot_2_temp___flat__; - stan::model::assign( - very_deep_dot_2_dot_2_dot_2_temp___flat__, - stan::model::rvalue(very_deep_dot_2_dot_2_dot_2_flat__, - "very_deep_dot_2_dot_2_dot_2_flat__", - stan::model::index_min_max( - very_deep_dot_2_dot_2_dot_2_flat__pos__, - ((very_deep_dot_2_dot_2_dot_2_flat__pos__ + (6 * - 7)) - 1))), - "assigning variable very_deep_dot_2_dot_2_dot_2_temp___flat__"); - pos__ = 1; - for (int sym4__ = 1; sym4__ <= 7; ++sym4__) { - for (int sym5__ = 1; sym5__ <= 6; ++sym5__) { - stan::model::assign( - very_deep_dot_2_dot_2_dot_2_temp__, - very_deep_dot_2_dot_2_dot_2_temp___flat__[(pos__ - - 1)], - "assigning variable very_deep_dot_2_dot_2_dot_2_temp__", - stan::model::index_uni(sym5__), - stan::model::index_uni(sym4__)); - pos__ = (pos__ + 1); - } - } - very_deep_dot_2_dot_2_dot_2_flat__pos__ = (very_deep_dot_2_dot_2_dot_2_flat__pos__ - + (6 * 7)); - } - stan::model::assign(very_deep_dot_2_dot_2_temp__, - std::tuple&, - Eigen::Matrix>(very_deep_dot_2_dot_2_dot_1_temp__, - very_deep_dot_2_dot_2_dot_2_temp__), - "assigning variable very_deep_dot_2_dot_2_temp__", - stan::model::index_uni(sym3__)); - } - } - stan::model::assign(very_deep_dot_2_temp__, - std::tuple, - Eigen::Matrix>>>(very_deep_dot_2_dot_1_temp__, - very_deep_dot_2_dot_2_temp__), - "assigning variable very_deep_dot_2_temp__", - stan::model::index_uni(sym2__)); - } - } - stan::model::assign(very_deep, - std::tuple, - Eigen::Matrix>>>>>(very_deep_dot_1_temp__, - very_deep_dot_2_temp__), "assigning variable very_deep", - stan::model::index_uni(sym1__)); - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -695,11 +276,6 @@ class arrays_tuples_nested_model final : public model_base_crtp(10, DUMMY_VAR__), DUMMY_VAR__}; - current_statement__ = 1; - std::get<0>(basic_p) = in__.template read< - std::vector>(10); - current_statement__ = 1; - std::get<1>(basic_p) = in__.template read(); std::tuple>> tuple_tuple_p = @@ -707,14 +283,6 @@ class arrays_tuples_nested_model final : public model_base_crtp>>{DUMMY_VAR__, std::tuple>{DUMMY_VAR__, Eigen::Matrix::Constant(2, DUMMY_VAR__)}}; - current_statement__ = 2; - std::get<0>(tuple_tuple_p) = in__.template read(); - current_statement__ = 2; - std::get<0>(std::get<1>(tuple_tuple_p)) = in__.template read< - local_scalar_t__>(); - current_statement__ = 2; - std::get<1>(std::get<1>(tuple_tuple_p)) = in__.template read< - Eigen::Matrix>(2); std::vector< std::tuple, std::vector, @@ -729,19 +297,6 @@ class arrays_tuples_nested_model final : public model_base_crtp(4, DUMMY_VAR__), Eigen::Matrix::Constant(3, DUMMY_VAR__)}); - current_statement__ = 3; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - current_statement__ = 3; - std::get<0>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< - std::complex>(); - current_statement__ = 3; - std::get<1>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< - std::vector< - local_scalar_t__>>(4); - current_statement__ = 3; - std::get<2>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< - Eigen::Matrix>(3); - } std::tuple, local_scalar_t__, std::vector< std::tuple>>> @@ -754,21 +309,6 @@ class arrays_tuples_nested_model final : public model_base_crtp>>(3, std::tuple>{DUMMY_VAR__, std::vector(4, DUMMY_VAR__)})}; - current_statement__ = 4; - std::get<0>(tuple_arr_tuple_p) = in__.template read< - std::vector>(2); - current_statement__ = 4; - std::get<1>(tuple_arr_tuple_p) = in__.template read(); - current_statement__ = 4; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - current_statement__ = 4; - std::get<0>(std::get<2>(tuple_arr_tuple_p)[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 4; - std::get<1>(std::get<2>(tuple_arr_tuple_p)[(sym1__ - 1)]) = in__.template read< - std::vector< - local_scalar_t__>>(4); - } std::vector< std::tuple::Constant(4, DUMMY_VAR__)}}}); - current_statement__ = 5; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - current_statement__ = 5; - std::get<0>(arr_tuple_tuple_p[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 5; - std::get<1>(arr_tuple_tuple_p[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 5; - std::get<0>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)])) = in__.template read< - local_scalar_t__>(); - current_statement__ = 5; - std::get<0>(std::get<1>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)]))) = - in__.template read>(); - current_statement__ = 5; - std::get<1>(std::get<1>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)]))) = - in__.template read>(4); - } std::vector< std::tuple>{DUMMY_VAR__, Eigen::Matrix::Constant(5, DUMMY_VAR__)})}); - current_statement__ = 6; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - current_statement__ = 6; - std::get<0>(arr_tuple_arr_tuple_p[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 6; - for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { - current_statement__ = 6; - std::get<0>( - std::get<1>(arr_tuple_arr_tuple_p[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read(); - current_statement__ = 6; - std::get<1>( - std::get<1>(arr_tuple_arr_tuple_p[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read>(5); - } - } std::vector< std::tuple::Constant(6, 7, DUMMY_VAR__)})})}); - current_statement__ = 7; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - current_statement__ = 7; - std::get<0>(very_deep_p[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 7; - for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { - current_statement__ = 7; - std::get<0>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read(); - current_statement__ = 7; - for (int sym3__ = 1; sym3__ <= 5; ++sym3__) { - current_statement__ = 7; - std::get<0>( - std::get<1>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - - 1)])[(sym3__ - 1)]) = in__.template read< - std::complex>(); - current_statement__ = 7; - std::get<1>( - std::get<1>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - - 1)])[(sym3__ - 1)]) = in__.template read< - Eigen::Matrix>(6, - 7); - } - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -947,11 +426,6 @@ class arrays_tuples_nested_model final : public model_base_crtp(10, DUMMY_VAR__), DUMMY_VAR__}; - current_statement__ = 1; - std::get<0>(basic_p) = in__.template read< - std::vector>(10); - current_statement__ = 1; - std::get<1>(basic_p) = in__.template read(); std::tuple>> tuple_tuple_p = @@ -959,14 +433,6 @@ class arrays_tuples_nested_model final : public model_base_crtp>>{DUMMY_VAR__, std::tuple>{DUMMY_VAR__, Eigen::Matrix::Constant(2, DUMMY_VAR__)}}; - current_statement__ = 2; - std::get<0>(tuple_tuple_p) = in__.template read(); - current_statement__ = 2; - std::get<0>(std::get<1>(tuple_tuple_p)) = in__.template read< - local_scalar_t__>(); - current_statement__ = 2; - std::get<1>(std::get<1>(tuple_tuple_p)) = in__.template read< - Eigen::Matrix>(2); std::vector< std::tuple, std::vector, @@ -981,19 +447,6 @@ class arrays_tuples_nested_model final : public model_base_crtp(4, DUMMY_VAR__), Eigen::Matrix::Constant(3, DUMMY_VAR__)}); - current_statement__ = 3; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - current_statement__ = 3; - std::get<0>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< - std::complex>(); - current_statement__ = 3; - std::get<1>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< - std::vector< - local_scalar_t__>>(4); - current_statement__ = 3; - std::get<2>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< - Eigen::Matrix>(3); - } std::tuple, local_scalar_t__, std::vector< std::tuple>>> @@ -1006,21 +459,6 @@ class arrays_tuples_nested_model final : public model_base_crtp>>(3, std::tuple>{DUMMY_VAR__, std::vector(4, DUMMY_VAR__)})}; - current_statement__ = 4; - std::get<0>(tuple_arr_tuple_p) = in__.template read< - std::vector>(2); - current_statement__ = 4; - std::get<1>(tuple_arr_tuple_p) = in__.template read(); - current_statement__ = 4; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - current_statement__ = 4; - std::get<0>(std::get<2>(tuple_arr_tuple_p)[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 4; - std::get<1>(std::get<2>(tuple_arr_tuple_p)[(sym1__ - 1)]) = in__.template read< - std::vector< - local_scalar_t__>>(4); - } std::vector< std::tuple::Constant(4, DUMMY_VAR__)}}}); - current_statement__ = 5; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - current_statement__ = 5; - std::get<0>(arr_tuple_tuple_p[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 5; - std::get<1>(arr_tuple_tuple_p[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 5; - std::get<0>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)])) = in__.template read< - local_scalar_t__>(); - current_statement__ = 5; - std::get<0>(std::get<1>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)]))) = - in__.template read>(); - current_statement__ = 5; - std::get<1>(std::get<1>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)]))) = - in__.template read>(4); - } std::vector< std::tuple>{DUMMY_VAR__, Eigen::Matrix::Constant(5, DUMMY_VAR__)})}); - current_statement__ = 6; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - current_statement__ = 6; - std::get<0>(arr_tuple_arr_tuple_p[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 6; - for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { - current_statement__ = 6; - std::get<0>( - std::get<1>(arr_tuple_arr_tuple_p[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read(); - current_statement__ = 6; - std::get<1>( - std::get<1>(arr_tuple_arr_tuple_p[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read>(5); - } - } std::vector< std::tuple::Constant(6, 7, DUMMY_VAR__)})})}); - current_statement__ = 7; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - current_statement__ = 7; - std::get<0>(very_deep_p[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 7; - for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { - current_statement__ = 7; - std::get<0>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read(); - current_statement__ = 7; - for (int sym3__ = 1; sym3__ <= 5; ++sym3__) { - current_statement__ = 7; - std::get<0>( - std::get<1>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - - 1)])[(sym3__ - 1)]) = in__.template read< - std::complex>(); - current_statement__ = 7; - std::get<1>( - std::get<1>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - - 1)])[(sym3__ - 1)]) = in__.template read< - Eigen::Matrix>(6, - 7); - } - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -1210,11 +587,6 @@ class arrays_tuples_nested_model final : public model_base_crtp::quiet_NaN( )), std::numeric_limits::quiet_NaN()}; - current_statement__ = 1; - std::get<0>(basic_p) = in__.template read< - std::vector>(10); - current_statement__ = 1; - std::get<1>(basic_p) = in__.template read(); std::tuple>> tuple_tuple_p = std::tuple>>{ @@ -1223,14 +595,6 @@ class arrays_tuples_nested_model final : public model_base_crtp::Constant(2, std::numeric_limits::quiet_NaN())}}; - current_statement__ = 2; - std::get<0>(tuple_tuple_p) = in__.template read(); - current_statement__ = 2; - std::get<0>(std::get<1>(tuple_tuple_p)) = in__.template read< - local_scalar_t__>(); - current_statement__ = 2; - std::get<1>(std::get<1>(tuple_tuple_p)) = in__.template read< - Eigen::Matrix>(2); std::vector< std::tuple, std::vector, Eigen::Matrix>> arr_tuple_p = @@ -1245,19 +609,6 @@ class arrays_tuples_nested_model final : public model_base_crtp(4, std::numeric_limits::quiet_NaN()), Eigen::Matrix::Constant(3, std::numeric_limits::quiet_NaN())}); - current_statement__ = 3; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - current_statement__ = 3; - std::get<0>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< - std::complex>(); - current_statement__ = 3; - std::get<1>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< - std::vector< - local_scalar_t__>>(4); - current_statement__ = 3; - std::get<2>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< - Eigen::Matrix>(3); - } std::tuple, double, std::vector>>> tuple_arr_tuple_p = @@ -1272,21 +623,6 @@ class arrays_tuples_nested_model final : public model_base_crtp(4, std::numeric_limits::quiet_NaN())})}; - current_statement__ = 4; - std::get<0>(tuple_arr_tuple_p) = in__.template read< - std::vector>(2); - current_statement__ = 4; - std::get<1>(tuple_arr_tuple_p) = in__.template read(); - current_statement__ = 4; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - current_statement__ = 4; - std::get<0>(std::get<2>(tuple_arr_tuple_p)[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 4; - std::get<1>(std::get<2>(tuple_arr_tuple_p)[(sym1__ - 1)]) = in__.template read< - std::vector< - local_scalar_t__>>(4); - } std::vector< std::tuple::quiet_NaN()), Eigen::Matrix::Constant(4, std::numeric_limits::quiet_NaN())}}}); - current_statement__ = 5; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - current_statement__ = 5; - std::get<0>(arr_tuple_tuple_p[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 5; - std::get<1>(arr_tuple_tuple_p[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 5; - std::get<0>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)])) = in__.template read< - local_scalar_t__>(); - current_statement__ = 5; - std::get<0>(std::get<1>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)]))) = - in__.template read>(); - current_statement__ = 5; - std::get<1>(std::get<1>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)]))) = - in__.template read>(4); - } std::vector< std::tuple>>>> @@ -1342,23 +660,6 @@ class arrays_tuples_nested_model final : public model_base_crtp::Constant(5, std::numeric_limits::quiet_NaN())})}); - current_statement__ = 6; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - current_statement__ = 6; - std::get<0>(arr_tuple_arr_tuple_p[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 6; - for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { - current_statement__ = 6; - std::get<0>( - std::get<1>(arr_tuple_arr_tuple_p[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read(); - current_statement__ = 6; - std::get<1>( - std::get<1>(arr_tuple_arr_tuple_p[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read>(5); - } - } std::vector< std::tuple, Eigen::Matrix>>>>(4, - std::tuple, - Eigen::Matrix>>>{std::numeric_limits::quiet_NaN( - ), - std::vector< - std::tuple, - Eigen::Matrix>>(5, - std::tuple, - Eigen::Matrix>{std::complex( - std::numeric_limits::quiet_NaN( - ), - std::numeric_limits::quiet_NaN( - )), - Eigen::Matrix::Constant(6, 7, - std::numeric_limits::quiet_NaN())})})}); - current_statement__ = 7; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - current_statement__ = 7; - std::get<0>(very_deep_p[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 7; - for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { - current_statement__ = 7; - std::get<0>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read(); - current_statement__ = 7; - for (int sym3__ = 1; sym3__ <= 5; ++sym3__) { - current_statement__ = 7; - std::get<0>( - std::get<1>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - - 1)])[(sym3__ - 1)]) = in__.template read< - std::complex>(); - current_statement__ = 7; - std::get<1>( - std::get<1>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - - 1)])[(sym3__ - 1)]) = in__.template read< - Eigen::Matrix>(6, - 7); - } - } - } + std::tuple, + Eigen::Matrix>>>{std::numeric_limits::quiet_NaN( + ), + std::vector< + std::tuple, + Eigen::Matrix>>(5, + std::tuple, + Eigen::Matrix>{std::complex( + std::numeric_limits::quiet_NaN( + ), + std::numeric_limits::quiet_NaN( + )), + Eigen::Matrix::Constant(6, 7, + std::numeric_limits::quiet_NaN())})})}); out__.write(std::get<0>(basic_p)); out__.write(std::get<1>(basic_p)); out__.write(std::get<0>(tuple_tuple_p)); @@ -3376,9 +2651,7 @@ class infer_tuple_ad_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ x = DUMMY_VAR__; - current_statement__ = 1; - x = in__.template read(); + local_scalar_t__ x = in__.template read(); { std::vector> z = std::vector>(2, @@ -3421,9 +2694,7 @@ class infer_tuple_ad_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ x = DUMMY_VAR__; - current_statement__ = 1; - x = in__.template read(); + local_scalar_t__ x = in__.template read(); { std::vector> z = std::vector>(2, @@ -3477,9 +2748,7 @@ class infer_tuple_ad_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double x = std::numeric_limits::quiet_NaN(); - current_statement__ = 1; - x = in__.template read(); + double x = in__.template read(); out__.write(x); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -3743,24 +3012,6 @@ class nested_unpacking_model final : public model_base_crtp(4, std::numeric_limits::quiet_NaN())}, std::numeric_limits::min()}; - current_statement__ = 8; - std::get<0>(complicated) = context__.vals_r("complicated.1"); - std::get<0>(std::get<1>(complicated)) = context__.vals_r("complicated.2.1")[(1 - - 1)]; - { - std::vector complicated_dot_2_dot_2_flat__; - complicated_dot_2_dot_2_flat__ = context__.vals_r("complicated.2.2"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 4; ++sym1__) { - stan::model::assign(std::get<1>(std::get<1>(complicated)), - complicated_dot_2_dot_2_flat__[(pos__ - 1)], - "assigning variable complicated.2.2", - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - std::get<2>(std::get<1>(complicated)) = context__.vals_r("complicated.2.3"); - std::get<2>(complicated) = context__.vals_i("complicated.3")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -4159,16 +3410,12 @@ class qr_unpack_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 11; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 11; stan::math::check_greater_or_equal(function__, "N", N, 1); current_statement__ = 12; context__.validate_dims("data initialization", "M", "int", std::vector{}); M = std::numeric_limits::min(); current_statement__ = 12; - M = context__.vals_i("M")[(1 - 1)]; - current_statement__ = 12; stan::math::check_greater_or_equal(function__, "M", M, 1); current_statement__ = 13; stan::math::validate_non_negative_index("A", "N", N); @@ -4211,9 +3458,7 @@ class qr_unpack_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix A = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 1; - A = in__.template read>(N, M); + in__.template read>(N, M); { current_statement__ = 2; stan::math::validate_non_negative_index("Q", "N", N); @@ -4273,9 +3518,7 @@ class qr_unpack_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix A = - Eigen::Matrix::Constant(N, M, DUMMY_VAR__); - current_statement__ = 1; - A = in__.template read>(N, M); + in__.template read>(N, M); { current_statement__ = 2; stan::math::validate_non_negative_index("Q", "N", N); @@ -4346,10 +3589,7 @@ class qr_unpack_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix A = - Eigen::Matrix::Constant(N, M, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - A = in__.template read>(N, M); + in__.template read>(N, M); out__.write(A); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -5608,10 +4848,6 @@ class tuple_constraints_data_model final : public model_base_crtp{std::numeric_limits::quiet_NaN(), std::numeric_limits::min()}}; current_statement__ = 1; - std::get<0>(y) = context__.vals_i("y.1")[(1 - 1)]; - std::get<0>(std::get<1>(y)) = context__.vals_r("y.2.1")[(1 - 1)]; - std::get<1>(std::get<1>(y)) = context__.vals_i("y.2.2")[(1 - 1)]; - current_statement__ = 1; stan::math::check_greater_or_equal(function__, "y.1", std::get<0>(y), 0); current_statement__ = 1; stan::math::check_greater_or_equal(function__, "y.2.1", @@ -5632,19 +4868,6 @@ class tuple_constraints_data_model final : public model_base_crtp::Constant(2, std::numeric_limits::quiet_NaN())}; current_statement__ = 2; - std::get<0>(x) = context__.vals_i("x.1")[(1 - 1)]; - std::get<1>(x) = context__.vals_r("x.2")[(1 - 1)]; - { - std::vector x_dot_3_flat__; - x_dot_3_flat__ = context__.vals_r("x.3"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - stan::model::assign(std::get<2>(x), x_dot_3_flat__[(pos__ - 1)], - "assigning variable x.3", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - current_statement__ = 2; stan::math::check_greater_or_equal(function__, "x.1", std::get<0>(x), 0); current_statement__ = 2; stan::math::check_greater_or_equal(function__, "x.2", std::get<1>(x), 1); @@ -5663,49 +4886,6 @@ class tuple_constraints_data_model final : public model_base_crtp::Constant(4, std::numeric_limits::quiet_NaN())})); - { - std::vector z_dot_1_flat__; - current_statement__ = 3; - z_dot_1_flat__ = context__.vals_r("z.1"); - int z_dot_1_flat__pos__; - z_dot_1_flat__pos__ = 1; - std::vector z_dot_2_flat__; - current_statement__ = 3; - z_dot_2_flat__ = context__.vals_r("z.2"); - int z_dot_2_flat__pos__; - z_dot_2_flat__pos__ = 1; - double z_dot_1_temp__ = std::numeric_limits::quiet_NaN(); - Eigen::Matrix z_dot_2_temp__ = - Eigen::Matrix::Constant(4, - std::numeric_limits::quiet_NaN()); - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { - z_dot_1_temp__ = z_dot_1_flat__[(z_dot_1_flat__pos__ - 1)]; - z_dot_1_flat__pos__ = (z_dot_1_flat__pos__ + 1); - { - std::vector z_dot_2_temp___flat__; - stan::model::assign(z_dot_2_temp___flat__, - stan::model::rvalue(z_dot_2_flat__, "z_dot_2_flat__", - stan::model::index_min_max(z_dot_2_flat__pos__, - ((z_dot_2_flat__pos__ + 4) - 1))), - "assigning variable z_dot_2_temp___flat__"); - pos__ = 1; - for (int sym3__ = 1; sym3__ <= 4; ++sym3__) { - stan::model::assign(z_dot_2_temp__, - z_dot_2_temp___flat__[(pos__ - 1)], - "assigning variable z_dot_2_temp__", - stan::model::index_uni(sym3__)); - pos__ = (pos__ + 1); - } - z_dot_2_flat__pos__ = (z_dot_2_flat__pos__ + 4); - } - stan::model::assign(z, - std::tuple>(z_dot_1_temp__, - z_dot_2_temp__), "assigning variable z", - stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); - } - } - } current_statement__ = 3; for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { @@ -6058,8 +5238,6 @@ class tuple_constraints_params_model final : public model_base_crtp{}); indicator = std::numeric_limits::min(); current_statement__ = 5; - indicator = context__.vals_i("indicator")[(1 - 1)]; - current_statement__ = 5; stan::math::check_greater_or_equal(function__, "indicator", indicator, 0); current_statement__ = 5; @@ -6116,12 +5294,6 @@ class tuple_constraints_params_model final : public model_base_crtp ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; - current_statement__ = 1; - std::get<0>(ps) = in__.template read_constrain_lb(0, lp__); - current_statement__ = 1; - std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); std::vector< std::vector< std::tuple>>> @@ -6136,25 +5308,9 @@ class tuple_constraints_params_model final : public model_base_crtp>{DUMMY_VAR__, Eigen::Matrix::Constant(4, DUMMY_VAR__)})); - current_statement__ = 2; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { - current_statement__ = 2; - std::get<0>(ps2[(sym2__ - 1)][(sym1__ - 1)]) = in__.template read_constrain_lb< - local_scalar_t__, - jacobian__>(0, - lp__); - current_statement__ = 2; - std::get<1>(ps2[(sym2__ - 1)][(sym1__ - 1)]) = in__.template read_constrain_simplex< - Eigen::Matrix, - jacobian__>(lp__, - 4); - } - } - local_scalar_t__ t = DUMMY_VAR__; - current_statement__ = 3; - t = in__.template read_constrain_lub(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); + local_scalar_t__ t = + in__.template read_constrain_lub(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); std::vector< std::tuple::Constant(5, 4, DUMMY_VAR__)})}); - current_statement__ = 4; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - current_statement__ = 4; - std::get<0>(complicated[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 4; - for (int sym2__ = 1; sym2__ <= - complicated_brack_dot2_1dim__; ++sym2__) { - current_statement__ = 4; - std::get<0>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read(); - current_statement__ = 4; - std::get<1>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read_constrain_simplex< - Eigen::Matrix, jacobian__>(lp__, 5); - current_statement__ = 4; - std::get<2>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read_constrain_cholesky_factor_cov< - Eigen::Matrix, jacobian__>(lp__, 5, 4); - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -6237,12 +5372,6 @@ class tuple_constraints_params_model final : public model_base_crtp ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; - current_statement__ = 1; - std::get<0>(ps) = in__.template read_constrain_lb(0, lp__); - current_statement__ = 1; - std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); std::vector< std::vector< std::tuple>>> @@ -6257,25 +5386,9 @@ class tuple_constraints_params_model final : public model_base_crtp>{DUMMY_VAR__, Eigen::Matrix::Constant(4, DUMMY_VAR__)})); - current_statement__ = 2; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { - current_statement__ = 2; - std::get<0>(ps2[(sym2__ - 1)][(sym1__ - 1)]) = in__.template read_constrain_lb< - local_scalar_t__, - jacobian__>(0, - lp__); - current_statement__ = 2; - std::get<1>(ps2[(sym2__ - 1)][(sym1__ - 1)]) = in__.template read_constrain_simplex< - Eigen::Matrix, - jacobian__>(lp__, - 4); - } - } - local_scalar_t__ t = DUMMY_VAR__; - current_statement__ = 3; - t = in__.template read_constrain_lub(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); + local_scalar_t__ t = + in__.template read_constrain_lub(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); std::vector< std::tuple::Constant(5, 4, DUMMY_VAR__)})}); - current_statement__ = 4; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - current_statement__ = 4; - std::get<0>(complicated[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 4; - for (int sym2__ = 1; sym2__ <= - complicated_brack_dot2_1dim__; ++sym2__) { - current_statement__ = 4; - std::get<0>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read(); - current_statement__ = 4; - std::get<1>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read_constrain_simplex< - Eigen::Matrix, jacobian__>(lp__, 5); - current_statement__ = 4; - std::get<2>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read_constrain_cholesky_factor_cov< - Eigen::Matrix, jacobian__>(lp__, 5, 4); - } - } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -6369,12 +5461,6 @@ class tuple_constraints_params_model final : public model_base_crtp ps = std::tuple{std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()}; - current_statement__ = 1; - std::get<0>(ps) = in__.template read_constrain_lb(0, lp__); - current_statement__ = 1; - std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); std::vector< std::vector>>> ps2 = std::vector< @@ -6384,25 +5470,9 @@ class tuple_constraints_params_model final : public model_base_crtp::Constant(4, std::numeric_limits::quiet_NaN())})); - current_statement__ = 2; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { - current_statement__ = 2; - std::get<0>(ps2[(sym2__ - 1)][(sym1__ - 1)]) = in__.template read_constrain_lb< - local_scalar_t__, - jacobian__>(0, - lp__); - current_statement__ = 2; - std::get<1>(ps2[(sym2__ - 1)][(sym1__ - 1)]) = in__.template read_constrain_simplex< - Eigen::Matrix, - jacobian__>(lp__, - 4); - } - } - double t = std::numeric_limits::quiet_NaN(); - current_statement__ = 3; - t = in__.template read_constrain_lub(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); + double t = + in__.template read_constrain_lub(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); std::vector< std::tuple::quiet_NaN()), Eigen::Matrix::Constant(5, 4, std::numeric_limits::quiet_NaN())})}); - current_statement__ = 4; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - current_statement__ = 4; - std::get<0>(complicated[(sym1__ - 1)]) = in__.template read< - local_scalar_t__>(); - current_statement__ = 4; - for (int sym2__ = 1; sym2__ <= - complicated_brack_dot2_1dim__; ++sym2__) { - current_statement__ = 4; - std::get<0>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read(); - current_statement__ = 4; - std::get<1>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read_constrain_simplex< - Eigen::Matrix, jacobian__>(lp__, 5); - current_statement__ = 4; - std::get<2>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = - in__.template read_constrain_cholesky_factor_cov< - Eigen::Matrix, jacobian__>(lp__, 5, 4); - } - } out__.write(std::get<0>(ps)); out__.write(std::get<1>(ps)); current_statement__ = 2; @@ -7261,9 +6310,6 @@ class tuple_dataonly_model final : public model_base_crtp std::vector{}); d = std::tuple{std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()}; - current_statement__ = 4; - std::get<0>(d) = context__.vals_r("d.1")[(1 - 1)]; - std::get<1>(d) = context__.vals_r("d.2")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -8317,10 +7363,6 @@ class tuple_full_model final : public model_base_crtp { )), std::vector(2, std::numeric_limits::min())}}; current_statement__ = 4; - std::get<0>(ds) = context__.vals_i("ds.1")[(1 - 1)]; - std::get<0>(std::get<1>(ds)) = context__.vals_i("ds.2.1"); - std::get<1>(std::get<1>(ds)) = context__.vals_i("ds.2.2"); - current_statement__ = 4; stan::math::check_greater_or_equal(function__, "ds.1", std::get<0>(ds), 0); current_statement__ = 4; @@ -8364,12 +7406,6 @@ class tuple_full_model final : public model_base_crtp { std::tuple ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; - current_statement__ = 1; - std::get<0>(ps) = in__.template read_constrain_lb(0, lp__); - current_statement__ = 1; - std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); { current_statement__ = 2; lp_accum__.add(stan::math::bernoulli_lpmf(std::get<0>(ds), @@ -8414,12 +7450,6 @@ class tuple_full_model final : public model_base_crtp { std::tuple ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; - current_statement__ = 1; - std::get<0>(ps) = in__.template read_constrain_lb(0, lp__); - current_statement__ = 1; - std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); { current_statement__ = 2; lp_accum__.add(stan::math::bernoulli_lpmf(std::get<0>(ds), @@ -8475,12 +7505,6 @@ class tuple_full_model final : public model_base_crtp { std::tuple ps = std::tuple{std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()}; - current_statement__ = 1; - std::get<0>(ps) = in__.template read_constrain_lb(0, lp__); - current_statement__ = 1; - std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); out__.write(std::get<0>(ps)); out__.write(std::get<1>(ps)); if (stan::math::logical_negation( @@ -10026,10 +9050,6 @@ class tuple_nested_param_model final : public model_base_crtp ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; - current_statement__ = 1; - std::get<0>(ps) = in__.template read(); - current_statement__ = 1; - std::get<1>(ps) = in__.template read(); std::tuple>> ps2 = @@ -10038,14 +9058,6 @@ class tuple_nested_param_model final : public model_base_crtp>{DUMMY_VAR__, Eigen::Matrix::Constant(10, 10, DUMMY_VAR__)}}; - current_statement__ = 2; - std::get<0>(ps2) = in__.template read(); - current_statement__ = 2; - std::get<0>(std::get<1>(ps2)) = in__.template read(); - current_statement__ = 2; - std::get<1>(std::get<1>(ps2)) = in__.template read< - Eigen::Matrix>(10, - 10); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -10079,10 +9091,6 @@ class tuple_nested_param_model final : public model_base_crtp ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; - current_statement__ = 1; - std::get<0>(ps) = in__.template read(); - current_statement__ = 1; - std::get<1>(ps) = in__.template read(); std::tuple>> ps2 = @@ -10091,14 +9099,6 @@ class tuple_nested_param_model final : public model_base_crtp>{DUMMY_VAR__, Eigen::Matrix::Constant(10, 10, DUMMY_VAR__)}}; - current_statement__ = 2; - std::get<0>(ps2) = in__.template read(); - current_statement__ = 2; - std::get<0>(std::get<1>(ps2)) = in__.template read(); - current_statement__ = 2; - std::get<1>(std::get<1>(ps2)) = in__.template read< - Eigen::Matrix>(10, - 10); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -10143,10 +9143,6 @@ class tuple_nested_param_model final : public model_base_crtp ps = std::tuple{std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()}; - current_statement__ = 1; - std::get<0>(ps) = in__.template read(); - current_statement__ = 1; - std::get<1>(ps) = in__.template read(); std::tuple>> ps2 = std::tuple>>{ @@ -10155,14 +9151,6 @@ class tuple_nested_param_model final : public model_base_crtp::Constant(10, 10, std::numeric_limits::quiet_NaN())}}; - current_statement__ = 2; - std::get<0>(ps2) = in__.template read(); - current_statement__ = 2; - std::get<0>(std::get<1>(ps2)) = in__.template read(); - current_statement__ = 2; - std::get<1>(std::get<1>(ps2)) = in__.template read< - Eigen::Matrix>(10, - 10); out__.write(std::get<0>(ps)); out__.write(std::get<1>(ps)); out__.write(std::get<0>(ps2)); @@ -10531,11 +9519,6 @@ class tuple_params_model final : public model_base_crtp { std::tuple ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; - current_statement__ = 1; - std::get<0>(ps) = in__.template read(); - current_statement__ = 1; - std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -10569,11 +9552,6 @@ class tuple_params_model final : public model_base_crtp { std::tuple ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; - current_statement__ = 1; - std::get<0>(ps) = in__.template read(); - current_statement__ = 1; - std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -10618,11 +9596,6 @@ class tuple_params_model final : public model_base_crtp { std::tuple ps = std::tuple{std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()}; - current_statement__ = 1; - std::get<0>(ps) = in__.template read(); - current_statement__ = 1; - std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); out__.write(std::get<0>(ps)); out__.write(std::get<1>(ps)); if (stan::math::logical_negation( @@ -10955,17 +9928,6 @@ class tuple_promotion_model final : public model_base_crtp::Constant(3, std::numeric_limits::quiet_NaN()); new (&V) Eigen::Map>(V_data__.data(), 3); - { - std::vector V_flat__; - current_statement__ = 11; - V_flat__ = context__.vals_r("V"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { - stan::model::assign(V, V_flat__[(pos__ - 1)], - "assigning variable V", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 12; context__.validate_dims("data initialization", "d.1", "int", std::vector{static_cast(3)}); @@ -10975,9 +9937,6 @@ class tuple_promotion_model final : public model_base_crtp::min( )), std::vector(3, std::numeric_limits::min())}; - current_statement__ = 12; - std::get<0>(d) = context__.vals_i("d.1"); - std::get<1>(d) = context__.vals_i("d.2"); current_statement__ = 13; arrs = std::vector>>(4, std::tuple>{std::numeric_limits::min( @@ -12165,8 +11124,6 @@ class tuple_templating_model final : public model_base_crtp{}); N = std::numeric_limits::min(); - current_statement__ = 6; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 7; stan::math::validate_non_negative_index("m1", "N", N); current_statement__ = 8; @@ -12178,20 +11135,6 @@ class tuple_templating_model final : public model_base_crtp::quiet_NaN()); new (&m1) Eigen::Map>(m1_data__.data(), N, N); - { - std::vector m1_flat__; - current_statement__ = 9; - m1_flat__ = context__.vals_r("m1"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(m1, m1_flat__[(pos__ - 1)], - "assigning variable m1", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 10; stan::math::validate_non_negative_index("m2", "N", N); current_statement__ = 11; @@ -12203,36 +11146,18 @@ class tuple_templating_model final : public model_base_crtp::quiet_NaN()); new (&m2) Eigen::Map>(m2_data__.data(), N, N); - { - std::vector m2_flat__; - current_statement__ = 12; - m2_flat__ = context__.vals_r("m2"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - for (int sym2__ = 1; sym2__ <= N; ++sym2__) { - stan::model::assign(m2, m2_flat__[(pos__ - 1)], - "assigning variable m2", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 13; stan::math::validate_non_negative_index("a1", "N", N); current_statement__ = 14; context__.validate_dims("data initialization", "a1", "int", std::vector{static_cast(N)}); a1 = std::vector(N, std::numeric_limits::min()); - current_statement__ = 14; - a1 = context__.vals_i("a1"); current_statement__ = 15; stan::math::validate_non_negative_index("a2", "N", N); current_statement__ = 16; context__.validate_dims("data initialization", "a2", "double", std::vector{static_cast(N)}); a2 = std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 16; - a2 = context__.vals_r("a2"); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -12783,26 +11708,10 @@ class tuple_copying_model final : public model_base_crtp { x_data__ = Eigen::Matrix::Constant(2, 2, std::numeric_limits::quiet_NaN()); new (&x) Eigen::Map>(x_data__.data(), 2, 2); - { - std::vector x_flat__; - current_statement__ = 12; - x_flat__ = context__.vals_r("x"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { - for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym2__), - stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } - } current_statement__ = 13; context__.validate_dims("data initialization", "y", "double", std::vector{static_cast(10)}); y = std::vector(10, std::numeric_limits::quiet_NaN()); - current_statement__ = 13; - y = context__.vals_r("y"); current_statement__ = 14; data_tuple = std::tuple, std::vector>{Eigen::Matrix::Constant(2, @@ -12848,13 +11757,9 @@ class tuple_copying_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix m1 = - Eigen::Matrix::Constant(3, 3, DUMMY_VAR__); - current_statement__ = 1; - m1 = in__.template read>(3, 3); + in__.template read>(3, 3); Eigen::Matrix m2 = - Eigen::Matrix::Constant(3, 3, DUMMY_VAR__); - current_statement__ = 1; - m2 = in__.template read>(3, 3); + in__.template read>(3, 3); { std::tuple, Eigen::Matrix> temp = @@ -12954,13 +11859,9 @@ class tuple_copying_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix m1 = - Eigen::Matrix::Constant(3, 3, DUMMY_VAR__); - current_statement__ = 1; - m1 = in__.template read>(3, 3); + in__.template read>(3, 3); Eigen::Matrix m2 = - Eigen::Matrix::Constant(3, 3, DUMMY_VAR__); - current_statement__ = 1; - m2 = in__.template read>(3, 3); + in__.template read>(3, 3); { std::tuple, Eigen::Matrix> temp = @@ -13071,15 +11972,9 @@ class tuple_copying_model final : public model_base_crtp { (void) function__; try { Eigen::Matrix m1 = - Eigen::Matrix::Constant(3, 3, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - m1 = in__.template read>(3, 3); + in__.template read>(3, 3); Eigen::Matrix m2 = - Eigen::Matrix::Constant(3, 3, - std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - m2 = in__.template read>(3, 3); + in__.template read>(3, 3); out__.write(m1); out__.write(m2); if (stan::math::logical_negation( @@ -13849,8 +12744,6 @@ class tuple_hof_model final : public model_base_crtp { context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); - current_statement__ = 3; - N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 4; stan::math::validate_non_negative_index("data_y", "N", N); current_statement__ = 5; @@ -13858,8 +12751,6 @@ class tuple_hof_model final : public model_base_crtp { std::vector{static_cast(N)}); data_y = std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 5; - data_y = context__.vals_r("data_y"); current_statement__ = 6; stan::math::validate_non_negative_index("data_m", "N", N); current_statement__ = 7; @@ -13870,9 +12761,6 @@ class tuple_hof_model final : public model_base_crtp { data_m = std::tuple>{std::numeric_limits::quiet_NaN( ), std::vector(N, std::numeric_limits::min())}; - current_statement__ = 7; - std::get<0>(data_m) = context__.vals_r("data_m.1")[(1 - 1)]; - std::get<1>(data_m) = context__.vals_i("data_m.2"); current_statement__ = 8; sum1 = std::numeric_limits::quiet_NaN(); current_statement__ = 8; @@ -13917,9 +12805,7 @@ class tuple_hof_model final : public model_base_crtp { (void) function__; try { std::vector param_y = - std::vector(N, DUMMY_VAR__); - current_statement__ = 1; - param_y = in__.template read>(N); + in__.template read>(N); local_scalar_t__ sum2 = DUMMY_VAR__; current_statement__ = 2; sum2 = stan::math::reduce_sum(param_y, 1, pstream__, @@ -13955,9 +12841,7 @@ class tuple_hof_model final : public model_base_crtp { (void) function__; try { std::vector param_y = - std::vector(N, DUMMY_VAR__); - current_statement__ = 1; - param_y = in__.template read>(N); + in__.template read>(N); local_scalar_t__ sum2 = DUMMY_VAR__; current_statement__ = 2; sum2 = stan::math::reduce_sum(param_y, 1, pstream__, @@ -14004,9 +12888,7 @@ class tuple_hof_model final : public model_base_crtp { (void) function__; try { std::vector param_y = - std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - param_y = in__.template read>(N); + in__.template read>(N); double sum2 = std::numeric_limits::quiet_NaN(); out__.write(param_y); if (stan::math::logical_negation( @@ -15789,8 +14671,6 @@ class unpack_promote_model final : public model_base_crtp std::vector{}); N = std::numeric_limits::min(); current_statement__ = 23; - N = context__.vals_i("N")[(1 - 1)]; - current_statement__ = 23; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 24; stan::math::validate_non_negative_index("x", "N", N); @@ -15800,25 +14680,12 @@ class unpack_promote_model final : public model_base_crtp x_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&x) Eigen::Map>(x_data__.data(), N); - { - std::vector x_flat__; - current_statement__ = 25; - x_flat__ = context__.vals_r("x"); - pos__ = 1; - for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - stan::model::assign(x, x_flat__[(pos__ - 1)], - "assigning variable x", stan::model::index_uni(sym1__)); - pos__ = (pos__ + 1); - } - } current_statement__ = 26; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 27; context__.validate_dims("data initialization", "y", "int", std::vector{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); - current_statement__ = 27; - y = context__.vals_i("y"); current_statement__ = 28; stan::math::validate_non_negative_index("td", "N", N); current_statement__ = 29; @@ -15875,13 +14742,9 @@ class unpack_promote_model final : public model_base_crtp (void) function__; try { std::vector alpha = - std::vector(N, DUMMY_VAR__); - current_statement__ = 1; - alpha = in__.template read>(N); + in__.template read>(N); Eigen::Matrix theta = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 2; - theta = in__.template read>(N); + in__.template read>(N); { current_statement__ = 3; stan::math::validate_non_negative_index("r", "N", N); @@ -16030,13 +14893,9 @@ class unpack_promote_model final : public model_base_crtp (void) function__; try { std::vector alpha = - std::vector(N, DUMMY_VAR__); - current_statement__ = 1; - alpha = in__.template read>(N); + in__.template read>(N); Eigen::Matrix theta = - Eigen::Matrix::Constant(N, DUMMY_VAR__); - current_statement__ = 2; - theta = in__.template read>(N); + in__.template read>(N); { current_statement__ = 3; stan::math::validate_non_negative_index("r", "N", N); @@ -16196,14 +15055,9 @@ class unpack_promote_model final : public model_base_crtp (void) function__; try { std::vector alpha = - std::vector(N, std::numeric_limits::quiet_NaN()); - current_statement__ = 1; - alpha = in__.template read>(N); + in__.template read>(N); Eigen::Matrix theta = - Eigen::Matrix::Constant(N, - std::numeric_limits::quiet_NaN()); - current_statement__ = 2; - theta = in__.template read>(N); + in__.template read>(N); out__.write(alpha); out__.write(theta); if (stan::math::logical_negation( diff --git a/test/integration/good/tuples/transformed_mir.expected b/test/integration/good/tuples/transformed_mir.expected index 96a89fe0b..58154339e 100644 --- a/test/integration/good/tuples/transformed_mir.expected +++ b/test/integration/good/tuples/transformed_mir.expected @@ -124,28 +124,6 @@ SInt)))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable basic) ()) 1) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str basic.1)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable basic) ()) 2) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str basic.2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) (decl_id tuple_tuple) @@ -161,102 +139,142 @@ (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_tuple) ()) 1) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str tuple_tuple.1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple) ()) 2) ()) 1) ()) - UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str tuple_tuple.2.1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (Decl (decl_adtype (TupleAD (DataOnly DataOnly DataOnly))) (decl_id arr_tuple) + (decl_type + (Sized + (SArray + (STuple + (SInt + (SArray SReal + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (SVector AoS + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) (meta )) ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id tuple_tuple_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_tuple_dot_2_dot_2_flat__) ()) - (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str tuple_tuple.2.2)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper + (Decl (decl_adtype (TupleAD (DataOnly DataOnly (TupleAD (DataOnly DataOnly))))) + (decl_id tuple_arr_tuple) + (decl_type + (Sized + (STuple + ((SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection ((LVariable tuple_tuple) ()) 2) ()) 2) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var tuple_tuple_dot_2_dot_2_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) + SInt + (SArray + (STuple + (SReal + (SArray SInt + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (initialize true) (assignment ()))) (meta )) ((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly DataOnly))) (decl_id arr_tuple) + (Decl + (decl_adtype + (TupleAD (DataOnly DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))) + (decl_id arr_tuple_tuple) + (decl_type + (Sized + (SArray + (STuple + (SReal SInt + (STuple + (SReal + (STuple + (SInt + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) + (decl_id arr_tuple_arr_tuple) + (decl_type + (Sized + (SArray + (STuple + (SInt + (SArray + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl + (decl_adtype + (TupleAD (DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))) + (decl_id very_deep) (decl_type (Sized (SArray (STuple (SInt + (SArray + (STuple + (SReal + (SArray + (STuple + (SComplex + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )))) + (log_prob + (((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id basic_p) + (decl_type + (Sized + (STuple + ((SArray SReal + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + SReal)))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) + (decl_id tuple_tuple_p) + (decl_type + (Sized + (STuple + (SReal + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) + (decl_id arr_tuple_p) + (decl_type + (Sized + (SArray + (STuple + (SComplex (SArray SReal ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) @@ -267,296 +285,21 @@ (initialize true) (assignment ()))) (meta )) ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_dot_1_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_dot_1_flat__) ()) UInt - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple.1)) - (meta - ((type_ (UArray (UTuple (UInt (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_dot_2_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple.2)) - (meta - ((type_ (UArray (UTuple (UInt (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_dot_2_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_dot_3_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_dot_3_flat__) ()) UVector - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple.3)) - (meta - ((type_ (UArray (UTuple (UInt (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_3_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_dot_3_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_1_temp__) - (decl_type (Sized SInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_2_temp__) - (decl_type - (Sized - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_3_temp__) - (decl_type - (Sized - (SVector AoS - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment ((LVariable arr_tuple_dot_1_temp__) ()) UInt - ((pattern - (Indexed - ((pattern (Var arr_tuple_dot_1_flat__)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var arr_tuple_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_dot_1_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_dot_2_temp__) ()) - (UArray UReal) - ((pattern - (Indexed - ((pattern (Var arr_tuple_dot_2_flat__)) - (meta - ((type_ (UArray (UArray UReal))) (loc ) - (adlevel DataOnly)))) - ((Between - ((pattern (Var arr_tuple_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern - (FunApp (StanLib Minus__ FnPlain AoS) - (((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_dot_2_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id arr_tuple_dot_3_temp___flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) - (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_dot_3_temp___flat__) ()) - (UArray UReal) - ((pattern - (Indexed - ((pattern (Var arr_tuple_dot_3_flat__)) - (meta - ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))) - ((Between - ((pattern (Var arr_tuple_dot_3_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern - (FunApp (StanLib Minus__ FnPlain AoS) - (((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_dot_3_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable arr_tuple_dot_3_temp__) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var arr_tuple_dot_3_temp___flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_dot_3_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_dot_3_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UTuple (UInt (UArray UReal) UVector))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var arr_tuple_dot_1_temp__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var arr_tuple_dot_2_temp__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((pattern (Var arr_tuple_dot_3_temp__)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ (UTuple (UInt (UArray UReal) UVector))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly DataOnly)))))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly (TupleAD (DataOnly DataOnly))))) - (decl_id tuple_arr_tuple) + (Decl + (decl_adtype + (TupleAD (AutoDiffable AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) + (decl_id tuple_arr_tuple_p) (decl_type (Sized (STuple ((SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SInt + SReal (SArray (STuple (SReal - (SArray SInt + (SArray SReal ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) @@ -564,192 +307,156 @@ (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple) ()) 1) ()) - (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str tuple_arr_tuple.1)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (Decl + (decl_adtype + (TupleAD + (AutoDiffable AutoDiffable + (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) + (decl_id arr_tuple_tuple_p) + (decl_type + (Sized + (SArray + (STuple + (SReal SReal + (STuple + (SReal + (STuple + (SComplex + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple) ()) 2) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str tuple_arr_tuple.2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) + (decl_id arr_tuple_arr_tuple_p) + (decl_type + (Sized + (SArray + (STuple + (SReal + (SArray + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) (meta )) ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_dot_3_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_1_flat__) ()) UReal - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str tuple_arr_tuple.3.1)) - (meta - ((type_ (UArray (UTuple (UReal (UArray UInt))))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_dot_3_dot_2_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_2_flat__) ()) - (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str tuple_arr_tuple.3.2)) - (meta - ((type_ (UArray (UTuple (UReal (UArray UInt))))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_2_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_2_temp__) - (decl_type - (Sized - (SArray SInt - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) + (Decl + (decl_adtype + (TupleAD + (AutoDiffable (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) + (decl_id very_deep_p) + (decl_type + (Sized + (SArray + (STuple + (SReal + (SArray + (STuple + (SReal + (SArray + (STuple + (SComplex + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )))) + (reverse_mode_log_prob + (((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id basic_p) + (decl_type + (Sized + (STuple + ((SArray SReal + ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) + SReal)))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) + (decl_id tuple_tuple_p) + (decl_type + (Sized + (STuple + (SReal + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) + (decl_id arr_tuple_p) + (decl_type + (Sized + (SArray + (STuple + (SComplex + (SArray SReal + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (SVector AoS + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl + (decl_adtype + (TupleAD (AutoDiffable AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) + (decl_id tuple_arr_tuple_p) + (decl_type + (Sized + (STuple + ((SArray SReal + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_1_temp__) ()) UReal - ((pattern - (Indexed - ((pattern (Var tuple_arr_tuple_dot_3_dot_1_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var tuple_arr_tuple_dot_3_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_1_flat__pos__) ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var tuple_arr_tuple_dot_3_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_2_temp__) ()) - (UArray UInt) - ((pattern - (Indexed - ((pattern (Var tuple_arr_tuple_dot_3_dot_2_flat__)) - (meta - ((type_ (UArray (UArray UInt))) (loc ) (adlevel DataOnly)))) - ((Between - ((pattern (Var tuple_arr_tuple_dot_3_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern - (FunApp (StanLib Minus__ FnPlain AoS) - (((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var tuple_arr_tuple_dot_3_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UArray (UArray UInt))) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_2_flat__pos__) ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var tuple_arr_tuple_dot_3_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LVariable tuple_arr_tuple) ()) 3) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UTuple (UReal (UArray UInt)))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var tuple_arr_tuple_dot_3_dot_1_temp__)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Var tuple_arr_tuple_dot_3_dot_2_temp__)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ (UTuple (UReal (UArray UInt)))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))))) - (meta ))))) - (meta ))))) - (meta ))))) + SReal + (SArray + (STuple + (SReal + (SArray SReal + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype - (TupleAD (DataOnly DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))) - (decl_id arr_tuple_tuple) + (TupleAD + (AutoDiffable AutoDiffable + (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) + (decl_id arr_tuple_tuple_p) (decl_type (Sized (SArray (STuple - (SReal SInt + (SReal SReal (STuple (SReal (STuple - (SInt + (SComplex (SVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) @@ -757,411 +464,143 @@ (initialize true) (assignment ()))) (meta )) ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_1_flat__) ()) UReal - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_tuple.1)) - (meta - ((type_ - (UArray (UTuple (UReal UInt (UTuple (UReal (UTuple (UInt UVector)))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_2_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_2_flat__) ()) UInt - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_tuple.2)) - (meta - ((type_ - (UArray (UTuple (UReal UInt (UTuple (UReal (UTuple (UInt UVector)))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_2_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_3_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_1_flat__) ()) UReal - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_tuple.3.1)) - (meta - ((type_ - (UArray (UTuple (UReal UInt (UTuple (UReal (UTuple (UInt UVector)))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_3_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id arr_tuple_tuple_dot_3_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_1_flat__) ()) UInt - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_tuple.3.2.1)) - (meta - ((type_ - (UArray (UTuple (UReal UInt (UTuple (UReal (UTuple (UInt UVector)))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) - (decl_id arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id arr_tuple_tuple_dot_3_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_2_flat__) ()) UVector - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_tuple.3.2.2)) - (meta - ((type_ - (UArray (UTuple (UReal UInt (UTuple (UReal (UTuple (UInt UVector)))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) - (decl_id arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_2_temp__) - (decl_type (Sized SInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) - (decl_id arr_tuple_tuple_dot_3_temp__) - (decl_type - (Sized + (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) + (decl_id arr_tuple_arr_tuple_p) + (decl_type + (Sized + (SArray + (STuple + (SReal + (SArray (STuple (SReal - (STuple - (SInt - (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) + (SVector AoS + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl + (decl_adtype + (TupleAD + (AutoDiffable (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) + (decl_id very_deep_p) + (decl_type + (Sized + (SArray + (STuple + (SReal + (SArray + (STuple + (SReal + (SArray + (STuple + (SComplex + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )))) + (generate_quantities + (((pattern + (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id basic_p) + (decl_type + (Sized + (STuple + ((SArray SReal + ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper + SReal)))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) + (decl_id tuple_tuple_p) + (decl_type + (Sized + (STuple + (SReal + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly DataOnly DataOnly))) (decl_id arr_tuple_p) + (decl_type + (Sized + (SArray + (STuple + (SComplex + (SArray SReal + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (SVector AoS + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly DataOnly (TupleAD (DataOnly DataOnly))))) + (decl_id tuple_arr_tuple_p) + (decl_type + (Sized + (STuple + ((SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_1_temp__) ()) UReal - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_dot_1_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var arr_tuple_tuple_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_1_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_tuple_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_2_temp__) ()) UInt - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_dot_2_flat__)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var arr_tuple_tuple_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_2_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_tuple_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LVariable arr_tuple_tuple_dot_3_temp__) ()) 1) ()) - UReal - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_dot_3_dot_1_flat__)) - (meta - ((type_ (UArray (UTuple (UReal (UTuple (UInt UVector)))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) - ((Single - ((pattern (Var arr_tuple_tuple_dot_3_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal (UTuple (UInt UVector))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_1_flat__pos__) ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_tuple_dot_3_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection ((LVariable arr_tuple_tuple_dot_3_temp__) ()) 2) - ()) - 1) - ()) - UInt - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_dot_3_dot_2_dot_1_flat__)) - (meta - ((type_ (UArray (UTuple (UReal (UTuple (UInt UVector)))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) - ((Single - ((pattern (Var arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal (UTuple (UInt UVector))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) - (assignment ()))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__) ()) - (UArray UReal) - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_dot_3_dot_2_dot_2_flat__)) - (meta - ((type_ (UArray (UTuple (UReal (UTuple (UInt UVector)))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) - ((Between - ((pattern (Var arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern - (FunApp (StanLib Minus__ FnPlain AoS) - (((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern - (Var arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UArray (UTuple (UReal (UTuple (UInt UVector)))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_tuple_dot_3_temp__) ()) 2) - ()) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern - (Var arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_tuple) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UTuple (UReal UInt (UTuple (UReal (UTuple (UInt UVector))))))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var arr_tuple_tuple_dot_1_temp__)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Var arr_tuple_tuple_dot_2_temp__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var arr_tuple_tuple_dot_3_temp__)) - (meta - ((type_ (UTuple (UReal (UTuple (UInt UVector))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))))))) - (meta - ((type_ - (UTuple (UReal UInt (UTuple (UReal (UTuple (UInt UVector))))))) - (loc ) - (adlevel - (TupleAD - (DataOnly DataOnly - (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))))) - (meta ))))) - (meta ))))) - (meta ))))) + SReal + (SArray + (STuple + (SReal + (SArray SReal + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl + (decl_adtype + (TupleAD (DataOnly DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))) + (decl_id arr_tuple_tuple_p) + (decl_type + (Sized + (SArray + (STuple + (SReal SReal + (STuple + (SReal + (STuple + (SComplex + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) - (decl_id arr_tuple_arr_tuple) + (decl_id arr_tuple_arr_tuple_p) (decl_type (Sized (SArray (STuple - (SInt + (SReal (SArray (STuple (SReal @@ -1174,7552 +613,396 @@ (initialize true) (assignment ()))) (meta )) ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_dot_1_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_dot_1_flat__) ()) UInt - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_arr_tuple.1)) - (meta - ((type_ (UArray (UTuple (UInt (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) + (Decl + (decl_adtype + (TupleAD (DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))) + (decl_id very_deep_p) + (decl_type + (Sized + (SArray + (STuple + (SReal + (SArray + (STuple + (SReal + (SArray + (STuple + (SComplex + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern (Var basic_p)) + (meta + ((type_ (UTuple ((UArray UReal) UReal))) (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern (Var basic_p)) + (meta + ((type_ (UTuple ((UArray UReal) UReal))) (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern (Var tuple_tuple_p)) + (meta + ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) + (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern (Var tuple_tuple_p)) + (meta + ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) + (adlevel DataOnly)))) + 2)) + (meta ((type_ (UTuple (UReal UVector))) (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern (Var tuple_tuple_p)) + (meta + ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) + (adlevel DataOnly)))) + 2)) + (meta ((type_ (UTuple (UReal UVector))) (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body ((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id arr_tuple_arr_tuple_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_1_flat__) ()) - (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_arr_tuple.2.1)) - (meta - ((type_ (UArray (UTuple (UInt (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) - (decl_id arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id arr_tuple_arr_tuple_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_2_flat__) ()) - (UArray UVector) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_arr_tuple.2.2)) - (meta - ((type_ (UArray (UTuple (UInt (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) - (decl_id arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_dot_1_temp__) - (decl_type (Sized SInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) - (decl_id arr_tuple_arr_tuple_dot_2_temp__) - (decl_type - (Sized - (SArray - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_p)) + (meta + ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex (UArray UReal) UVector))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UComplex) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_p)) + (meta + ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex (UArray UReal) UVector))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_p)) + (meta + ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex (UArray UReal) UVector))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + ())) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern (Var tuple_arr_tuple_p)) + (meta + ((type_ + (UTuple ((UArray UReal) UReal (UArray (UTuple (UReal (UArray UReal))))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern (Var tuple_arr_tuple_p)) + (meta + ((type_ + (UTuple ((UArray UReal) UReal (UArray (UTuple (UReal (UArray UReal))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern (Var tuple_arr_tuple_p)) + (meta + ((type_ + (UTuple + ((UArray UReal) UReal + (UArray (UTuple (UReal (UArray UReal))))))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta + ((type_ (UArray (UTuple (UReal (UArray UReal))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal (UArray UReal)))) (loc ) + (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) ((pattern - (Block - (((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_dot_1_temp__) ()) UInt - ((pattern - (Indexed - ((pattern (Var arr_tuple_arr_tuple_dot_1_flat__)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var arr_tuple_arr_tuple_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_dot_1_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_arr_tuple_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype DataOnly) - (decl_id arr_tuple_arr_tuple_dot_2_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) - (decl_id arr_tuple_arr_tuple_dot_2_dot_2_temp__) - (decl_type - (Sized - (SVector AoS - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed ((pattern - (Block - (((pattern - (Assignment - ((LVariable arr_tuple_arr_tuple_dot_2_dot_1_temp__) ()) - UReal - ((pattern - (Indexed - ((pattern (Var arr_tuple_arr_tuple_dot_2_dot_1_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern - (Var arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__) - ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern - (Var arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__) - (decl_type (Unsized (UArray UReal))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment - ((LVariable - arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__) - ()) - (UArray UReal) - ((pattern - (Indexed - ((pattern - (Var arr_tuple_arr_tuple_dot_2_dot_2_flat__)) - (meta - ((type_ (UArray UVector)) (loc ) - (adlevel DataOnly)))) - ((Between - ((pattern - (Var - arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern - (FunApp (StanLib Minus__ FnPlain AoS) - (((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern - (Var - arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 5)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UArray UVector)) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 5)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable - arr_tuple_arr_tuple_dot_2_dot_2_temp__) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern - (Var - arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__)) - (meta - ((type_ (UArray UReal)) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable - arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__) - ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern - (Var arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 5)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_arr_tuple_dot_2_temp__) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UTuple (UReal UVector))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var arr_tuple_arr_tuple_dot_2_dot_1_temp__)) - (meta - ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Var arr_tuple_arr_tuple_dot_2_dot_2_temp__)) - (meta - ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ (UTuple (UReal UVector))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_arr_tuple) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UTuple (UInt (UArray (UTuple (UReal UVector)))))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var arr_tuple_arr_tuple_dot_1_temp__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var arr_tuple_arr_tuple_dot_2_temp__)) - (meta - ((type_ (UArray (UTuple (UReal UVector)))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly))))))))) - (meta - ((type_ (UTuple (UInt (UArray (UTuple (UReal UVector)))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) - (meta ))))) + (TupleProjection + ((pattern (Var tuple_arr_tuple_p)) + (meta + ((type_ + (UTuple + ((UArray UReal) UReal + (UArray (UTuple (UReal (UArray UReal))))))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta + ((type_ (UArray (UTuple (UReal (UArray UReal))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal (UArray UReal)))) (loc ) + (adlevel DataOnly)))) + 2)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + ())) (meta ))))) (meta ))))) (meta )) ((pattern - (Decl - (decl_adtype - (TupleAD (DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))) - (decl_id very_deep) - (decl_type - (Sized - (SArray - (STuple - (SInt - (SArray - (STuple - (SReal - (SArray - (STuple - (SComplex - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_1_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_dot_1_flat__) ()) UInt - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str very_deep.1)) - (meta - ((type_ - (UArray - (UTuple - (UInt (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) - (meta )) + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body ((pattern - (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_dot_2_dot_1_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str very_deep.2.1)) - (meta - ((type_ - (UArray - (UTuple - (UInt (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_dot_2_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_2_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_dot_2_dot_2_dot_1_flat__) ()) - (UArray (UArray UComplex)) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str very_deep.2.2.1)) - (meta - ((type_ - (UArray - (UTuple - (UInt (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UComplex)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_dot_2_dot_2_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_2_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_dot_2_dot_2_dot_2_flat__) ()) - (UArray (UArray UMatrix)) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str very_deep.2.2.2)) - (meta - ((type_ - (UArray - (UTuple - (UInt (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_dot_2_dot_2_dot_2_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_1_temp__) - (decl_type (Sized SInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) - (decl_id very_deep_dot_2_temp__) - (decl_type - (Sized - (SArray - (STuple - (SReal - (SArray - (STuple - (SComplex - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) ((pattern - (Block - (((pattern - (Assignment ((LVariable very_deep_dot_1_temp__) ()) UInt - ((pattern - (Indexed - ((pattern (Var very_deep_dot_1_flat__)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var very_deep_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_dot_1_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var very_deep_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) - (decl_id very_deep_dot_2_dot_2_temp__) - (decl_type - (Sized - (SArray - (STuple - (SComplex - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (TupleProjection ((pattern - (Block - (((pattern - (Assignment ((LVariable very_deep_dot_2_dot_1_temp__) ()) - UReal - ((pattern - (Indexed - ((pattern (Var very_deep_dot_2_dot_1_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var very_deep_dot_2_dot_1_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LVariable very_deep_dot_2_dot_1_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var very_deep_dot_2_dot_1_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype DataOnly) - (decl_id very_deep_dot_2_dot_2_dot_1_temp__) - (decl_type (Sized SComplex)) (initialize true) - (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) - (decl_id very_deep_dot_2_dot_2_dot_2_temp__) - (decl_type - (Sized - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 5)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable very_deep_dot_2_dot_2_dot_1_temp__) - ()) - UComplex - ((pattern - (Indexed - ((pattern - (Var very_deep_dot_2_dot_2_dot_1_flat__)) - (meta - ((type_ (UArray UComplex)) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern - (Var - very_deep_dot_2_dot_2_dot_1_flat__pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UComplex) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LVariable - very_deep_dot_2_dot_2_dot_1_flat__pos__) - ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern - (Var - very_deep_dot_2_dot_2_dot_1_flat__pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id - very_deep_dot_2_dot_2_dot_2_temp___flat__) - (decl_type (Unsized (UArray UReal))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment - ((LVariable - very_deep_dot_2_dot_2_dot_2_temp___flat__) - ()) - (UArray UReal) - ((pattern - (Indexed - ((pattern - (Var - very_deep_dot_2_dot_2_dot_2_flat__)) - (meta - ((type_ (UArray UMatrix)) - (loc ) (adlevel DataOnly)))) - ((Between - ((pattern - (Var - very_deep_dot_2_dot_2_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern - (FunApp - (StanLib Minus__ FnPlain AoS) - (((pattern - (FunApp - (StanLib Plus__ FnPlain AoS) - (((pattern - (Var - very_deep_dot_2_dot_2_dot_2_flat__pos__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))) - ((pattern - (FunApp - (StanLib Times__ FnPlain - AoS) - (((pattern (Lit Int 6)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ (UArray UMatrix)) - (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym4__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 7)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym5__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 6)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable - very_deep_dot_2_dot_2_dot_2_temp__) - ((Single - ((pattern (Var sym5__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym4__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))))) - UMatrix - ((pattern - (Indexed - ((pattern - (Var - very_deep_dot_2_dot_2_dot_2_temp___flat__)) - (meta - ((type_ - (UArray UReal)) - (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UReal) - (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LVariable pos__) ()) UInt - ((pattern - (FunApp - (StanLib Plus__ FnPlain - AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable - very_deep_dot_2_dot_2_dot_2_flat__pos__) - ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern - (Var - very_deep_dot_2_dot_2_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern - (FunApp (StanLib Times__ FnPlain AoS) - (((pattern (Lit Int 6)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable very_deep_dot_2_dot_2_temp__) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (UArray (UTuple (UComplex UMatrix))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern - (Var very_deep_dot_2_dot_2_dot_1_temp__)) - (meta - ((type_ UComplex) (loc ) - (adlevel DataOnly)))) - ((pattern - (Var very_deep_dot_2_dot_2_dot_2_temp__)) - (meta - ((type_ UMatrix) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ (UTuple (UComplex UMatrix))) - (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable very_deep_dot_2_temp__) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray - (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var very_deep_dot_2_dot_1_temp__)) - (meta - ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Var very_deep_dot_2_dot_2_temp__)) - (meta - ((type_ (UArray (UTuple (UComplex UMatrix)))) - (loc ) - (adlevel (TupleAD (DataOnly DataOnly))))))))) - (meta - ((type_ - (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))) - (loc ) - (adlevel - (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable very_deep) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray - (UTuple - (UInt (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var very_deep_dot_1_temp__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var very_deep_dot_2_temp__)) - (meta - ((type_ - (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))))))) - (meta - ((type_ - (UTuple - (UInt - (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))))) - (loc ) - (adlevel - (TupleAD - (DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )))) - (log_prob - (((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id basic_p) - (decl_type - (Sized - (STuple - ((SArray SReal - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SReal)))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable basic_p) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) - (decl_id tuple_tuple_p) - (decl_type - (Sized - (STuple - (SReal - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 1) ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 2) ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) - (decl_id arr_tuple_p) - (decl_type - (Sized - (SArray - (STuple - (SComplex - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (SVector AoS - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UComplex - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD (AutoDiffable AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) - (decl_id tuple_arr_tuple_p) - (decl_type - (Sized - (STuple - ((SArray SReal - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SReal - (SArray - (STuple - (SReal - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) - (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD - (AutoDiffable AutoDiffable - (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) - (decl_id arr_tuple_tuple_p) - (decl_type - (Sized - (SArray - (STuple - (SReal SReal - (STuple - (SReal - (STuple - (SComplex - (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - 2) - ()) - 1) - ()) - UComplex - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - 2) - ()) - 2) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) - (decl_id arr_tuple_arr_tuple_p) - (decl_type - (Sized - (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD - (AutoDiffable (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) - (decl_id very_deep_p) - (decl_type - (Sized - (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SArray - (STuple - (SComplex - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UComplex - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) - (mem_pattern AoS))) - ())) - (meta - ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 6)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )))) - (reverse_mode_log_prob - (((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id basic_p) - (decl_type - (Sized - (STuple - ((SArray SReal - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SReal)))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable basic_p) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) - (decl_id tuple_tuple_p) - (decl_type - (Sized - (STuple - (SReal - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 1) ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 2) ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) - (decl_id arr_tuple_p) - (decl_type - (Sized - (SArray - (STuple - (SComplex - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (SVector AoS - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UComplex - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD (AutoDiffable AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) - (decl_id tuple_arr_tuple_p) - (decl_type - (Sized - (STuple - ((SArray SReal - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SReal - (SArray - (STuple - (SReal - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) - (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD - (AutoDiffable AutoDiffable - (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) - (decl_id arr_tuple_tuple_p) - (decl_type - (Sized - (SArray - (STuple - (SReal SReal - (STuple - (SReal - (STuple - (SComplex - (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - 2) - ()) - 1) - ()) - UComplex - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - 2) - ()) - 2) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) - (decl_id arr_tuple_arr_tuple_p) - (decl_type - (Sized - (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD - (AutoDiffable (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) - (decl_id very_deep_p) - (decl_type - (Sized - (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SArray - (STuple - (SComplex - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UComplex - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) - (mem_pattern AoS))) - ())) - (meta - ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 6)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )))) - (generate_quantities - (((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id basic_p) - (decl_type - (Sized - (STuple - ((SArray SReal - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SReal)))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable basic_p) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) - (decl_id tuple_tuple_p) - (decl_type - (Sized - (STuple - (SReal - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 1) ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 2) ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly DataOnly))) (decl_id arr_tuple_p) - (decl_type - (Sized - (SArray - (STuple - (SComplex - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (SVector AoS - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UComplex - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly (TupleAD (DataOnly DataOnly))))) - (decl_id tuple_arr_tuple_p) - (decl_type - (Sized - (STuple - ((SArray SReal - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SReal - (SArray - (STuple - (SReal - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) - (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD (DataOnly DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))) - (decl_id arr_tuple_tuple_p) - (decl_type - (Sized - (SArray - (STuple - (SReal SReal - (STuple - (SReal - (STuple - (SComplex - (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - 2) - ()) - 1) - ()) - UComplex - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - 2) - ()) - 2) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) - (decl_id arr_tuple_arr_tuple_p) - (decl_type - (Sized - (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD (DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))) - (decl_id very_deep_p) - (decl_type - (Sized - (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SArray - (STuple - (SComplex - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UComplex - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) - (mem_pattern AoS))) - ())) - (meta - ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 6)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta - ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern (Var basic_p)) - (meta - ((type_ (UTuple ((UArray UReal) UReal))) (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern (Var basic_p)) - (meta - ((type_ (UTuple ((UArray UReal) UReal))) (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern (Var tuple_tuple_p)) - (meta - ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) - (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern (Var tuple_tuple_p)) - (meta - ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ (UTuple (UReal UVector))) (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern (Var tuple_tuple_p)) - (meta - ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ (UTuple (UReal UVector))) (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_p)) - (meta - ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex (UArray UReal) UVector))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UComplex) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_p)) - (meta - ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex (UArray UReal) UVector))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_p)) - (meta - ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex (UArray UReal) UVector))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - ())) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern (Var tuple_arr_tuple_p)) - (meta - ((type_ - (UTuple ((UArray UReal) UReal (UArray (UTuple (UReal (UArray UReal))))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern (Var tuple_arr_tuple_p)) - (meta - ((type_ - (UTuple ((UArray UReal) UReal (UArray (UTuple (UReal (UArray UReal))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern (Var tuple_arr_tuple_p)) - (meta - ((type_ - (UTuple - ((UArray UReal) UReal - (UArray (UTuple (UReal (UArray UReal))))))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta - ((type_ (UArray (UTuple (UReal (UArray UReal))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal (UArray UReal)))) (loc ) - (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern (Var tuple_arr_tuple_p)) - (meta - ((type_ - (UTuple - ((UArray UReal) UReal - (UArray (UTuple (UReal (UArray UReal))))))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta - ((type_ (UArray (UTuple (UReal (UArray UReal))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal (UArray UReal)))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - ())) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal UReal - (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta - ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal UReal - (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta - ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UTuple (UComplex UVector))) (loc ) - (adlevel DataOnly)))) - 1)) - (meta ((type_ UComplex) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal UReal - (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta - ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UTuple (UComplex UVector))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - ())) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_arr_tuple_p)) - (meta - ((type_ - (UArray (UTuple (UReal (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal (UArray (UTuple (UReal UVector)))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_arr_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple (UReal (UArray (UTuple (UReal UVector)))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UArray (UTuple (UReal UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal UVector))) (loc ) - (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_arr_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple (UReal (UArray (UTuple (UReal UVector)))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UArray (UTuple (UReal UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal UVector))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - ())) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var very_deep_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray - (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var very_deep_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix)))))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray - (UTuple - (UReal (UArray (UTuple (UComplex UMatrix))))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ - (UArray - (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var very_deep_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray - (UTuple (UComplex UMatrix)))))))))) - (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray - (UTuple (UComplex UMatrix))))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix)))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UArray (UTuple (UComplex UMatrix)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex UMatrix))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta - ((type_ UComplex) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var very_deep_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray - (UTuple (UComplex UMatrix)))))))))) - (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray - (UTuple (UComplex UMatrix))))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix)))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UArray (UTuple (UComplex UMatrix)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex UMatrix))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - ())) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (IfElse - ((pattern - (FunApp (StanLib PNot__ FnPlain AoS) - (((pattern - (EOr - ((pattern (Var emit_transformed_parameters__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var emit_generated_quantities__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) - (meta )) - ((pattern - (IfElse - ((pattern - (FunApp (StanLib PNot__ FnPlain AoS) - (((pattern (Var emit_generated_quantities__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) - (meta )))) - (transform_inits - (((pattern - (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id basic_p) - (decl_type - (Sized - (STuple - ((SArray SReal - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SReal)))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str basic_p.1)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable basic_p) ()) 2) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str basic_p.2)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern (Var basic_p)) - (meta - ((type_ (UTuple ((UArray UReal) UReal))) (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern (Var basic_p)) - (meta - ((type_ (UTuple ((UArray UReal) UReal))) (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) - (decl_id tuple_tuple_p) - (decl_type - (Sized - (STuple - (SReal - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str tuple_tuple_p.1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 1) ()) - UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str tuple_tuple_p.2.1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id tuple_tuple_p_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_tuple_p_dot_2_dot_2_flat__) ()) - (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str tuple_tuple_p.2.2)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 2) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var tuple_tuple_p_dot_2_dot_2_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern (Var tuple_tuple_p)) - (meta - ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) - (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern (Var tuple_tuple_p)) - (meta - ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ (UTuple (UReal UVector))) (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern (Var tuple_tuple_p)) - (meta - ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ (UTuple (UReal UVector))) (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) - (decl_id arr_tuple_p) - (decl_type - (Sized - (SArray - (STuple - (SComplex - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (SVector AoS - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_p_dot_1_flat__) - (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_p_dot_1_flat__) ()) UComplex - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_p.1)) - (meta - ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UComplex)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_p_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_p_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_p_dot_2_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_p.2)) - (meta - ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_p_dot_2_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_p_dot_3_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_p_dot_3_flat__) ()) UVector - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_p.3)) - (meta - ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_3_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_p_dot_3_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_1_temp__) - (decl_type (Sized SComplex)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_2_temp__) - (decl_type - (Sized - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_3_temp__) - (decl_type - (Sized - (SVector AoS - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment ((LVariable arr_tuple_p_dot_1_temp__) ()) UComplex - ((pattern - (Indexed - ((pattern (Var arr_tuple_p_dot_1_flat__)) - (meta - ((type_ (UArray UComplex)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var arr_tuple_p_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UComplex) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_p_dot_1_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_p_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_p_dot_2_temp__) ()) - (UArray UReal) - ((pattern - (Indexed - ((pattern (Var arr_tuple_p_dot_2_flat__)) - (meta - ((type_ (UArray (UArray UReal))) (loc ) - (adlevel DataOnly)))) - ((Between - ((pattern (Var arr_tuple_p_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern - (FunApp (StanLib Minus__ FnPlain AoS) - (((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_p_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_p_dot_2_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_p_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id arr_tuple_p_dot_3_temp___flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) - (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_p_dot_3_temp___flat__) ()) - (UArray UReal) - ((pattern - (Indexed - ((pattern (Var arr_tuple_p_dot_3_flat__)) - (meta - ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))) - ((Between - ((pattern (Var arr_tuple_p_dot_3_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern - (FunApp (StanLib Minus__ FnPlain AoS) - (((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_p_dot_3_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable arr_tuple_p_dot_3_temp__) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var arr_tuple_p_dot_3_temp___flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_p_dot_3_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_p_dot_3_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UTuple (UComplex (UArray UReal) UVector))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var arr_tuple_p_dot_1_temp__)) - (meta ((type_ UComplex) (loc ) (adlevel DataOnly)))) - ((pattern (Var arr_tuple_p_dot_2_temp__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((pattern (Var arr_tuple_p_dot_3_temp__)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ (UTuple (UComplex (UArray UReal) UVector))) - (loc ) (adlevel (TupleAD (DataOnly DataOnly DataOnly)))))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_p)) - (meta - ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex (UArray UReal) UVector))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UComplex) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_p)) - (meta - ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex (UArray UReal) UVector))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_p)) - (meta - ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex (UArray UReal) UVector))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - ())) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD (AutoDiffable AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) - (decl_id tuple_arr_tuple_p) - (decl_type - (Sized - (STuple - ((SArray SReal - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SReal - (SArray - (STuple - (SReal - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) - (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str tuple_arr_tuple_p.1)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 2) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str tuple_arr_tuple_p.2)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_p_dot_3_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_1_flat__) ()) UReal - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str tuple_arr_tuple_p.3.1)) - (meta - ((type_ (UArray (UTuple (UReal (UArray UReal))))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_p_dot_3_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_2_flat__) ()) - (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str tuple_arr_tuple_p.3.2)) - (meta - ((type_ (UArray (UTuple (UReal (UArray UReal))))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_2_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_2_temp__) - (decl_type - (Sized - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_1_temp__) ()) UReal - ((pattern - (Indexed - ((pattern (Var tuple_arr_tuple_p_dot_3_dot_1_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var tuple_arr_tuple_p_dot_3_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_1_flat__pos__) ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var tuple_arr_tuple_p_dot_3_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_2_temp__) ()) - (UArray UReal) - ((pattern - (Indexed - ((pattern (Var tuple_arr_tuple_p_dot_3_dot_2_flat__)) - (meta - ((type_ (UArray (UArray UReal))) (loc ) - (adlevel DataOnly)))) - ((Between - ((pattern (Var tuple_arr_tuple_p_dot_3_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern - (FunApp (StanLib Minus__ FnPlain AoS) - (((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var tuple_arr_tuple_p_dot_3_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_2_flat__pos__) ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var tuple_arr_tuple_p_dot_3_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UTuple (UReal (UArray UReal)))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var tuple_arr_tuple_p_dot_3_dot_1_temp__)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Var tuple_arr_tuple_p_dot_3_dot_2_temp__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ (UTuple (UReal (UArray UReal)))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern (Var tuple_arr_tuple_p)) - (meta - ((type_ - (UTuple ((UArray UReal) UReal (UArray (UTuple (UReal (UArray UReal))))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern (Var tuple_arr_tuple_p)) - (meta - ((type_ - (UTuple ((UArray UReal) UReal (UArray (UTuple (UReal (UArray UReal))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern (Var tuple_arr_tuple_p)) - (meta - ((type_ - (UTuple - ((UArray UReal) UReal - (UArray (UTuple (UReal (UArray UReal))))))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta - ((type_ (UArray (UTuple (UReal (UArray UReal))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal (UArray UReal)))) (loc ) - (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern (Var tuple_arr_tuple_p)) - (meta - ((type_ - (UTuple - ((UArray UReal) UReal - (UArray (UTuple (UReal (UArray UReal))))))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta - ((type_ (UArray (UTuple (UReal (UArray UReal))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal (UArray UReal)))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - ())) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD - (AutoDiffable AutoDiffable - (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) - (decl_id arr_tuple_tuple_p) - (decl_type - (Sized - (SArray - (STuple - (SReal SReal - (STuple - (SReal - (STuple - (SComplex - (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_1_flat__) ()) UReal - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_tuple_p.1)) - (meta - ((type_ - (UArray - (UTuple (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_2_flat__) ()) UReal - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_tuple_p.2)) - (meta - ((type_ - (UArray - (UTuple (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_2_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_3_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_1_flat__) ()) UReal - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_tuple_p.3.1)) - (meta - ((type_ - (UArray - (UTuple (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_3_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__) ()) UComplex - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_tuple_p.3.2.1)) - (meta - ((type_ - (UArray - (UTuple (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UComplex)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) - (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__pos__) ()) - UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__) ()) UVector - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_tuple_p.3.2.2)) - (meta - ((type_ - (UArray - (UTuple (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) - (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__) ()) - UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_2_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) - (decl_id arr_tuple_tuple_p_dot_3_temp__) - (decl_type - (Sized - (STuple - (SReal - (STuple - (SComplex - (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_1_temp__) ()) UReal - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p_dot_1_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var arr_tuple_tuple_p_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_1_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_tuple_p_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_2_temp__) ()) UReal - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p_dot_2_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var arr_tuple_tuple_p_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_2_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_tuple_p_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LVariable arr_tuple_tuple_p_dot_3_temp__) ()) 1) - ()) - UReal - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p_dot_3_dot_1_flat__)) - (meta - ((type_ (UArray (UTuple (UReal (UTuple (UComplex UVector)))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) - ((Single - ((pattern (Var arr_tuple_tuple_p_dot_3_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_1_flat__pos__) ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_tuple_p_dot_3_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection ((LVariable arr_tuple_tuple_p_dot_3_temp__) ()) 2) - ()) - 1) - ()) - UComplex - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__)) - (meta - ((type_ (UArray (UTuple (UReal (UTuple (UComplex UVector)))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) - ((Single - ((pattern (Var arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id arr_tuple_tuple_p_dot_3_temp___dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) - (assignment ()))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_tuple_p_dot_3_temp___dot_2_dot_2_flat__) ()) - (UArray UReal) - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__)) - (meta - ((type_ (UArray (UTuple (UReal (UTuple (UComplex UVector)))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) - ((Between - ((pattern - (Var arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern - (FunApp (StanLib Minus__ FnPlain AoS) - (((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern - (Var - arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UArray (UTuple (UReal (UTuple (UComplex UVector)))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_tuple_p_dot_3_temp__) ()) 2) - ()) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern - (Var - arr_tuple_tuple_p_dot_3_temp___dot_2_dot_2_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__) ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern - (Var arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray - (UTuple (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var arr_tuple_tuple_p_dot_1_temp__)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Var arr_tuple_tuple_p_dot_2_temp__)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Var arr_tuple_tuple_p_dot_3_temp__)) - (meta - ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))))))) - (meta - ((type_ - (UTuple (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) - (loc ) - (adlevel - (TupleAD - (DataOnly DataOnly - (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal UReal - (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta - ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal UReal - (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta - ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UTuple (UComplex UVector))) (loc ) - (adlevel DataOnly)))) - 1)) - (meta ((type_ UComplex) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal UReal - (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta - ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UTuple (UComplex UVector))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - ())) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) - (decl_id arr_tuple_arr_tuple_p) - (decl_type - (Sized - (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_p_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_1_flat__) ()) UReal - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_arr_tuple_p.1)) - (meta - ((type_ (UArray (UTuple (UReal (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_p_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id arr_tuple_arr_tuple_p_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_1_flat__) ()) - (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_arr_tuple_p.2.1)) - (meta - ((type_ (UArray (UTuple (UReal (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) - (decl_id arr_tuple_arr_tuple_p_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id arr_tuple_arr_tuple_p_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_2_flat__) ()) - (UArray UVector) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str arr_tuple_arr_tuple_p.2.2)) - (meta - ((type_ (UArray (UTuple (UReal (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) - (decl_id arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_p_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) - (decl_id arr_tuple_arr_tuple_p_dot_2_temp__) - (decl_type - (Sized - (SArray - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_1_temp__) ()) UReal - ((pattern - (Indexed - ((pattern (Var arr_tuple_arr_tuple_p_dot_1_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var arr_tuple_arr_tuple_p_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_1_flat__pos__) ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var arr_tuple_arr_tuple_p_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype DataOnly) - (decl_id arr_tuple_arr_tuple_p_dot_2_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) - (decl_id arr_tuple_arr_tuple_p_dot_2_dot_2_temp__) - (decl_type - (Sized - (SVector AoS - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_1_temp__) ()) - UReal - ((pattern - (Indexed - ((pattern - (Var arr_tuple_arr_tuple_p_dot_2_dot_1_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern - (Var arr_tuple_arr_tuple_p_dot_2_dot_1_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_1_flat__pos__) - ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern - (Var arr_tuple_arr_tuple_p_dot_2_dot_1_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id - arr_tuple_arr_tuple_p_dot_2_dot_2_temp___flat__) - (decl_type (Unsized (UArray UReal))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment - ((LVariable - arr_tuple_arr_tuple_p_dot_2_dot_2_temp___flat__) - ()) - (UArray UReal) - ((pattern - (Indexed - ((pattern - (Var arr_tuple_arr_tuple_p_dot_2_dot_2_flat__)) - (meta - ((type_ (UArray UVector)) (loc ) - (adlevel DataOnly)))) - ((Between - ((pattern - (Var - arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern - (FunApp (StanLib Minus__ FnPlain AoS) - (((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern - (Var - arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 5)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UArray UVector)) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 5)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable - arr_tuple_arr_tuple_p_dot_2_dot_2_temp__) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern - (Var - arr_tuple_arr_tuple_p_dot_2_dot_2_temp___flat__)) - (meta - ((type_ (UArray UReal)) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable - arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__) - ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern - (Var - arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 5)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_arr_tuple_p_dot_2_temp__) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UTuple (UReal UVector))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern - (Var arr_tuple_arr_tuple_p_dot_2_dot_1_temp__)) - (meta - ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern - (Var arr_tuple_arr_tuple_p_dot_2_dot_2_temp__)) - (meta - ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ (UTuple (UReal UVector))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable arr_tuple_arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UTuple (UReal (UArray (UTuple (UReal UVector)))))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var arr_tuple_arr_tuple_p_dot_1_temp__)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Var arr_tuple_arr_tuple_p_dot_2_temp__)) - (meta - ((type_ (UArray (UTuple (UReal UVector)))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly))))))))) - (meta - ((type_ (UTuple (UReal (UArray (UTuple (UReal UVector)))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_arr_tuple_p)) - (meta - ((type_ - (UArray (UTuple (UReal (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal (UArray (UTuple (UReal UVector)))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_arr_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple (UReal (UArray (UTuple (UReal UVector)))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UArray (UTuple (UReal UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal UVector))) (loc ) - (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_arr_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple (UReal (UArray (UTuple (UReal UVector)))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UArray (UTuple (UReal UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal UVector))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - ())) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD - (AutoDiffable (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) - (decl_id very_deep_p) - (decl_type - (Sized - (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SArray - (STuple - (SComplex - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_p_dot_1_flat__) ()) UReal - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str very_deep_p.1)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_p_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_p_dot_2_dot_1_flat__) ()) - (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str very_deep_p.2.1)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_p_dot_2_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_2_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_1_flat__) ()) - (UArray (UArray UComplex)) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str very_deep_p.2.2.1)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UComplex)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_2_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_2_flat__) ()) - (UArray (UArray UMatrix)) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str very_deep_p.2.2.2)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) - (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_2_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) - (decl_id very_deep_p_dot_2_temp__) - (decl_type - (Sized - (SArray - (STuple - (SReal - (SArray - (STuple - (SComplex - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment ((LVariable very_deep_p_dot_1_temp__) ()) UReal - ((pattern - (Indexed - ((pattern (Var very_deep_p_dot_1_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var very_deep_p_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable very_deep_p_dot_1_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var very_deep_p_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype DataOnly) - (decl_id very_deep_p_dot_2_dot_1_temp__) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) - (decl_id very_deep_p_dot_2_dot_2_temp__) - (decl_type - (Sized - (SArray - (STuple - (SComplex - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment ((LVariable very_deep_p_dot_2_dot_1_temp__) ()) - UReal - ((pattern - (Indexed - ((pattern (Var very_deep_p_dot_2_dot_1_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var very_deep_p_dot_2_dot_1_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LVariable very_deep_p_dot_2_dot_1_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var very_deep_p_dot_2_dot_1_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype DataOnly) - (decl_id very_deep_p_dot_2_dot_2_dot_1_temp__) - (decl_type (Sized SComplex)) (initialize true) - (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) - (decl_id very_deep_p_dot_2_dot_2_dot_2_temp__) - (decl_type - (Sized - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 5)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable - very_deep_p_dot_2_dot_2_dot_1_temp__) - ()) - UComplex - ((pattern - (Indexed - ((pattern - (Var very_deep_p_dot_2_dot_2_dot_1_flat__)) - (meta - ((type_ (UArray UComplex)) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern - (Var - very_deep_p_dot_2_dot_2_dot_1_flat__pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UComplex) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LVariable - very_deep_p_dot_2_dot_2_dot_1_flat__pos__) - ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern - (Var - very_deep_p_dot_2_dot_2_dot_1_flat__pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id - very_deep_p_dot_2_dot_2_dot_2_temp___flat__) - (decl_type (Unsized (UArray UReal))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment - ((LVariable - very_deep_p_dot_2_dot_2_dot_2_temp___flat__) - ()) - (UArray UReal) - ((pattern - (Indexed - ((pattern - (Var - very_deep_p_dot_2_dot_2_dot_2_flat__)) - (meta - ((type_ (UArray UMatrix)) - (loc ) (adlevel DataOnly)))) - ((Between - ((pattern - (Var - very_deep_p_dot_2_dot_2_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern - (FunApp - (StanLib Minus__ FnPlain AoS) - (((pattern - (FunApp - (StanLib Plus__ FnPlain AoS) - (((pattern - (Var - very_deep_p_dot_2_dot_2_dot_2_flat__pos__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))) - ((pattern - (FunApp - (StanLib Times__ FnPlain - AoS) - (((pattern (Lit Int 6)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ (UArray UMatrix)) - (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym4__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 7)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym5__) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 6)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable - very_deep_p_dot_2_dot_2_dot_2_temp__) - ((Single - ((pattern (Var sym5__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))) - (Single - ((pattern (Var sym4__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))))) - UMatrix - ((pattern - (Indexed - ((pattern - (Var - very_deep_p_dot_2_dot_2_dot_2_temp___flat__)) - (meta - ((type_ - (UArray UReal)) - (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UReal) - (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LVariable pos__) ()) UInt - ((pattern - (FunApp - (StanLib Plus__ FnPlain - AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable - very_deep_p_dot_2_dot_2_dot_2_flat__pos__) - ()) - UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern - (Var - very_deep_p_dot_2_dot_2_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern - (FunApp (StanLib Times__ FnPlain AoS) - (((pattern (Lit Int 6)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable very_deep_p_dot_2_dot_2_temp__) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (UArray (UTuple (UComplex UMatrix))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern - (Var - very_deep_p_dot_2_dot_2_dot_1_temp__)) - (meta - ((type_ UComplex) (loc ) - (adlevel DataOnly)))) - ((pattern - (Var - very_deep_p_dot_2_dot_2_dot_2_temp__)) - (meta - ((type_ UMatrix) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ (UTuple (UComplex UMatrix))) - (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable very_deep_p_dot_2_temp__) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray - (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var very_deep_p_dot_2_dot_1_temp__)) - (meta - ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Var very_deep_p_dot_2_dot_2_temp__)) - (meta - ((type_ (UArray (UTuple (UComplex UMatrix)))) - (loc ) - (adlevel (TupleAD (DataOnly DataOnly))))))))) - (meta - ((type_ - (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))) - (loc ) - (adlevel - (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray - (UTuple - (UReal - (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var very_deep_p_dot_1_temp__)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Var very_deep_p_dot_2_temp__)) - (meta - ((type_ - (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))) - (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))))) - (loc ) - (adlevel - (TupleAD - (DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var very_deep_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray - (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var very_deep_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix)))))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray - (UTuple - (UReal (UArray (UTuple (UComplex UMatrix))))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ - (UArray - (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var very_deep_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray - (UTuple (UComplex UMatrix)))))))))) - (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray - (UTuple (UComplex UMatrix))))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix)))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UArray (UTuple (UComplex UMatrix)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex UMatrix))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta - ((type_ UComplex) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var very_deep_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray - (UTuple (UComplex UMatrix)))))))))) - (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray - (UTuple (UComplex UMatrix))))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix)))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UArray (UTuple (UComplex UMatrix)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex UMatrix))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - ())) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )))) - (unconstrain_array - (((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id basic_p) - (decl_type - (Sized - (STuple - ((SArray SReal - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SReal)))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadDeserializer) - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable basic_p) ()) 2) ()) UReal - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern (Var basic_p)) - (meta - ((type_ (UTuple ((UArray UReal) UReal))) (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern (Var basic_p)) - (meta - ((type_ (UTuple ((UArray UReal) UReal))) (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) - (decl_id tuple_tuple_p) - (decl_type - (Sized - (STuple - (SReal - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 1) ()) - UReal - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 2) ()) - UVector - ((pattern - (FunApp (CompilerInternal FnReadDeserializer) - (((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern (Var tuple_tuple_p)) - (meta - ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) - (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern (Var tuple_tuple_p)) - (meta - ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ (UTuple (UReal UVector))) (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern (Var tuple_tuple_p)) - (meta - ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ (UTuple (UReal UVector))) (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) - (decl_id arr_tuple_p) - (decl_type - (Sized - (SArray - (STuple - (SComplex - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (SVector AoS - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UComplex - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadDeserializer) - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - UVector - ((pattern - (FunApp (CompilerInternal FnReadDeserializer) - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_p)) - (meta - ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex (UArray UReal) UVector))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UComplex) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_p)) - (meta - ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex (UArray UReal) UVector))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_p)) - (meta - ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex (UArray UReal) UVector))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - ())) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD (AutoDiffable AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) - (decl_id tuple_arr_tuple_p) - (decl_type - (Sized - (STuple - ((SArray SReal - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SReal - (SArray - (STuple - (SReal - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) - (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadDeserializer) - (((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 2) ()) UReal - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadDeserializer) - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern (Var tuple_arr_tuple_p)) - (meta - ((type_ - (UTuple ((UArray UReal) UReal (UArray (UTuple (UReal (UArray UReal))))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern (Var tuple_arr_tuple_p)) - (meta - ((type_ - (UTuple ((UArray UReal) UReal (UArray (UTuple (UReal (UArray UReal))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern (Var tuple_arr_tuple_p)) - (meta - ((type_ - (UTuple - ((UArray UReal) UReal - (UArray (UTuple (UReal (UArray UReal))))))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta - ((type_ (UArray (UTuple (UReal (UArray UReal))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal (UArray UReal)))) (loc ) - (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern (Var tuple_arr_tuple_p)) - (meta - ((type_ - (UTuple - ((UArray UReal) UReal - (UArray (UTuple (UReal (UArray UReal))))))) - (loc ) (adlevel DataOnly)))) - 3)) - (meta - ((type_ (UArray (UTuple (UReal (UArray UReal))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal (UArray UReal)))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - ())) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD - (AutoDiffable AutoDiffable - (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) - (decl_id arr_tuple_tuple_p) - (decl_type - (Sized - (SArray - (STuple - (SReal SReal - (STuple - (SReal - (STuple - (SComplex - (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UReal - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - 1) - ()) - UReal - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - 2) - ()) - 1) - ()) - UComplex - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - 2) - ()) - 2) - ()) - UVector - ((pattern - (FunApp (CompilerInternal FnReadDeserializer) - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p)) + (Indexed + ((pattern (Var arr_tuple_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal UReal + (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta ((type_ - (UArray - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + 3)) (meta - ((type_ - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) (loc ) (adlevel DataOnly)))) 1)) (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) @@ -8728,70 +1011,48 @@ ((pattern (NRFunApp (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) + (FnWriteParam (unconstrain_opt ()) (var ((pattern (TupleProjection ((pattern (TupleProjection ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p)) + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal UReal + (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta ((type_ - (UArray - (UTuple - (UReal UReal - (UTuple (UReal (UTuple (UComplex UVector)))))))) + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + 3)) (meta - ((type_ - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) (loc ) (adlevel DataOnly)))) - 3)) + 2)) (meta - ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) - (loc ) (adlevel DataOnly)))) + ((type_ (UTuple (UComplex UVector))) (loc ) + (adlevel DataOnly)))) 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UComplex) (loc ) (adlevel DataOnly))))))) ())) (meta )) ((pattern (NRFunApp (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) + (FnWriteParam (unconstrain_opt ()) (var ((pattern (TupleProjection @@ -8825,2503 +1086,5293 @@ (meta ((type_ (UTuple (UComplex UVector))) (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + ())) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_arr_tuple_p)) + (meta + ((type_ + (UArray (UTuple (UReal (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal (UArray (UTuple (UReal UVector)))))) + (loc ) (adlevel DataOnly)))) 1)) - (meta ((type_ UComplex) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) ())) (meta )) ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_arr_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple (UReal (UArray (UTuple (UReal UVector)))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UArray (UTuple (UReal UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal UVector))) (loc ) + (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_arr_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple (UReal (UArray (UTuple (UReal UVector)))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UArray (UTuple (UReal UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal UVector))) (loc ) + (adlevel DataOnly)))) + 2)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + ())) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern (NRFunApp (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) + (FnWriteParam (unconstrain_opt ()) (var ((pattern (TupleProjection ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal UReal - (UTuple (UReal (UTuple (UComplex UVector)))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) - (loc ) (adlevel DataOnly)))) - 3)) + (Indexed + ((pattern (Var very_deep_p)) (meta - ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) + ((type_ + (UArray + (UTuple + (UReal + (UArray + (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) (loc ) (adlevel DataOnly)))) - 2)) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta - ((type_ (UTuple (UComplex UVector))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + ((type_ + (UTuple + (UReal + (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) ())) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var very_deep_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix)))))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray + (UTuple + (UReal (UArray (UTuple (UComplex UMatrix))))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ + (UArray + (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var very_deep_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray + (UTuple (UComplex UMatrix)))))))))) + (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray + (UTuple (UComplex UMatrix))))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix)))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UArray (UTuple (UComplex UMatrix)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex UMatrix))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta + ((type_ UComplex) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var very_deep_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray + (UTuple (UComplex UMatrix)))))))))) + (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray + (UTuple (UComplex UMatrix))))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix)))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UArray (UTuple (UComplex UMatrix)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex UMatrix))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + ())) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) (meta ))))) (meta ))))) (meta )) + ((pattern + (IfElse + ((pattern + (FunApp (StanLib PNot__ FnPlain AoS) + (((pattern + (EOr + ((pattern (Var emit_transformed_parameters__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var emit_generated_quantities__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) + (meta )) + ((pattern + (IfElse + ((pattern + (FunApp (StanLib PNot__ FnPlain AoS) + (((pattern (Var emit_generated_quantities__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) + (meta )))) + (transform_inits + (((pattern + (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id basic_p) + (decl_type + (Sized + (STuple + ((SArray SReal + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + SReal)))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str basic_p.1)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable basic_p) ()) 2) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str basic_p.2)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern (Var basic_p)) + (meta + ((type_ (UTuple ((UArray UReal) UReal))) (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern (Var basic_p)) + (meta + ((type_ (UTuple ((UArray UReal) UReal))) (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) - (decl_id arr_tuple_arr_tuple_p) + (decl_id tuple_tuple_p) (decl_type (Sized - (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (STuple + (SReal + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) (initialize true) (assignment ()))) (meta )) ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable arr_tuple_arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable arr_tuple_arr_tuple_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UVector - ((pattern - (FunApp (CompilerInternal FnReadDeserializer) - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) + (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str tuple_tuple_p.1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 1) ()) + UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str tuple_tuple_p.2.1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id tuple_tuple_p_dot_2_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_arr_tuple_p)) - (meta - ((type_ - (UArray (UTuple (UReal (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal (UArray (UTuple (UReal UVector)))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) + (Assignment ((LVariable tuple_tuple_p_dot_2_dot_2_flat__) ()) + (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str tuple_tuple_p.2.2)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 2) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var tuple_tuple_p_dot_2_dot_2_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_arr_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple (UReal (UArray (UTuple (UReal UVector)))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UArray (UTuple (UReal UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal UVector))) (loc ) - (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var arr_tuple_arr_tuple_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal (UArray (UTuple (UReal UVector))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple (UReal (UArray (UTuple (UReal UVector)))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UArray (UTuple (UReal UVector)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal UVector))) (loc ) - (adlevel DataOnly)))) - 2)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - ())) - (meta ))))) + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta ))))) (meta ))))) (meta ))))) (meta )) ((pattern - (Decl - (decl_adtype - (TupleAD - (AutoDiffable (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) - (decl_id very_deep_p) + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern (Var tuple_tuple_p)) + (meta + ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) + (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern (Var tuple_tuple_p)) + (meta + ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) + (adlevel DataOnly)))) + 2)) + (meta ((type_ (UTuple (UReal UVector))) (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern (Var tuple_tuple_p)) + (meta + ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) + (adlevel DataOnly)))) + 2)) + (meta ((type_ (UTuple (UReal UVector))) (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) + (decl_id arr_tuple_p) (decl_type (Sized (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SArray - (STuple - (SComplex - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (STuple + (SComplex + (SArray SReal ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (SVector AoS + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_p_dot_1_flat__) + (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) + (meta )) ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UComplex - ((pattern - (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta - ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LTupleProjection - ((LVariable very_deep_p) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UMatrix - ((pattern - (FunApp (CompilerInternal FnReadDeserializer) - (((pattern (Lit Int 6)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body + (Assignment ((LVariable arr_tuple_p_dot_1_flat__) ()) UComplex + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_p.1)) + (meta + ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UComplex)) (loc ) (adlevel DataOnly)))))) + (meta )) ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var very_deep_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray - (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_p_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_p_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_p_dot_2_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_p.2)) + (meta + ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_2_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_p_dot_2_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_p_dot_3_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_p_dot_3_flat__) ()) UVector + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_p.3)) + (meta + ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_3_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_p_dot_3_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_1_temp__) + (decl_type (Sized SComplex)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_2_temp__) + (decl_type + (Sized + (SArray SReal + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_3_temp__) + (decl_type + (Sized + (SVector AoS + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body + (Block + (((pattern + (Assignment ((LVariable arr_tuple_p_dot_1_temp__) ()) UComplex + ((pattern + (Indexed + ((pattern (Var arr_tuple_p_dot_1_flat__)) + (meta + ((type_ (UArray UComplex)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var arr_tuple_p_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UComplex) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_p_dot_1_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_p_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_p_dot_2_temp__) ()) + (UArray UReal) + ((pattern + (Indexed + ((pattern (Var arr_tuple_p_dot_2_flat__)) + (meta + ((type_ (UArray (UArray UReal))) (loc ) + (adlevel DataOnly)))) + ((Between + ((pattern (Var arr_tuple_p_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern + (FunApp (StanLib Minus__ FnPlain AoS) + (((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_p_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_p_dot_2_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_p_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) ((pattern (Block (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var very_deep_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix)))))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray - (UTuple - (UReal (UArray (UTuple (UComplex UMatrix))))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ - (UArray - (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))) - (loc ) (adlevel DataOnly)))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) + (Decl (decl_adtype AutoDiffable) + (decl_id arr_tuple_p_dot_3_temp___flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) + (assignment ()))) (meta )) ((pattern - (For (loopvar sym3__) + (Assignment ((LVariable arr_tuple_p_dot_3_temp___flat__) ()) + (UArray UReal) + ((pattern + (Indexed + ((pattern (Var arr_tuple_p_dot_3_flat__)) + (meta + ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))) + ((Between + ((pattern (Var arr_tuple_p_dot_3_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern + (FunApp (StanLib Minus__ FnPlain AoS) + (((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_p_dot_3_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym2__) (lower ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var very_deep_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray - (UTuple (UComplex UMatrix)))))))))) - (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray - (UTuple (UComplex UMatrix))))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix)))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UArray (UTuple (UComplex UMatrix)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex UMatrix))) - (loc ) (adlevel DataOnly)))) - 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable arr_tuple_p_dot_3_temp__) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var arr_tuple_p_dot_3_temp___flat__)) (meta - ((type_ UComplex) (loc ) (adlevel DataOnly))))))) - ())) + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var very_deep_p)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray - (UTuple (UComplex UMatrix)))))))))) - (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) - (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray - (UTuple - (UReal - (UArray - (UTuple (UComplex UMatrix))))))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ - (UArray - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix))))))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ - (UTuple - (UReal - (UArray (UTuple (UComplex UMatrix)))))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ (UArray (UTuple (UComplex UMatrix)))) - (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UComplex UMatrix))) - (loc ) (adlevel DataOnly)))) - 2)) - (meta - ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - ())) + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta ))))) (meta ))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_p_dot_3_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_p_dot_3_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UTuple (UComplex (UArray UReal) UVector))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var arr_tuple_p_dot_1_temp__)) + (meta ((type_ UComplex) (loc ) (adlevel DataOnly)))) + ((pattern (Var arr_tuple_p_dot_2_temp__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((pattern (Var arr_tuple_p_dot_3_temp__)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UTuple (UComplex (UArray UReal) UVector))) + (loc ) (adlevel (TupleAD (DataOnly DataOnly DataOnly)))))))) (meta ))))) (meta ))))) (meta ))))) - (meta )))) - (output_vars - ((basic_p - ((begin_loc - ((filename arrays-tuples-nested.stan) (line_num 12) (col_num 2) (included_from ()))) - (end_loc - ((filename arrays-tuples-nested.stan) (line_num 12) (col_num 38) - (included_from ())))) - ((out_unconstrained_st - (STuple - ((SArray SReal - ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SReal))) - (out_constrained_st - (STuple - ((SArray SReal - ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SReal))) - (out_block Parameters) (out_trans (TupleTransformation (Identity Identity))))) - (tuple_tuple_p - ((begin_loc - ((filename arrays-tuples-nested.stan) (line_num 13) (col_num 2) (included_from ()))) - (end_loc - ((filename arrays-tuples-nested.stan) (line_num 13) (col_num 52) - (included_from ())))) - ((out_unconstrained_st - (STuple - (SReal - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))))) - (out_constrained_st - (STuple - (SReal + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_p)) + (meta + ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex (UArray UReal) UVector))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UComplex) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_p)) + (meta + ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex (UArray UReal) UVector))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_p)) + (meta + ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex (UArray UReal) UVector))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + ())) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Decl + (decl_adtype + (TupleAD (AutoDiffable AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) + (decl_id tuple_arr_tuple_p) + (decl_type + (Sized (STuple - (SReal - (SVector AoS + ((SArray SReal ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))))) - (out_block Parameters) - (out_trans - (TupleTransformation (Identity (TupleTransformation (Identity Identity))))))) - (arr_tuple_p - ((begin_loc - ((filename arrays-tuples-nested.stan) (line_num 14) (col_num 2) (included_from ()))) - (end_loc - ((filename arrays-tuples-nested.stan) (line_num 14) (col_num 64) - (included_from ())))) - ((out_unconstrained_st - (SArray - (STuple - (SComplex - (SArray SReal - ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (SVector AoS - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (out_constrained_st - (SArray - (STuple - (SComplex - (SArray SReal - ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (SVector AoS - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (out_block Parameters) - (out_trans (TupleTransformation (Identity Identity Identity))))) - (tuple_arr_tuple_p - ((begin_loc - ((filename arrays-tuples-nested.stan) (line_num 15) (col_num 2) (included_from ()))) - (end_loc - ((filename arrays-tuples-nested.stan) (line_num 15) (col_num 84) - (included_from ())))) - ((out_unconstrained_st - (STuple - ((SArray SReal - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SReal - (SArray - (STuple - (SReal - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (out_constrained_st - (STuple - ((SArray SReal - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SReal - (SArray - (STuple - (SReal - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (out_block Parameters) - (out_trans - (TupleTransformation (Identity Identity (TupleTransformation (Identity Identity))))))) - (arr_tuple_tuple_p - ((begin_loc - ((filename arrays-tuples-nested.stan) (line_num 16) (col_num 2) (included_from ()))) - (end_loc - ((filename arrays-tuples-nested.stan) (line_num 16) (col_num 87) - (included_from ())))) - ((out_unconstrained_st - (SArray - (STuple - (SReal SReal - (STuple - (SReal - (STuple - (SComplex - (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (out_constrained_st - (SArray - (STuple - (SReal SReal - (STuple - (SReal + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + SReal + (SArray (STuple - (SComplex - (SVector AoS + (SReal + (SArray SReal ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (out_block Parameters) - (out_trans - (TupleTransformation - (Identity Identity - (TupleTransformation (Identity (TupleTransformation (Identity Identity))))))))) - (arr_tuple_arr_tuple_p - ((begin_loc - ((filename arrays-tuples-nested.stan) (line_num 17) (col_num 2) (included_from ()))) - (end_loc - ((filename arrays-tuples-nested.stan) (line_num 17) (col_num 78) - (included_from ())))) - ((out_unconstrained_st - (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (out_constrained_st - (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (out_block Parameters) - (out_trans - (TupleTransformation (Identity (TupleTransformation (Identity Identity))))))) - (very_deep_p - ((begin_loc - ((filename arrays-tuples-nested.stan) (line_num 18) (col_num 2) (included_from ()))) - (end_loc - ((filename arrays-tuples-nested.stan) (line_num 19) (col_num 81) - (included_from ())))) - ((out_unconstrained_st - (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SArray - (STuple - (SComplex - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (out_constrained_st - (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SArray - (STuple - (SComplex - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) + (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str tuple_arr_tuple_p.1)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 2) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str tuple_arr_tuple_p.2)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_p_dot_3_dot_1_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_1_flat__) ()) UReal + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str tuple_arr_tuple_p.3.1)) + (meta + ((type_ (UArray (UTuple (UReal (UArray UReal))))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_p_dot_3_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_2_flat__) ()) + (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str tuple_arr_tuple_p.3.2)) + (meta + ((type_ (UArray (UTuple (UReal (UArray UReal))))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_2_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_2_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_1_temp__) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_2_temp__) + (decl_type + (Sized + (SArray SReal + ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (out_block Parameters) - (out_trans - (TupleTransformation - (Identity - (TupleTransformation (Identity (TupleTransformation (Identity Identity))))))))))) - (prog_name arrays_tuples_nested_model) (prog_path arrays-tuples-nested.stan)) - $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir basic_unpacking.stan -((functions_block ()) (input_vars ()) - (prepare_data - (((pattern - (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_1_temp__) ()) UReal + ((pattern + (Indexed + ((pattern (Var tuple_arr_tuple_p_dot_3_dot_1_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var tuple_arr_tuple_p_dot_3_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_1_flat__pos__) ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var tuple_arr_tuple_p_dot_3_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_2_temp__) ()) + (UArray UReal) + ((pattern + (Indexed + ((pattern (Var tuple_arr_tuple_p_dot_3_dot_2_flat__)) + (meta + ((type_ (UArray (UArray UReal))) (loc ) + (adlevel DataOnly)))) + ((Between + ((pattern (Var tuple_arr_tuple_p_dot_3_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern + (FunApp (StanLib Minus__ FnPlain AoS) + (((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var tuple_arr_tuple_p_dot_3_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_2_flat__pos__) ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var tuple_arr_tuple_p_dot_3_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UTuple (UReal (UArray UReal)))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var tuple_arr_tuple_p_dot_3_dot_1_temp__)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var tuple_arr_tuple_p_dot_3_dot_2_temp__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UTuple (UReal (UArray UReal)))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))))) + (meta ))))) + (meta ))))) + (meta ))))) (meta )) ((pattern - (Assignment ((LVariable x) ()) UInt - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern (Var tuple_arr_tuple_p)) + (meta + ((type_ + (UTuple ((UArray UReal) UReal (UArray (UTuple (UReal (UArray UReal))))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + ())) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id y) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern (Var tuple_arr_tuple_p)) + (meta + ((type_ + (UTuple ((UArray UReal) UReal (UArray (UTuple (UReal (UArray UReal))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) (meta )) ((pattern - (Assignment ((LVariable y) ()) UInt - ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern (Var tuple_arr_tuple_p)) + (meta + ((type_ + (UTuple + ((UArray UReal) UReal + (UArray (UTuple (UReal (UArray UReal))))))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta + ((type_ (UArray (UTuple (UReal (UArray UReal))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal (UArray UReal)))) (loc ) + (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern (Var tuple_arr_tuple_p)) + (meta + ((type_ + (UTuple + ((UArray UReal) UReal + (UArray (UTuple (UReal (UArray UReal))))))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta + ((type_ (UArray (UTuple (UReal (UArray UReal))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal (UArray UReal)))) (loc ) + (adlevel DataOnly)))) + 2)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + ())) + (meta ))))) + (meta ))))) (meta )) ((pattern - (NRFunApp (CompilerInternal FnPrint) - (((pattern (Var x)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (Decl + (decl_adtype + (TupleAD + (AutoDiffable AutoDiffable + (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) + (decl_id arr_tuple_tuple_p) + (decl_type + (Sized + (SArray + (STuple + (SReal SReal + (STuple + (SReal + (STuple + (SComplex + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) - (assignment ()))) + (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_1_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) + (Assignment ((LVariable arr_tuple_tuple_p_dot_1_flat__) ()) UReal ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 6)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ (UTuple (UInt UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))))) + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_tuple_p.1)) + (meta + ((type_ + (UArray + (UTuple (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Assignment ((LVariable x) ()) UInt - ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ (UTuple (UInt UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable y) ()) UInt - ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ (UTuple (UInt UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnPrint) - (((pattern (Var x)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) - (assignment ()))) + (Assignment ((LVariable arr_tuple_tuple_p_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var x)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ (UTuple (UInt UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))))) + (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable x) ()) UInt + (Assignment ((LVariable arr_tuple_tuple_p_dot_2_flat__) ()) UReal ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ (UTuple (UInt UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_tuple_p.2)) + (meta + ((type_ + (UArray + (UTuple (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Assignment ((LVariable y) ()) UInt - ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ (UTuple (UInt UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnPrint) - (((pattern (Var x)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) - (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_2_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var x)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ (UTuple (UInt UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))))) + (Assignment ((LVariable arr_tuple_tuple_p_dot_2_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Assignment ((LVariable x) ()) UInt - ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ (UTuple (UInt UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_3_dot_1_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable y) ()) UInt + (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_1_flat__) ()) UReal ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ (UTuple (UInt UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) - (assignment ()))) + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_tuple_p.3.1)) + (meta + ((type_ + (UArray + (UTuple (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var x)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ (UTuple (UInt UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))))) + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_3_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable x) ()) UInt + (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__) + (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__) ()) UComplex ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ (UTuple (UInt UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_tuple_p.3.2.1)) + (meta + ((type_ + (UArray + (UTuple (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UComplex)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Assignment ((LVariable y) ()) UInt + (Decl (decl_adtype DataOnly) + (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__pos__) ()) + UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__) ()) UVector ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ (UTuple (UInt UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_tuple_p.3.2.2)) + (meta + ((type_ + (UArray + (UTuple (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) + (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__) ()) + UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_1_temp__) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_2_temp__) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) + (decl_id arr_tuple_tuple_p_dot_3_temp__) + (decl_type + (Sized + (STuple + (SReal + (STuple + (SComplex + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment ((LVariable arr_tuple_tuple_p_dot_1_temp__) ()) UReal + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p_dot_1_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var arr_tuple_tuple_p_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_p_dot_1_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_tuple_p_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_p_dot_2_temp__) ()) UReal + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p_dot_2_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var arr_tuple_tuple_p_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_p_dot_2_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_tuple_p_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LVariable arr_tuple_tuple_p_dot_3_temp__) ()) 1) + ()) + UReal + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p_dot_3_dot_1_flat__)) + (meta + ((type_ (UArray (UTuple (UReal (UTuple (UComplex UVector)))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) + ((Single + ((pattern (Var arr_tuple_tuple_p_dot_3_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_1_flat__pos__) ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_tuple_p_dot_3_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection ((LVariable arr_tuple_tuple_p_dot_3_temp__) ()) 2) + ()) + 1) + ()) + UComplex + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__)) + (meta + ((type_ (UArray (UTuple (UReal (UTuple (UComplex UVector)))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) + ((Single + ((pattern (Var arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id arr_tuple_tuple_p_dot_3_temp___dot_2_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) + (assignment ()))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_tuple_p_dot_3_temp___dot_2_dot_2_flat__) ()) + (UArray UReal) + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__)) + (meta + ((type_ (UArray (UTuple (UReal (UTuple (UComplex UVector)))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) + ((Between + ((pattern + (Var arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern + (FunApp (StanLib Minus__ FnPlain AoS) + (((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern + (Var + arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UArray (UTuple (UReal (UTuple (UComplex UVector)))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_tuple_p_dot_3_temp__) ()) 2) + ()) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern + (Var + arr_tuple_tuple_p_dot_3_temp___dot_2_dot_2_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__) ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern + (Var arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray + (UTuple (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var arr_tuple_tuple_p_dot_1_temp__)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var arr_tuple_tuple_p_dot_2_temp__)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var arr_tuple_tuple_p_dot_3_temp__)) + (meta + ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))))))) + (meta + ((type_ + (UTuple (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + (loc ) + (adlevel + (TupleAD + (DataOnly DataOnly + (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))))) + (meta ))))) + (meta ))))) (meta ))))) - (meta )))) - (log_prob ()) (reverse_mode_log_prob ()) - (generate_quantities - (((pattern - (IfElse - ((pattern - (FunApp (StanLib PNot__ FnPlain AoS) - (((pattern - (EOr - ((pattern (Var emit_transformed_parameters__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var emit_generated_quantities__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) - (meta )) - ((pattern - (IfElse - ((pattern - (FunApp (StanLib PNot__ FnPlain AoS) - (((pattern (Var emit_generated_quantities__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) - (meta )))) - (transform_inits ()) (unconstrain_array ()) (output_vars ()) - (prog_name basic_unpacking_model) (prog_path basic_unpacking.stan)) - $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir infer_tuple_ad.stan -((functions_block ()) (input_vars ()) (prepare_data ()) - (log_prob - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable x) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) (meta )) ((pattern - (Block - (((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id z) - (decl_type - (Sized - (SArray (STuple (SReal SReal)) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body ((pattern - (Assignment ((LVariable z) ()) (UArray (UTuple (UReal UReal))) - ((pattern - (FunApp (CompilerInternal FnMakeArray) - (((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern - (Promotion - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - UReal AutoDiffable)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) - ((pattern - (Promotion - ((pattern (Var x)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) - UReal AutoDiffable)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable))))))) - (meta - ((type_ (UTuple (UReal UReal))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern - (Promotion - ((pattern (Var x)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) - UReal AutoDiffable)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) - ((pattern - (Promotion - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - UReal AutoDiffable)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable))))))) - (meta - ((type_ (UTuple (UReal UReal))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable))))))))) - (meta - ((type_ (UArray (UTuple (UReal UReal)))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable)))))))) + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal UReal + (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta + ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal UReal + (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta + ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UTuple (UComplex UVector))) (loc ) + (adlevel DataOnly)))) + 1)) + (meta ((type_ UComplex) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal UReal + (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta + ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UTuple (UComplex UVector))) (loc ) + (adlevel DataOnly)))) + 2)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + ())) + (meta ))))) (meta ))))) - (meta )))) - (reverse_mode_log_prob - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable x) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) + (decl_id arr_tuple_arr_tuple_p) + (decl_type + (Sized + (SArray + (STuple + (SReal + (SArray + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) (meta )) ((pattern (Block (((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id z) + (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_p_dot_1_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_1_flat__) ()) UReal + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_arr_tuple_p.1)) + (meta + ((type_ (UArray (UTuple (UReal (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_p_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id arr_tuple_arr_tuple_p_dot_2_dot_1_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_1_flat__) ()) + (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_arr_tuple_p.2.1)) + (meta + ((type_ (UArray (UTuple (UReal (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) + (decl_id arr_tuple_arr_tuple_p_dot_2_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id arr_tuple_arr_tuple_p_dot_2_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_2_flat__) ()) + (UArray UVector) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_arr_tuple_p.2.2)) + (meta + ((type_ (UArray (UTuple (UReal (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) + (decl_id arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_p_dot_1_temp__) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) + (decl_id arr_tuple_arr_tuple_p_dot_2_temp__) (decl_type (Sized - (SArray (STuple (SReal SReal)) - ((pattern (Lit Int 2)) + (SArray + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable z) ()) (UArray (UTuple (UReal UReal))) - ((pattern - (FunApp (CompilerInternal FnMakeArray) - (((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern - (Promotion - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - UReal AutoDiffable)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_1_temp__) ()) UReal ((pattern - (Promotion - ((pattern (Var x)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) - UReal AutoDiffable)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable))))))) - (meta - ((type_ (UTuple (UReal UReal))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern - (Promotion - ((pattern (Var x)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) - UReal AutoDiffable)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) + (Indexed + ((pattern (Var arr_tuple_arr_tuple_p_dot_1_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var arr_tuple_arr_tuple_p_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_1_flat__pos__) ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_arr_tuple_p_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype DataOnly) + (decl_id arr_tuple_arr_tuple_p_dot_2_dot_1_temp__) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) + (decl_id arr_tuple_arr_tuple_p_dot_2_dot_2_temp__) + (decl_type + (Sized + (SVector AoS + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_1_temp__) ()) + UReal + ((pattern + (Indexed + ((pattern + (Var arr_tuple_arr_tuple_p_dot_2_dot_1_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern + (Var arr_tuple_arr_tuple_p_dot_2_dot_1_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_1_flat__pos__) + ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern + (Var arr_tuple_arr_tuple_p_dot_2_dot_1_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id + arr_tuple_arr_tuple_p_dot_2_dot_2_temp___flat__) + (decl_type (Unsized (UArray UReal))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment + ((LVariable + arr_tuple_arr_tuple_p_dot_2_dot_2_temp___flat__) + ()) + (UArray UReal) + ((pattern + (Indexed + ((pattern + (Var arr_tuple_arr_tuple_p_dot_2_dot_2_flat__)) + (meta + ((type_ (UArray UVector)) (loc ) + (adlevel DataOnly)))) + ((Between + ((pattern + (Var + arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern + (FunApp (StanLib Minus__ FnPlain AoS) + (((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern + (Var + arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 5)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UArray UVector)) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 5)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable + arr_tuple_arr_tuple_p_dot_2_dot_2_temp__) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern + (Var + arr_tuple_arr_tuple_p_dot_2_dot_2_temp___flat__)) + (meta + ((type_ (UArray UReal)) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable + arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__) + ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern + (Var + arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 5)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_arr_tuple_p_dot_2_temp__) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UTuple (UReal UVector))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern + (Var arr_tuple_arr_tuple_p_dot_2_dot_1_temp__)) + (meta + ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern + (Var arr_tuple_arr_tuple_p_dot_2_dot_2_temp__)) + (meta + ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UTuple (UReal UVector))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UTuple (UReal (UArray (UTuple (UReal UVector)))))) ((pattern - (Promotion - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - UReal AutoDiffable)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable))))))) - (meta - ((type_ (UTuple (UReal UReal))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable))))))))) - (meta - ((type_ (UArray (UTuple (UReal UReal)))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable)))))))) - (meta ))))) - (meta )))) - (generate_quantities - (((pattern - (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable x) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern (Var x)) (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (IfElse - ((pattern - (FunApp (StanLib PNot__ FnPlain AoS) - (((pattern - (EOr - ((pattern (Var emit_transformed_parameters__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var emit_generated_quantities__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) - (meta )) - ((pattern - (IfElse - ((pattern - (FunApp (StanLib PNot__ FnPlain AoS) - (((pattern (Var emit_generated_quantities__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) - (meta )))) - (transform_inits - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable x) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str x)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern (Var x)) (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )))) - (unconstrain_array - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable x) ()) UReal - ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var arr_tuple_arr_tuple_p_dot_1_temp__)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var arr_tuple_arr_tuple_p_dot_2_temp__)) + (meta + ((type_ (UArray (UTuple (UReal UVector)))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly))))))))) + (meta + ((type_ (UTuple (UReal (UArray (UTuple (UReal UVector)))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) + (meta ))))) + (meta ))))) + (meta ))))) (meta )) ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern (Var x)) (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - ())) - (meta )))) - (output_vars - ((x - ((begin_loc - ((filename infer_tuple_ad.stan) (line_num 2) (col_num 2) (included_from ()))) - (end_loc - ((filename infer_tuple_ad.stan) (line_num 2) (col_num 9) (included_from ())))) - ((out_unconstrained_st SReal) (out_constrained_st SReal) (out_block Parameters) - (out_trans Identity))))) - (prog_name infer_tuple_ad_model) (prog_path infer_tuple_ad.stan)) - $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir nested_unpacking.stan -((functions_block ()) - (input_vars - ((complicated - ((begin_loc - ((filename nested_unpacking.stan) (line_num 2) (col_num 2) (included_from ()))) - (end_loc - ((filename nested_unpacking.stan) (line_num 2) (col_num 79) (included_from ())))) - (STuple - ((SArray SReal + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (SArray SReal - ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - SInt))))) - (prepare_data - (((pattern - (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_arr_tuple_p)) + (meta + ((type_ + (UArray (UTuple (UReal (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal (UArray (UTuple (UReal UVector)))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_arr_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple (UReal (UArray (UTuple (UReal UVector)))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UArray (UTuple (UReal UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal UVector))) (loc ) + (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_arr_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple (UReal (UArray (UTuple (UReal UVector)))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UArray (UTuple (UReal UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal UVector))) (loc ) + (adlevel DataOnly)))) + 2)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + ())) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) (meta )) ((pattern (Decl - (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly DataOnly)) DataOnly))) - (decl_id complicated) + (decl_adtype + (TupleAD + (AutoDiffable (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) + (decl_id very_deep_p) (decl_type (Sized - (STuple - ((SArray SReal - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - SInt)))) + (SArray + (STuple + (SReal + (SArray + (STuple + (SReal + (SArray + (STuple + (SComplex + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable complicated) ()) 1) ()) - (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str complicated.1)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection ((LTupleProjection ((LVariable complicated) ()) 2) ()) 1) ()) - UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str complicated.2.1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) ((pattern (Block (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_1_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_p_dot_1_flat__) ()) UReal + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str very_deep_p.1)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Assignment ((LVariable complicated_dot_2_dot_2_flat__) ()) + (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_p_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_2_dot_1_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_p_dot_2_dot_1_flat__) ()) (UArray UReal) ((pattern (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str complicated.2.2)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (((pattern (Lit Str very_deep_p.2.1)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) + (loc ) (adlevel DataOnly))))))) (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Assignment ((LVariable pos__) ()) UInt + (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_p_dot_2_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_2_dot_2_dot_1_flat__) + (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_1_flat__) ()) + (UArray (UArray UComplex)) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str very_deep_p.2.2.1)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UComplex)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_2_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_2_dot_2_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_2_flat__) ()) + (UArray (UArray UMatrix)) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str very_deep_p.2.2.2)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_2_dot_2_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_2_flat__pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_1_temp__) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) + (decl_id very_deep_p_dot_2_temp__) + (decl_type + (Sized + (SArray + (STuple + (SReal + (SArray + (STuple + (SComplex + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) ((pattern (For (loopvar sym1__) (lower ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) (upper - ((pattern (Lit Int 4)) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) (body ((pattern (Block (((pattern + (Assignment ((LVariable very_deep_p_dot_1_temp__) ()) UReal + ((pattern + (Indexed + ((pattern (Var very_deep_p_dot_1_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var very_deep_p_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_p_dot_1_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var very_deep_p_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype DataOnly) + (decl_id very_deep_p_dot_2_dot_1_temp__) (decl_type (Sized SReal)) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) + (decl_id very_deep_p_dot_2_dot_2_temp__) + (decl_type + (Sized + (SArray + (STuple + (SComplex + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment ((LVariable very_deep_p_dot_2_dot_1_temp__) ()) + UReal + ((pattern + (Indexed + ((pattern (Var very_deep_p_dot_2_dot_1_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var very_deep_p_dot_2_dot_1_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LVariable very_deep_p_dot_2_dot_1_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var very_deep_p_dot_2_dot_1_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype DataOnly) + (decl_id very_deep_p_dot_2_dot_2_dot_1_temp__) + (decl_type (Sized SComplex)) (initialize true) + (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) + (decl_id very_deep_p_dot_2_dot_2_dot_2_temp__) + (decl_type + (Sized + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 5)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable + very_deep_p_dot_2_dot_2_dot_1_temp__) + ()) + UComplex + ((pattern + (Indexed + ((pattern + (Var very_deep_p_dot_2_dot_2_dot_1_flat__)) + (meta + ((type_ (UArray UComplex)) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern + (Var + very_deep_p_dot_2_dot_2_dot_1_flat__pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UComplex) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LVariable + very_deep_p_dot_2_dot_2_dot_1_flat__pos__) + ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern + (Var + very_deep_p_dot_2_dot_2_dot_1_flat__pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id + very_deep_p_dot_2_dot_2_dot_2_temp___flat__) + (decl_type (Unsized (UArray UReal))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment + ((LVariable + very_deep_p_dot_2_dot_2_dot_2_temp___flat__) + ()) + (UArray UReal) + ((pattern + (Indexed + ((pattern + (Var + very_deep_p_dot_2_dot_2_dot_2_flat__)) + (meta + ((type_ (UArray UMatrix)) + (loc ) (adlevel DataOnly)))) + ((Between + ((pattern + (Var + very_deep_p_dot_2_dot_2_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern + (FunApp + (StanLib Minus__ FnPlain AoS) + (((pattern + (FunApp + (StanLib Plus__ FnPlain AoS) + (((pattern + (Var + very_deep_p_dot_2_dot_2_dot_2_flat__pos__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))) + ((pattern + (FunApp + (StanLib Times__ FnPlain + AoS) + (((pattern (Lit Int 6)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ (UArray UMatrix)) + (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym4__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 7)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym5__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 6)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable + very_deep_p_dot_2_dot_2_dot_2_temp__) + ((Single + ((pattern (Var sym5__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym4__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))))) + UMatrix + ((pattern + (Indexed + ((pattern + (Var + very_deep_p_dot_2_dot_2_dot_2_temp___flat__)) + (meta + ((type_ + (UArray UReal)) + (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UReal) + (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LVariable pos__) ()) UInt + ((pattern + (FunApp + (StanLib Plus__ FnPlain + AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable + very_deep_p_dot_2_dot_2_dot_2_flat__pos__) + ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern + (Var + very_deep_p_dot_2_dot_2_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern + (FunApp (StanLib Times__ FnPlain AoS) + (((pattern (Lit Int 6)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable very_deep_p_dot_2_dot_2_temp__) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (UArray (UTuple (UComplex UMatrix))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern + (Var + very_deep_p_dot_2_dot_2_dot_1_temp__)) + (meta + ((type_ UComplex) (loc ) + (adlevel DataOnly)))) + ((pattern + (Var + very_deep_p_dot_2_dot_2_dot_2_temp__)) + (meta + ((type_ UMatrix) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UTuple (UComplex UMatrix))) + (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable very_deep_p_dot_2_temp__) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray + (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var very_deep_p_dot_2_dot_1_temp__)) + (meta + ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var very_deep_p_dot_2_dot_2_temp__)) + (meta + ((type_ (UArray (UTuple (UComplex UMatrix)))) + (loc ) + (adlevel (TupleAD (DataOnly DataOnly))))))))) + (meta + ((type_ + (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))) + (loc ) + (adlevel + (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern (Assignment - ((LTupleProjection - ((LTupleProjection ((LVariable complicated) ()) 2) ()) 2) + ((LVariable very_deep_p) ((Single ((pattern (Var sym1__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var complicated_dot_2_dot_2_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt + (UArray + (UTuple + (UReal + (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))))) ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var very_deep_p_dot_1_temp__)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var very_deep_p_dot_2_temp__)) + (meta + ((type_ + (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))))) + (loc ) + (adlevel + (TupleAD + (DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))))) (meta ))))) (meta ))))) (meta ))))) (meta )) ((pattern - (Assignment - ((LTupleProjection ((LTupleProjection ((LVariable complicated) ()) 2) ()) 3) ()) - (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str complicated.2.3)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable complicated) ()) 3) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str complicated.3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )))) - (log_prob - (((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id x) - (decl_type - (Sized - (SArray SReal - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id y) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id z) - (decl_type - (Sized - (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id w) - (decl_type - (Sized - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id i) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body ((pattern (Block (((pattern - (Decl - (decl_adtype - (TupleAD - (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) - DataOnly))) - (decl_id sym1__) - (decl_type - (Unsized - (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt)))) - (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sym1__) ()) - (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt)) - ((pattern (Var complicated)) - (meta - ((type_ - (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) - (loc ) - (adlevel - (TupleAD - (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) - DataOnly)))))))) - (meta )) - ((pattern - (Assignment ((LVariable x) ()) (UArray UReal) - ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ - (UTuple - ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) - (loc ) - (adlevel - (TupleAD - (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) - DataOnly)))))) - 1)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) - (decl_id sym2__) - (decl_type (Unsized (UTuple (UReal UVector (UArray UReal))))) - (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sym2__) ()) - (UTuple (UReal UVector (UArray UReal))) - ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ - (UTuple - ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) - (loc ) - (adlevel - (TupleAD - (AutoDiffable - (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) DataOnly)))))) - 2)) - (meta - ((type_ (UTuple (UReal UVector (UArray UReal)))) - (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))))) - (meta )) - ((pattern - (Assignment ((LVariable y) ()) UReal - ((pattern - (TupleProjection - ((pattern (Var sym2__)) - (meta - ((type_ (UTuple (UReal UVector (UArray UReal)))) - (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LVariable z) ()) UVector - ((pattern - (TupleProjection - ((pattern (Var sym2__)) - (meta - ((type_ (UTuple (UReal UVector (UArray UReal)))) - (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))) - 2)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta )) + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var very_deep_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray + (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body ((pattern - (Assignment ((LVariable w) ()) (UArray UReal) - ((pattern - (TupleProjection - ((pattern (Var sym2__)) - (meta - ((type_ (UTuple (UReal UVector (UArray UReal)))) - (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))) - 3)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var very_deep_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix)))))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray + (UTuple + (UReal (UArray (UTuple (UComplex UMatrix))))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ + (UArray + (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var very_deep_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray + (UTuple (UComplex UMatrix)))))))))) + (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray + (UTuple (UComplex UMatrix))))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix)))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UArray (UTuple (UComplex UMatrix)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex UMatrix))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta + ((type_ UComplex) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var very_deep_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray + (UTuple (UComplex UMatrix)))))))))) + (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray + (UTuple (UComplex UMatrix))))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix)))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UArray (UTuple (UComplex UMatrix)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex UMatrix))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + ())) + (meta ))))) + (meta ))))) + (meta ))))) (meta ))))) - (meta )) - ((pattern - (Assignment ((LVariable i) ()) UInt - ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ - (UTuple - ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) - (loc ) - (adlevel - (TupleAD - (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) - DataOnly)))))) - 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta ))))) (meta ))))) (meta )))) - (reverse_mode_log_prob + (unconstrain_array (((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id x) - (decl_type - (Sized - (SArray SReal - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id y) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id z) - (decl_type - (Sized + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id basic_p) + (decl_type + (Sized + (STuple + ((SArray SReal + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + SReal)))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadDeserializer) + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable basic_p) ()) 2) ()) UReal + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern (Var basic_p)) + (meta + ((type_ (UTuple ((UArray UReal) UReal))) (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern (Var basic_p)) + (meta + ((type_ (UTuple ((UArray UReal) UReal))) (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) + (decl_id tuple_tuple_p) + (decl_type + (Sized + (STuple + (SReal + (STuple + (SReal (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id w) - (decl_type - (Sized - (SArray SReal - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id i) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 1) ()) + UReal + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 2) ()) + UVector + ((pattern + (FunApp (CompilerInternal FnReadDeserializer) + (((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern (Var tuple_tuple_p)) + (meta + ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) + (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern (Var tuple_tuple_p)) + (meta + ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) + (adlevel DataOnly)))) + 2)) + (meta ((type_ (UTuple (UReal UVector))) (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern (Var tuple_tuple_p)) + (meta + ((type_ (UTuple (UReal (UTuple (UReal UVector))))) (loc ) + (adlevel DataOnly)))) + 2)) + (meta ((type_ (UTuple (UReal UVector))) (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) + (decl_id arr_tuple_p) + (decl_type + (Sized + (SArray + (STuple + (SComplex + (SArray SReal + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (SVector AoS + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body ((pattern (Block (((pattern - (Decl - (decl_adtype - (TupleAD - (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) - DataOnly))) - (decl_id sym1__) - (decl_type - (Unsized - (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt)))) - (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sym1__) ()) - (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt)) - ((pattern (Var complicated)) - (meta - ((type_ - (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) - (loc ) - (adlevel - (TupleAD - (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) - DataOnly)))))))) + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UComplex + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) (meta )) ((pattern - (Assignment ((LVariable x) ()) (UArray UReal) + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + (UArray UReal) ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ - (UTuple - ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) - (loc ) - (adlevel - (TupleAD - (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) - DataOnly)))))) - 1)) + (FunApp (CompilerInternal FnReadDeserializer) + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) (meta )) ((pattern - (Block - (((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) - (decl_id sym2__) - (decl_type (Unsized (UTuple (UReal UVector (UArray UReal))))) - (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sym2__) ()) - (UTuple (UReal UVector (UArray UReal))) - ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ - (UTuple - ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) - (loc ) - (adlevel - (TupleAD - (AutoDiffable - (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) DataOnly)))))) - 2)) - (meta - ((type_ (UTuple (UReal UVector (UArray UReal)))) - (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))))) - (meta )) - ((pattern - (Assignment ((LVariable y) ()) UReal - ((pattern - (TupleProjection - ((pattern (Var sym2__)) - (meta - ((type_ (UTuple (UReal UVector (UArray UReal)))) - (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LVariable z) ()) UVector - ((pattern - (TupleProjection - ((pattern (Var sym2__)) - (meta - ((type_ (UTuple (UReal UVector (UArray UReal)))) - (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))) - 2)) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LVariable w) ()) (UArray UReal) - ((pattern - (TupleProjection - ((pattern (Var sym2__)) - (meta - ((type_ (UTuple (UReal UVector (UArray UReal)))) - (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))) - 3)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + UVector + ((pattern + (FunApp (CompilerInternal FnReadDeserializer) + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_p)) + (meta + ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex (UArray UReal) UVector))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UComplex) (loc ) (adlevel DataOnly))))))) + ())) (meta )) ((pattern - (Assignment ((LVariable i) ()) UInt - ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ - (UTuple - ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) - (loc ) - (adlevel - (TupleAD - (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) - DataOnly)))))) - 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_p)) + (meta + ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex (UArray UReal) UVector))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_p)) + (meta + ((type_ (UArray (UTuple (UComplex (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex (UArray UReal) UVector))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + ())) (meta ))))) (meta ))))) - (meta )))) - (generate_quantities - (((pattern - (IfElse - ((pattern - (FunApp (StanLib PNot__ FnPlain AoS) - (((pattern - (EOr - ((pattern (Var emit_transformed_parameters__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var emit_generated_quantities__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) (meta )) ((pattern - (IfElse - ((pattern - (FunApp (StanLib PNot__ FnPlain AoS) - (((pattern (Var emit_generated_quantities__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) - (meta )))) - (transform_inits ()) (unconstrain_array ()) (output_vars ()) - (prog_name nested_unpacking_model) (prog_path nested_unpacking.stan)) - $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir qr_unpack.stan -((functions_block ()) - (input_vars - ((N - ((begin_loc ((filename qr_unpack.stan) (line_num 2) (col_num 2) (included_from ()))) - (end_loc ((filename qr_unpack.stan) (line_num 2) (col_num 17) (included_from ())))) - SInt) - (M - ((begin_loc ((filename qr_unpack.stan) (line_num 3) (col_num 2) (included_from ()))) - (end_loc ((filename qr_unpack.stan) (line_num 3) (col_num 17) (included_from ())))) - SInt))) - (prepare_data - (((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (Decl + (decl_adtype + (TupleAD (AutoDiffable AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) + (decl_id tuple_arr_tuple_p) + (decl_type + (Sized + (STuple + ((SArray SReal + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + SReal + (SArray + (STuple + (SReal + (SArray SReal + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable N) ()) UInt + (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) + (UArray UReal) ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (FunApp (CompilerInternal FnReadDeserializer) + (((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) (meta )) ((pattern - (NRFunApp - (CompilerInternal - (FnCheck - (trans - (Lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (var_name N) - (var ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 2) ()) UReal + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadDeserializer) + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) (meta )) ((pattern - (Assignment ((LVariable M) ()) UInt - ((pattern - (Indexed + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (TupleProjection + ((pattern (Var tuple_arr_tuple_p)) + (meta + ((type_ + (UTuple ((UArray UReal) UReal (UArray (UTuple (UReal (UArray UReal))))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + ())) (meta )) ((pattern (NRFunApp (CompilerInternal - (FnCheck - (trans - (Lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (var_name M) - (var ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern (Var tuple_arr_tuple_p)) + (meta + ((type_ + (UTuple ((UArray UReal) UReal (UArray (UTuple (UReal (UArray UReal))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) (meta )) ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str A)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern (Var tuple_arr_tuple_p)) + (meta + ((type_ + (UTuple + ((UArray UReal) UReal + (UArray (UTuple (UReal (UArray UReal))))))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta + ((type_ (UArray (UTuple (UReal (UArray UReal))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal (UArray UReal)))) (loc ) + (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern (Var tuple_arr_tuple_p)) + (meta + ((type_ + (UTuple + ((UArray UReal) UReal + (UArray (UTuple (UReal (UArray UReal))))))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta + ((type_ (UArray (UTuple (UReal (UArray UReal))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal (UArray UReal)))) (loc ) + (adlevel DataOnly)))) + 2)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + ())) + (meta ))))) + (meta ))))) (meta )) ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str A)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )))) - (log_prob - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id A) + (Decl + (decl_adtype + (TupleAD + (AutoDiffable AutoDiffable + (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) + (decl_id arr_tuple_tuple_p) (decl_type (Sized - (SMatrix AoS - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (SArray + (STuple + (SReal SReal + (STuple + (SReal + (STuple + (SComplex + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable A) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UReal + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + 1) + ()) + UReal + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + 2) + ()) + 1) + ()) + UComplex + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + 2) + ()) + 2) + ()) + UVector + ((pattern + (FunApp (CompilerInternal FnReadDeserializer) + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) (meta )) ((pattern - (Block - (((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str Q)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str Q)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id Q) - (decl_type - (Sized - (SMatrix AoS - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str R)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str R)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id R) - (decl_type - (Sized - (SMatrix AoS - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal UReal + (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta + ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal UReal + (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta + ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UTuple (UComplex UVector))) (loc ) + (adlevel DataOnly)))) + 1)) + (meta ((type_ UComplex) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal UReal + (UTuple (UReal (UTuple (UComplex UVector)))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal UReal (UTuple (UReal (UTuple (UComplex UVector))))))) + (loc ) (adlevel DataOnly)))) + 3)) + (meta + ((type_ (UTuple (UReal (UTuple (UComplex UVector))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UTuple (UComplex UVector))) (loc ) + (adlevel DataOnly)))) + 2)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + ())) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) + (decl_id arr_tuple_arr_tuple_p) + (decl_type + (Sized + (SArray + (STuple + (SReal + (SArray + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body ((pattern (Block (((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) - (decl_id sym1__) (decl_type (Unsized (UTuple (UMatrix UMatrix)))) - (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sym1__) ()) (UTuple (UMatrix UMatrix)) - ((pattern - (FunApp (StanLib qr_thin FnPlain AoS) - (((pattern (Var A)) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) - (meta - ((type_ (UTuple (UMatrix UMatrix))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable)))))))) + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) (meta )) ((pattern - (Assignment ((LVariable Q) ()) UMatrix - ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ (UTuple (UMatrix UMatrix))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) - 1)) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UVector + ((pattern + (FunApp (CompilerInternal FnReadDeserializer) + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_arr_tuple_p)) + (meta + ((type_ + (UArray (UTuple (UReal (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal (UArray (UTuple (UReal UVector)))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) (meta )) ((pattern - (Assignment ((LVariable R) ()) UMatrix - ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ (UTuple (UMatrix UMatrix))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) - 2)) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_arr_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple (UReal (UArray (UTuple (UReal UVector)))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UArray (UTuple (UReal UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal UVector))) (loc ) + (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var arr_tuple_arr_tuple_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple (UReal (UArray (UTuple (UReal UVector)))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UArray (UTuple (UReal UVector)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal UVector))) (loc ) + (adlevel DataOnly)))) + 2)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + ())) + (meta ))))) + (meta ))))) (meta ))))) - (meta )) - ((pattern - (TargetPE - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern - (FunApp (StanLib sum FnPlain AoS) - (((pattern (Var Q)) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) - ((pattern - (FunApp (StanLib dot_self FnPlain AoS) - (((pattern - (FunApp (StanLib to_vector FnPlain AoS) - (((pattern (Var R)) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable))))))) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) (meta ))))) - (meta )))) - (reverse_mode_log_prob - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id A) + (meta )) + ((pattern + (Decl + (decl_adtype + (TupleAD + (AutoDiffable (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))))) + (decl_id very_deep_p) (decl_type (Sized - (SMatrix AoS - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (SArray + (STuple + (SReal + (SArray + (STuple + (SReal + (SArray + (STuple + (SComplex + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable A) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Block - (((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str Q)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str Q)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id Q) - (decl_type - (Sized - (SMatrix AoS - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str R)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str R)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id R) - (decl_type - (Sized - (SMatrix AoS - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body ((pattern (Block (((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) - (decl_id sym1__) (decl_type (Unsized (UTuple (UMatrix UMatrix)))) - (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable sym1__) ()) (UTuple (UMatrix UMatrix)) - ((pattern - (FunApp (StanLib qr_thin FnPlain AoS) - (((pattern (Var A)) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) - (meta - ((type_ (UTuple (UMatrix UMatrix))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable)))))))) + (Assignment + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) (meta )) ((pattern - (Assignment ((LVariable Q) ()) UMatrix - ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ (UTuple (UMatrix UMatrix))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) - 1)) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UComplex + ((pattern + (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta + ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UMatrix + ((pattern + (FunApp (CompilerInternal FnReadDeserializer) + (((pattern (Lit Int 6)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var very_deep_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray + (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) (meta )) ((pattern - (Assignment ((LVariable R) ()) UMatrix - ((pattern - (TupleProjection - ((pattern (Var sym1__)) - (meta - ((type_ (UTuple (UMatrix UMatrix))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) - 2)) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var very_deep_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix)))))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray + (UTuple + (UReal (UArray (UTuple (UComplex UMatrix))))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ + (UArray + (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var very_deep_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray + (UTuple (UComplex UMatrix)))))))))) + (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray + (UTuple (UComplex UMatrix))))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix)))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UArray (UTuple (UComplex UMatrix)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex UMatrix))) + (loc ) (adlevel DataOnly)))) + 1)) + (meta + ((type_ UComplex) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var very_deep_p)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray + (UTuple (UComplex UMatrix)))))))))) + (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray + (UTuple + (UReal + (UArray + (UTuple (UComplex UMatrix))))))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ + (UArray + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix))))))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ + (UTuple + (UReal + (UArray (UTuple (UComplex UMatrix)))))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ (UArray (UTuple (UComplex UMatrix)))) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UComplex UMatrix))) + (loc ) (adlevel DataOnly)))) + 2)) + (meta + ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + ())) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) (meta ))))) - (meta )) - ((pattern - (TargetPE - ((pattern - (FunApp (StanLib Plus__ FnPlain SoA) - (((pattern - (FunApp (StanLib sum FnPlain AoS) - (((pattern (Var Q)) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) - ((pattern - (FunApp (StanLib dot_self FnPlain AoS) - (((pattern - (FunApp (StanLib to_vector FnPlain AoS) - (((pattern (Var R)) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable))))))) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) (meta ))))) (meta )))) - (generate_quantities + (output_vars + ((basic_p + ((begin_loc + ((filename arrays-tuples-nested.stan) (line_num 12) (col_num 2) (included_from ()))) + (end_loc + ((filename arrays-tuples-nested.stan) (line_num 12) (col_num 38) + (included_from ())))) + ((out_unconstrained_st + (STuple + ((SArray SReal + ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + SReal))) + (out_constrained_st + (STuple + ((SArray SReal + ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + SReal))) + (out_block Parameters) (out_trans (TupleTransformation (Identity Identity))))) + (tuple_tuple_p + ((begin_loc + ((filename arrays-tuples-nested.stan) (line_num 13) (col_num 2) (included_from ()))) + (end_loc + ((filename arrays-tuples-nested.stan) (line_num 13) (col_num 52) + (included_from ())))) + ((out_unconstrained_st + (STuple + (SReal + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))))) + (out_constrained_st + (STuple + (SReal + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))))) + (out_block Parameters) + (out_trans + (TupleTransformation (Identity (TupleTransformation (Identity Identity))))))) + (arr_tuple_p + ((begin_loc + ((filename arrays-tuples-nested.stan) (line_num 14) (col_num 2) (included_from ()))) + (end_loc + ((filename arrays-tuples-nested.stan) (line_num 14) (col_num 64) + (included_from ())))) + ((out_unconstrained_st + (SArray + (STuple + (SComplex + (SArray SReal + ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (SVector AoS + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (out_constrained_st + (SArray + (STuple + (SComplex + (SArray SReal + ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (SVector AoS + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (out_block Parameters) + (out_trans (TupleTransformation (Identity Identity Identity))))) + (tuple_arr_tuple_p + ((begin_loc + ((filename arrays-tuples-nested.stan) (line_num 15) (col_num 2) (included_from ()))) + (end_loc + ((filename arrays-tuples-nested.stan) (line_num 15) (col_num 84) + (included_from ())))) + ((out_unconstrained_st + (STuple + ((SArray SReal + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + SReal + (SArray + (STuple + (SReal + (SArray SReal + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (out_constrained_st + (STuple + ((SArray SReal + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + SReal + (SArray + (STuple + (SReal + (SArray SReal + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (out_block Parameters) + (out_trans + (TupleTransformation (Identity Identity (TupleTransformation (Identity Identity))))))) + (arr_tuple_tuple_p + ((begin_loc + ((filename arrays-tuples-nested.stan) (line_num 16) (col_num 2) (included_from ()))) + (end_loc + ((filename arrays-tuples-nested.stan) (line_num 16) (col_num 87) + (included_from ())))) + ((out_unconstrained_st + (SArray + (STuple + (SReal SReal + (STuple + (SReal + (STuple + (SComplex + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (out_constrained_st + (SArray + (STuple + (SReal SReal + (STuple + (SReal + (STuple + (SComplex + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (out_block Parameters) + (out_trans + (TupleTransformation + (Identity Identity + (TupleTransformation (Identity (TupleTransformation (Identity Identity))))))))) + (arr_tuple_arr_tuple_p + ((begin_loc + ((filename arrays-tuples-nested.stan) (line_num 17) (col_num 2) (included_from ()))) + (end_loc + ((filename arrays-tuples-nested.stan) (line_num 17) (col_num 78) + (included_from ())))) + ((out_unconstrained_st + (SArray + (STuple + (SReal + (SArray + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (out_constrained_st + (SArray + (STuple + (SReal + (SArray + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (out_block Parameters) + (out_trans + (TupleTransformation (Identity (TupleTransformation (Identity Identity))))))) + (very_deep_p + ((begin_loc + ((filename arrays-tuples-nested.stan) (line_num 18) (col_num 2) (included_from ()))) + (end_loc + ((filename arrays-tuples-nested.stan) (line_num 19) (col_num 81) + (included_from ())))) + ((out_unconstrained_st + (SArray + (STuple + (SReal + (SArray + (STuple + (SReal + (SArray + (STuple + (SComplex + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (out_constrained_st + (SArray + (STuple + (SReal + (SArray + (STuple + (SReal + (SArray + (STuple + (SComplex + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (out_block Parameters) + (out_trans + (TupleTransformation + (Identity + (TupleTransformation (Identity (TupleTransformation (Identity Identity))))))))))) + (prog_name arrays_tuples_nested_model) (prog_path arrays-tuples-nested.stan)) + $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir basic_unpacking.stan +((functions_block ()) (input_vars ()) + (prepare_data (((pattern - (Decl (decl_adtype DataOnly) (decl_id A) - (decl_type - (Sized - (SMatrix AoS - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SInt)) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable A) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt ()) - (var - ((pattern (Var A)) (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - ())) - (meta )) - ((pattern - (IfElse - ((pattern - (FunApp (StanLib PNot__ FnPlain AoS) - (((pattern - (EOr - ((pattern (Var emit_transformed_parameters__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var emit_generated_quantities__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) + (Assignment ((LVariable x) ()) UInt + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (IfElse - ((pattern - (FunApp (StanLib PNot__ FnPlain AoS) - (((pattern (Var emit_generated_quantities__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) - (meta )))) - (transform_inits - (((pattern - (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) + (Decl (decl_adtype DataOnly) (decl_id y) (decl_type (Sized SInt)) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (Assignment ((LVariable y) ()) UInt + ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id A) - (decl_type - (Sized - (SMatrix AoS - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (NRFunApp (CompilerInternal FnPrint) + (((pattern (Var x)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern (Block (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id A_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) + (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) + (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable A_flat__) ()) (UArray UReal) + (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str A)) - (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 6)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UTuple (UInt UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))))) (meta )) ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (Assignment ((LVariable x) ()) UInt + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ (UTuple (UInt UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable A) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UMatrix - ((pattern - (Indexed - ((pattern (Var A_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) + (Assignment ((LVariable y) ()) UInt + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ (UTuple (UInt UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta ))))) (meta )) ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern (Var A)) (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - ())) - (meta )))) - (unconstrain_array - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id A) - (decl_type - (Sized - (SMatrix AoS - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable A) ()) UMatrix - ((pattern - (FunApp (CompilerInternal FnReadDeserializer) - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnWriteParam (unconstrain_opt (Identity)) - (var - ((pattern (Var A)) (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - ())) - (meta )))) - (output_vars - ((A - ((begin_loc ((filename qr_unpack.stan) (line_num 6) (col_num 2) (included_from ()))) - (end_loc ((filename qr_unpack.stan) (line_num 6) (col_num 17) (included_from ())))) - ((out_unconstrained_st - (SMatrix AoS - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (out_constrained_st - (SMatrix AoS - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (out_block Parameters) (out_trans Identity))))) - (prog_name qr_unpack_model) (prog_path qr_unpack.stan)) - $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir simple.stan -((functions_block ()) (input_vars ()) - (prepare_data - (((pattern - (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (NRFunApp (CompilerInternal FnPrint) + (((pattern (Var x)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (Block + (((pattern + (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) + (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) + (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var x)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UTuple (UInt UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))))) + (meta )) + ((pattern + (Assignment ((LVariable x) ()) UInt + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ (UTuple (UInt UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable y) ()) UInt + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ (UTuple (UInt UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) (meta )) ((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id x) - (decl_type (Sized (STuple (SReal SInt)))) (initialize true) (assignment ()))) + (NRFunApp (CompilerInternal FnPrint) + (((pattern (Var x)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Assignment ((LVariable x) ()) (UTuple (UReal UInt)) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Lit Real 3.14)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ (UTuple (UReal UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))))) + (Block + (((pattern + (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) + (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) + (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var x)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UTuple (UInt UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))))) + (meta )) + ((pattern + (Assignment ((LVariable x) ()) UInt + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ (UTuple (UInt UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable y) ()) UInt + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ (UTuple (UInt UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) (meta )) ((pattern - (NRFunApp (CompilerInternal FnPrint) + (Block (((pattern - (TupleProjection - ((pattern (Var x)) + (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) + (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) + (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var x)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta - ((type_ (UTuple (UReal UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ((type_ (UTuple (UInt UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))))) + (meta )) + ((pattern + (Assignment ((LVariable x) ()) UInt + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ (UTuple (UInt UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable y) ()) UInt + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ (UTuple (UInt UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) (meta )))) (log_prob ()) (reverse_mode_log_prob ()) (generate_quantities @@ -11348,66 +6399,163 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) (meta )))) - (transform_inits ()) (unconstrain_array ()) (output_vars ()) (prog_name simple_model) - (prog_path simple.stan)) - $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir simple2.stan -((functions_block ()) (input_vars ()) - (prepare_data + (transform_inits ()) (unconstrain_array ()) (output_vars ()) + (prog_name basic_unpacking_model) (prog_path basic_unpacking.stan)) + $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir infer_tuple_ad.stan +((functions_block ()) (input_vars ()) (prepare_data ()) + (log_prob (((pattern - (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id x) - (decl_type - (Sized - (STuple - ((SArray SReal - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SInt)))) - (initialize true) (assignment ()))) + (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern - (Assignment ((LVariable x) ()) (UTuple ((UArray UReal) UInt)) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern + (Block + (((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id z) + (decl_type + (Sized + (SArray (STuple (SReal SReal)) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable z) ()) (UArray (UTuple (UReal UReal))) + ((pattern (FunApp (CompilerInternal FnMakeArray) - (((pattern (Lit Real 1.01)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Real 3.14)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ (UTuple ((UArray UReal) UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))))) + (((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern + (Promotion + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + UReal AutoDiffable)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) + ((pattern + (Promotion + ((pattern (Var x)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) + UReal AutoDiffable)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable))))))) + (meta + ((type_ (UTuple (UReal UReal))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern + (Promotion + ((pattern (Var x)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) + UReal AutoDiffable)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) + ((pattern + (Promotion + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + UReal AutoDiffable)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable))))))) + (meta + ((type_ (UTuple (UReal UReal))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable))))))))) + (meta + ((type_ (UArray (UTuple (UReal UReal)))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable)))))))) + (meta ))))) + (meta )))) + (reverse_mode_log_prob + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern - (NRFunApp (CompilerInternal FnPrint) + (Block (((pattern - (Indexed + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id z) + (decl_type + (Sized + (SArray (STuple (SReal SReal)) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable z) ()) (UArray (UTuple (UReal UReal))) ((pattern - (TupleProjection - ((pattern (Var x)) - (meta - ((type_ (UTuple ((UArray UReal) UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 1)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (FunApp (CompilerInternal FnMakeArray) + (((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern + (Promotion + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + UReal AutoDiffable)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) + ((pattern + (Promotion + ((pattern (Var x)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) + UReal AutoDiffable)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable))))))) + (meta + ((type_ (UTuple (UReal UReal))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern + (Promotion + ((pattern (Var x)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) + UReal AutoDiffable)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) + ((pattern + (Promotion + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + UReal AutoDiffable)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable))))))) + (meta + ((type_ (UTuple (UReal UReal))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable))))))))) + (meta + ((type_ (UArray (UTuple (UReal UReal)))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable)))))))) + (meta ))))) (meta )))) - (log_prob ()) (reverse_mode_log_prob ()) (generate_quantities (((pattern + (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SReal)) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern (Var x)) (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern (IfElse ((pattern (FunApp (StanLib PNot__ FnPlain AoS) @@ -11430,84 +6578,442 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) (meta )))) - (transform_inits ()) (unconstrain_array ()) (output_vars ()) (prog_name simple2_model) - (prog_path simple2.stan)) - $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir simple3.stan -((functions_block ()) (input_vars ()) - (prepare_data + (transform_inits + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable x) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str x)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern (Var x)) (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )))) + (unconstrain_array + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable x) ()) UReal + ((pattern (FunApp (CompilerInternal FnReadDeserializer) ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern (Var x)) (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + ())) + (meta )))) + (output_vars + ((x + ((begin_loc + ((filename infer_tuple_ad.stan) (line_num 2) (col_num 2) (included_from ()))) + (end_loc + ((filename infer_tuple_ad.stan) (line_num 2) (col_num 9) (included_from ())))) + ((out_unconstrained_st SReal) (out_constrained_st SReal) (out_block Parameters) + (out_trans Identity))))) + (prog_name infer_tuple_ad_model) (prog_path infer_tuple_ad.stan)) + $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir nested_unpacking.stan +((functions_block ()) + (input_vars + ((complicated + ((begin_loc + ((filename nested_unpacking.stan) (line_num 2) (col_num 2) (included_from ()))) + (end_loc + ((filename nested_unpacking.stan) (line_num 2) (col_num 79) (included_from ())))) + (STuple + ((SArray SReal + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (SArray SReal + ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + SInt))))) + (prepare_data + (((pattern + (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl + (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly DataOnly)) DataOnly))) + (decl_id complicated) + (decl_type + (Sized + (STuple + ((SArray SReal + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (SArray SReal + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + SInt)))) + (initialize true) (assignment ()))) + (meta )))) + (log_prob + (((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id x) + (decl_type + (Sized + (SArray SReal + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id y) (decl_type (Sized SReal)) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id z) + (decl_type + (Sized + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id w) + (decl_type + (Sized + (SArray SReal + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id i) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Block + (((pattern + (Decl + (decl_adtype + (TupleAD + (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) + DataOnly))) + (decl_id sym1__) + (decl_type + (Unsized + (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt)))) + (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable sym1__) ()) + (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt)) + ((pattern (Var complicated)) + (meta + ((type_ + (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) + (loc ) + (adlevel + (TupleAD + (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) + DataOnly)))))))) + (meta )) + ((pattern + (Assignment ((LVariable x) ()) (UArray UReal) + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ + (UTuple + ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) + (loc ) + (adlevel + (TupleAD + (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) + DataOnly)))))) + 1)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) + (decl_id sym2__) + (decl_type (Unsized (UTuple (UReal UVector (UArray UReal))))) + (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable sym2__) ()) + (UTuple (UReal UVector (UArray UReal))) + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ + (UTuple + ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) + (loc ) + (adlevel + (TupleAD + (AutoDiffable + (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) DataOnly)))))) + 2)) + (meta + ((type_ (UTuple (UReal UVector (UArray UReal)))) + (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))))) + (meta )) + ((pattern + (Assignment ((LVariable y) ()) UReal + ((pattern + (TupleProjection + ((pattern (Var sym2__)) + (meta + ((type_ (UTuple (UReal UVector (UArray UReal)))) + (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LVariable z) ()) UVector + ((pattern + (TupleProjection + ((pattern (Var sym2__)) + (meta + ((type_ (UTuple (UReal UVector (UArray UReal)))) + (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))) + 2)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LVariable w) ()) (UArray UReal) + ((pattern + (TupleProjection + ((pattern (Var sym2__)) + (meta + ((type_ (UTuple (UReal UVector (UArray UReal)))) + (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))) + 3)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta )) + ((pattern + (Assignment ((LVariable i) ()) UInt + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ + (UTuple + ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) + (loc ) + (adlevel + (TupleAD + (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) + DataOnly)))))) + 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta )))) + (reverse_mode_log_prob (((pattern - (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id x) - (decl_type - (Sized - (STuple - ((SArray - (SArray SReal - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SInt)))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable x) ()) (UTuple ((UArray (UArray UReal)) UInt)) - ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern - (FunApp (CompilerInternal FnMakeArray) - (((pattern - (FunApp (CompilerInternal FnMakeArray) - (((pattern (Lit Real 1.01)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Real 3.14)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((pattern - (FunApp (CompilerInternal FnMakeArray) - (((pattern (Lit Real 1.01)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Real 3.14)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((pattern - (FunApp (CompilerInternal FnMakeArray) - (((pattern (Lit Real 1.01)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Real 3.14)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ (UTuple ((UArray (UArray UReal)) UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnPrint) + (Block (((pattern - (Indexed - ((pattern - (TupleProjection - ((pattern (Var x)) - (meta - ((type_ (UTuple ((UArray (UArray UReal)) UInt))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 1)) - (meta ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (Decl (decl_adtype AutoDiffable) (decl_id x) + (decl_type + (Sized + (SArray SReal + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id y) (decl_type (Sized SReal)) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id z) + (decl_type + (Sized + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id w) + (decl_type + (Sized + (SArray SReal + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id i) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Block + (((pattern + (Decl + (decl_adtype + (TupleAD + (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) + DataOnly))) + (decl_id sym1__) + (decl_type + (Unsized + (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt)))) + (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable sym1__) ()) + (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt)) + ((pattern (Var complicated)) + (meta + ((type_ + (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) + (loc ) + (adlevel + (TupleAD + (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) + DataOnly)))))))) + (meta )) + ((pattern + (Assignment ((LVariable x) ()) (UArray UReal) + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ + (UTuple + ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) + (loc ) + (adlevel + (TupleAD + (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) + DataOnly)))))) + 1)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) + (decl_id sym2__) + (decl_type (Unsized (UTuple (UReal UVector (UArray UReal))))) + (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable sym2__) ()) + (UTuple (UReal UVector (UArray UReal))) + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ + (UTuple + ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) + (loc ) + (adlevel + (TupleAD + (AutoDiffable + (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) DataOnly)))))) + 2)) + (meta + ((type_ (UTuple (UReal UVector (UArray UReal)))) + (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))))) + (meta )) + ((pattern + (Assignment ((LVariable y) ()) UReal + ((pattern + (TupleProjection + ((pattern (Var sym2__)) + (meta + ((type_ (UTuple (UReal UVector (UArray UReal)))) + (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LVariable z) ()) UVector + ((pattern + (TupleProjection + ((pattern (Var sym2__)) + (meta + ((type_ (UTuple (UReal UVector (UArray UReal)))) + (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))) + 2)) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LVariable w) ()) (UArray UReal) + ((pattern + (TupleProjection + ((pattern (Var sym2__)) + (meta + ((type_ (UTuple (UReal UVector (UArray UReal)))) + (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable AutoDiffable)))))) + 3)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta )) + ((pattern + (Assignment ((LVariable i) ()) UInt + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ + (UTuple + ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt))) + (loc ) + (adlevel + (TupleAD + (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable)) + DataOnly)))))) + 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) (meta )))) - (log_prob ()) (reverse_mode_log_prob ()) (generate_quantities (((pattern (IfElse @@ -11532,274 +7038,35 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) (meta )))) - (transform_inits ()) (unconstrain_array ()) (output_vars ()) (prog_name simple3_model) - (prog_path simple3.stan)) - $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir tuple-constraints-data.stan + (transform_inits ()) (unconstrain_array ()) (output_vars ()) + (prog_name nested_unpacking_model) (prog_path nested_unpacking.stan)) + $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir qr_unpack.stan ((functions_block ()) (input_vars - ((y - ((begin_loc - ((filename tuple-constraints-data.stan) (line_num 2) (col_num 2) - (included_from ()))) - (end_loc - ((filename tuple-constraints-data.stan) (line_num 2) (col_num 60) - (included_from ())))) - (STuple (SInt (STuple (SReal SInt))))) - (x - ((begin_loc - ((filename tuple-constraints-data.stan) (line_num 3) (col_num 2) - (included_from ()))) - (end_loc - ((filename tuple-constraints-data.stan) (line_num 3) (col_num 51) - (included_from ())))) - (STuple - (SInt SReal - (SVector AoS - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (z - ((begin_loc - ((filename tuple-constraints-data.stan) (line_num 4) (col_num 2) - (included_from ()))) - (end_loc - ((filename tuple-constraints-data.stan) (line_num 4) (col_num 48) - (included_from ())))) - (SArray - (SArray - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (prepare_data - (((pattern - (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) - (decl_id y) (decl_type (Sized (STuple (SInt (STuple (SReal SInt)))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable y) ()) 1) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str y.1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LTupleProjection ((LVariable y) ()) 2) ()) 1) ()) - UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str y.2.1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LTupleProjection ((LVariable y) ()) 2) ()) 2) ()) - UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str y.2.2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnCheck - (trans - (Lower - ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (var_name y.1) - (var - ((pattern - (TupleProjection - ((pattern (Var y)) - (meta - ((type_ (UTuple (UInt (UTuple (UReal UInt))))) (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) - 1)) - (meta - ((type_ UInt) (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))))))) - (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnCheck - (trans - (Lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (var_name y.2.1) - (var - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern (Var y)) - (meta - ((type_ (UTuple (UInt (UTuple (UReal UInt))))) (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) - 2)) - (meta - ((type_ (UTuple (UReal UInt))) (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) - 1)) - (meta - ((type_ UReal) (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))))))) - (((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp - (CompilerInternal - (FnCheck - (trans - (Upper - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (var_name y.2.2) - (var - ((pattern - (TupleProjection - ((pattern - (TupleProjection - ((pattern (Var y)) - (meta - ((type_ (UTuple (UInt (UTuple (UReal UInt))))) (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) - 2)) - (meta - ((type_ (UTuple (UReal UInt))) (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) - 2)) - (meta - ((type_ UInt) (loc ) - (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))))))) - (((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly DataOnly))) (decl_id x) - (decl_type - (Sized - (STuple - (SInt SReal - (SVector AoS - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable x) ()) 1) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str x.1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable x) ()) 2) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str x.2)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id x_dot_3_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable x_dot_3_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str x.3)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body + ((N + ((begin_loc ((filename qr_unpack.stan) (line_num 2) (col_num 2) (included_from ()))) + (end_loc ((filename qr_unpack.stan) (line_num 2) (col_num 17) (included_from ())))) + SInt) + (M + ((begin_loc ((filename qr_unpack.stan) (line_num 3) (col_num 2) (included_from ()))) + (end_loc ((filename qr_unpack.stan) (line_num 3) (col_num 17) (included_from ())))) + SInt))) + (prepare_data + (((pattern + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize true) + (assignment + (((pattern + (Indexed ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection ((LVariable x) ()) 3) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var x_dot_3_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -11807,19 +7074,26 @@ (FnCheck (trans (Lower - ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (var_name x.1) - (var - ((pattern - (TupleProjection - ((pattern (Var x)) - (meta - ((type_ (UTuple (UInt UReal UVector))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly DataOnly)))))) - 1)) - (meta - ((type_ UInt) (loc ) (adlevel (TupleAD (DataOnly DataOnly DataOnly))))))))) - (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (var_name N) + (var ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -11828,389 +7102,522 @@ (trans (Lower ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (var_name x.2) - (var - ((pattern - (TupleProjection - ((pattern (Var x)) - (meta - ((type_ (UTuple (UInt UReal UVector))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly DataOnly)))))) - 2)) - (meta - ((type_ UReal) (loc ) - (adlevel (TupleAD (DataOnly DataOnly DataOnly))))))))) + (var_name M) + (var ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (NRFunApp - (CompilerInternal - (FnCheck (trans Simplex) (var_name x.3) - (var - ((pattern - (TupleProjection - ((pattern (Var x)) - (meta - ((type_ (UTuple (UInt UReal UVector))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly DataOnly)))))) - 3)) - (meta - ((type_ UVector) (loc ) - (adlevel (TupleAD (DataOnly DataOnly DataOnly))))))))) - ())) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str A)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id z) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str A)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )))) + (log_prob + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id A) (decl_type (Sized - (SArray - (SArray - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (SMatrix AoS + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Block (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id z_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str Q)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Assignment ((LVariable z_dot_1_flat__) ()) UReal - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str z.1)) - (meta - ((type_ (UArray (UArray (UTuple (UReal UVector))))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str Q)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id z_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (Decl (decl_adtype AutoDiffable) (decl_id Q) + (decl_type + (Sized + (SMatrix AoS + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable z_dot_1_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str R)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id z_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str R)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Assignment ((LVariable z_dot_2_flat__) ()) UVector - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str z.2)) + (Decl (decl_adtype AutoDiffable) (decl_id R) + (decl_type + (Sized + (SMatrix AoS + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) + (decl_id sym1__) (decl_type (Unsized (UTuple (UMatrix UMatrix)))) + (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable sym1__) ()) (UTuple (UMatrix UMatrix)) + ((pattern + (FunApp (StanLib qr_thin FnPlain AoS) + (((pattern (Var A)) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) (meta - ((type_ (UArray (UArray (UTuple (UReal UVector))))) (loc ) - (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + ((type_ (UTuple (UMatrix UMatrix))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable)))))))) + (meta )) + ((pattern + (Assignment ((LVariable Q) ()) UMatrix + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ (UTuple (UMatrix UMatrix))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) + 1)) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LVariable R) ()) UMatrix + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ (UTuple (UMatrix UMatrix))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) + 2)) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta )) + ((pattern + (TargetPE + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern + (FunApp (StanLib sum FnPlain AoS) + (((pattern (Var Q)) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) + ((pattern + (FunApp (StanLib dot_self FnPlain AoS) + (((pattern + (FunApp (StanLib to_vector FnPlain AoS) + (((pattern (Var R)) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable))))))) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta )))) + (reverse_mode_log_prob + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id A) + (decl_type + (Sized + (SMatrix AoS + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) + (meta )) + ((pattern + (Block + (((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str Q)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str Q)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id z_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (Decl (decl_adtype AutoDiffable) (decl_id Q) + (decl_type + (Sized + (SMatrix AoS + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable z_dot_2_flat__pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str R)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id z_dot_1_temp__) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str R)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id z_dot_2_temp__) + (Decl (decl_adtype AutoDiffable) (decl_id R) (decl_type (Sized - (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (SMatrix AoS + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body + (Block + (((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) + (decl_id sym1__) (decl_type (Unsized (UTuple (UMatrix UMatrix)))) + (initialize false) (assignment ()))) + (meta )) ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment ((LVariable z_dot_1_temp__) ()) UReal - ((pattern - (Indexed - ((pattern (Var z_dot_1_flat__)) - (meta - ((type_ (UArray (UArray UReal))) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var z_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable z_dot_1_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var z_dot_1_flat__pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) - (decl_id z_dot_2_temp___flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) - (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable z_dot_2_temp___flat__) ()) - (UArray UReal) - ((pattern - (Indexed - ((pattern (Var z_dot_2_flat__)) - (meta - ((type_ (UArray (UArray UVector))) - (loc ) (adlevel DataOnly)))) - ((Between - ((pattern (Var z_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern - (FunApp (StanLib Minus__ FnPlain AoS) - (((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var z_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UArray (UArray UVector))) (loc ) - (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym3__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable z_dot_2_temp__) - ((Single - ((pattern (Var sym3__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var z_dot_2_temp___flat__)) - (meta - ((type_ (UArray UReal)) (loc ) - (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))))))) - (meta - ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) - (adlevel DataOnly))))))) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (Assignment ((LVariable z_dot_2_flat__pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var z_dot_2_flat__pos__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta )) - ((pattern + (Assignment ((LVariable sym1__) ()) (UTuple (UMatrix UMatrix)) + ((pattern + (FunApp (StanLib qr_thin FnPlain AoS) + (((pattern (Var A)) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) + (meta + ((type_ (UTuple (UMatrix UMatrix))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable)))))))) + (meta )) + ((pattern + (Assignment ((LVariable Q) ()) UMatrix + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ (UTuple (UMatrix UMatrix))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) + 1)) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LVariable R) ()) UMatrix + ((pattern + (TupleProjection + ((pattern (Var sym1__)) + (meta + ((type_ (UTuple (UMatrix UMatrix))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) + 2)) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta )) + ((pattern + (TargetPE + ((pattern + (FunApp (StanLib Plus__ FnPlain SoA) + (((pattern + (FunApp (StanLib sum FnPlain AoS) + (((pattern (Var Q)) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) + ((pattern + (FunApp (StanLib dot_self FnPlain AoS) + (((pattern + (FunApp (StanLib to_vector FnPlain AoS) + (((pattern (Var R)) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable))))))) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable))))))) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta )))) + (generate_quantities + (((pattern + (Decl (decl_adtype DataOnly) (decl_id A) + (decl_type + (Sized + (SMatrix AoS + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt ()) + (var + ((pattern (Var A)) (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + ())) + (meta )) + ((pattern + (IfElse + ((pattern + (FunApp (StanLib PNot__ FnPlain AoS) + (((pattern + (EOr + ((pattern (Var emit_transformed_parameters__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var emit_generated_quantities__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) + (meta )) + ((pattern + (IfElse + ((pattern + (FunApp (StanLib PNot__ FnPlain AoS) + (((pattern (Var emit_generated_quantities__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) + (meta )))) + (transform_inits + (((pattern + (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id A) + (decl_type + (Sized + (SMatrix AoS + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id A_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable A_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str A)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern (Assignment - ((LVariable z) + ((LVariable A) ((Single ((pattern (Var sym2__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) (Single ((pattern (Var sym1__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (UArray (UArray (UTuple (UReal UVector)))) + UMatrix ((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern (Var z_dot_1_temp__)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern (Var z_dot_2_temp__)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta - ((type_ (UTuple (UReal UVector))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Block - (((pattern - (NRFunApp - (CompilerInternal - (FnCheck - (trans - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (var_name "z[sym2__, sym1__].1") - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var z)) - (meta - ((type_ (UArray (UArray (UTuple (UReal UVector))))) - (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal UVector))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 1)) + (Indexed + ((pattern (Var A_flat__)) (meta - ((type_ UReal) (loc ) - (adlevel (TupleAD (DataOnly DataOnly))))))))) - (((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (NRFunApp - (CompilerInternal - (FnCheck (trans Simplex) (var_name "z[sym2__, sym1__].2") - (var - ((pattern - (TupleProjection - ((pattern - (Indexed - ((pattern (Var z)) - (meta - ((type_ (UArray (UArray (UTuple (UReal UVector))))) - (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - ((Single - ((pattern (Var sym2__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta - ((type_ (UTuple (UReal UVector))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 2)) - (meta - ((type_ UVector) (loc ) - (adlevel (TupleAD (DataOnly DataOnly))))))))) - ())) + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta ))))) (meta ))))) (meta ))))) (meta ))))) (meta ))))) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern (Var A)) (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + ())) + (meta )))) + (unconstrain_array + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id A) + (decl_type + (Sized + (SMatrix AoS + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable A) ()) UMatrix + ((pattern + (FunApp (CompilerInternal FnReadDeserializer) + (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnWriteParam (unconstrain_opt (Identity)) + (var + ((pattern (Var A)) (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + ())) + (meta )))) + (output_vars + ((A + ((begin_loc ((filename qr_unpack.stan) (line_num 6) (col_num 2) (included_from ()))) + (end_loc ((filename qr_unpack.stan) (line_num 6) (col_num 17) (included_from ())))) + ((out_unconstrained_st + (SMatrix AoS + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (out_constrained_st + (SMatrix AoS + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (out_block Parameters) (out_trans Identity))))) + (prog_name qr_unpack_model) (prog_path qr_unpack.stan)) + $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir simple.stan +((functions_block ()) (input_vars ()) + (prepare_data + (((pattern + (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id x) + (decl_type (Sized (STuple (SReal SInt)))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable x) ()) (UTuple (UReal UInt)) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Lit Real 3.14)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UTuple (UReal UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnPrint) + (((pattern + (TupleProjection + ((pattern (Var x)) + (meta + ((type_ (UTuple (UReal UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) (meta )))) (log_prob ()) (reverse_mode_log_prob ()) (generate_quantities @@ -12237,64 +7644,242 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) (meta )))) - (transform_inits ()) (unconstrain_array ()) (output_vars ()) - (prog_name tuple_constraints_data_model) (prog_path tuple-constraints-data.stan)) - $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir tuple-constraints-params.stan -((functions_block - (((fdrt (ReturnType (UTuple (UReal UReal)))) (fdname foo) (fdsuffix FnPlain) - (fdargs ()) - (fdbody - (((pattern - (Block + (transform_inits ()) (unconstrain_array ()) (output_vars ()) (prog_name simple_model) + (prog_path simple.stan)) + $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir simple2.stan +((functions_block ()) (input_vars ()) + (prepare_data + (((pattern + (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id x) + (decl_type + (Sized + (STuple + ((SArray SReal + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + SInt)))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable x) ()) (UTuple ((UArray UReal) UInt)) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) (((pattern - (Return + (FunApp (CompilerInternal FnMakeArray) + (((pattern (Lit Real 1.01)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Real 3.14)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UTuple ((UArray UReal) UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnPrint) + (((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern (Var x)) + (meta + ((type_ (UTuple ((UArray UReal) UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 1)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta )))) + (log_prob ()) (reverse_mode_log_prob ()) + (generate_quantities + (((pattern + (IfElse + ((pattern + (FunApp (StanLib PNot__ FnPlain AoS) + (((pattern + (EOr + ((pattern (Var emit_transformed_parameters__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var emit_generated_quantities__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) + (meta )) + ((pattern + (IfElse + ((pattern + (FunApp (StanLib PNot__ FnPlain AoS) + (((pattern (Var emit_generated_quantities__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) + (meta )))) + (transform_inits ()) (unconstrain_array ()) (output_vars ()) (prog_name simple2_model) + (prog_path simple2.stan)) + $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir simple3.stan +((functions_block ()) (input_vars ()) + (prepare_data + (((pattern + (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id x) + (decl_type + (Sized + (STuple + ((SArray + (SArray SReal + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + SInt)))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable x) ()) (UTuple ((UArray (UArray UReal)) UInt)) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern + (FunApp (CompilerInternal FnMakeArray) (((pattern - (FunApp (CompilerInternal FnMakeTuple) - (((pattern - (Promotion - ((pattern (Lit Real 1.0)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - UReal AutoDiffable)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) - ((pattern - (Promotion - ((pattern (Lit Real 2.0)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - UReal AutoDiffable)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable))))))) - (meta - ((type_ (UTuple (UReal UReal))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable))))))))) - (meta ))))) - (meta )))) - (fdloc )))) + (FunApp (CompilerInternal FnMakeArray) + (((pattern (Lit Real 1.01)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Real 3.14)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((pattern + (FunApp (CompilerInternal FnMakeArray) + (((pattern (Lit Real 1.01)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Real 3.14)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((pattern + (FunApp (CompilerInternal FnMakeArray) + (((pattern (Lit Real 1.01)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Real 3.14)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UTuple ((UArray (UArray UReal)) UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnPrint) + (((pattern + (Indexed + ((pattern + (TupleProjection + ((pattern (Var x)) + (meta + ((type_ (UTuple ((UArray (UArray UReal)) UInt))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 1)) + (meta ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta )))) + (log_prob ()) (reverse_mode_log_prob ()) + (generate_quantities + (((pattern + (IfElse + ((pattern + (FunApp (StanLib PNot__ FnPlain AoS) + (((pattern + (EOr + ((pattern (Var emit_transformed_parameters__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var emit_generated_quantities__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) + (meta )) + ((pattern + (IfElse + ((pattern + (FunApp (StanLib PNot__ FnPlain AoS) + (((pattern (Var emit_generated_quantities__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) + (meta )))) + (transform_inits ()) (unconstrain_array ()) (output_vars ()) (prog_name simple3_model) + (prog_path simple3.stan)) + $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir tuple-constraints-data.stan +((functions_block ()) (input_vars - ((indicator + ((y + ((begin_loc + ((filename tuple-constraints-data.stan) (line_num 2) (col_num 2) + (included_from ()))) + (end_loc + ((filename tuple-constraints-data.stan) (line_num 2) (col_num 60) + (included_from ())))) + (STuple (SInt (STuple (SReal SInt))))) + (x + ((begin_loc + ((filename tuple-constraints-data.stan) (line_num 3) (col_num 2) + (included_from ()))) + (end_loc + ((filename tuple-constraints-data.stan) (line_num 3) (col_num 51) + (included_from ())))) + (STuple + (SInt SReal + (SVector AoS + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (z ((begin_loc - ((filename tuple-constraints-params.stan) (line_num 7) (col_num 2) + ((filename tuple-constraints-data.stan) (line_num 4) (col_num 2) (included_from ()))) (end_loc - ((filename tuple-constraints-params.stan) (line_num 7) (col_num 34) + ((filename tuple-constraints-data.stan) (line_num 4) (col_num 48) (included_from ())))) - SInt))) + (SArray + (SArray + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (prepare_data (((pattern - (Decl (decl_adtype DataOnly) (decl_id indicator) (decl_type (Sized SInt)) + (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable indicator) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str indicator)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) + (decl_id y) (decl_type (Sized (STuple (SInt (STuple (SReal SInt)))))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -12303,10 +7888,18 @@ (trans (Lower ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (var_name indicator) + (var_name y.1) (var - ((pattern (Var indicator)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern + (TupleProjection + ((pattern (Var y)) + (meta + ((type_ (UTuple (UInt (UTuple (UReal UInt))))) (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) + 1)) + (meta + ((type_ UInt) (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))))))) (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern @@ -12314,223 +7907,137 @@ (CompilerInternal (FnCheck (trans - (Upper + (Lower ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (var_name indicator) + (var_name y.2.1) (var - ((pattern (Var indicator)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern (Var y)) + (meta + ((type_ (UTuple (UInt (UTuple (UReal UInt))))) (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) + 2)) + (meta + ((type_ (UTuple (UReal UInt))) (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) + 1)) + (meta + ((type_ UReal) (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))))))) (((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id complicated_brack_dot2_1dim__) - (decl_type (Sized SInt)) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable complicated_brack_dot2_1dim__) ()) UInt - ((pattern - (TernaryIf - ((pattern (Var indicator)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str complicated[].2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str "indicator ? 3 : 0")) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var complicated_brack_dot2_1dim__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (StanLib check_greater_or_equal FnPlain AoS) - (((pattern (Lit Str "cholesky_factor_cov complicated[].2[].3")) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str "num rows (must be greater or equal to num cols)")) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )))) - (log_prob - (((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (NRFunApp + (CompilerInternal + (FnCheck + (trans + (Upper + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (var_name y.2.2) + (var + ((pattern + (TupleProjection + ((pattern + (TupleProjection + ((pattern (Var y)) + (meta + ((type_ (UTuple (UInt (UTuple (UReal UInt))))) (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) + 2)) + (meta + ((type_ (UTuple (UReal UInt))) (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) + 2)) + (meta + ((type_ UInt) (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))))))) + (((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps2) + (Decl (decl_adtype (TupleAD (DataOnly DataOnly DataOnly))) (decl_id x) (decl_type (Sized - (SArray - (SArray - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (STuple + (SInt SReal + (SVector AoS + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable ps2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable ps2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) + (NRFunApp + (CompilerInternal + (FnCheck + (trans + (Lower + ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (var_name x.1) + (var + ((pattern + (TupleProjection + ((pattern (Var x)) + (meta + ((type_ (UTuple (UInt UReal UVector))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly DataOnly)))))) + 1)) + (meta + ((type_ UInt) (loc ) (adlevel (TupleAD (DataOnly DataOnly DataOnly))))))))) + (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype AutoDiffable) (decl_id t) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (NRFunApp + (CompilerInternal + (FnCheck + (trans + (Lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (var_name x.2) + (var + ((pattern + (TupleProjection + ((pattern (Var x)) + (meta + ((type_ (UTuple (UInt UReal UVector))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly DataOnly)))))) + 2)) + (meta + ((type_ UReal) (loc ) + (adlevel (TupleAD (DataOnly DataOnly DataOnly))))))))) + (((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Assignment ((LVariable t) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern - (TupleProjection - ((pattern (FunApp (UserDefined foo FnPlain) ())) - (meta - ((type_ (UTuple (UReal UReal))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern - (TupleProjection - ((pattern (Var ps)) - (meta - ((type_ (UTuple (UReal UReal))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) - 2)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (NRFunApp + (CompilerInternal + (FnCheck (trans Simplex) (var_name x.3) + (var + ((pattern + (TupleProjection + ((pattern (Var x)) + (meta + ((type_ (UTuple (UInt UReal UVector))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly DataOnly)))))) + 3)) + (meta + ((type_ UVector) (loc ) + (adlevel (TupleAD (DataOnly DataOnly DataOnly))))))))) + ())) (meta )) ((pattern - (Decl - (decl_adtype - (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable))))) - (decl_id complicated) + (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id z) (decl_type (Sized (SArray - (STuple - (SReal - (SArray - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (SMatrix AoS - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Var complicated_brack_dot2_1dim__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (SArray + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) ((pattern @@ -12543,145 +8050,235 @@ ((pattern (Block (((pattern - (Assignment - ((LTupleProjection - ((LVariable complicated) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern (For (loopvar sym2__) (lower ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) (upper - ((pattern (Var complicated_brack_dot2_1dim__)) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) (body ((pattern (Block (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable complicated) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable complicated) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable complicated) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) + (Block + (((pattern + (NRFunApp + (CompilerInternal + (FnCheck + (trans + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (var_name "z[sym2__, sym1__].1") + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var z)) + (meta + ((type_ (UArray (UArray (UTuple (UReal UVector))))) + (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal UVector))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 1)) + (meta + ((type_ UReal) (loc ) + (adlevel (TupleAD (DataOnly DataOnly))))))))) + (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnCheck (trans Simplex) (var_name "z[sym2__, sym1__].2") + (var + ((pattern + (TupleProjection + ((pattern + (Indexed + ((pattern (Var z)) + (meta + ((type_ (UArray (UArray (UTuple (UReal UVector))))) + (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal UVector))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 2)) + (meta + ((type_ UVector) (loc ) + (adlevel (TupleAD (DataOnly DataOnly))))))))) + ())) + (meta ))))) (meta ))))) (meta ))))) (meta ))))) (meta ))))) (meta )))) - (reverse_mode_log_prob + (log_prob ()) (reverse_mode_log_prob ()) + (generate_quantities (((pattern - (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (IfElse + ((pattern + (FunApp (StanLib PNot__ FnPlain AoS) + (((pattern + (EOr + ((pattern (Var emit_transformed_parameters__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var emit_generated_quantities__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) + (meta )) + ((pattern + (IfElse + ((pattern + (FunApp (StanLib PNot__ FnPlain AoS) + (((pattern (Var emit_generated_quantities__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) + (meta )))) + (transform_inits ()) (unconstrain_array ()) (output_vars ()) + (prog_name tuple_constraints_data_model) (prog_path tuple-constraints-data.stan)) + $ ../../../../../install/default/bin/stanc -fsoa --debug-optimized-mir tuple-constraints-params.stan +((functions_block + (((fdrt (ReturnType (UTuple (UReal UReal)))) (fdname foo) (fdsuffix FnPlain) + (fdargs ()) + (fdbody + (((pattern + (Block + (((pattern + (Return + (((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern + (Promotion + ((pattern (Lit Real 1.0)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + UReal AutoDiffable)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))) + ((pattern + (Promotion + ((pattern (Lit Real 2.0)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + UReal AutoDiffable)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable))))))) + (meta + ((type_ (UTuple (UReal UReal))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable))))))))) + (meta ))))) + (meta )))) + (fdloc )))) + (input_vars + ((indicator + ((begin_loc + ((filename tuple-constraints-params.stan) (line_num 7) (col_num 2) + (included_from ()))) + (end_loc + ((filename tuple-constraints-params.stan) (line_num 7) (col_num 34) + (included_from ())))) + SInt))) + (prepare_data + (((pattern + (Decl (decl_adtype DataOnly) (decl_id indicator) (decl_type (Sized SInt)) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str indicator)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta )) + ((pattern + (NRFunApp + (CompilerInternal + (FnCheck + (trans + (Lower + ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (var_name indicator) + (var + ((pattern (Var indicator)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (NRFunApp + (CompilerInternal + (FnCheck + (trans + (Upper + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (var_name indicator) + (var + ((pattern (Var indicator)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal + (Decl (decl_adtype DataOnly) (decl_id complicated_brack_dot2_1dim__) + (decl_type (Sized SInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable complicated_brack_dot2_1dim__) ()) UInt ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (TernaryIf + ((pattern (Var indicator)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str complicated[].2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str "indicator ? 3 : 0")) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var complicated_brack_dot2_1dim__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp (StanLib check_greater_or_equal FnPlain AoS) + (((pattern (Lit Str "cholesky_factor_cov complicated[].2[].3")) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str "num rows (must be greater or equal to num cols)")) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )))) + (log_prob + (((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps2) @@ -12698,110 +8295,35 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable ps2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable ps2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id t) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable t) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern - (TupleProjection - ((pattern (FunApp (UserDefined foo FnPlain) ())) - (meta - ((type_ (UTuple (UReal UReal))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern - (TupleProjection - ((pattern (Var ps)) - (meta - ((type_ (UTuple (UReal UReal))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) - 2)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (dims ()) (mem_pattern SoA))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern + (TupleProjection + ((pattern (FunApp (UserDefined foo FnPlain) ())) + (meta + ((type_ (UTuple (UReal UReal))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern + (TupleProjection + ((pattern (Var ps)) + (meta + ((type_ (UTuple (UReal UReal))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) + 2)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl @@ -12828,157 +8350,88 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) + (meta )))) + (reverse_mode_log_prob + (((pattern + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) + (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable complicated) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var complicated_brack_dot2_1dim__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body + (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps2) + (decl_type + (Sized + (SArray + (SArray + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id t) (decl_type (Sized SReal)) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable complicated) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable complicated) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable complicated) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) + (TupleProjection + ((pattern (FunApp (UserDefined foo FnPlain) ())) + (meta + ((type_ (UTuple (UReal UReal))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern + (TupleProjection + ((pattern (Var ps)) + (meta + ((type_ (UTuple (UReal UReal))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) + 2)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) + (meta )) + ((pattern + (Decl + (decl_adtype + (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable AutoDiffable))))) + (decl_id complicated) + (decl_type + (Sized + (SArray + (STuple + (SReal + (SArray + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (SMatrix AoS + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Var complicated_brack_dot2_1dim__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) (meta )))) (generate_quantities (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps2) (decl_type @@ -12994,110 +8447,35 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable ps2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LVariable ps2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id t) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable t) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (LowerUpper - ((pattern - (TupleProjection - ((pattern (FunApp (UserDefined foo FnPlain) ())) - (meta - ((type_ (UTuple (UReal UReal))) (loc ) - (adlevel (TupleAD (DataOnly DataOnly)))))) - 1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) - ((pattern - (TupleProjection - ((pattern (Var ps)) - (meta - ((type_ (UTuple (UReal UReal))) (loc ) - (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) - 2)) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (LowerUpper + ((pattern + (TupleProjection + ((pattern (FunApp (UserDefined foo FnPlain) ())) + (meta + ((type_ (UTuple (UReal UReal))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))) + 1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern + (TupleProjection + ((pattern (Var ps)) + (meta + ((type_ (UTuple (UReal UReal))) (loc ) + (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) + 2)) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly DataOnly))))) @@ -13123,123 +8501,6 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LVariable complicated) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var complicated_brack_dot2_1dim__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable complicated) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 1) - ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable complicated) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ()) - UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Simplex) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment - ((LTupleProjection - ((LTupleProjection - ((LVariable complicated) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - 3) - ()) - UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain CholeskyCov) - (dims - (((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal @@ -15625,34 +10886,6 @@ ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id d) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable d) ()) 1) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d.1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable d) ()) 2) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d.2)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )))) (log_prob (((pattern @@ -16062,57 +11295,25 @@ (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) - (decl_id ds) - (decl_type - (Sized - (STuple - (SInt - (STuple - ((SArray SInt - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (SArray SInt - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ds) ()) 1) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str ds.1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ds) ()) 2) ()) 1) ()) - (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str ds.2.1)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ds) ()) 2) ()) 2) ()) - (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str ds.2.2)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) + (decl_id ds) + (decl_type + (Sized + (STuple + (SInt + (STuple + ((SArray SInt + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (SArray SInt + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + (initialize true) (assignment ()))) (meta )) ((pattern (NRFunApp @@ -16163,34 +11364,6 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) ((pattern (Block (((pattern @@ -16292,34 +11465,6 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) ((pattern (Block (((pattern @@ -16421,34 +11566,6 @@ (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) ((pattern (NRFunApp (CompilerInternal @@ -16870,24 +11987,6 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) (decl_id ps2) @@ -16903,65 +12002,12 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ps2) ()) 2) ()) 1) ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ps2) ()) 2) ()) 2) ()) - UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) (meta )))) (reverse_mode_log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) (decl_id ps2) @@ -16977,65 +12023,12 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ps2) ()) 2) ()) 1) ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ps2) ()) 2) ()) 2) ()) - UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) (meta )))) (generate_quantities (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) (decl_id ps2) @@ -17052,41 +12045,6 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ps2) ()) 2) ()) 1) ()) - UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ps2) ()) 2) ()) 2) ()) - UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 10)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) - (meta )) ((pattern (NRFunApp (CompilerInternal @@ -17606,86 +12564,17 @@ (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) (meta )))) (reverse_mode_log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) (meta )))) (generate_quantities (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal - ((pattern - (FunApp - (CompilerInternal - (FnReadParam - (constrain - (Lower - ((pattern (Lit Int 0)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) - ())) - (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (meta )) ((pattern (NRFunApp (CompilerInternal @@ -17941,64 +12830,6 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id V_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable V_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str V)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable V) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var V_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id d) (decl_type @@ -18012,22 +12843,6 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable d) ()) 1) ()) (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d.1)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable d) ()) 2) ()) (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d.2)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) - (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id arrs) (decl_type @@ -19658,25 +14473,23 @@ (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable N) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -19699,80 +14512,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id m1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable m1_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str m1)) - (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable m1) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UMatrix - ((pattern - (Indexed - ((pattern (Var m1_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str m2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) @@ -19794,80 +14533,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id m2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable m2_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str m2)) - (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable m2) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UMatrix - ((pattern - (Indexed - ((pattern (Var m2_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str a1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) @@ -19880,15 +14545,13 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable a1) ()) (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str a1)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str a1)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -19902,15 +14565,13 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable a2) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str a2)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str a2)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))))) (meta )))) (log_prob ()) (reverse_mode_log_prob ()) (generate_quantities @@ -20280,116 +14941,39 @@ ((filename tuple_copying.stan) (line_num 21) (col_num 2) (included_from ()))) (end_loc ((filename tuple_copying.stan) (line_num 21) (col_num 19) (included_from ())))) - (SArray SReal - ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (prepare_data - (((pattern - (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Decl (decl_adtype DataOnly) (decl_id x) - (decl_type - (Sized - (SMatrix AoS - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable x_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str x)) - (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar sym2__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable x) - ((Single - ((pattern (Var sym2__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UMatrix - ((pattern - (Indexed - ((pattern (Var x_flat__)) - (meta - ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta ))))) + (SArray SReal + ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (prepare_data + (((pattern + (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) + (initialize true) (assignment ()))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id y) + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized - (SArray SReal - ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (SMatrix AoS + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) ((pattern - (Assignment ((LVariable y) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str y)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (Decl (decl_adtype DataOnly) (decl_id y) + (decl_type + (Sized + (SArray SReal + ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) + (assignment + (((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str y)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id data_tuple) @@ -20414,22 +14998,20 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable m1) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id m2) @@ -20438,22 +15020,20 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable m2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Block @@ -20675,22 +15255,20 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable m1) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id m2) @@ -20699,22 +15277,20 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable m2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Block @@ -20936,22 +15512,20 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable m1) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id m2) @@ -20960,22 +15534,20 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable m2) ()) UMatrix - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp @@ -21529,21 +16101,19 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable N) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -21558,15 +16128,13 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable data_y) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str data_y)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str data_y)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -21585,28 +16153,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable data_m) ()) 1) ()) UReal - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str data_m.1)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LTupleProjection ((LVariable data_m) ()) 2) ()) (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str data_m.2)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) - (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sum1) (decl_type (Sized SReal)) (initialize true) (assignment ()))) @@ -21646,19 +16192,18 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable param_y) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sum2) (decl_type (Sized SReal)) @@ -21692,19 +16237,18 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable param_y) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sum2) (decl_type (Sized SReal)) @@ -21738,19 +16282,18 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable param_y) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sum2) (decl_type (Sized SReal)) @@ -22499,21 +17042,19 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable N) ()) UInt - ((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp @@ -22540,63 +17081,6 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) - ((pattern - (Block - (((pattern - (Decl (decl_adtype AutoDiffable) (decl_id x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable x_flat__) ()) (UArray UReal) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str x)) - (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (For (loopvar sym1__) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (Assignment - ((LVariable x) - ((Single - ((pattern (Var sym1__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - UVector - ((pattern - (Indexed - ((pattern (Var x_flat__)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) - (meta )) - ((pattern - (Assignment ((LVariable pos__) ()) UInt - ((pattern - (FunApp (StanLib Plus__ FnPlain AoS) - (((pattern (Var pos__)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ))))) - (meta ))))) - (meta ))))) - (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) @@ -22609,15 +17093,13 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable y) ()) (UArray UInt) - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str y)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (initialize true) + (assignment + (((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str y)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -22674,19 +17156,18 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta) @@ -22694,19 +17175,18 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable theta) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Block @@ -23049,19 +17529,18 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern SoA))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta) @@ -23069,19 +17548,18 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable theta) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Block @@ -23424,19 +17902,18 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable alpha) ()) (UArray UReal) - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id theta) @@ -23444,19 +17921,18 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Assignment ((LVariable theta) ()) UVector - ((pattern - (FunApp - (CompilerInternal - (FnReadParam (constrain Identity) - (dims - (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) - ())) - (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (initialize true) + (assignment + (((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) ((pattern (NRFunApp From 2ae064917ffb0c1cddde185a67ed707a73f9aae0 Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Thu, 18 Jul 2024 17:24:09 -0400 Subject: [PATCH 03/17] adds auto to params --- src/stan_math_backend/Lower_expr.ml | 47 ++++++++++++++------------ src/stan_math_backend/Lower_stmt.ml | 14 +++++--- src/stan_math_backend/Transform_Mir.ml | 4 +-- 3 files changed, 38 insertions(+), 27 deletions(-) diff --git a/src/stan_math_backend/Lower_expr.ml b/src/stan_math_backend/Lower_expr.ml index f51301ffa..43ca20ffb 100644 --- a/src/stan_math_backend/Lower_expr.ml +++ b/src/stan_math_backend/Lower_expr.ml @@ -140,25 +140,28 @@ let plus_one e = let open Expression_syntax in Parens (e + Literal "1") -let rec lower_type ?(mem_pattern = Mem_pattern.AoS) (t : UnsizedType.t) - (scalar : type_) : type_ = - match t with - | UInt -> Int - | UReal -> scalar - | UComplex -> Types.complex scalar - | UArray t -> StdVector (lower_type t scalar) - | UTuple ts -> Tuple (List.map ~f:(fun t -> lower_type t scalar) ts) - | UVector -> Types.vector ~mem_pattern scalar - | URowVector -> Types.row_vector ~mem_pattern scalar - | UMatrix -> Types.matrix ~mem_pattern scalar - | UComplexVector -> Types.vector (Types.complex scalar) - | UComplexRowVector -> Types.row_vector (Types.complex scalar) - | UComplexMatrix -> Types.matrix (Types.complex scalar) - | UMathLibraryFunction | UFun _ -> - Common.ICE.internal_compiler_error - [%message "Function types not implemented"] +let rec lower_type ?(mem_pattern = Mem_pattern.AoS) ?(assignment : 'a option) + (t : UnsizedType.t) (scalar : type_) : type_ = + if Option.is_some assignment then lower_type ~mem_pattern t scalar + else + match t with + | UInt -> Int + | UReal -> scalar + | UComplex -> Types.complex scalar + | UArray t -> StdVector (lower_type t scalar) + | UTuple ts -> Tuple (List.map ~f:(fun t -> lower_type t scalar) ts) + | UVector -> Types.vector ~mem_pattern scalar + | URowVector -> Types.row_vector ~mem_pattern scalar + | UMatrix -> Types.matrix ~mem_pattern scalar + | UComplexVector -> Types.vector (Types.complex scalar) + | UComplexRowVector -> Types.row_vector (Types.complex scalar) + | UComplexMatrix -> Types.matrix (Types.complex scalar) + | UMathLibraryFunction | UFun _ -> + Common.ICE.internal_compiler_error + [%message "Function types not implemented"] -let rec lower_unsizedtype_local ?(mem_pattern = Mem_pattern.AoS) adtype ut = +let rec lower_unsizedtype_local ?(mem_pattern = Mem_pattern.AoS) ?assignment + adtype ut = match (adtype, ut) with | UnsizedType.TupleAD ads, UnsizedType.UTuple ts -> Tuple (List.map2_exn ~f:(lower_unsizedtype_local ~mem_pattern) ads ts) @@ -172,10 +175,12 @@ let rec lower_unsizedtype_local ?(mem_pattern = Mem_pattern.AoS) adtype ut = (adtype : UnsizedType.autodifftype)] | _, _ -> let s = local_scalar ut adtype in - lower_type ~mem_pattern ut s + lower_type ~mem_pattern ~assignment ut s -let rec lower_possibly_var_decl adtype ut mem_pattern = - let var_decl p_ut = lower_unsizedtype_local ~mem_pattern adtype p_ut in +let rec lower_possibly_var_decl ?(assignment : 'a option) adtype ut mem_pattern + = + let var_decl p_ut = + lower_unsizedtype_local ~mem_pattern ~assignment adtype p_ut in match (ut, adtype) with | UnsizedType.UArray t, _ -> Types.std_vector (lower_possibly_var_decl adtype t mem_pattern) diff --git a/src/stan_math_backend/Lower_stmt.ml b/src/stan_math_backend/Lower_stmt.ml index 198dc14b3..5cb1a811f 100644 --- a/src/stan_math_backend/Lower_stmt.ml +++ b/src/stan_math_backend/Lower_stmt.ml @@ -105,17 +105,23 @@ let lower_unsized_decl name ut adtype = | true, _ -> TypeLiteral "matrix_cl" in make_variable_defn ~type_ ~name () -let lower_possibly_opencl_decl name st adtype = +let lower_possibly_opencl_decl name st adtype assignment = let ut = SizedType.to_unsized st in let mem_pattern = SizedType.get_mem_pattern st in match (Transform_Mir.is_opencl_var name, ut) with - | _, UnsizedType.(UInt | UReal) | false, _ -> - lower_possibly_var_decl adtype ut mem_pattern + | _, UnsizedType.(UInt | UReal) | false, _ -> ( + match assignment with + | Some + Expr.Fixed. + { pattern= FunApp (CompilerInternal (Internal_fun.FnReadParam _), _) + ; _ } -> + Auto + | _ -> lower_possibly_var_decl ~assignment adtype ut mem_pattern) | true, UArray UInt -> TypeLiteral "matrix_cl" | true, _ -> TypeLiteral "matrix_cl" let lower_sized_decl name st adtype initialize assignment = - let type_ = lower_possibly_opencl_decl name st adtype in + let type_ = lower_possibly_opencl_decl name st adtype assignment in let init = lower_assign_sized st adtype initialize assignment |> Option.value_map ~default:Uninitialized ~f:(fun i -> Assignment i) in diff --git a/src/stan_math_backend/Transform_Mir.ml b/src/stan_math_backend/Transform_Mir.ml index 20efdddd1..317118131 100644 --- a/src/stan_math_backend/Transform_Mir.ml +++ b/src/stan_math_backend/Transform_Mir.ml @@ -773,8 +773,8 @@ let add_reads vars mkread stmts = | Decl {decl_id; decl_adtype; decl_type; initialize; _} when Map.mem var_names decl_id -> ( let loc, out = Map.find_exn var_names decl_id in - let blah = mkread (Stmt.Helpers.lvariable decl_id, loc, out) in - match blah with + let param_reader = mkread (Stmt.Helpers.lvariable decl_id, loc, out) in + match param_reader with | [Stmt.Fixed.{pattern= Stmt.Fixed.Pattern.Assignment (_, _, e); _}] -> [ { stmt with pattern= From 2508378345965bdb9a2fa791bf275f0bef751288 Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Thu, 18 Jul 2024 17:39:43 -0400 Subject: [PATCH 04/17] auto for params --- src/stan_math_backend/Lower_expr.ml | 47 +- src/stan_math_backend/Lower_stmt.ml | 2 +- test/integration/good/code-gen/cl.expected | 60 +- .../code-gen/complex_numbers/cpp.expected | 137 +- test/integration/good/code-gen/cpp.expected | 1167 ++++++++--------- .../good/code-gen/expressions/cpp.expected | 57 +- test/integration/good/code-gen/lir.expected | 281 +--- .../good/code-gen/ode/cpp.expected | 54 +- .../good/code-gen/opencl/cpp.expected | 72 +- .../good/code-gen/profiling/cpp.expected | 18 +- .../good/compiler-optimizations/cpp.expected | 690 +++++----- .../compiler-optimizations/cppO0.expected | 689 +++++----- .../compiler-optimizations/cppO1.expected | 690 +++++----- .../mem_patterns/cpp.expected | 390 +++--- test/integration/good/tuples/cpp.expected | 54 +- 15 files changed, 2014 insertions(+), 2394 deletions(-) diff --git a/src/stan_math_backend/Lower_expr.ml b/src/stan_math_backend/Lower_expr.ml index 43ca20ffb..f51301ffa 100644 --- a/src/stan_math_backend/Lower_expr.ml +++ b/src/stan_math_backend/Lower_expr.ml @@ -140,28 +140,25 @@ let plus_one e = let open Expression_syntax in Parens (e + Literal "1") -let rec lower_type ?(mem_pattern = Mem_pattern.AoS) ?(assignment : 'a option) - (t : UnsizedType.t) (scalar : type_) : type_ = - if Option.is_some assignment then lower_type ~mem_pattern t scalar - else - match t with - | UInt -> Int - | UReal -> scalar - | UComplex -> Types.complex scalar - | UArray t -> StdVector (lower_type t scalar) - | UTuple ts -> Tuple (List.map ~f:(fun t -> lower_type t scalar) ts) - | UVector -> Types.vector ~mem_pattern scalar - | URowVector -> Types.row_vector ~mem_pattern scalar - | UMatrix -> Types.matrix ~mem_pattern scalar - | UComplexVector -> Types.vector (Types.complex scalar) - | UComplexRowVector -> Types.row_vector (Types.complex scalar) - | UComplexMatrix -> Types.matrix (Types.complex scalar) - | UMathLibraryFunction | UFun _ -> - Common.ICE.internal_compiler_error - [%message "Function types not implemented"] +let rec lower_type ?(mem_pattern = Mem_pattern.AoS) (t : UnsizedType.t) + (scalar : type_) : type_ = + match t with + | UInt -> Int + | UReal -> scalar + | UComplex -> Types.complex scalar + | UArray t -> StdVector (lower_type t scalar) + | UTuple ts -> Tuple (List.map ~f:(fun t -> lower_type t scalar) ts) + | UVector -> Types.vector ~mem_pattern scalar + | URowVector -> Types.row_vector ~mem_pattern scalar + | UMatrix -> Types.matrix ~mem_pattern scalar + | UComplexVector -> Types.vector (Types.complex scalar) + | UComplexRowVector -> Types.row_vector (Types.complex scalar) + | UComplexMatrix -> Types.matrix (Types.complex scalar) + | UMathLibraryFunction | UFun _ -> + Common.ICE.internal_compiler_error + [%message "Function types not implemented"] -let rec lower_unsizedtype_local ?(mem_pattern = Mem_pattern.AoS) ?assignment - adtype ut = +let rec lower_unsizedtype_local ?(mem_pattern = Mem_pattern.AoS) adtype ut = match (adtype, ut) with | UnsizedType.TupleAD ads, UnsizedType.UTuple ts -> Tuple (List.map2_exn ~f:(lower_unsizedtype_local ~mem_pattern) ads ts) @@ -175,12 +172,10 @@ let rec lower_unsizedtype_local ?(mem_pattern = Mem_pattern.AoS) ?assignment (adtype : UnsizedType.autodifftype)] | _, _ -> let s = local_scalar ut adtype in - lower_type ~mem_pattern ~assignment ut s + lower_type ~mem_pattern ut s -let rec lower_possibly_var_decl ?(assignment : 'a option) adtype ut mem_pattern - = - let var_decl p_ut = - lower_unsizedtype_local ~mem_pattern ~assignment adtype p_ut in +let rec lower_possibly_var_decl adtype ut mem_pattern = + let var_decl p_ut = lower_unsizedtype_local ~mem_pattern adtype p_ut in match (ut, adtype) with | UnsizedType.UArray t, _ -> Types.std_vector (lower_possibly_var_decl adtype t mem_pattern) diff --git a/src/stan_math_backend/Lower_stmt.ml b/src/stan_math_backend/Lower_stmt.ml index 5cb1a811f..2380e87db 100644 --- a/src/stan_math_backend/Lower_stmt.ml +++ b/src/stan_math_backend/Lower_stmt.ml @@ -116,7 +116,7 @@ let lower_possibly_opencl_decl name st adtype assignment = { pattern= FunApp (CompilerInternal (Internal_fun.FnReadParam _), _) ; _ } -> Auto - | _ -> lower_possibly_var_decl ~assignment adtype ut mem_pattern) + | _ -> lower_possibly_var_decl adtype ut mem_pattern) | true, UArray UInt -> TypeLiteral "matrix_cl" | true, _ -> TypeLiteral "matrix_cl" diff --git a/test/integration/good/code-gen/cl.expected b/test/integration/good/code-gen/cl.expected index fc8eb53a5..57ec2d41f 100644 --- a/test/integration/good/code-gen/cl.expected +++ b/test/integration/good/code-gen/cl.expected @@ -451,22 +451,20 @@ class optimize_glm_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix alpha_v = - in__.template read>(k); - Eigen::Matrix beta = - in__.template read>(k); - Eigen::Matrix cuts = + auto alpha_v = in__.template read>(k); - local_scalar_t__ sigma = + auto beta = in__.template read>(k); + auto cuts = in__.template read>(k); + auto sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ alpha = in__.template read(); - local_scalar_t__ phi = in__.template read(); - Eigen::Matrix X_p = + auto alpha = in__.template read(); + auto phi = in__.template read(); + auto X_p = in__.template read>(n, k); - Eigen::Matrix beta_m = + auto beta_m = in__.template read>(n, k); - Eigen::Matrix X_rv_p = + auto X_rv_p = in__.template read>(n); { current_statement__ = 10; @@ -1150,22 +1148,20 @@ class optimize_glm_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix alpha_v = + auto alpha_v = in__.template read>(k); - Eigen::Matrix beta = - in__.template read>(k); - Eigen::Matrix cuts = - in__.template read>(k); - local_scalar_t__ sigma = + auto beta = in__.template read>(k); + auto cuts = in__.template read>(k); + auto sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ alpha = in__.template read(); - local_scalar_t__ phi = in__.template read(); - Eigen::Matrix X_p = + auto alpha = in__.template read(); + auto phi = in__.template read(); + auto X_p = in__.template read>(n, k); - Eigen::Matrix beta_m = + auto beta_m = in__.template read>(n, k); - Eigen::Matrix X_rv_p = + auto X_rv_p = in__.template read>(n); { current_statement__ = 10; @@ -1860,22 +1856,20 @@ class optimize_glm_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix alpha_v = - in__.template read>(k); - Eigen::Matrix beta = - in__.template read>(k); - Eigen::Matrix cuts = + auto alpha_v = in__.template read>(k); - double sigma = + auto beta = in__.template read>(k); + auto cuts = in__.template read>(k); + auto sigma = in__.template read_constrain_lb(0, lp__); - double alpha = in__.template read(); - double phi = in__.template read(); - Eigen::Matrix X_p = + auto alpha = in__.template read(); + auto phi = in__.template read(); + auto X_p = in__.template read>(n, k); - Eigen::Matrix beta_m = + auto beta_m = in__.template read>(n, k); - Eigen::Matrix X_rv_p = + auto X_rv_p = in__.template read>(n); out__.write(alpha_v); out__.write(beta); diff --git a/test/integration/good/code-gen/complex_numbers/cpp.expected b/test/integration/good/code-gen/complex_numbers/cpp.expected index 223e76846..798249fdb 100644 --- a/test/integration/good/code-gen/complex_numbers/cpp.expected +++ b/test/integration/good/code-gen/complex_numbers/cpp.expected @@ -238,24 +238,22 @@ class basic_op_param_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix,-1,-1> cmat = + auto cmat = in__.template read< Eigen::Matrix,-1,-1>>(N, N); - Eigen::Matrix,-1,1> cvec = + auto cvec = in__.template read< Eigen::Matrix,-1,1>>(N); - Eigen::Matrix,1,-1> crowvec = + auto crowvec = in__.template read< Eigen::Matrix,1,-1>>(N); - std::complex z = - in__.template read>(); - Eigen::Matrix mat = + auto z = in__.template read>(); + auto mat = in__.template read>(N, N); - Eigen::Matrix vec = - in__.template read>(N); - Eigen::Matrix rowvec = + auto vec = in__.template read>(N); + auto rowvec = in__.template read>(N); - local_scalar_t__ r = in__.template read(); + auto r = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, std::complex(DUMMY_VAR__, DUMMY_VAR__)); @@ -760,24 +758,22 @@ class basic_op_param_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix,-1,-1> cmat = + auto cmat = in__.template read< Eigen::Matrix,-1,-1>>(N, N); - Eigen::Matrix,-1,1> cvec = + auto cvec = in__.template read< Eigen::Matrix,-1,1>>(N); - Eigen::Matrix,1,-1> crowvec = + auto crowvec = in__.template read< Eigen::Matrix,1,-1>>(N); - std::complex z = - in__.template read>(); - Eigen::Matrix mat = + auto z = in__.template read>(); + auto mat = in__.template read>(N, N); - Eigen::Matrix vec = - in__.template read>(N); - Eigen::Matrix rowvec = + auto vec = in__.template read>(N); + auto rowvec = in__.template read>(N); - local_scalar_t__ r = in__.template read(); + auto r = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, std::complex(DUMMY_VAR__, DUMMY_VAR__)); @@ -1293,24 +1289,22 @@ class basic_op_param_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix,-1,-1> cmat = + auto cmat = in__.template read< Eigen::Matrix,-1,-1>>(N, N); - Eigen::Matrix,-1,1> cvec = + auto cvec = in__.template read< Eigen::Matrix,-1,1>>(N); - Eigen::Matrix,1,-1> crowvec = + auto crowvec = in__.template read< Eigen::Matrix,1,-1>>(N); - std::complex z = - in__.template read>(); - Eigen::Matrix mat = + auto z = in__.template read>(); + auto mat = in__.template read>(N, N); - Eigen::Matrix vec = - in__.template read>(N); - Eigen::Matrix rowvec = + auto vec = in__.template read>(N); + auto rowvec = in__.template read>(N); - double r = in__.template read(); + auto r = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, std::complex(std::numeric_limits::quiet_NaN(), @@ -3836,24 +3830,22 @@ class basic_ops_mix_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix,-1,-1> cvmat = + auto cvmat = in__.template read< Eigen::Matrix,-1,-1>>(N, N); - Eigen::Matrix,-1,1> cvvec = + auto cvvec = in__.template read< Eigen::Matrix,-1,1>>(N); - Eigen::Matrix,1,-1> cvrowvec = + auto cvrowvec = in__.template read< Eigen::Matrix,1,-1>>(N); - std::complex zv = - in__.template read>(); - Eigen::Matrix vmat = + auto zv = in__.template read>(); + auto vmat = in__.template read>(N, N); - Eigen::Matrix vvec = - in__.template read>(N); - Eigen::Matrix vrowvec = + auto vvec = in__.template read>(N); + auto vrowvec = in__.template read>(N); - local_scalar_t__ v = in__.template read(); + auto v = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, std::complex(DUMMY_VAR__, DUMMY_VAR__)); @@ -4446,24 +4438,22 @@ class basic_ops_mix_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix,-1,-1> cvmat = + auto cvmat = in__.template read< Eigen::Matrix,-1,-1>>(N, N); - Eigen::Matrix,-1,1> cvvec = + auto cvvec = in__.template read< Eigen::Matrix,-1,1>>(N); - Eigen::Matrix,1,-1> cvrowvec = + auto cvrowvec = in__.template read< Eigen::Matrix,1,-1>>(N); - std::complex zv = - in__.template read>(); - Eigen::Matrix vmat = + auto zv = in__.template read>(); + auto vmat = in__.template read>(N, N); - Eigen::Matrix vvec = - in__.template read>(N); - Eigen::Matrix vrowvec = + auto vvec = in__.template read>(N); + auto vrowvec = in__.template read>(N); - local_scalar_t__ v = in__.template read(); + auto v = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, std::complex(DUMMY_VAR__, DUMMY_VAR__)); @@ -5067,24 +5057,22 @@ class basic_ops_mix_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix,-1,-1> cvmat = + auto cvmat = in__.template read< Eigen::Matrix,-1,-1>>(N, N); - Eigen::Matrix,-1,1> cvvec = + auto cvvec = in__.template read< Eigen::Matrix,-1,1>>(N); - Eigen::Matrix,1,-1> cvrowvec = + auto cvrowvec = in__.template read< Eigen::Matrix,1,-1>>(N); - std::complex zv = - in__.template read>(); - Eigen::Matrix vmat = + auto zv = in__.template read>(); + auto vmat = in__.template read>(N, N); - Eigen::Matrix vvec = - in__.template read>(N); - Eigen::Matrix vrowvec = + auto vvec = in__.template read>(N); + auto vrowvec = in__.template read>(N); - double v = in__.template read(); + auto v = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, std::complex(std::numeric_limits::quiet_NaN(), @@ -7777,13 +7765,11 @@ class complex_scalar_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ p_r = in__.template read(); - std::complex p_complex = - in__.template read>(); - std::vector> p_complex_array = + auto p_r = in__.template read(); + auto p_complex = in__.template read>(); + auto p_complex_array = in__.template read>>(2); - std::vector>> - p_complex_array_2d = + auto p_complex_array_2d = in__.template read< std::vector>>>(2, 3); local_scalar_t__ tp_r = DUMMY_VAR__; @@ -8024,13 +8010,11 @@ class complex_scalar_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ p_r = in__.template read(); - std::complex p_complex = - in__.template read>(); - std::vector> p_complex_array = + auto p_r = in__.template read(); + auto p_complex = in__.template read>(); + auto p_complex_array = in__.template read>>(2); - std::vector>> - p_complex_array_2d = + auto p_complex_array_2d = in__.template read< std::vector>>>(2, 3); local_scalar_t__ tp_r = DUMMY_VAR__; @@ -8282,12 +8266,11 @@ class complex_scalar_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double p_r = in__.template read(); - std::complex p_complex = - in__.template read>(); - std::vector> p_complex_array = + auto p_r = in__.template read(); + auto p_complex = in__.template read>(); + auto p_complex_array = in__.template read>>(2); - std::vector>> p_complex_array_2d = + auto p_complex_array_2d = in__.template read< std::vector>>>(2, 3); double tp_r = std::numeric_limits::quiet_NaN(); diff --git a/test/integration/good/code-gen/cpp.expected b/test/integration/good/code-gen/cpp.expected index d105e15c4..744143a35 100644 --- a/test/integration/good/code-gen/cpp.expected +++ b/test/integration/good/code-gen/cpp.expected @@ -108,11 +108,11 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> // suppress unused var warning (void) function__; try { - local_scalar_t__ mu = in__.template read(); - local_scalar_t__ tau = + auto mu = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_tilde = + auto theta_tilde = in__.template read>(J); Eigen::Matrix theta = Eigen::Matrix::Constant(J, DUMMY_VAR__); @@ -160,11 +160,11 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> // suppress unused var warning (void) function__; try { - local_scalar_t__ mu = in__.template read(); - local_scalar_t__ tau = + auto mu = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_tilde = + auto theta_tilde = in__.template read>(J); Eigen::Matrix theta = Eigen::Matrix::Constant(J, DUMMY_VAR__); @@ -223,11 +223,11 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> // suppress unused var warning (void) function__; try { - double mu = in__.template read(); - double tau = + auto mu = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_tilde = + auto theta_tilde = in__.template read>(J); Eigen::Matrix theta = Eigen::Matrix::Constant(J, @@ -578,7 +578,7 @@ class _8start_with_number_model final : public model_base_crtp<_8start_with_numb // suppress unused var warning (void) function__; try { - local_scalar_t__ bar = in__.template read(); + auto bar = in__.template read(); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -609,7 +609,7 @@ class _8start_with_number_model final : public model_base_crtp<_8start_with_numb // suppress unused var warning (void) function__; try { - local_scalar_t__ bar = in__.template read(); + auto bar = in__.template read(); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -651,7 +651,7 @@ class _8start_with_number_model final : public model_base_crtp<_8start_with_numb // suppress unused var warning (void) function__; try { - double bar = in__.template read(); + auto bar = in__.template read(); out__.write(bar); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -1380,7 +1380,7 @@ class container_promotion_model final : public model_base_crtp(); + auto y = in__.template read(); Eigen::Matrix V = Eigen::Matrix::Constant(2, DUMMY_VAR__); current_statement__ = 8; @@ -1480,7 +1480,7 @@ class container_promotion_model final : public model_base_crtp(); + auto y = in__.template read(); Eigen::Matrix V = Eigen::Matrix::Constant(2, DUMMY_VAR__); current_statement__ = 8; @@ -1591,7 +1591,7 @@ class container_promotion_model final : public model_base_crtp(); + auto y = in__.template read(); Eigen::Matrix V = Eigen::Matrix::Constant(2, std::numeric_limits::quiet_NaN()); @@ -2429,25 +2429,21 @@ class cpp_reserved_words_model final : public model_base_crtp(); - local_scalar_t__ _stan_float = in__.template read(); - local_scalar_t__ _stan_friend = in__.template read(); - local_scalar_t__ _stan_goto = in__.template read(); - local_scalar_t__ _stan_inline = in__.template read(); - local_scalar_t__ _stan_long = in__.template read(); - local_scalar_t__ _stan_mutable = in__.template read(); - local_scalar_t__ _stan_namespace = - in__.template read(); - local_scalar_t__ _stan_new = in__.template read(); - local_scalar_t__ _stan_noexcept = - in__.template read(); - local_scalar_t__ _stan_not = in__.template read(); - local_scalar_t__ _stan_not_eq = in__.template read(); - local_scalar_t__ _stan_nullptr = in__.template read(); - local_scalar_t__ _stan_operator = - in__.template read(); - local_scalar_t__ _stan_or = in__.template read(); + auto _stan_explicit = in__.template read(); + auto _stan_float = in__.template read(); + auto _stan_friend = in__.template read(); + auto _stan_goto = in__.template read(); + auto _stan_inline = in__.template read(); + auto _stan_long = in__.template read(); + auto _stan_mutable = in__.template read(); + auto _stan_namespace = in__.template read(); + auto _stan_new = in__.template read(); + auto _stan_noexcept = in__.template read(); + auto _stan_not = in__.template read(); + auto _stan_not_eq = in__.template read(); + auto _stan_nullptr = in__.template read(); + auto _stan_operator = in__.template read(); + auto _stan_or = in__.template read(); { local_scalar_t__ _stan_or_eq = DUMMY_VAR__; local_scalar_t__ _stan_private = DUMMY_VAR__; @@ -2495,25 +2491,21 @@ class cpp_reserved_words_model final : public model_base_crtp(); - local_scalar_t__ _stan_float = in__.template read(); - local_scalar_t__ _stan_friend = in__.template read(); - local_scalar_t__ _stan_goto = in__.template read(); - local_scalar_t__ _stan_inline = in__.template read(); - local_scalar_t__ _stan_long = in__.template read(); - local_scalar_t__ _stan_mutable = in__.template read(); - local_scalar_t__ _stan_namespace = - in__.template read(); - local_scalar_t__ _stan_new = in__.template read(); - local_scalar_t__ _stan_noexcept = - in__.template read(); - local_scalar_t__ _stan_not = in__.template read(); - local_scalar_t__ _stan_not_eq = in__.template read(); - local_scalar_t__ _stan_nullptr = in__.template read(); - local_scalar_t__ _stan_operator = - in__.template read(); - local_scalar_t__ _stan_or = in__.template read(); + auto _stan_explicit = in__.template read(); + auto _stan_float = in__.template read(); + auto _stan_friend = in__.template read(); + auto _stan_goto = in__.template read(); + auto _stan_inline = in__.template read(); + auto _stan_long = in__.template read(); + auto _stan_mutable = in__.template read(); + auto _stan_namespace = in__.template read(); + auto _stan_new = in__.template read(); + auto _stan_noexcept = in__.template read(); + auto _stan_not = in__.template read(); + auto _stan_not_eq = in__.template read(); + auto _stan_nullptr = in__.template read(); + auto _stan_operator = in__.template read(); + auto _stan_or = in__.template read(); { local_scalar_t__ _stan_or_eq = DUMMY_VAR__; local_scalar_t__ _stan_private = DUMMY_VAR__; @@ -2572,21 +2564,21 @@ class cpp_reserved_words_model final : public model_base_crtp(); - double _stan_float = in__.template read(); - double _stan_friend = in__.template read(); - double _stan_goto = in__.template read(); - double _stan_inline = in__.template read(); - double _stan_long = in__.template read(); - double _stan_mutable = in__.template read(); - double _stan_namespace = in__.template read(); - double _stan_new = in__.template read(); - double _stan_noexcept = in__.template read(); - double _stan_not = in__.template read(); - double _stan_not_eq = in__.template read(); - double _stan_nullptr = in__.template read(); - double _stan_operator = in__.template read(); - double _stan_or = in__.template read(); + auto _stan_explicit = in__.template read(); + auto _stan_float = in__.template read(); + auto _stan_friend = in__.template read(); + auto _stan_goto = in__.template read(); + auto _stan_inline = in__.template read(); + auto _stan_long = in__.template read(); + auto _stan_mutable = in__.template read(); + auto _stan_namespace = in__.template read(); + auto _stan_new = in__.template read(); + auto _stan_noexcept = in__.template read(); + auto _stan_not = in__.template read(); + auto _stan_not_eq = in__.template read(); + auto _stan_nullptr = in__.template read(); + auto _stan_operator = in__.template read(); + auto _stan_or = in__.template read(); out__.write(_stan_explicit); out__.write(_stan_float); out__.write(_stan_friend); @@ -3459,7 +3451,7 @@ class data_only_functions_model final : public model_base_crtp p = + auto p = in__.template read>(N, N); { current_statement__ = 2; @@ -3518,7 +3510,7 @@ class data_only_functions_model final : public model_base_crtp p = + auto p = in__.template read>(N, N); { current_statement__ = 2; @@ -3588,7 +3580,7 @@ class data_only_functions_model final : public model_base_crtp p = + auto p = in__.template read>(N, N); out__.write(p); if (stan::math::logical_negation( @@ -4659,11 +4651,11 @@ class eight_schools_ncp_model final : public model_base_crtp(); - local_scalar_t__ tau = + auto mu = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_tilde = + auto theta_tilde = in__.template read>(J); Eigen::Matrix theta = Eigen::Matrix::Constant(J, DUMMY_VAR__); @@ -4711,11 +4703,11 @@ class eight_schools_ncp_model final : public model_base_crtp(); - local_scalar_t__ tau = + auto mu = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_tilde = + auto theta_tilde = in__.template read>(J); Eigen::Matrix theta = Eigen::Matrix::Constant(J, DUMMY_VAR__); @@ -4774,11 +4766,11 @@ class eight_schools_ncp_model final : public model_base_crtp(); - double tau = + auto mu = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_tilde = + auto theta_tilde = in__.template read>(J); Eigen::Matrix theta = Eigen::Matrix::Constant(J, @@ -5650,10 +5642,10 @@ class jacobian_pe_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ b_raw = in__.template read(); - Eigen::Matrix b_vec_raw = + auto b_raw = in__.template read(); + auto b_vec_raw = in__.template read>(N); - local_scalar_t__ b_direct_raw = in__.template read(); + auto b_direct_raw = in__.template read(); local_scalar_t__ b = DUMMY_VAR__; current_statement__ = 4; b = upper_bound_jacobian(b_raw, ub, lp__, lp_accum__, @@ -5701,10 +5693,10 @@ class jacobian_pe_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ b_raw = in__.template read(); - Eigen::Matrix b_vec_raw = + auto b_raw = in__.template read(); + auto b_vec_raw = in__.template read>(N); - local_scalar_t__ b_direct_raw = in__.template read(); + auto b_direct_raw = in__.template read(); local_scalar_t__ b = DUMMY_VAR__; current_statement__ = 4; b = upper_bound_jacobian(b_raw, ub, lp__, lp_accum__, @@ -5763,10 +5755,10 @@ class jacobian_pe_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double b_raw = in__.template read(); - Eigen::Matrix b_vec_raw = + auto b_raw = in__.template read(); + auto b_vec_raw = in__.template read>(N); - double b_direct_raw = in__.template read(); + auto b_direct_raw = in__.template read(); double b = std::numeric_limits::quiet_NaN(); Eigen::Matrix bvec = Eigen::Matrix::Constant(N, @@ -6138,8 +6130,7 @@ class mixed_type_arrays_model final : public model_base_crtp xx = - in__.template read>(3); + auto xx = in__.template read>(3); std::vector> y = std::vector>(3, std::vector(3, DUMMY_VAR__)); @@ -6195,8 +6186,7 @@ class mixed_type_arrays_model final : public model_base_crtp xx = - in__.template read>(3); + auto xx = in__.template read>(3); std::vector> y = std::vector>(3, std::vector(3, DUMMY_VAR__)); @@ -6263,8 +6253,7 @@ class mixed_type_arrays_model final : public model_base_crtp xx = - in__.template read>(3); + auto xx = in__.template read>(3); std::vector> y = std::vector>(3, std::vector(3, std::numeric_limits::quiet_NaN())); @@ -12157,89 +12146,80 @@ class mother_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ p_real = in__.template read(); - local_scalar_t__ p_upper = + auto p_real = in__.template read(); + auto p_upper = in__.template read_constrain_lb(p_real, lp__); - local_scalar_t__ p_lower = + auto p_lower = in__.template read_constrain_ub(p_upper, lp__); - std::vector offset_multiplier = + auto offset_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(1, 2, lp__, 5); - std::vector no_offset_multiplier = + auto no_offset_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(0, 2, lp__, 5); - std::vector offset_no_multiplier = + auto offset_no_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(3, 1, lp__, 5); - std::vector p_real_1d_ar = + auto p_real_1d_ar = in__.template read_constrain_lb, jacobian__>(0, lp__, N); - std::vector>> p_real_3d_ar = + auto p_real_3d_ar = in__.template read_constrain_lb< std::vector>>, jacobian__>(0, lp__, N, M, K); - Eigen::Matrix p_vec = + auto p_vec = in__.template read_constrain_lb, jacobian__>(0, lp__, N); - std::vector> p_1d_vec = + auto p_1d_vec = in__.template read< std::vector>>(N, N); - std::vector< - std::vector>>> - p_3d_vec = + auto p_3d_vec = in__.template read< std::vector< std::vector>>>>(N, M, K, N); - Eigen::Matrix p_row_vec = + auto p_row_vec = in__.template read>(N); - std::vector> p_1d_row_vec = + auto p_1d_row_vec = in__.template read< std::vector>>(N, N); - std::vector< - std::vector>>> - p_3d_row_vec = + auto p_3d_row_vec = in__.template read< std::vector< std::vector>>>>(N, M, K, N); - Eigen::Matrix p_mat = + auto p_mat = in__.template read>(5, 4); - std::vector>> - p_ar_mat = + auto p_ar_mat = in__.template read_constrain_lub< std::vector>>, jacobian__>(0, 1, lp__, 4, 5, 2, 3); - Eigen::Matrix p_simplex = + auto p_simplex = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, N); - std::vector> p_1d_simplex = + auto p_1d_simplex = in__.template read_constrain_simplex< std::vector>, jacobian__>(lp__, N, N); - std::vector< - std::vector>>> - p_3d_simplex = + auto p_3d_simplex = in__.template read_constrain_simplex< std::vector< std::vector>>>, jacobian__>(lp__, N, M, K, N); - Eigen::Matrix p_cfcov_54 = + auto p_cfcov_54 = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, 5, 4); - Eigen::Matrix p_cfcov_33 = + auto p_cfcov_33 = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, 3, 3); - std::vector> p_cfcov_33_ar = + auto p_cfcov_33_ar = in__.template read_constrain_cholesky_factor_cov< std::vector>, jacobian__>(lp__, K, 3, 3); - Eigen::Matrix x_p = - in__.template read>(2); - Eigen::Matrix y_p = - in__.template read>(2); + auto x_p = in__.template read>(2); + auto y_p = in__.template read>(2); std::vector tp_real_1d_ar = std::vector(N, DUMMY_VAR__); std::vector>> tp_real_3d_ar = @@ -12601,89 +12581,80 @@ class mother_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ p_real = in__.template read(); - local_scalar_t__ p_upper = + auto p_real = in__.template read(); + auto p_upper = in__.template read_constrain_lb(p_real, lp__); - local_scalar_t__ p_lower = + auto p_lower = in__.template read_constrain_ub(p_upper, lp__); - std::vector offset_multiplier = + auto offset_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(1, 2, lp__, 5); - std::vector no_offset_multiplier = + auto no_offset_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(0, 2, lp__, 5); - std::vector offset_no_multiplier = + auto offset_no_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(3, 1, lp__, 5); - std::vector p_real_1d_ar = + auto p_real_1d_ar = in__.template read_constrain_lb, jacobian__>(0, lp__, N); - std::vector>> p_real_3d_ar = + auto p_real_3d_ar = in__.template read_constrain_lb< std::vector>>, jacobian__>(0, lp__, N, M, K); - Eigen::Matrix p_vec = + auto p_vec = in__.template read_constrain_lb, jacobian__>(0, lp__, N); - std::vector> p_1d_vec = + auto p_1d_vec = in__.template read< std::vector>>(N, N); - std::vector< - std::vector>>> - p_3d_vec = + auto p_3d_vec = in__.template read< std::vector< std::vector>>>>(N, M, K, N); - Eigen::Matrix p_row_vec = + auto p_row_vec = in__.template read>(N); - std::vector> p_1d_row_vec = + auto p_1d_row_vec = in__.template read< std::vector>>(N, N); - std::vector< - std::vector>>> - p_3d_row_vec = + auto p_3d_row_vec = in__.template read< std::vector< std::vector>>>>(N, M, K, N); - Eigen::Matrix p_mat = + auto p_mat = in__.template read>(5, 4); - std::vector>> - p_ar_mat = + auto p_ar_mat = in__.template read_constrain_lub< std::vector>>, jacobian__>(0, 1, lp__, 4, 5, 2, 3); - Eigen::Matrix p_simplex = + auto p_simplex = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, N); - std::vector> p_1d_simplex = + auto p_1d_simplex = in__.template read_constrain_simplex< std::vector>, jacobian__>(lp__, N, N); - std::vector< - std::vector>>> - p_3d_simplex = + auto p_3d_simplex = in__.template read_constrain_simplex< std::vector< std::vector>>>, jacobian__>(lp__, N, M, K, N); - Eigen::Matrix p_cfcov_54 = + auto p_cfcov_54 = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, 5, 4); - Eigen::Matrix p_cfcov_33 = + auto p_cfcov_33 = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, 3, 3); - std::vector> p_cfcov_33_ar = + auto p_cfcov_33_ar = in__.template read_constrain_cholesky_factor_cov< std::vector>, jacobian__>(lp__, K, 3, 3); - Eigen::Matrix x_p = - in__.template read>(2); - Eigen::Matrix y_p = - in__.template read>(2); + auto x_p = in__.template read>(2); + auto y_p = in__.template read>(2); std::vector tp_real_1d_ar = std::vector(N, DUMMY_VAR__); std::vector>> tp_real_3d_ar = @@ -13056,85 +13027,80 @@ class mother_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double p_real = in__.template read(); - double p_upper = + auto p_real = in__.template read(); + auto p_upper = in__.template read_constrain_lb(p_real, lp__); - double p_lower = + auto p_lower = in__.template read_constrain_ub(p_upper, lp__); - std::vector offset_multiplier = + auto offset_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(1, 2, lp__, 5); - std::vector no_offset_multiplier = + auto no_offset_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(0, 2, lp__, 5); - std::vector offset_no_multiplier = + auto offset_no_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(3, 1, lp__, 5); - std::vector p_real_1d_ar = + auto p_real_1d_ar = in__.template read_constrain_lb, jacobian__>(0, lp__, N); - std::vector>> p_real_3d_ar = + auto p_real_3d_ar = in__.template read_constrain_lb< std::vector>>, jacobian__>(0, lp__, N, M, K); - Eigen::Matrix p_vec = + auto p_vec = in__.template read_constrain_lb, jacobian__>(0, lp__, N); - std::vector> p_1d_vec = + auto p_1d_vec = in__.template read< std::vector>>(N, N); - std::vector>>> - p_3d_vec = + auto p_3d_vec = in__.template read< std::vector< std::vector>>>>(N, M, K, N); - Eigen::Matrix p_row_vec = + auto p_row_vec = in__.template read>(N); - std::vector> p_1d_row_vec = + auto p_1d_row_vec = in__.template read< std::vector>>(N, N); - std::vector>>> - p_3d_row_vec = + auto p_3d_row_vec = in__.template read< std::vector< std::vector>>>>(N, M, K, N); - Eigen::Matrix p_mat = + auto p_mat = in__.template read>(5, 4); - std::vector>> p_ar_mat = + auto p_ar_mat = in__.template read_constrain_lub< std::vector>>, jacobian__>(0, 1, lp__, 4, 5, 2, 3); - Eigen::Matrix p_simplex = + auto p_simplex = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, N); - std::vector> p_1d_simplex = + auto p_1d_simplex = in__.template read_constrain_simplex< std::vector>, jacobian__>(lp__, N, N); - std::vector>>> - p_3d_simplex = + auto p_3d_simplex = in__.template read_constrain_simplex< std::vector< std::vector>>>, jacobian__>(lp__, N, M, K, N); - Eigen::Matrix p_cfcov_54 = + auto p_cfcov_54 = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, 5, 4); - Eigen::Matrix p_cfcov_33 = + auto p_cfcov_33 = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, 3, 3); - std::vector> p_cfcov_33_ar = + auto p_cfcov_33_ar = in__.template read_constrain_cholesky_factor_cov< std::vector>, jacobian__>(lp__, K, 3, 3); - Eigen::Matrix x_p = - in__.template read>(2); - Eigen::Matrix y_p = - in__.template read>(2); + auto x_p = in__.template read>(2); + auto y_p = in__.template read>(2); std::vector tp_real_1d_ar = std::vector(N, std::numeric_limits::quiet_NaN()); std::vector>> tp_real_3d_ar = @@ -16825,20 +16791,17 @@ class motherHOF_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector y0_p = - in__.template read>(2); - std::vector theta_p = - in__.template read>(1); - std::vector x_p = - in__.template read>(1); - Eigen::Matrix x_p_v = + auto y0_p = in__.template read>(2); + auto theta_p = in__.template read>(1); + auto x_p = in__.template read>(1); + auto x_p_v = in__.template read>(2); - Eigen::Matrix shared_params_p = + auto shared_params_p = in__.template read>(3); - std::vector> job_params_p = + auto job_params_p = in__.template read< std::vector>>(3, 3); - local_scalar_t__ x_r = in__.template read(); + auto x_r = in__.template read(); local_scalar_t__ abc1_p = DUMMY_VAR__; current_statement__ = 8; abc1_p = 3; @@ -17135,20 +17098,17 @@ class motherHOF_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector y0_p = - in__.template read>(2); - std::vector theta_p = - in__.template read>(1); - std::vector x_p = - in__.template read>(1); - Eigen::Matrix x_p_v = + auto y0_p = in__.template read>(2); + auto theta_p = in__.template read>(1); + auto x_p = in__.template read>(1); + auto x_p_v = in__.template read>(2); - Eigen::Matrix shared_params_p = + auto shared_params_p = in__.template read>(3); - std::vector> job_params_p = + auto job_params_p = in__.template read< std::vector>>(3, 3); - local_scalar_t__ x_r = in__.template read(); + auto x_r = in__.template read(); local_scalar_t__ abc1_p = DUMMY_VAR__; current_statement__ = 8; abc1_p = 3; @@ -17453,20 +17413,17 @@ class motherHOF_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector y0_p = - in__.template read>(2); - std::vector theta_p = - in__.template read>(1); - std::vector x_p = - in__.template read>(1); - Eigen::Matrix x_p_v = + auto y0_p = in__.template read>(2); + auto theta_p = in__.template read>(1); + auto x_p = in__.template read>(1); + auto x_p_v = in__.template read>(2); - Eigen::Matrix shared_params_p = + auto shared_params_p = in__.template read>(3); - std::vector> job_params_p = + auto job_params_p = in__.template read< std::vector>>(3, 3); - double x_r = in__.template read(); + auto x_r = in__.template read(); double abc1_p = std::numeric_limits::quiet_NaN(); double abc2_p = std::numeric_limits::quiet_NaN(); double abc3_p = std::numeric_limits::quiet_NaN(); @@ -19383,11 +19340,9 @@ class new_integrate_interface_model final : public model_base_crtp(); - std::vector ra = - in__.template read>(N); - Eigen::Matrix v = - in__.template read>(N); + auto r = in__.template read(); + auto ra = in__.template read>(N); + auto v = in__.template read>(N); std::vector> z = std::vector>(N, Eigen::Matrix::Constant(N, DUMMY_VAR__)); @@ -21028,11 +20983,9 @@ class new_integrate_interface_model final : public model_base_crtp(); - std::vector ra = - in__.template read>(N); - Eigen::Matrix v = - in__.template read>(N); + auto r = in__.template read(); + auto ra = in__.template read>(N); + auto v = in__.template read>(N); std::vector> z = std::vector>(N, Eigen::Matrix::Constant(N, DUMMY_VAR__)); @@ -22684,11 +22637,9 @@ class new_integrate_interface_model final : public model_base_crtp(); - std::vector ra = - in__.template read>(N); - Eigen::Matrix v = - in__.template read>(N); + auto r = in__.template read(); + auto ra = in__.template read>(N); + auto v = in__.template read>(N); std::vector> z = std::vector>(N, Eigen::Matrix::Constant(N, @@ -24874,22 +24825,22 @@ class old_integrate_interface_model final : public model_base_crtp(0, lp__); - local_scalar_t__ beta = + auto beta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ delta = + auto delta = in__.template read_constrain_lb(0, lp__); - std::vector z_init = + auto z_init = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); - std::vector sigma = + auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); std::vector> z = @@ -24970,22 +24921,22 @@ class old_integrate_interface_model final : public model_base_crtp(0, lp__); - local_scalar_t__ beta = + auto beta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ delta = + auto delta = in__.template read_constrain_lb(0, lp__); - std::vector z_init = + auto z_init = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); - std::vector sigma = + auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); std::vector> z = @@ -25077,22 +25028,22 @@ class old_integrate_interface_model final : public model_base_crtp(0, lp__); - double beta = + auto beta = in__.template read_constrain_lb(0, lp__); - double gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - double delta = + auto delta = in__.template read_constrain_lb(0, lp__); - std::vector z_init = + auto z_init = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); - std::vector sigma = + auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); std::vector> z = @@ -25871,22 +25822,20 @@ class optimize_glm_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix alpha_v = - in__.template read>(k); - Eigen::Matrix beta = - in__.template read>(k); - Eigen::Matrix cuts = + auto alpha_v = in__.template read>(k); - local_scalar_t__ sigma = + auto beta = in__.template read>(k); + auto cuts = in__.template read>(k); + auto sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ alpha = in__.template read(); - local_scalar_t__ phi = in__.template read(); - Eigen::Matrix X_p = + auto alpha = in__.template read(); + auto phi = in__.template read(); + auto X_p = in__.template read>(n, k); - Eigen::Matrix beta_m = + auto beta_m = in__.template read>(n, k); - Eigen::Matrix X_rv_p = + auto X_rv_p = in__.template read>(n); { current_statement__ = 10; @@ -26420,22 +26369,20 @@ class optimize_glm_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix alpha_v = - in__.template read>(k); - Eigen::Matrix beta = - in__.template read>(k); - Eigen::Matrix cuts = + auto alpha_v = in__.template read>(k); - local_scalar_t__ sigma = + auto beta = in__.template read>(k); + auto cuts = in__.template read>(k); + auto sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ alpha = in__.template read(); - local_scalar_t__ phi = in__.template read(); - Eigen::Matrix X_p = + auto alpha = in__.template read(); + auto phi = in__.template read(); + auto X_p = in__.template read>(n, k); - Eigen::Matrix beta_m = + auto beta_m = in__.template read>(n, k); - Eigen::Matrix X_rv_p = + auto X_rv_p = in__.template read>(n); { current_statement__ = 10; @@ -26980,22 +26927,20 @@ class optimize_glm_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix alpha_v = + auto alpha_v = in__.template read>(k); - Eigen::Matrix beta = - in__.template read>(k); - Eigen::Matrix cuts = - in__.template read>(k); - double sigma = + auto beta = in__.template read>(k); + auto cuts = in__.template read>(k); + auto sigma = in__.template read_constrain_lb(0, lp__); - double alpha = in__.template read(); - double phi = in__.template read(); - Eigen::Matrix X_p = + auto alpha = in__.template read(); + auto phi = in__.template read(); + auto X_p = in__.template read>(n, k); - Eigen::Matrix beta_m = + auto beta_m = in__.template read>(n, k); - Eigen::Matrix X_rv_p = + auto X_rv_p = in__.template read>(n); out__.write(alpha_v); out__.write(beta); @@ -27911,8 +27856,8 @@ class overloading_templating_model final : public model_base_crtp(); - local_scalar_t__ z = in__.template read(); + auto y = in__.template read(); + auto z = in__.template read(); { current_statement__ = 3; lp_accum__.add(stan::math::normal_lpdf(y, @@ -27990,8 +27935,8 @@ class overloading_templating_model final : public model_base_crtp(); - local_scalar_t__ z = in__.template read(); + auto y = in__.template read(); + auto z = in__.template read(); { current_statement__ = 3; lp_accum__.add(stan::math::normal_lpdf(y, @@ -28080,8 +28025,8 @@ class overloading_templating_model final : public model_base_crtp(); - double z = in__.template read(); + auto y = in__.template read(); + auto z = in__.template read(); out__.write(y); out__.write(z); if (stan::math::logical_negation( @@ -28379,11 +28324,11 @@ class param_constraint_model final : public model_base_crtp> L_Omega = + auto L_Omega = in__.template read_constrain_cholesky_factor_corr< std::vector>, jacobian__>(lp__, nt, 2); - Eigen::Matrix z1 = + auto z1 = in__.template read_constrain_lb, jacobian__>(stan::model::rvalue(L_Omega, "L_Omega", stan::model::index_uni(1), stan::model::index_uni(1), @@ -28418,11 +28363,11 @@ class param_constraint_model final : public model_base_crtp> L_Omega = + auto L_Omega = in__.template read_constrain_cholesky_factor_corr< std::vector>, jacobian__>(lp__, nt, 2); - Eigen::Matrix z1 = + auto z1 = in__.template read_constrain_lb, jacobian__>(stan::model::rvalue(L_Omega, "L_Omega", stan::model::index_uni(1), stan::model::index_uni(1), @@ -28468,11 +28413,11 @@ class param_constraint_model final : public model_base_crtp> L_Omega = + auto L_Omega = in__.template read_constrain_cholesky_factor_corr< std::vector>, jacobian__>(lp__, nt, 2); - Eigen::Matrix z1 = + auto z1 = in__.template read_constrain_lb, jacobian__>(stan::model::rvalue(L_Omega, "L_Omega", stan::model::index_uni(1), stan::model::index_uni(1), @@ -30007,7 +29952,7 @@ class recursive_slicing_model final : public model_base_crtp gamma = + auto gamma = in__.template read>(times); Eigen::Matrix z_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); @@ -30050,7 +29995,7 @@ class recursive_slicing_model final : public model_base_crtp gamma = + auto gamma = in__.template read>(times); Eigen::Matrix z_hat = Eigen::Matrix::Constant(N, DUMMY_VAR__); @@ -30104,7 +30049,7 @@ class recursive_slicing_model final : public model_base_crtp gamma = + auto gamma = in__.template read>(times); Eigen::Matrix z_hat = Eigen::Matrix::Constant(N, @@ -30659,12 +30604,9 @@ class reduce_sum_m1_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector y1 = - in__.template read>(N); - std::vector y2 = - in__.template read>(N); - std::vector y3 = - in__.template read>(N); + auto y1 = in__.template read>(N); + auto y2 = in__.template read>(N); + auto y3 = in__.template read>(N); { current_statement__ = 4; lp_accum__.add(stan::math::reduce_sum(y1, 1, pstream__)); @@ -30708,12 +30650,9 @@ class reduce_sum_m1_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector y1 = - in__.template read>(N); - std::vector y2 = - in__.template read>(N); - std::vector y3 = - in__.template read>(N); + auto y1 = in__.template read>(N); + auto y2 = in__.template read>(N); + auto y3 = in__.template read>(N); { current_statement__ = 4; lp_accum__.add(stan::math::reduce_sum(y1, 1, pstream__)); @@ -30768,12 +30707,9 @@ class reduce_sum_m1_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector y1 = - in__.template read>(N); - std::vector y2 = - in__.template read>(N); - std::vector y3 = - in__.template read>(N); + auto y1 = in__.template read>(N); + auto y2 = in__.template read>(N); + auto y3 = in__.template read>(N); out__.write(y1); out__.write(y2); out__.write(y3); @@ -32547,56 +32483,54 @@ class reduce_sum_m2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector>> a8 = + auto a8 = in__.template read< std::vector>>>(N, N, N, N); - std::vector>> a7 = + auto a7 = in__.template read< std::vector>>>(N, N, N); - std::vector>> a6 = + auto a6 = in__.template read< std::vector>>>(N, N, N); - std::vector> a5 = + auto a5 = in__.template read>>(N, N); - std::vector> a4 = + auto a4 = in__.template read< std::vector>>(N, N, N); - std::vector> a3 = + auto a3 = in__.template read< std::vector>>(N, N); - std::vector> a2 = + auto a2 = in__.template read< std::vector>>(N, N); - std::vector a1 = - in__.template read>(N); - std::vector>> y8 = + auto a1 = in__.template read>(N); + auto y8 = in__.template read< std::vector>>>(N, N, N, N); - std::vector>> y7 = + auto y7 = in__.template read< std::vector>>>(N, N, N); - std::vector>> y6 = + auto y6 = in__.template read< std::vector>>>(N, N, N); - std::vector> y5 = + auto y5 = in__.template read>>(N, N); - std::vector> y4 = + auto y4 = in__.template read< std::vector>>(N, N, N); - std::vector> y3 = + auto y3 = in__.template read< std::vector>>(N, N); - std::vector> y2 = + auto y2 = in__.template read< std::vector>>(N, N); - std::vector y1 = - in__.template read>(N); + auto y1 = in__.template read>(N); { current_statement__ = 17; lp_accum__.add(stan::math::reduce_sum(x, 1, @@ -32677,56 +32611,54 @@ class reduce_sum_m2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector>> a8 = + auto a8 = in__.template read< std::vector>>>(N, N, N, N); - std::vector>> a7 = + auto a7 = in__.template read< std::vector>>>(N, N, N); - std::vector>> a6 = + auto a6 = in__.template read< std::vector>>>(N, N, N); - std::vector> a5 = + auto a5 = in__.template read>>(N, N); - std::vector> a4 = + auto a4 = in__.template read< std::vector>>(N, N, N); - std::vector> a3 = + auto a3 = in__.template read< std::vector>>(N, N); - std::vector> a2 = + auto a2 = in__.template read< std::vector>>(N, N); - std::vector a1 = - in__.template read>(N); - std::vector>> y8 = + auto a1 = in__.template read>(N); + auto y8 = in__.template read< std::vector>>>(N, N, N, N); - std::vector>> y7 = + auto y7 = in__.template read< std::vector>>>(N, N, N); - std::vector>> y6 = + auto y6 = in__.template read< std::vector>>>(N, N, N); - std::vector> y5 = + auto y5 = in__.template read>>(N, N); - std::vector> y4 = + auto y4 = in__.template read< std::vector>>(N, N, N); - std::vector> y3 = + auto y3 = in__.template read< std::vector>>(N, N); - std::vector> y2 = + auto y2 = in__.template read< std::vector>>(N, N); - std::vector y1 = - in__.template read>(N); + auto y1 = in__.template read>(N); { current_statement__ = 17; lp_accum__.add(stan::math::reduce_sum(x, 1, @@ -32818,56 +32750,54 @@ class reduce_sum_m2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector>> a8 = + auto a8 = in__.template read< std::vector>>>(N, N, N, N); - std::vector>> a7 = + auto a7 = in__.template read< std::vector>>>(N, N, N); - std::vector>> a6 = + auto a6 = in__.template read< std::vector>>>(N, N, N); - std::vector> a5 = + auto a5 = in__.template read>>(N, N); - std::vector> a4 = + auto a4 = in__.template read< std::vector>>(N, N, N); - std::vector> a3 = + auto a3 = in__.template read< std::vector>>(N, N); - std::vector> a2 = + auto a2 = in__.template read< std::vector>>(N, N); - std::vector a1 = - in__.template read>(N); - std::vector>> y8 = + auto a1 = in__.template read>(N); + auto y8 = in__.template read< std::vector>>>(N, N, N, N); - std::vector>> y7 = + auto y7 = in__.template read< std::vector>>>(N, N, N); - std::vector>> y6 = + auto y6 = in__.template read< std::vector>>>(N, N, N); - std::vector> y5 = + auto y5 = in__.template read>>(N, N); - std::vector> y4 = + auto y4 = in__.template read< std::vector>>(N, N, N); - std::vector> y3 = + auto y3 = in__.template read< std::vector>>(N, N); - std::vector> y2 = + auto y2 = in__.template read< std::vector>>(N, N); - std::vector y1 = - in__.template read>(N); + auto y1 = in__.template read>(N); current_statement__ = 1; for (int sym1__ = 1; sym1__ <= N; ++sym1__) { for (int sym2__ = 1; sym2__ <= N; ++sym2__) { @@ -36960,39 +36890,36 @@ class reduce_sum_m3_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector y1 = - in__.template read>(N); - std::vector> y2 = + auto y1 = in__.template read>(N); + auto y2 = in__.template read< std::vector>>(N, N); - std::vector> y3 = + auto y3 = in__.template read< std::vector>>(N, N); - std::vector> y4 = + auto y4 = in__.template read< std::vector>>(N, N, N); - std::vector> y5 = + auto y5 = in__.template read>>(N, N); - std::vector>> y6 = + auto y6 = in__.template read< std::vector>>>(N, N, N); - std::vector>> y7 = + auto y7 = in__.template read< std::vector>>>(N, N, N); - std::vector>> y8 = + auto y8 = in__.template read< std::vector>>>(N, N, N, N); - local_scalar_t__ y9 = in__.template read(); - Eigen::Matrix y10 = - in__.template read>(N); - Eigen::Matrix y11 = - in__.template read>(N); - Eigen::Matrix y12 = + auto y9 = in__.template read(); + auto y10 = in__.template read>(N); + auto y11 = in__.template read>(N); + auto y12 = in__.template read>(N, N); - std::vector>> y17 = + auto y17 = in__.template read< std::vector>>>(N, N, N); { @@ -37111,39 +37038,36 @@ class reduce_sum_m3_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector y1 = - in__.template read>(N); - std::vector> y2 = + auto y1 = in__.template read>(N); + auto y2 = in__.template read< std::vector>>(N, N); - std::vector> y3 = + auto y3 = in__.template read< std::vector>>(N, N); - std::vector> y4 = + auto y4 = in__.template read< std::vector>>(N, N, N); - std::vector> y5 = + auto y5 = in__.template read>>(N, N); - std::vector>> y6 = + auto y6 = in__.template read< std::vector>>>(N, N, N); - std::vector>> y7 = + auto y7 = in__.template read< std::vector>>>(N, N, N); - std::vector>> y8 = + auto y8 = in__.template read< std::vector>>>(N, N, N, N); - local_scalar_t__ y9 = in__.template read(); - Eigen::Matrix y10 = - in__.template read>(N); - Eigen::Matrix y11 = - in__.template read>(N); - Eigen::Matrix y12 = + auto y9 = in__.template read(); + auto y10 = in__.template read>(N); + auto y11 = in__.template read>(N); + auto y12 = in__.template read>(N, N); - std::vector>> y17 = + auto y17 = in__.template read< std::vector>>>(N, N, N); { @@ -37273,39 +37197,36 @@ class reduce_sum_m3_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector y1 = - in__.template read>(N); - std::vector> y2 = + auto y1 = in__.template read>(N); + auto y2 = in__.template read< std::vector>>(N, N); - std::vector> y3 = + auto y3 = in__.template read< std::vector>>(N, N); - std::vector> y4 = + auto y4 = in__.template read< std::vector>>(N, N, N); - std::vector> y5 = + auto y5 = in__.template read>>(N, N); - std::vector>> y6 = + auto y6 = in__.template read< std::vector>>>(N, N, N); - std::vector>> y7 = + auto y7 = in__.template read< std::vector>>>(N, N, N); - std::vector>> y8 = + auto y8 = in__.template read< std::vector>>>(N, N, N, N); - double y9 = in__.template read(); - Eigen::Matrix y10 = - in__.template read>(N); - Eigen::Matrix y11 = - in__.template read>(N); - Eigen::Matrix y12 = + auto y9 = in__.template read(); + auto y10 = in__.template read>(N); + auto y11 = in__.template read>(N); + auto y12 = in__.template read>(N, N); - std::vector>> y17 = + auto y17 = in__.template read< std::vector>>>(N, N, N); out__.write(y1); @@ -38448,7 +38369,7 @@ class reject_exit_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ x = in__.template read(); + auto x = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(x, 0, 1)); @@ -38503,7 +38424,7 @@ class reject_exit_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ x = in__.template read(); + auto x = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(x, 0, 1)); @@ -38569,7 +38490,7 @@ class reject_exit_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double x = in__.template read(); + auto x = in__.template read(); out__.write(x); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -38930,7 +38851,7 @@ class return_position_types_model final : public model_base_crtp(); + auto a = in__.template read(); { std::vector z = std::vector(1, DUMMY_VAR__); @@ -38977,7 +38898,7 @@ class return_position_types_model final : public model_base_crtp(); + auto a = in__.template read(); { std::vector z = std::vector(1, DUMMY_VAR__); @@ -39035,7 +38956,7 @@ class return_position_types_model final : public model_base_crtp(); + auto a = in__.template read(); out__.write(a); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -39807,52 +39728,46 @@ class shadowing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ e = in__.template read(); - local_scalar_t__ pi = in__.template read(); - local_scalar_t__ log2 = in__.template read(); - local_scalar_t__ log10 = in__.template read(); - local_scalar_t__ sqrt2 = in__.template read(); - local_scalar_t__ not_a_number = in__.template read(); - local_scalar_t__ positive_infinity = - in__.template read(); - local_scalar_t__ negative_infinity = - in__.template read(); - local_scalar_t__ machine_precision = - in__.template read(); - local_scalar_t__ inv_logit = in__.template read(); - local_scalar_t__ logit = in__.template read(); - local_scalar_t__ num_elements = in__.template read(); - local_scalar_t__ pow = in__.template read(); - local_scalar_t__ add = in__.template read(); - local_scalar_t__ sub = in__.template read(); - local_scalar_t__ multiply = in__.template read(); - local_scalar_t__ lchoose = in__.template read(); - local_scalar_t__ binomial_coefficient_log = - in__.template read(); - local_scalar_t__ read_constrain_lb = + auto e = in__.template read(); + auto pi = in__.template read(); + auto log2 = in__.template read(); + auto log10 = in__.template read(); + auto sqrt2 = in__.template read(); + auto not_a_number = in__.template read(); + auto positive_infinity = in__.template read(); + auto negative_infinity = in__.template read(); + auto machine_precision = in__.template read(); + auto inv_logit = in__.template read(); + auto logit = in__.template read(); + auto num_elements = in__.template read(); + auto pow = in__.template read(); + auto add = in__.template read(); + auto sub = in__.template read(); + auto multiply = in__.template read(); + auto lchoose = in__.template read(); + auto binomial_coefficient_log = in__.template read(); + auto read_constrain_lb = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ read = in__.template read(); - local_scalar_t__ validate_non_negative_index = + auto read = in__.template read(); + auto validate_non_negative_index = in__.template read(); - local_scalar_t__ length = in__.template read(); - Eigen::Matrix validate_positive_index = + auto length = in__.template read(); + auto validate_positive_index = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, 5); - local_scalar_t__ profile_map = in__.template read(); - local_scalar_t__ assign = in__.template read(); - local_scalar_t__ rvalue = in__.template read(); - local_scalar_t__ stan_print = in__.template read(); - local_scalar_t__ model_base_crtp = - in__.template read(); - local_scalar_t__ index_uni = in__.template read(); - local_scalar_t__ bernoulli_logit_glm_lpmf = - in__.template read(); - local_scalar_t__ reduce_sum = in__.template read(); - Eigen::Matrix segment = + auto profile_map = in__.template read(); + auto assign = in__.template read(); + auto rvalue = in__.template read(); + auto stan_print = in__.template read(); + auto model_base_crtp = in__.template read(); + auto index_uni = in__.template read(); + auto bernoulli_logit_glm_lpmf = in__.template read(); + auto reduce_sum = in__.template read(); + auto segment = in__.template read>(4); - local_scalar_t__ ode_bdf = in__.template read(); - local_scalar_t__ ode_bdf_tol = in__.template read(); + auto ode_bdf = in__.template read(); + auto ode_bdf_tol = in__.template read(); local_scalar_t__ mu = DUMMY_VAR__; current_statement__ = 38; mu = ((((((((stan::math::e() + stan::math::pi()) + stan::math::log2()) @@ -39929,52 +39844,46 @@ class shadowing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ e = in__.template read(); - local_scalar_t__ pi = in__.template read(); - local_scalar_t__ log2 = in__.template read(); - local_scalar_t__ log10 = in__.template read(); - local_scalar_t__ sqrt2 = in__.template read(); - local_scalar_t__ not_a_number = in__.template read(); - local_scalar_t__ positive_infinity = - in__.template read(); - local_scalar_t__ negative_infinity = - in__.template read(); - local_scalar_t__ machine_precision = - in__.template read(); - local_scalar_t__ inv_logit = in__.template read(); - local_scalar_t__ logit = in__.template read(); - local_scalar_t__ num_elements = in__.template read(); - local_scalar_t__ pow = in__.template read(); - local_scalar_t__ add = in__.template read(); - local_scalar_t__ sub = in__.template read(); - local_scalar_t__ multiply = in__.template read(); - local_scalar_t__ lchoose = in__.template read(); - local_scalar_t__ binomial_coefficient_log = - in__.template read(); - local_scalar_t__ read_constrain_lb = + auto e = in__.template read(); + auto pi = in__.template read(); + auto log2 = in__.template read(); + auto log10 = in__.template read(); + auto sqrt2 = in__.template read(); + auto not_a_number = in__.template read(); + auto positive_infinity = in__.template read(); + auto negative_infinity = in__.template read(); + auto machine_precision = in__.template read(); + auto inv_logit = in__.template read(); + auto logit = in__.template read(); + auto num_elements = in__.template read(); + auto pow = in__.template read(); + auto add = in__.template read(); + auto sub = in__.template read(); + auto multiply = in__.template read(); + auto lchoose = in__.template read(); + auto binomial_coefficient_log = in__.template read(); + auto read_constrain_lb = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ read = in__.template read(); - local_scalar_t__ validate_non_negative_index = + auto read = in__.template read(); + auto validate_non_negative_index = in__.template read(); - local_scalar_t__ length = in__.template read(); - Eigen::Matrix validate_positive_index = + auto length = in__.template read(); + auto validate_positive_index = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, 5); - local_scalar_t__ profile_map = in__.template read(); - local_scalar_t__ assign = in__.template read(); - local_scalar_t__ rvalue = in__.template read(); - local_scalar_t__ stan_print = in__.template read(); - local_scalar_t__ model_base_crtp = - in__.template read(); - local_scalar_t__ index_uni = in__.template read(); - local_scalar_t__ bernoulli_logit_glm_lpmf = - in__.template read(); - local_scalar_t__ reduce_sum = in__.template read(); - Eigen::Matrix segment = + auto profile_map = in__.template read(); + auto assign = in__.template read(); + auto rvalue = in__.template read(); + auto stan_print = in__.template read(); + auto model_base_crtp = in__.template read(); + auto index_uni = in__.template read(); + auto bernoulli_logit_glm_lpmf = in__.template read(); + auto reduce_sum = in__.template read(); + auto segment = in__.template read>(4); - local_scalar_t__ ode_bdf = in__.template read(); - local_scalar_t__ ode_bdf_tol = in__.template read(); + auto ode_bdf = in__.template read(); + auto ode_bdf_tol = in__.template read(); local_scalar_t__ mu = DUMMY_VAR__; current_statement__ = 38; mu = ((((((((stan::math::e() + stan::math::pi()) + stan::math::log2()) @@ -40062,48 +39971,46 @@ class shadowing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double e = in__.template read(); - double pi = in__.template read(); - double log2 = in__.template read(); - double log10 = in__.template read(); - double sqrt2 = in__.template read(); - double not_a_number = in__.template read(); - double positive_infinity = in__.template read(); - double negative_infinity = in__.template read(); - double machine_precision = in__.template read(); - double inv_logit = in__.template read(); - double logit = in__.template read(); - double num_elements = in__.template read(); - double pow = in__.template read(); - double add = in__.template read(); - double sub = in__.template read(); - double multiply = in__.template read(); - double lchoose = in__.template read(); - double binomial_coefficient_log = - in__.template read(); - double read_constrain_lb = + auto e = in__.template read(); + auto pi = in__.template read(); + auto log2 = in__.template read(); + auto log10 = in__.template read(); + auto sqrt2 = in__.template read(); + auto not_a_number = in__.template read(); + auto positive_infinity = in__.template read(); + auto negative_infinity = in__.template read(); + auto machine_precision = in__.template read(); + auto inv_logit = in__.template read(); + auto logit = in__.template read(); + auto num_elements = in__.template read(); + auto pow = in__.template read(); + auto add = in__.template read(); + auto sub = in__.template read(); + auto multiply = in__.template read(); + auto lchoose = in__.template read(); + auto binomial_coefficient_log = in__.template read(); + auto read_constrain_lb = in__.template read_constrain_lb(0, lp__); - double read = in__.template read(); - double validate_non_negative_index = + auto read = in__.template read(); + auto validate_non_negative_index = in__.template read(); - double length = in__.template read(); - Eigen::Matrix validate_positive_index = + auto length = in__.template read(); + auto validate_positive_index = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, 5); - double profile_map = in__.template read(); - double assign = in__.template read(); - double rvalue = in__.template read(); - double stan_print = in__.template read(); - double model_base_crtp = in__.template read(); - double index_uni = in__.template read(); - double bernoulli_logit_glm_lpmf = - in__.template read(); - double reduce_sum = in__.template read(); - Eigen::Matrix segment = + auto profile_map = in__.template read(); + auto assign = in__.template read(); + auto rvalue = in__.template read(); + auto stan_print = in__.template read(); + auto model_base_crtp = in__.template read(); + auto index_uni = in__.template read(); + auto bernoulli_logit_glm_lpmf = in__.template read(); + auto reduce_sum = in__.template read(); + auto segment = in__.template read>(4); - double ode_bdf = in__.template read(); - double ode_bdf_tol = in__.template read(); + auto ode_bdf = in__.template read(); + auto ode_bdf_tol = in__.template read(); double mu = std::numeric_limits::quiet_NaN(); std::vector> called = std::vector>(1, @@ -41462,7 +41369,7 @@ class tilde_block_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ x = + auto x = in__.template read_constrain_lb(0, lp__); { @@ -41521,7 +41428,7 @@ class tilde_block_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ x = + auto x = in__.template read_constrain_lb(0, lp__); { @@ -41591,7 +41498,7 @@ class tilde_block_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double x = + auto x = in__.template read_constrain_lb(0, lp__); out__.write(x); @@ -42175,7 +42082,7 @@ class transform_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector p_1 = + auto p_1 = in__.template read_constrain_lb, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1)), @@ -42184,7 +42091,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_1", p_1, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_2 = + auto p_2 = in__.template read_constrain_ub, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1)), @@ -42193,7 +42100,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_2", p_2, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_3 = + auto p_3 = in__.template read_constrain_lub, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1)), @@ -42207,7 +42114,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_3", p_3, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector p_4 = + auto p_4 = in__.template read_constrain_lub, jacobian__>(0, stan::model::rvalue(ds, "ds", stan::model::index_uni(1), @@ -42216,7 +42123,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_4", p_4, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector p_5 = + auto p_5 = in__.template read_constrain_lub, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1)), @@ -42225,7 +42132,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_5", p_5, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_6 = + auto p_6 = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(stan::model::rvalue(ds, "ds", @@ -42235,7 +42142,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_6", p_6, "offset", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_7 = + auto p_7 = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(0, stan::model::rvalue(ds, "ds", stan::model::index_uni(1), @@ -42244,7 +42151,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_7", p_7, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_8 = + auto p_8 = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(stan::model::rvalue(ds, "ds", @@ -42259,7 +42166,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_8", p_8, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector> p_9 = + auto p_9 = in__.template read_constrain_lub< std::vector>, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1)), @@ -42267,13 +42174,13 @@ class transform_model final : public model_base_crtp { current_statement__ = 9; stan::math::check_matching_dims("constraint", "p_9", p_9, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1))); - std::vector>> p_10 = + auto p_10 = in__.template read_constrain_lub< std::vector>>, jacobian__>(0, ds, lp__, n, m, k); current_statement__ = 10; stan::math::check_matching_dims("constraint", "p_10", p_10, "upper", ds); - Eigen::Matrix pv_1 = + auto pv_1 = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(stan::model::rvalue(dv, "dv", @@ -42288,7 +42195,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "pv_1", pv_1, "upper", stan::model::rvalue(dv, "dv", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector> pv_2 = + auto pv_2 = in__.template read_constrain_lb< std::vector>, jacobian__>(stan::model::rvalue(dv, "dv", stan::model::index_uni(1)), @@ -42296,13 +42203,13 @@ class transform_model final : public model_base_crtp { current_statement__ = 12; stan::math::check_matching_dims("constraint", "pv_2", pv_2, "lower", stan::model::rvalue(dv, "dv", stan::model::index_uni(1))); - std::vector>> pv_3 = + auto pv_3 = in__.template read_constrain_ub< std::vector>>, jacobian__>(dv, lp__, n, m, k); current_statement__ = 13; stan::math::check_matching_dims("constraint", "pv_3", pv_3, "upper", dv); - Eigen::Matrix pr_1 = + auto pr_1 = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(stan::model::rvalue(dr, "dr", @@ -42317,7 +42224,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "pr_1", pr_1, "upper", stan::model::rvalue(dr, "dr", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector> pr_2 = + auto pr_2 = in__.template read_constrain_lb< std::vector>, jacobian__>(stan::model::rvalue(dr, "dr", stan::model::index_uni(1)), @@ -42325,13 +42232,13 @@ class transform_model final : public model_base_crtp { current_statement__ = 15; stan::math::check_matching_dims("constraint", "pr_2", pr_2, "lower", stan::model::rvalue(dr, "dr", stan::model::index_uni(1))); - std::vector>> pr_3 = + auto pr_3 = in__.template read_constrain_ub< std::vector>>, jacobian__>(dr, lp__, n, m, k); current_statement__ = 16; stan::math::check_matching_dims("constraint", "pr_3", pr_3, "upper", dr); - Eigen::Matrix pm_1 = + auto pm_1 = in__.template read_constrain_lb< Eigen::Matrix, jacobian__>(stan::model::rvalue(dm, "dm", stan::model::index_uni(1)), @@ -42339,7 +42246,7 @@ class transform_model final : public model_base_crtp { current_statement__ = 17; stan::math::check_matching_dims("constraint", "pm_1", pm_1, "lower", stan::model::rvalue(dm, "dm", stan::model::index_uni(1))); - std::vector> pm_2 = + auto pm_2 = in__.template read_constrain_ub< std::vector>, jacobian__>(dm, lp__, n, m, k); @@ -42607,7 +42514,7 @@ class transform_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector p_1 = + auto p_1 = in__.template read_constrain_lb, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1)), @@ -42616,7 +42523,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_1", p_1, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_2 = + auto p_2 = in__.template read_constrain_ub, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1)), @@ -42625,7 +42532,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_2", p_2, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_3 = + auto p_3 = in__.template read_constrain_lub, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1)), @@ -42639,7 +42546,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_3", p_3, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector p_4 = + auto p_4 = in__.template read_constrain_lub, jacobian__>(0, stan::model::rvalue(ds, "ds", stan::model::index_uni(1), @@ -42648,7 +42555,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_4", p_4, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector p_5 = + auto p_5 = in__.template read_constrain_lub, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1)), @@ -42657,7 +42564,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_5", p_5, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_6 = + auto p_6 = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(stan::model::rvalue(ds, "ds", @@ -42667,7 +42574,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_6", p_6, "offset", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_7 = + auto p_7 = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(0, stan::model::rvalue(ds, "ds", stan::model::index_uni(1), @@ -42676,7 +42583,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_7", p_7, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_8 = + auto p_8 = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(stan::model::rvalue(ds, "ds", @@ -42691,7 +42598,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_8", p_8, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector> p_9 = + auto p_9 = in__.template read_constrain_lub< std::vector>, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1)), @@ -42699,13 +42606,13 @@ class transform_model final : public model_base_crtp { current_statement__ = 9; stan::math::check_matching_dims("constraint", "p_9", p_9, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1))); - std::vector>> p_10 = + auto p_10 = in__.template read_constrain_lub< std::vector>>, jacobian__>(0, ds, lp__, n, m, k); current_statement__ = 10; stan::math::check_matching_dims("constraint", "p_10", p_10, "upper", ds); - Eigen::Matrix pv_1 = + auto pv_1 = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(stan::model::rvalue(dv, "dv", @@ -42720,7 +42627,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "pv_1", pv_1, "upper", stan::model::rvalue(dv, "dv", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector> pv_2 = + auto pv_2 = in__.template read_constrain_lb< std::vector>, jacobian__>(stan::model::rvalue(dv, "dv", stan::model::index_uni(1)), @@ -42728,13 +42635,13 @@ class transform_model final : public model_base_crtp { current_statement__ = 12; stan::math::check_matching_dims("constraint", "pv_2", pv_2, "lower", stan::model::rvalue(dv, "dv", stan::model::index_uni(1))); - std::vector>> pv_3 = + auto pv_3 = in__.template read_constrain_ub< std::vector>>, jacobian__>(dv, lp__, n, m, k); current_statement__ = 13; stan::math::check_matching_dims("constraint", "pv_3", pv_3, "upper", dv); - Eigen::Matrix pr_1 = + auto pr_1 = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(stan::model::rvalue(dr, "dr", @@ -42749,7 +42656,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "pr_1", pr_1, "upper", stan::model::rvalue(dr, "dr", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector> pr_2 = + auto pr_2 = in__.template read_constrain_lb< std::vector>, jacobian__>(stan::model::rvalue(dr, "dr", stan::model::index_uni(1)), @@ -42757,13 +42664,13 @@ class transform_model final : public model_base_crtp { current_statement__ = 15; stan::math::check_matching_dims("constraint", "pr_2", pr_2, "lower", stan::model::rvalue(dr, "dr", stan::model::index_uni(1))); - std::vector>> pr_3 = + auto pr_3 = in__.template read_constrain_ub< std::vector>>, jacobian__>(dr, lp__, n, m, k); current_statement__ = 16; stan::math::check_matching_dims("constraint", "pr_3", pr_3, "upper", dr); - Eigen::Matrix pm_1 = + auto pm_1 = in__.template read_constrain_lb< Eigen::Matrix, jacobian__>(stan::model::rvalue(dm, "dm", stan::model::index_uni(1)), @@ -42771,7 +42678,7 @@ class transform_model final : public model_base_crtp { current_statement__ = 17; stan::math::check_matching_dims("constraint", "pm_1", pm_1, "lower", stan::model::rvalue(dm, "dm", stan::model::index_uni(1))); - std::vector> pm_2 = + auto pm_2 = in__.template read_constrain_ub< std::vector>, jacobian__>(dm, lp__, n, m, k); @@ -43050,7 +42957,7 @@ class transform_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector p_1 = + auto p_1 = in__.template read_constrain_lb, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1)), @@ -43059,7 +42966,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_1", p_1, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_2 = + auto p_2 = in__.template read_constrain_ub, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1)), @@ -43068,7 +42975,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_2", p_2, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_3 = + auto p_3 = in__.template read_constrain_lub, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1)), @@ -43082,7 +42989,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_3", p_3, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector p_4 = + auto p_4 = in__.template read_constrain_lub, jacobian__>(0, stan::model::rvalue(ds, "ds", stan::model::index_uni(1), @@ -43091,7 +42998,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_4", p_4, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector p_5 = + auto p_5 = in__.template read_constrain_lub, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1)), @@ -43100,7 +43007,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_5", p_5, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_6 = + auto p_6 = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(stan::model::rvalue(ds, "ds", @@ -43110,7 +43017,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_6", p_6, "offset", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_7 = + auto p_7 = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(0, stan::model::rvalue(ds, "ds", stan::model::index_uni(1), @@ -43119,7 +43026,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_7", p_7, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); - std::vector p_8 = + auto p_8 = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(stan::model::rvalue(ds, "ds", @@ -43134,7 +43041,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_8", p_8, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector> p_9 = + auto p_9 = in__.template read_constrain_lub< std::vector>, jacobian__>(stan::model::rvalue(ds, "ds", stan::model::index_uni(1)), @@ -43142,13 +43049,13 @@ class transform_model final : public model_base_crtp { current_statement__ = 9; stan::math::check_matching_dims("constraint", "p_9", p_9, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1))); - std::vector>> p_10 = + auto p_10 = in__.template read_constrain_lub< std::vector>>, jacobian__>(0, ds, lp__, n, m, k); current_statement__ = 10; stan::math::check_matching_dims("constraint", "p_10", p_10, "upper", ds); - Eigen::Matrix pv_1 = + auto pv_1 = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(stan::model::rvalue(dv, "dv", @@ -43163,7 +43070,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "pv_1", pv_1, "upper", stan::model::rvalue(dv, "dv", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector> pv_2 = + auto pv_2 = in__.template read_constrain_lb< std::vector>, jacobian__>(stan::model::rvalue(dv, "dv", stan::model::index_uni(1)), @@ -43171,13 +43078,13 @@ class transform_model final : public model_base_crtp { current_statement__ = 12; stan::math::check_matching_dims("constraint", "pv_2", pv_2, "lower", stan::model::rvalue(dv, "dv", stan::model::index_uni(1))); - std::vector>> pv_3 = + auto pv_3 = in__.template read_constrain_ub< std::vector>>, jacobian__>(dv, lp__, n, m, k); current_statement__ = 13; stan::math::check_matching_dims("constraint", "pv_3", pv_3, "upper", dv); - Eigen::Matrix pr_1 = + auto pr_1 = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(stan::model::rvalue(dr, "dr", @@ -43192,7 +43099,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "pr_1", pr_1, "upper", stan::model::rvalue(dr, "dr", stan::model::index_uni(1), stan::model::index_uni(2))); - std::vector> pr_2 = + auto pr_2 = in__.template read_constrain_lb< std::vector>, jacobian__>(stan::model::rvalue(dr, "dr", stan::model::index_uni(1)), @@ -43200,13 +43107,13 @@ class transform_model final : public model_base_crtp { current_statement__ = 15; stan::math::check_matching_dims("constraint", "pr_2", pr_2, "lower", stan::model::rvalue(dr, "dr", stan::model::index_uni(1))); - std::vector>> pr_3 = + auto pr_3 = in__.template read_constrain_ub< std::vector>>, jacobian__>(dr, lp__, n, m, k); current_statement__ = 16; stan::math::check_matching_dims("constraint", "pr_3", pr_3, "upper", dr); - Eigen::Matrix pm_1 = + auto pm_1 = in__.template read_constrain_lb< Eigen::Matrix, jacobian__>(stan::model::rvalue(dm, "dm", stan::model::index_uni(1)), @@ -43214,7 +43121,7 @@ class transform_model final : public model_base_crtp { current_statement__ = 17; stan::math::check_matching_dims("constraint", "pm_1", pm_1, "lower", stan::model::rvalue(dm, "dm", stan::model::index_uni(1))); - std::vector> pm_2 = + auto pm_2 = in__.template read_constrain_ub< std::vector>, jacobian__>(dm, lp__, n, m, k); @@ -44865,8 +44772,8 @@ class truncate_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ m = in__.template read(); - local_scalar_t__ y = + auto m = in__.template read(); + auto y = in__.template read_constrain_lb(0, lp__); { @@ -44981,8 +44888,8 @@ class truncate_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ m = in__.template read(); - local_scalar_t__ y = + auto m = in__.template read(); + auto y = in__.template read_constrain_lb(0, lp__); { @@ -45108,8 +45015,8 @@ class truncate_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double m = in__.template read(); - double y = + auto m = in__.template read(); + auto y = in__.template read_constrain_lb(0, lp__); out__.write(m); @@ -45416,7 +45323,7 @@ class udf_tilde_stmt_conflict_model final : public model_base_crtp(); + auto x = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(x, 0, 1)); @@ -45451,7 +45358,7 @@ class udf_tilde_stmt_conflict_model final : public model_base_crtp(); + auto x = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(x, 0, 1)); @@ -45497,7 +45404,7 @@ class udf_tilde_stmt_conflict_model final : public model_base_crtp(); + auto x = in__.template read(); out__.write(x); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -45793,7 +45700,7 @@ class user_constrain_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ x = + auto x = in__.template read_constrain_lb(0, lp__); { @@ -45830,7 +45737,7 @@ class user_constrain_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ x = + auto x = in__.template read_constrain_lb(0, lp__); { @@ -45878,7 +45785,7 @@ class user_constrain_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double x = + auto x = in__.template read_constrain_lb(0, lp__); out__.write(x); @@ -46169,8 +46076,8 @@ class variable_named_context_model final : public model_base_crtp(); - local_scalar_t__ sigma = + auto mu = in__.template read(); + auto sigma = in__.template read_constrain_lb(0, lp__); { @@ -46207,8 +46114,8 @@ class variable_named_context_model final : public model_base_crtp(); - local_scalar_t__ sigma = + auto mu = in__.template read(); + auto sigma = in__.template read_constrain_lb(0, lp__); { @@ -46256,8 +46163,8 @@ class variable_named_context_model final : public model_base_crtp(); - double sigma = + auto mu = in__.template read(); + auto sigma = in__.template read_constrain_lb(0, lp__); out__.write(mu); @@ -46664,13 +46571,13 @@ class vector_truncate_model final : public model_base_crtp(); - local_scalar_t__ sigma = + auto mu = in__.template read(); + auto sigma = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix vector_mu = + auto vector_mu = in__.template read>(N); - Eigen::Matrix vector_sigma = + auto vector_sigma = in__.template read>(N); { current_statement__ = 5; @@ -47173,13 +47080,13 @@ class vector_truncate_model final : public model_base_crtp(); - local_scalar_t__ sigma = + auto mu = in__.template read(); + auto sigma = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix vector_mu = + auto vector_mu = in__.template read>(N); - Eigen::Matrix vector_sigma = + auto vector_sigma = in__.template read>(N); { current_statement__ = 5; @@ -47693,13 +47600,13 @@ class vector_truncate_model final : public model_base_crtp(); - double sigma = + auto mu = in__.template read(); + auto sigma = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix vector_mu = + auto vector_mu = in__.template read>(N); - Eigen::Matrix vector_sigma = + auto vector_sigma = in__.template read>(N); out__.write(mu); out__.write(sigma); diff --git a/test/integration/good/code-gen/expressions/cpp.expected b/test/integration/good/code-gen/expressions/cpp.expected index 03dce0391..757c41ccd 100644 --- a/test/integration/good/code-gen/expressions/cpp.expected +++ b/test/integration/good/code-gen/expressions/cpp.expected @@ -106,11 +106,9 @@ class operators_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix v = - in__.template read>(N); - Eigen::Matrix rv = - in__.template read>(N); - Eigen::Matrix A = + auto v = in__.template read>(N); + auto rv = in__.template read>(N); + auto A = in__.template read>(N, N); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -142,11 +140,9 @@ class operators_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix v = - in__.template read>(N); - Eigen::Matrix rv = - in__.template read>(N); - Eigen::Matrix A = + auto v = in__.template read>(N); + auto rv = in__.template read>(N); + auto A = in__.template read>(N, N); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -189,11 +185,9 @@ class operators_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix v = - in__.template read>(N); - Eigen::Matrix rv = - in__.template read>(N); - Eigen::Matrix A = + auto v = in__.template read>(N); + auto rv = in__.template read>(N); + auto A = in__.template read>(N, N); out__.write(v); out__.write(rv); @@ -1159,13 +1153,10 @@ class ternary_if_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix a = - in__.template read>(2); - Eigen::Matrix b = - in__.template read>(2); - local_scalar_t__ r = in__.template read(); - std::complex zp = - in__.template read>(); + auto a = in__.template read>(2); + auto b = in__.template read>(2); + auto r = in__.template read(); + auto zp = in__.template read>(); Eigen::Matrix c = Eigen::Matrix::Constant(2, DUMMY_VAR__); current_statement__ = 5; @@ -1229,13 +1220,10 @@ class ternary_if_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix a = - in__.template read>(2); - Eigen::Matrix b = - in__.template read>(2); - local_scalar_t__ r = in__.template read(); - std::complex zp = - in__.template read>(); + auto a = in__.template read>(2); + auto b = in__.template read>(2); + auto r = in__.template read(); + auto zp = in__.template read>(); Eigen::Matrix c = Eigen::Matrix::Constant(2, DUMMY_VAR__); current_statement__ = 5; @@ -1310,13 +1298,10 @@ class ternary_if_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix a = - in__.template read>(2); - Eigen::Matrix b = - in__.template read>(2); - double r = in__.template read(); - std::complex zp = - in__.template read>(); + auto a = in__.template read>(2); + auto b = in__.template read>(2); + auto r = in__.template read(); + auto zp = in__.template read>(); Eigen::Matrix c = Eigen::Matrix::Constant(2, std::numeric_limits::quiet_NaN()); diff --git a/test/integration/good/code-gen/lir.expected b/test/integration/good/code-gen/lir.expected index 4631d1a74..58e77aa4c 100644 --- a/test/integration/good/code-gen/lir.expected +++ b/test/integration/good/code-gen/lir.expected @@ -6165,68 +6165,55 @@ (Expression (Cast Void (Var function__))) (TryCatch ((VariableDefn - ((static false) (constexpr false) (type_ (TypeLiteral local_scalar_t__)) - (name p_real) + ((static false) (constexpr false) (type_ Auto) (name p_real) (init (Assignment (MethodCall (Var in__) "template read" ((TypeLiteral local_scalar_t__)) ()))))) (VariableDefn - ((static false) (constexpr false) (type_ (TypeLiteral local_scalar_t__)) - (name p_upper) + ((static false) (constexpr false) (type_ Auto) (name p_upper) (init (Assignment (MethodCall (Var in__) "template read_constrain_lb" ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) ((Var p_real) (Var lp__))))))) (VariableDefn - ((static false) (constexpr false) (type_ (TypeLiteral local_scalar_t__)) - (name p_lower) + ((static false) (constexpr false) (type_ Auto) (name p_lower) (init (Assignment (MethodCall (Var in__) "template read_constrain_ub" ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) ((Var p_upper) (Var lp__))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name offset_multiplier) + ((static false) (constexpr false) (type_ Auto) (name offset_multiplier) (init (Assignment (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 1) (Literal 2) (Var lp__) (Literal 5))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name no_offset_multiplier) + ((static false) (constexpr false) (type_ Auto) (name no_offset_multiplier) (init (Assignment (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 0) (Literal 2) (Var lp__) (Literal 5))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name offset_no_multiplier) + ((static false) (constexpr false) (type_ Auto) (name offset_no_multiplier) (init (Assignment (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 3) (Literal 1) (Var lp__) (Literal 5))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) (name p_real_1d_ar) + ((static false) (constexpr false) (type_ Auto) (name p_real_1d_ar) (init (Assignment (MethodCall (Var in__) "template read_constrain_lb" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ - (StdVector (StdVector (StdVector (TypeLiteral local_scalar_t__))))) - (name p_real_3d_ar) + ((static false) (constexpr false) (type_ Auto) (name p_real_3d_ar) (init (Assignment (MethodCall (Var in__) "template read_constrain_lb" @@ -6234,9 +6221,7 @@ (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N) (Var M) (Var K))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - (name p_vec) + ((static false) (constexpr false) (type_ Auto) (name p_vec) (init (Assignment (MethodCall (Var in__) "template read_constrain_lb" @@ -6244,21 +6229,14 @@ (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) - (name p_1d_vec) + ((static false) (constexpr false) (type_ Auto) (name p_1d_vec) (init (Assignment (MethodCall (Var in__) "template read" ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) ((Var N) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ - (StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) - (name p_3d_vec) + ((static false) (constexpr false) (type_ Auto) (name p_3d_vec) (init (Assignment (MethodCall (Var in__) "template read" @@ -6267,30 +6245,21 @@ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) ((Var N) (Var M) (Var K) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) - (name p_row_vec) + ((static false) (constexpr false) (type_ Auto) (name p_row_vec) (init (Assignment (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) ((Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) - (name p_1d_row_vec) + ((static false) (constexpr false) (type_ Auto) (name p_1d_row_vec) (init (Assignment (MethodCall (Var in__) "template read" ((StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) ((Var N) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ - (StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))))) - (name p_3d_row_vec) + ((static false) (constexpr false) (type_ Auto) (name p_3d_row_vec) (init (Assignment (MethodCall (Var in__) "template read" @@ -6299,20 +6268,14 @@ (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))))) ((Var N) (Var M) (Var K) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - (name p_mat) + ((static false) (constexpr false) (type_ Auto) (name p_mat) (init (Assignment (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) ((Literal 5) (Literal 4))))))) (VariableDefn - ((static false) (constexpr false) - (type_ - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)))) - (name p_ar_mat) + ((static false) (constexpr false) (type_ Auto) (name p_ar_mat) (init (Assignment (MethodCall (Var in__) "template read_constrain_lub" @@ -6322,9 +6285,7 @@ ((Literal 0) (Literal 1) (Var lp__) (Literal 4) (Literal 5) (Literal 2) (Literal 3))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - (name p_simplex) + ((static false) (constexpr false) (type_ Auto) (name p_simplex) (init (Assignment (MethodCall (Var in__) "template read_constrain_simplex" @@ -6332,9 +6293,7 @@ (TemplateType jacobian__)) ((Var lp__) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) - (name p_1d_simplex) + ((static false) (constexpr false) (type_ Auto) (name p_1d_simplex) (init (Assignment (MethodCall (Var in__) "template read_constrain_simplex" @@ -6342,12 +6301,7 @@ (TemplateType jacobian__)) ((Var lp__) (Var N) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ - (StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) - (name p_3d_simplex) + ((static false) (constexpr false) (type_ Auto) (name p_3d_simplex) (init (Assignment (MethodCall (Var in__) "template read_constrain_simplex" @@ -6357,9 +6311,7 @@ (TemplateType jacobian__)) ((Var lp__) (Var N) (Var M) (Var K) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - (name p_cfcov_54) + ((static false) (constexpr false) (type_ Auto) (name p_cfcov_54) (init (Assignment (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" @@ -6367,9 +6319,7 @@ (TemplateType jacobian__)) ((Var lp__) (Literal 5) (Literal 4))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - (name p_cfcov_33) + ((static false) (constexpr false) (type_ Auto) (name p_cfcov_33) (init (Assignment (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" @@ -6377,9 +6327,7 @@ (TemplateType jacobian__)) ((Var lp__) (Literal 3) (Literal 3))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS))) - (name p_cfcov_33_ar) + ((static false) (constexpr false) (type_ Auto) (name p_cfcov_33_ar) (init (Assignment (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" @@ -6387,18 +6335,14 @@ (TemplateType jacobian__)) ((Var lp__) (Var K) (Literal 3) (Literal 3))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - (name x_p) + ((static false) (constexpr false) (type_ Auto) (name x_p) (init (Assignment (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) ((Literal 2))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - (name y_p) + ((static false) (constexpr false) (type_ Auto) (name y_p) (init (Assignment (MethodCall (Var in__) "template read" @@ -7154,68 +7098,55 @@ (Expression (Cast Void (Var function__))) (TryCatch ((VariableDefn - ((static false) (constexpr false) (type_ (TypeLiteral local_scalar_t__)) - (name p_real) + ((static false) (constexpr false) (type_ Auto) (name p_real) (init (Assignment (MethodCall (Var in__) "template read" ((TypeLiteral local_scalar_t__)) ()))))) (VariableDefn - ((static false) (constexpr false) (type_ (TypeLiteral local_scalar_t__)) - (name p_upper) + ((static false) (constexpr false) (type_ Auto) (name p_upper) (init (Assignment (MethodCall (Var in__) "template read_constrain_lb" ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) ((Var p_real) (Var lp__))))))) (VariableDefn - ((static false) (constexpr false) (type_ (TypeLiteral local_scalar_t__)) - (name p_lower) + ((static false) (constexpr false) (type_ Auto) (name p_lower) (init (Assignment (MethodCall (Var in__) "template read_constrain_ub" ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) ((Var p_upper) (Var lp__))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name offset_multiplier) + ((static false) (constexpr false) (type_ Auto) (name offset_multiplier) (init (Assignment (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 1) (Literal 2) (Var lp__) (Literal 5))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name no_offset_multiplier) + ((static false) (constexpr false) (type_ Auto) (name no_offset_multiplier) (init (Assignment (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 0) (Literal 2) (Var lp__) (Literal 5))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) - (name offset_no_multiplier) + ((static false) (constexpr false) (type_ Auto) (name offset_no_multiplier) (init (Assignment (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 3) (Literal 1) (Var lp__) (Literal 5))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (TypeLiteral local_scalar_t__))) (name p_real_1d_ar) + ((static false) (constexpr false) (type_ Auto) (name p_real_1d_ar) (init (Assignment (MethodCall (Var in__) "template read_constrain_lb" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ - (StdVector (StdVector (StdVector (TypeLiteral local_scalar_t__))))) - (name p_real_3d_ar) + ((static false) (constexpr false) (type_ Auto) (name p_real_3d_ar) (init (Assignment (MethodCall (Var in__) "template read_constrain_lb" @@ -7223,9 +7154,7 @@ (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N) (Var M) (Var K))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - (name p_vec) + ((static false) (constexpr false) (type_ Auto) (name p_vec) (init (Assignment (MethodCall (Var in__) "template read_constrain_lb" @@ -7233,21 +7162,14 @@ (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) - (name p_1d_vec) + ((static false) (constexpr false) (type_ Auto) (name p_1d_vec) (init (Assignment (MethodCall (Var in__) "template read" ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) ((Var N) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ - (StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) - (name p_3d_vec) + ((static false) (constexpr false) (type_ Auto) (name p_3d_vec) (init (Assignment (MethodCall (Var in__) "template read" @@ -7256,30 +7178,21 @@ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) ((Var N) (Var M) (Var K) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) - (name p_row_vec) + ((static false) (constexpr false) (type_ Auto) (name p_row_vec) (init (Assignment (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) ((Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) - (name p_1d_row_vec) + ((static false) (constexpr false) (type_ Auto) (name p_1d_row_vec) (init (Assignment (MethodCall (Var in__) "template read" ((StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) ((Var N) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ - (StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))))) - (name p_3d_row_vec) + ((static false) (constexpr false) (type_ Auto) (name p_3d_row_vec) (init (Assignment (MethodCall (Var in__) "template read" @@ -7288,20 +7201,14 @@ (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))))) ((Var N) (Var M) (Var K) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - (name p_mat) + ((static false) (constexpr false) (type_ Auto) (name p_mat) (init (Assignment (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) ((Literal 5) (Literal 4))))))) (VariableDefn - ((static false) (constexpr false) - (type_ - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)))) - (name p_ar_mat) + ((static false) (constexpr false) (type_ Auto) (name p_ar_mat) (init (Assignment (MethodCall (Var in__) "template read_constrain_lub" @@ -7311,9 +7218,7 @@ ((Literal 0) (Literal 1) (Var lp__) (Literal 4) (Literal 5) (Literal 2) (Literal 3))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - (name p_simplex) + ((static false) (constexpr false) (type_ Auto) (name p_simplex) (init (Assignment (MethodCall (Var in__) "template read_constrain_simplex" @@ -7321,9 +7226,7 @@ (TemplateType jacobian__)) ((Var lp__) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) - (name p_1d_simplex) + ((static false) (constexpr false) (type_ Auto) (name p_1d_simplex) (init (Assignment (MethodCall (Var in__) "template read_constrain_simplex" @@ -7331,12 +7234,7 @@ (TemplateType jacobian__)) ((Var lp__) (Var N) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ - (StdVector - (StdVector - (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) - (name p_3d_simplex) + ((static false) (constexpr false) (type_ Auto) (name p_3d_simplex) (init (Assignment (MethodCall (Var in__) "template read_constrain_simplex" @@ -7346,9 +7244,7 @@ (TemplateType jacobian__)) ((Var lp__) (Var N) (Var M) (Var K) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - (name p_cfcov_54) + ((static false) (constexpr false) (type_ Auto) (name p_cfcov_54) (init (Assignment (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" @@ -7356,9 +7252,7 @@ (TemplateType jacobian__)) ((Var lp__) (Literal 5) (Literal 4))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) - (name p_cfcov_33) + ((static false) (constexpr false) (type_ Auto) (name p_cfcov_33) (init (Assignment (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" @@ -7366,9 +7260,7 @@ (TemplateType jacobian__)) ((Var lp__) (Literal 3) (Literal 3))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS))) - (name p_cfcov_33_ar) + ((static false) (constexpr false) (type_ Auto) (name p_cfcov_33_ar) (init (Assignment (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" @@ -7376,18 +7268,14 @@ (TemplateType jacobian__)) ((Var lp__) (Var K) (Literal 3) (Literal 3))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - (name x_p) + ((static false) (constexpr false) (type_ Auto) (name x_p) (init (Assignment (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) ((Literal 2))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) - (name y_p) + ((static false) (constexpr false) (type_ Auto) (name y_p) (init (Assignment (MethodCall (Var in__) "template read" @@ -8157,60 +8045,55 @@ (Expression (Cast Void (Var function__))) (TryCatch ((VariableDefn - ((static false) (constexpr false) (type_ Double) (name p_real) + ((static false) (constexpr false) (type_ Auto) (name p_real) (init (Assignment (MethodCall (Var in__) "template read" ((TypeLiteral local_scalar_t__)) ()))))) (VariableDefn - ((static false) (constexpr false) (type_ Double) (name p_upper) + ((static false) (constexpr false) (type_ Auto) (name p_upper) (init (Assignment (MethodCall (Var in__) "template read_constrain_lb" ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) ((Var p_real) (Var lp__))))))) (VariableDefn - ((static false) (constexpr false) (type_ Double) (name p_lower) + ((static false) (constexpr false) (type_ Auto) (name p_lower) (init (Assignment (MethodCall (Var in__) "template read_constrain_ub" ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) ((Var p_upper) (Var lp__))))))) (VariableDefn - ((static false) (constexpr false) (type_ (StdVector Double)) - (name offset_multiplier) + ((static false) (constexpr false) (type_ Auto) (name offset_multiplier) (init (Assignment (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 1) (Literal 2) (Var lp__) (Literal 5))))))) (VariableDefn - ((static false) (constexpr false) (type_ (StdVector Double)) - (name no_offset_multiplier) + ((static false) (constexpr false) (type_ Auto) (name no_offset_multiplier) (init (Assignment (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 0) (Literal 2) (Var lp__) (Literal 5))))))) (VariableDefn - ((static false) (constexpr false) (type_ (StdVector Double)) - (name offset_no_multiplier) + ((static false) (constexpr false) (type_ Auto) (name offset_no_multiplier) (init (Assignment (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 3) (Literal 1) (Var lp__) (Literal 5))))))) (VariableDefn - ((static false) (constexpr false) (type_ (StdVector Double)) - (name p_real_1d_ar) + ((static false) (constexpr false) (type_ Auto) (name p_real_1d_ar) (init (Assignment (MethodCall (Var in__) "template read_constrain_lb" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (StdVector (StdVector Double)))) (name p_real_3d_ar) + ((static false) (constexpr false) (type_ Auto) (name p_real_3d_ar) (init (Assignment (MethodCall (Var in__) "template read_constrain_lb" @@ -8218,8 +8101,7 @@ (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N) (Var M) (Var K))))))) (VariableDefn - ((static false) (constexpr false) (type_ (Matrix Double -1 1 AoS)) - (name p_vec) + ((static false) (constexpr false) (type_ Auto) (name p_vec) (init (Assignment (MethodCall (Var in__) "template read_constrain_lb" @@ -8227,17 +8109,14 @@ (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (Matrix Double -1 1 AoS))) (name p_1d_vec) + ((static false) (constexpr false) (type_ Auto) (name p_1d_vec) (init (Assignment (MethodCall (Var in__) "template read" ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) ((Var N) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (StdVector (StdVector (Matrix Double -1 1 AoS))))) - (name p_3d_vec) + ((static false) (constexpr false) (type_ Auto) (name p_3d_vec) (init (Assignment (MethodCall (Var in__) "template read" @@ -8246,25 +8125,21 @@ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) ((Var N) (Var M) (Var K) (Var N))))))) (VariableDefn - ((static false) (constexpr false) (type_ (Matrix Double 1 -1 AoS)) - (name p_row_vec) + ((static false) (constexpr false) (type_ Auto) (name p_row_vec) (init (Assignment (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) ((Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (Matrix Double 1 -1 AoS))) (name p_1d_row_vec) + ((static false) (constexpr false) (type_ Auto) (name p_1d_row_vec) (init (Assignment (MethodCall (Var in__) "template read" ((StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) ((Var N) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (StdVector (StdVector (Matrix Double 1 -1 AoS))))) - (name p_3d_row_vec) + ((static false) (constexpr false) (type_ Auto) (name p_3d_row_vec) (init (Assignment (MethodCall (Var in__) "template read" @@ -8273,17 +8148,14 @@ (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))))) ((Var N) (Var M) (Var K) (Var N))))))) (VariableDefn - ((static false) (constexpr false) (type_ (Matrix Double -1 -1 AoS)) - (name p_mat) + ((static false) (constexpr false) (type_ Auto) (name p_mat) (init (Assignment (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) ((Literal 5) (Literal 4))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (StdVector (Matrix Double -1 -1 AoS)))) - (name p_ar_mat) + ((static false) (constexpr false) (type_ Auto) (name p_ar_mat) (init (Assignment (MethodCall (Var in__) "template read_constrain_lub" @@ -8293,8 +8165,7 @@ ((Literal 0) (Literal 1) (Var lp__) (Literal 4) (Literal 5) (Literal 2) (Literal 3))))))) (VariableDefn - ((static false) (constexpr false) (type_ (Matrix Double -1 1 AoS)) - (name p_simplex) + ((static false) (constexpr false) (type_ Auto) (name p_simplex) (init (Assignment (MethodCall (Var in__) "template read_constrain_simplex" @@ -8302,8 +8173,7 @@ (TemplateType jacobian__)) ((Var lp__) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (Matrix Double -1 1 AoS))) (name p_1d_simplex) + ((static false) (constexpr false) (type_ Auto) (name p_1d_simplex) (init (Assignment (MethodCall (Var in__) "template read_constrain_simplex" @@ -8311,9 +8181,7 @@ (TemplateType jacobian__)) ((Var lp__) (Var N) (Var N))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (StdVector (StdVector (Matrix Double -1 1 AoS))))) - (name p_3d_simplex) + ((static false) (constexpr false) (type_ Auto) (name p_3d_simplex) (init (Assignment (MethodCall (Var in__) "template read_constrain_simplex" @@ -8323,8 +8191,7 @@ (TemplateType jacobian__)) ((Var lp__) (Var N) (Var M) (Var K) (Var N))))))) (VariableDefn - ((static false) (constexpr false) (type_ (Matrix Double -1 -1 AoS)) - (name p_cfcov_54) + ((static false) (constexpr false) (type_ Auto) (name p_cfcov_54) (init (Assignment (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" @@ -8332,8 +8199,7 @@ (TemplateType jacobian__)) ((Var lp__) (Literal 5) (Literal 4))))))) (VariableDefn - ((static false) (constexpr false) (type_ (Matrix Double -1 -1 AoS)) - (name p_cfcov_33) + ((static false) (constexpr false) (type_ Auto) (name p_cfcov_33) (init (Assignment (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" @@ -8341,8 +8207,7 @@ (TemplateType jacobian__)) ((Var lp__) (Literal 3) (Literal 3))))))) (VariableDefn - ((static false) (constexpr false) - (type_ (StdVector (Matrix Double -1 -1 AoS))) (name p_cfcov_33_ar) + ((static false) (constexpr false) (type_ Auto) (name p_cfcov_33_ar) (init (Assignment (MethodCall (Var in__) "template read_constrain_cholesky_factor_cov" @@ -8350,16 +8215,14 @@ (TemplateType jacobian__)) ((Var lp__) (Var K) (Literal 3) (Literal 3))))))) (VariableDefn - ((static false) (constexpr false) (type_ (Matrix Double -1 1 AoS)) - (name x_p) + ((static false) (constexpr false) (type_ Auto) (name x_p) (init (Assignment (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) ((Literal 2))))))) (VariableDefn - ((static false) (constexpr false) (type_ (Matrix Double -1 1 AoS)) - (name y_p) + ((static false) (constexpr false) (type_ Auto) (name y_p) (init (Assignment (MethodCall (Var in__) "template read" diff --git a/test/integration/good/code-gen/ode/cpp.expected b/test/integration/good/code-gen/ode/cpp.expected index 9554a00bb..f30f5893d 100644 --- a/test/integration/good/code-gen/ode/cpp.expected +++ b/test/integration/good/code-gen/ode/cpp.expected @@ -326,12 +326,10 @@ class ode_adjoint_test_model_model final : public model_base_crtp(); - Eigen::Matrix y0 = - in__.template read>(N); - local_scalar_t__ t0 = in__.template read(); - std::vector times = - in__.template read>(N); + auto y = in__.template read(); + auto y0 = in__.template read>(N); + auto t0 = in__.template read(); + auto times = in__.template read>(N); std::vector> z = std::vector>(M, Eigen::Matrix::Constant(N, DUMMY_VAR__)); @@ -390,12 +388,10 @@ class ode_adjoint_test_model_model final : public model_base_crtp(); - Eigen::Matrix y0 = - in__.template read>(N); - local_scalar_t__ t0 = in__.template read(); - std::vector times = - in__.template read>(N); + auto y = in__.template read(); + auto y0 = in__.template read>(N); + auto t0 = in__.template read(); + auto times = in__.template read>(N); std::vector> z = std::vector>(M, Eigen::Matrix::Constant(N, DUMMY_VAR__)); @@ -465,12 +461,10 @@ class ode_adjoint_test_model_model final : public model_base_crtp(); - Eigen::Matrix y0 = - in__.template read>(N); - double t0 = in__.template read(); - std::vector times = - in__.template read>(N); + auto y = in__.template read(); + auto y0 = in__.template read>(N); + auto t0 = in__.template read(); + auto times = in__.template read>(N); std::vector> z = std::vector>(M, Eigen::Matrix::Constant(N, @@ -1208,16 +1202,16 @@ class overloaded_ode_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ beta = + auto beta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi = + auto xi = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ delta = + auto delta = in__.template read_constrain_lb(0, lp__); std::vector> y = @@ -1336,16 +1330,16 @@ class overloaded_ode_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ beta = + auto beta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi = + auto xi = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ delta = + auto delta = in__.template read_constrain_lb(0, lp__); std::vector> y = @@ -1475,16 +1469,16 @@ class overloaded_ode_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double beta = + auto beta = in__.template read_constrain_lb(0, lp__); - double gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - double xi = + auto xi = in__.template read_constrain_lb(0, lp__); - double delta = + auto delta = in__.template read_constrain_lb(0, lp__); std::vector> y = diff --git a/test/integration/good/code-gen/opencl/cpp.expected b/test/integration/good/code-gen/opencl/cpp.expected index 5e0cef2e5..846615b93 100644 --- a/test/integration/good/code-gen/opencl/cpp.expected +++ b/test/integration/good/code-gen/opencl/cpp.expected @@ -903,17 +903,17 @@ class distributions_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ p_real = in__.template read(); - std::vector p_real_array = + auto p_real = in__.template read(); + auto p_real_array = in__.template read>(d_int); - Eigen::Matrix p_matrix = + auto p_matrix = in__.template read>(d_int, d_int); - Eigen::Matrix p_vector = + auto p_vector = in__.template read>(d_int); - Eigen::Matrix p_row_vector = + auto p_row_vector = in__.template read>(d_int); - local_scalar_t__ y_p = in__.template read(); + auto y_p = in__.template read(); local_scalar_t__ transformed_param_real = DUMMY_VAR__; current_statement__ = 8; transformed_param_real = stan::math::bernoulli_logit_lpmf(d_int, @@ -3944,17 +3944,17 @@ class distributions_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ p_real = in__.template read(); - std::vector p_real_array = + auto p_real = in__.template read(); + auto p_real_array = in__.template read>(d_int); - Eigen::Matrix p_matrix = + auto p_matrix = in__.template read>(d_int, d_int); - Eigen::Matrix p_vector = + auto p_vector = in__.template read>(d_int); - Eigen::Matrix p_row_vector = + auto p_row_vector = in__.template read>(d_int); - local_scalar_t__ y_p = in__.template read(); + auto y_p = in__.template read(); local_scalar_t__ transformed_param_real = DUMMY_VAR__; current_statement__ = 8; transformed_param_real = stan::math::bernoulli_logit_lpmf(d_int, @@ -6996,17 +6996,17 @@ class distributions_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double p_real = in__.template read(); - std::vector p_real_array = + auto p_real = in__.template read(); + auto p_real_array = in__.template read>(d_int); - Eigen::Matrix p_matrix = + auto p_matrix = in__.template read>(d_int, d_int); - Eigen::Matrix p_vector = + auto p_vector = in__.template read>(d_int); - Eigen::Matrix p_row_vector = + auto p_row_vector = in__.template read>(d_int); - double y_p = in__.template read(); + auto y_p = in__.template read(); double transformed_param_real = std::numeric_limits::quiet_NaN(); out__.write(p_real); @@ -10537,17 +10537,17 @@ class restricted_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ p_real = in__.template read(); - std::vector p_real_array = + auto p_real = in__.template read(); + auto p_real_array = in__.template read>(d_int); - Eigen::Matrix p_matrix = + auto p_matrix = in__.template read>(d_int, d_int); - Eigen::Matrix p_vector = + auto p_vector = in__.template read>(d_int); - Eigen::Matrix p_row_vector = + auto p_row_vector = in__.template read>(d_int); - local_scalar_t__ y_p = in__.template read(); + auto y_p = in__.template read(); local_scalar_t__ transformed_param_real = DUMMY_VAR__; current_statement__ = 8; transformed_param_real = stan::math::bernoulli_lpmf(d_int_array, @@ -10631,17 +10631,17 @@ class restricted_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ p_real = in__.template read(); - std::vector p_real_array = + auto p_real = in__.template read(); + auto p_real_array = in__.template read>(d_int); - Eigen::Matrix p_matrix = + auto p_matrix = in__.template read>(d_int, d_int); - Eigen::Matrix p_vector = + auto p_vector = in__.template read>(d_int); - Eigen::Matrix p_row_vector = + auto p_row_vector = in__.template read>(d_int); - local_scalar_t__ y_p = in__.template read(); + auto y_p = in__.template read(); local_scalar_t__ transformed_param_real = DUMMY_VAR__; current_statement__ = 8; transformed_param_real = stan::math::bernoulli_lpmf(d_int_array, @@ -10736,17 +10736,17 @@ class restricted_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double p_real = in__.template read(); - std::vector p_real_array = + auto p_real = in__.template read(); + auto p_real_array = in__.template read>(d_int); - Eigen::Matrix p_matrix = + auto p_matrix = in__.template read>(d_int, d_int); - Eigen::Matrix p_vector = + auto p_vector = in__.template read>(d_int); - Eigen::Matrix p_row_vector = + auto p_row_vector = in__.template read>(d_int); - double y_p = in__.template read(); + auto y_p = in__.template read(); double transformed_param_real = std::numeric_limits::quiet_NaN(); out__.write(p_real); diff --git a/test/integration/good/code-gen/profiling/cpp.expected b/test/integration/good/code-gen/profiling/cpp.expected index cd1573a8c..313f39cc4 100644 --- a/test/integration/good/code-gen/profiling/cpp.expected +++ b/test/integration/good/code-gen/profiling/cpp.expected @@ -129,13 +129,13 @@ class simple_function_model final : public model_base_crtp(0, lp__); - local_scalar_t__ alpha = + auto alpha = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lb(0, lp__); { @@ -226,13 +226,13 @@ class simple_function_model final : public model_base_crtp(0, lp__); - local_scalar_t__ alpha = + auto alpha = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lb(0, lp__); { @@ -334,13 +334,13 @@ class simple_function_model final : public model_base_crtp(0, lp__); - double alpha = + auto alpha = in__.template read_constrain_lb(0, lp__); - double sigma = + auto sigma = in__.template read_constrain_lb(0, lp__); out__.write(rho); diff --git a/test/integration/good/compiler-optimizations/cpp.expected b/test/integration/good/compiler-optimizations/cpp.expected index dc1f7d415..45607e0a0 100644 --- a/test/integration/good/compiler-optimizations/cpp.expected +++ b/test/integration/good/compiler-optimizations/cpp.expected @@ -93,7 +93,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp lcm_sym20__; Eigen::Matrix lcm_sym19__; Eigen::Matrix lcm_sym18__; - Eigen::Matrix X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1; current_statement__ = 2; @@ -170,7 +170,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp lcm_sym14__; Eigen::Matrix lcm_sym13__; Eigen::Matrix lcm_sym12__; - stan::math::var_value> X_p = + auto X_p = in__.template read>(10, 10); stan::math::var_value> X_tp1; current_statement__ = 2; @@ -260,7 +260,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp lcm_sym6__; int lcm_sym5__; int lcm_sym4__; - Eigen::Matrix X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, @@ -1559,16 +1559,16 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); - local_scalar_t__ gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi = + auto xi = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ delta = + auto delta = in__.template read_constrain_lb(0, lp__); std::vector> y = @@ -1678,16 +1678,16 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); - local_scalar_t__ gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi = + auto xi = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ delta = + auto delta = in__.template read_constrain_lb(0, lp__); std::vector> y = @@ -1806,16 +1806,16 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); - double gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - double xi = + auto xi = in__.template read_constrain_lb(0, lp__); - double delta = + auto delta = in__.template read_constrain_lb(0, lp__); std::vector> y = @@ -2235,7 +2235,7 @@ class ad_levels_deep_model final : public model_base_crtp try { Eigen::Matrix lcm_sym11__; Eigen::Matrix lcm_sym10__; - Eigen::Matrix X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); @@ -2280,7 +2280,7 @@ class ad_levels_deep_model final : public model_base_crtp try { Eigen::Matrix lcm_sym9__; Eigen::Matrix lcm_sym8__; - stan::math::var_value> X_p = + auto X_p = in__.template read>(10, 10); stan::math::var_value> X_tp1 = stan::math::var_value>(Eigen::Matrix::Constant(10, @@ -2341,7 +2341,7 @@ class ad_levels_deep_model final : public model_base_crtp Eigen::Matrix lcm_sym6__; int lcm_sym5__; int lcm_sym4__; - Eigen::Matrix X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, @@ -3319,7 +3319,7 @@ class copy_prop_profile_model final : public model_base_crtp lcm_sym9__; - Eigen::Matrix X = + auto X = in__.template read>(N, N); { current_statement__ = 2; @@ -3388,7 +3388,7 @@ class copy_prop_profile_model final : public model_base_crtp lcm_sym7__; - Eigen::Matrix X = + auto X = in__.template read>(N, N); { current_statement__ = 2; @@ -3468,7 +3468,7 @@ class copy_prop_profile_model final : public model_base_crtp X = + auto X = in__.template read>(N, N); out__.write(X); if (stan::math::logical_negation( @@ -4277,10 +4277,10 @@ class copy_fail_model final : public model_base_crtp { int lcm_sym118__; int lcm_sym117__; int lcm_sym116__; - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -4709,10 +4709,10 @@ class copy_fail_model final : public model_base_crtp { int lcm_sym75__; int lcm_sym74__; int lcm_sym73__; - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -5135,10 +5135,10 @@ class copy_fail_model final : public model_base_crtp { int lcm_sym48__; int lcm_sym47__; int lcm_sym46__; - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -5988,40 +5988,39 @@ class dce_fail_model final : public model_base_crtp { int lcm_sym42__; int lcm_sym41__; int lcm_sym40__; - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age = + auto sigma_age = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_edu = + auto sigma_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_state = + auto sigma_state = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_region = + auto sigma_region = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age_edu = + auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ b_0 = in__.template read(); - local_scalar_t__ b_female = in__.template read(); - local_scalar_t__ b_black = in__.template read(); - local_scalar_t__ b_female_black = - in__.template read(); - local_scalar_t__ b_v_prev = in__.template read(); - Eigen::Matrix b_age = + auto b_0 = in__.template read(); + auto b_female = in__.template read(); + auto b_black = in__.template read(); + auto b_female_black = in__.template read(); + auto b_v_prev = in__.template read(); + auto b_age = in__.template read>(n_age); - Eigen::Matrix b_edu = + auto b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region = + auto b_region = in__.template read>(n_region); - Eigen::Matrix b_age_edu = + auto b_age_edu = in__.template read>(n_age, n_edu); - Eigen::Matrix b_hat = + auto b_hat = in__.template read>(n_state); { current_statement__ = 17; @@ -6247,40 +6246,39 @@ class dce_fail_model final : public model_base_crtp { int lcm_sym20__; int lcm_sym19__; int lcm_sym18__; - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age = + auto sigma_age = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_edu = + auto sigma_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_state = + auto sigma_state = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_region = + auto sigma_region = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age_edu = + auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ b_0 = in__.template read(); - local_scalar_t__ b_female = in__.template read(); - local_scalar_t__ b_black = in__.template read(); - local_scalar_t__ b_female_black = - in__.template read(); - local_scalar_t__ b_v_prev = in__.template read(); - Eigen::Matrix b_age = + auto b_0 = in__.template read(); + auto b_female = in__.template read(); + auto b_black = in__.template read(); + auto b_female_black = in__.template read(); + auto b_v_prev = in__.template read(); + auto b_age = in__.template read>(n_age); - Eigen::Matrix b_edu = + auto b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region = + auto b_region = in__.template read>(n_region); - Eigen::Matrix b_age_edu = + auto b_age_edu = in__.template read>(n_age, n_edu); - Eigen::Matrix b_hat = + auto b_hat = in__.template read>(n_state); { current_statement__ = 17; @@ -6497,39 +6495,39 @@ class dce_fail_model final : public model_base_crtp { try { int lcm_sym17__; int lcm_sym16__; - double sigma = + auto sigma = in__.template read_constrain_lb(0, lp__); - double sigma_age = + auto sigma_age = in__.template read_constrain_lb(0, lp__); - double sigma_edu = + auto sigma_edu = in__.template read_constrain_lb(0, lp__); - double sigma_state = + auto sigma_state = in__.template read_constrain_lb(0, lp__); - double sigma_region = + auto sigma_region = in__.template read_constrain_lb(0, lp__); - double sigma_age_edu = + auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); - double b_0 = in__.template read(); - double b_female = in__.template read(); - double b_black = in__.template read(); - double b_female_black = in__.template read(); - double b_v_prev = in__.template read(); - Eigen::Matrix b_age = + auto b_0 = in__.template read(); + auto b_female = in__.template read(); + auto b_black = in__.template read(); + auto b_female_black = in__.template read(); + auto b_v_prev = in__.template read(); + auto b_age = in__.template read>(n_age); - Eigen::Matrix b_edu = + auto b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region = + auto b_region = in__.template read>(n_region); - Eigen::Matrix b_age_edu = + auto b_age_edu = in__.template read>(n_age, n_edu); - Eigen::Matrix b_hat = + auto b_hat = in__.template read>(n_state); out__.write(sigma); out__.write(sigma_age); @@ -7905,13 +7903,13 @@ class expr_prop_fail_model final : public model_base_crtp double lcm_sym14__; double lcm_sym13__; int lcm_sym12__; - Eigen::Matrix mu = + auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); - std::vector sigma = + auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); - local_scalar_t__ theta = + auto theta = in__.template read_constrain_lub(0, 1, lp__); { @@ -7995,13 +7993,13 @@ class expr_prop_fail_model final : public model_base_crtp double lcm_sym8__; double lcm_sym7__; int lcm_sym6__; - Eigen::Matrix mu = + auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); - std::vector sigma = + auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); - local_scalar_t__ theta = + auto theta = in__.template read_constrain_lub(0, 1, lp__); { @@ -8092,13 +8090,13 @@ class expr_prop_fail_model final : public model_base_crtp try { int lcm_sym5__; int lcm_sym4__; - Eigen::Matrix mu = + auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); - std::vector sigma = + auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); - double theta = + auto theta = in__.template read_constrain_lub(0, 1, lp__); out__.write(mu); @@ -8471,10 +8469,9 @@ class expr_prop_fail2_model final : public model_base_crtp(); - std::vector theta = - in__.template read>(J); - local_scalar_t__ tau = + auto mu = in__.template read(); + auto theta = in__.template read>(J); + auto tau = in__.template read_constrain_lb(0, lp__); { @@ -8515,10 +8512,9 @@ class expr_prop_fail2_model final : public model_base_crtp(); - std::vector theta = - in__.template read>(J); - local_scalar_t__ tau = + auto mu = in__.template read(); + auto theta = in__.template read>(J); + auto tau = in__.template read_constrain_lb(0, lp__); { @@ -8570,10 +8566,9 @@ class expr_prop_fail2_model final : public model_base_crtp(); - std::vector theta = - in__.template read>(J); - double tau = + auto mu = in__.template read(); + auto theta = in__.template read>(J); + auto tau = in__.template read_constrain_lb(0, lp__); out__.write(mu); @@ -9107,32 +9102,31 @@ class expr_prop_fail3_model final : public model_base_crtp a = + auto a = in__.template read>(n_age); - Eigen::Matrix b = + auto b = in__.template read>(n_edu); - Eigen::Matrix c = + auto c = in__.template read>(n_age_edu); - Eigen::Matrix d = + auto d = in__.template read>(n_state); - Eigen::Matrix e = + auto e = in__.template read< Eigen::Matrix>(n_region_full); - Eigen::Matrix beta = - in__.template read>(5); - local_scalar_t__ sigma_a = + auto beta = in__.template read>(5); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_b = + auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_c = + auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_d = + auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_e = + auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -9289,32 +9283,31 @@ class expr_prop_fail3_model final : public model_base_crtp a = + auto a = in__.template read>(n_age); - Eigen::Matrix b = + auto b = in__.template read>(n_edu); - Eigen::Matrix c = + auto c = in__.template read>(n_age_edu); - Eigen::Matrix d = + auto d = in__.template read>(n_state); - Eigen::Matrix e = + auto e = in__.template read< Eigen::Matrix>(n_region_full); - Eigen::Matrix beta = - in__.template read>(5); - local_scalar_t__ sigma_a = + auto beta = in__.template read>(5); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_b = + auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_c = + auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_d = + auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_e = + auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -9477,32 +9470,31 @@ class expr_prop_fail3_model final : public model_base_crtp a = + auto a = in__.template read>(n_age); - Eigen::Matrix b = + auto b = in__.template read>(n_edu); - Eigen::Matrix c = + auto c = in__.template read>(n_age_edu); - Eigen::Matrix d = + auto d = in__.template read>(n_state); - Eigen::Matrix e = + auto e = in__.template read< Eigen::Matrix>(n_region_full); - Eigen::Matrix beta = - in__.template read>(5); - double sigma_a = + auto beta = in__.template read>(5); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - double sigma_b = + auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); - double sigma_c = + auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); - double sigma_d = + auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); - double sigma_e = + auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -10359,10 +10351,10 @@ class expr_prop_fail4_model final : public model_base_crtp lcm_sym25__; double lcm_sym24__; int lcm_sym23__; - local_scalar_t__ tau_phi = + auto tau_phi = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix phi_std_raw = + auto phi_std_raw = in__.template read>((N - 1)); local_scalar_t__ sigma_phi = DUMMY_VAR__; lcm_sym28__ = stan::math::inv_sqrt(tau_phi); @@ -10428,10 +10420,10 @@ class expr_prop_fail4_model final : public model_base_crtp lcm_sym19__; double lcm_sym18__; int lcm_sym17__; - local_scalar_t__ tau_phi = + auto tau_phi = in__.template read_constrain_lb(0, lp__); - stan::math::var_value> phi_std_raw = + auto phi_std_raw = in__.template read>((N - 1)); local_scalar_t__ sigma_phi = DUMMY_VAR__; lcm_sym22__ = stan::math::inv_sqrt(tau_phi); @@ -10515,10 +10507,10 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); - Eigen::Matrix phi_std_raw = + auto phi_std_raw = in__.template read>((N - 1)); double sigma_phi = std::numeric_limits::quiet_NaN(); Eigen::Matrix phi = @@ -11494,15 +11486,15 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(nind); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -11922,15 +11914,15 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(nind); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -12344,15 +12336,15 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(nind); - double sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -14192,21 +14184,21 @@ class expr_prop_fail6_model final : public model_base_crtp lcm_sym261__; - local_scalar_t__ mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ psi = + auto psi = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(M); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -15112,21 +15104,21 @@ class expr_prop_fail6_model final : public model_base_crtp lcm_sym185__; - local_scalar_t__ mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ psi = + auto psi = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(M); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -16027,21 +16019,21 @@ class expr_prop_fail6_model final : public model_base_crtp lcm_sym128__; - double mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - double psi = + auto psi = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(M); - double sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -17241,10 +17233,10 @@ class expr_prop_fail7_model final : public model_base_crtp pi = + auto pi = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, K); - std::vector>> theta = + auto theta = in__.template read_constrain_simplex< std::vector>>, jacobian__>(lp__, J, K, K); @@ -17420,10 +17412,10 @@ class expr_prop_fail7_model final : public model_base_crtp> pi = + auto pi = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, K); - std::vector>> theta = + auto theta = in__.template read_constrain_simplex< std::vector>>, jacobian__>(lp__, J, K, K); @@ -17621,10 +17613,10 @@ class expr_prop_fail7_model final : public model_base_crtp pi = + auto pi = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, K); - std::vector>> theta = + auto theta = in__.template read_constrain_simplex< std::vector>>, jacobian__>(lp__, J, K, K); @@ -18330,17 +18322,17 @@ class expr_prop_fail8_model final : public model_base_crtp lcm_sym14__; - local_scalar_t__ beta0 = in__.template read(); - local_scalar_t__ beta1 = in__.template read(); - local_scalar_t__ tau_theta = + auto beta0 = in__.template read(); + auto beta1 = in__.template read(); + auto tau_theta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ tau_phi = + auto tau_phi = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_std = + auto theta_std = in__.template read>(N); - Eigen::Matrix phi_std_raw = + auto phi_std_raw = in__.template read>(N); local_scalar_t__ sigma_phi = DUMMY_VAR__; lcm_sym16__ = stan::math::inv_sqrt(tau_phi); @@ -18396,17 +18388,17 @@ class expr_prop_fail8_model final : public model_base_crtp lcm_sym11__; - local_scalar_t__ beta0 = in__.template read(); - local_scalar_t__ beta1 = in__.template read(); - local_scalar_t__ tau_theta = + auto beta0 = in__.template read(); + auto beta1 = in__.template read(); + auto tau_theta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ tau_phi = + auto tau_phi = in__.template read_constrain_lb(0, lp__); - stan::math::var_value> theta_std = + auto theta_std = in__.template read>(N); - stan::math::var_value> phi_std_raw = + auto phi_std_raw = in__.template read>(N); local_scalar_t__ sigma_phi = DUMMY_VAR__; lcm_sym13__ = stan::math::inv_sqrt(tau_phi); @@ -18476,17 +18468,17 @@ class expr_prop_fail8_model final : public model_base_crtp lcm_sym9__; int lcm_sym8__; int lcm_sym7__; - double beta0 = in__.template read(); - double beta1 = in__.template read(); - double tau_theta = + auto beta0 = in__.template read(); + auto beta1 = in__.template read(); + auto tau_theta = in__.template read_constrain_lb(0, lp__); - double tau_phi = + auto tau_phi = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_std = + auto theta_std = in__.template read>(N); - Eigen::Matrix phi_std_raw = + auto phi_std_raw = in__.template read>(N); double sigma_phi = std::numeric_limits::quiet_NaN(); Eigen::Matrix phi = @@ -19418,10 +19410,10 @@ class fails_test_model final : public model_base_crtp { int lcm_sym118__; int lcm_sym117__; int lcm_sym116__; - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -19850,10 +19842,10 @@ class fails_test_model final : public model_base_crtp { int lcm_sym75__; int lcm_sym74__; int lcm_sym73__; - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -20276,10 +20268,10 @@ class fails_test_model final : public model_base_crtp { int lcm_sym48__; int lcm_sym47__; int lcm_sym46__; - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -22235,9 +22227,8 @@ class initialize_SoA_model final : public model_base_crtp double lcm_sym19__; double lcm_sym18__; double lcm_sym17__; - Eigen::Matrix y = - in__.template read>(3); - std::vector> arr_vec = + auto y = in__.template read>(3); + auto arr_vec = in__.template read< std::vector>>(3, 4); Eigen::Matrix x = @@ -22302,10 +22293,8 @@ class initialize_SoA_model final : public model_base_crtp double lcm_sym15__; double lcm_sym14__; double lcm_sym13__; - stan::math::var_value> y = - in__.template read>(3); - std::vector>> - arr_vec = + auto y = in__.template read>(3); + auto arr_vec = in__.template read< std::vector>>(3, 4); stan::math::var_value> x = @@ -22386,9 +22375,8 @@ class initialize_SoA_model final : public model_base_crtp double lcm_sym8__; int lcm_sym7__; int lcm_sym6__; - Eigen::Matrix y = - in__.template read>(3); - std::vector> arr_vec = + auto y = in__.template read>(3); + auto arr_vec = in__.template read< std::vector>>(3, 4); Eigen::Matrix x = @@ -22971,9 +22959,9 @@ class inline_functions_varmat_model final : public model_base_crtp p_single_ret_vec = + auto p_single_ret_vec = in__.template read>(5); - Eigen::Matrix p_multi_ret_vec = + auto p_multi_ret_vec = in__.template read>(5); Eigen::Matrix tp_single_ret_vec = Eigen::Matrix::Constant(5, DUMMY_VAR__); @@ -23039,9 +23027,9 @@ class inline_functions_varmat_model final : public model_base_crtp> p_single_ret_vec = + auto p_single_ret_vec = in__.template read>(5); - stan::math::var_value> p_multi_ret_vec = + auto p_multi_ret_vec = in__.template read>(5); stan::math::var_value> tp_single_ret_vec = stan::math::var_value>(Eigen::Matrix::Constant(5, @@ -23126,9 +23114,9 @@ class inline_functions_varmat_model final : public model_base_crtp p_single_ret_vec = + auto p_single_ret_vec = in__.template read>(5); - Eigen::Matrix p_multi_ret_vec = + auto p_multi_ret_vec = in__.template read>(5); Eigen::Matrix tp_single_ret_vec = Eigen::Matrix::Constant(5, @@ -23636,7 +23624,7 @@ class inline_tdata_model final : public model_base_crtp { (void) function__; try { double lcm_sym5__; - local_scalar_t__ alpha = in__.template read(); + auto alpha = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf( @@ -23673,7 +23661,7 @@ class inline_tdata_model final : public model_base_crtp { (void) function__; try { double lcm_sym4__; - local_scalar_t__ alpha = in__.template read(); + auto alpha = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf( @@ -23722,7 +23710,7 @@ class inline_tdata_model final : public model_base_crtp { try { int lcm_sym3__; int lcm_sym2__; - double alpha = in__.template read(); + auto alpha = in__.template read(); out__.write(alpha); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -25678,20 +25666,20 @@ class inlining_fail2_model final : public model_base_crtp int lcm_sym278__; int lcm_sym277__; int lcm_sym276__; - local_scalar_t__ mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma = + auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>((n_occasions - 1)); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -26568,20 +26556,20 @@ class inlining_fail2_model final : public model_base_crtp int lcm_sym209__; int lcm_sym208__; int lcm_sym207__; - local_scalar_t__ mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma = + auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>((n_occasions - 1)); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -27464,20 +27452,20 @@ class inlining_fail2_model final : public model_base_crtp int lcm_sym144__; int lcm_sym143__; Eigen::Matrix lcm_sym142__; - double mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma = + auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>((n_occasions - 1)); - double sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -28887,7 +28875,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + auto x = in__.template read(); { local_scalar_t__ y = DUMMY_VAR__; lcm_sym8__ = stan::math::log(x); @@ -28935,7 +28923,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + auto x = in__.template read(); { local_scalar_t__ y = DUMMY_VAR__; lcm_sym5__ = stan::math::log(x); @@ -28993,7 +28981,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + auto x = in__.template read(); out__.write(x); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -29279,8 +29267,7 @@ class lcm_fails_model final : public model_base_crtp { (void) function__; try { double lcm_sym4__; - std::vector theta = - in__.template read>(J); + auto theta = in__.template read>(J); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(y, theta, 1)); @@ -29316,8 +29303,7 @@ class lcm_fails_model final : public model_base_crtp { (void) function__; try { double lcm_sym3__; - std::vector theta = - in__.template read>(J); + auto theta = in__.template read>(J); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(y, theta, 1)); @@ -29365,8 +29351,7 @@ class lcm_fails_model final : public model_base_crtp { try { int lcm_sym2__; int lcm_sym1__; - std::vector theta = - in__.template read>(J); + auto theta = in__.template read>(J); out__.write(theta); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -30096,10 +30081,10 @@ class lcm_fails2_model final : public model_base_crtp { int lcm_sym106__; int lcm_sym105__; int lcm_sym104__; - local_scalar_t__ mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); Eigen::Matrix phi = @@ -30505,10 +30490,10 @@ class lcm_fails2_model final : public model_base_crtp { int lcm_sym67__; int lcm_sym66__; int lcm_sym65__; - local_scalar_t__ mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); Eigen::Matrix phi = @@ -30908,10 +30893,10 @@ class lcm_fails2_model final : public model_base_crtp { int lcm_sym44__; int lcm_sym43__; int lcm_sym42__; - double mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); Eigen::Matrix phi = @@ -31593,7 +31578,7 @@ class lupdf_inlining_model final : public model_base_crtp local_scalar_t__ lcm_sym43__; local_scalar_t__ lcm_sym42__; local_scalar_t__ lcm_sym41__; - local_scalar_t__ mu = in__.template read(); + auto mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; double inline_foo_lpdf_return_sym23__; { @@ -31648,7 +31633,7 @@ class lupdf_inlining_model final : public model_base_crtp local_scalar_t__ lcm_sym40__; local_scalar_t__ lcm_sym39__; local_scalar_t__ lcm_sym38__; - local_scalar_t__ mu = in__.template read(); + auto mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; double inline_foo_lpdf_return_sym16__; { @@ -31716,7 +31701,7 @@ class lupdf_inlining_model final : public model_base_crtp double lcm_sym35__; int lcm_sym34__; int lcm_sym33__; - double mu = in__.template read(); + auto mu = in__.template read(); double tp = std::numeric_limits::quiet_NaN(); out__.write(mu); if (stan::math::logical_negation( @@ -32193,10 +32178,10 @@ class off_dce_model final : public model_base_crtp { double lcm_sym33__; double lcm_sym32__; int lcm_sym31__; - local_scalar_t__ alpha_occ = in__.template read(); - local_scalar_t__ beta_occ = in__.template read(); - local_scalar_t__ alpha_p = in__.template read(); - local_scalar_t__ beta_p = in__.template read(); + auto alpha_occ = in__.template read(); + auto beta_occ = in__.template read(); + auto alpha_p = in__.template read(); + auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); Eigen::Matrix logit_p = @@ -32310,10 +32295,10 @@ class off_dce_model final : public model_base_crtp { double lcm_sym22__; double lcm_sym21__; int lcm_sym20__; - local_scalar_t__ alpha_occ = in__.template read(); - local_scalar_t__ beta_occ = in__.template read(); - local_scalar_t__ alpha_p = in__.template read(); - local_scalar_t__ beta_p = in__.template read(); + auto alpha_occ = in__.template read(); + auto beta_occ = in__.template read(); + auto alpha_p = in__.template read(); + auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); Eigen::Matrix logit_p = @@ -32446,10 +32431,10 @@ class off_dce_model final : public model_base_crtp { int lcm_sym3__; double lcm_sym2__; double lcm_sym1__; - double alpha_occ = in__.template read(); - double beta_occ = in__.template read(); - double alpha_p = in__.template read(); - double beta_p = in__.template read(); + auto alpha_occ = in__.template read(); + auto beta_occ = in__.template read(); + auto alpha_p = in__.template read(); + auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, std::numeric_limits::quiet_NaN()); @@ -33054,20 +33039,18 @@ class off_small_model final : public model_base_crtp { double lcm_sym27__; Eigen::Matrix lcm_sym26__; int lcm_sym25__; - local_scalar_t__ beta = in__.template read(); - Eigen::Matrix eta1 = - in__.template read>(J); - Eigen::Matrix eta2 = - in__.template read>(J); - local_scalar_t__ mu_a1 = in__.template read(); - local_scalar_t__ mu_a2 = in__.template read(); - local_scalar_t__ sigma_a1 = + auto beta = in__.template read(); + auto eta1 = in__.template read>(J); + auto eta2 = in__.template read>(J); + auto mu_a1 = in__.template read(); + auto mu_a2 = in__.template read(); + auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_a2 = + auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix a1 = @@ -33178,20 +33161,18 @@ class off_small_model final : public model_base_crtp { double lcm_sym16__; Eigen::Matrix lcm_sym15__; int lcm_sym14__; - local_scalar_t__ beta = in__.template read(); - Eigen::Matrix eta1 = - in__.template read>(J); - Eigen::Matrix eta2 = - in__.template read>(J); - local_scalar_t__ mu_a1 = in__.template read(); - local_scalar_t__ mu_a2 = in__.template read(); - local_scalar_t__ sigma_a1 = + auto beta = in__.template read(); + auto eta1 = in__.template read>(J); + auto eta2 = in__.template read>(J); + auto mu_a1 = in__.template read(); + auto mu_a2 = in__.template read(); + auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_a2 = + auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix a1 = @@ -33309,20 +33290,18 @@ class off_small_model final : public model_base_crtp { int lcm_sym9__; int lcm_sym8__; int lcm_sym7__; - double beta = in__.template read(); - Eigen::Matrix eta1 = - in__.template read>(J); - Eigen::Matrix eta2 = - in__.template read>(J); - double mu_a1 = in__.template read(); - double mu_a2 = in__.template read(); - double sigma_a1 = + auto beta = in__.template read(); + auto eta1 = in__.template read>(J); + auto eta2 = in__.template read>(J); + auto mu_a1 = in__.template read(); + auto mu_a2 = in__.template read(); + auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - double sigma_a2 = + auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - double sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix a1 = @@ -34056,13 +34035,13 @@ class optimizations_model final : public model_base_crtp { int lcm_sym94__; int lcm_sym93__; int lcm_sym92__; - local_scalar_t__ theta = in__.template read(); - local_scalar_t__ phi = in__.template read(); - Eigen::Matrix x_matrix = + auto theta = in__.template read(); + auto phi = in__.template read(); + auto x_matrix = in__.template read>(3, 2); - Eigen::Matrix x_vector = + auto x_vector = in__.template read>(2); - Eigen::Matrix x_cov = + auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); { @@ -34577,13 +34556,13 @@ class optimizations_model final : public model_base_crtp { int lcm_sym70__; int lcm_sym69__; int lcm_sym68__; - local_scalar_t__ theta = in__.template read(); - local_scalar_t__ phi = in__.template read(); - stan::math::var_value> x_matrix = + auto theta = in__.template read(); + auto phi = in__.template read(); + auto x_matrix = in__.template read>(3, 2); - stan::math::var_value> x_vector = + auto x_vector = in__.template read>(2); - stan::math::var_value> x_cov = + auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); { @@ -35087,13 +35066,13 @@ class optimizations_model final : public model_base_crtp { try { int lcm_sym67__; int lcm_sym66__; - double theta = in__.template read(); - double phi = in__.template read(); - Eigen::Matrix x_matrix = + auto theta = in__.template read(); + auto phi = in__.template read(); + auto x_matrix = in__.template read>(3, 2); - Eigen::Matrix x_vector = + auto x_vector = in__.template read>(2); - Eigen::Matrix x_cov = + auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); out__.write(theta); @@ -36827,15 +36806,14 @@ class partial_eval_model final : public model_base_crtp { double lcm_sym24__; double lcm_sym23__; int lcm_sym22__; - Eigen::Matrix a = + auto a = in__.template read>(n_pair); - Eigen::Matrix beta = - in__.template read>(2); - local_scalar_t__ mu_a = in__.template read(); - local_scalar_t__ sigma_a = + auto beta = in__.template read>(2); + auto mu_a = in__.template read(); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -36937,15 +36915,14 @@ class partial_eval_model final : public model_base_crtp { double lcm_sym14__; double lcm_sym13__; int lcm_sym12__; - Eigen::Matrix a = + auto a = in__.template read>(n_pair); - Eigen::Matrix beta = - in__.template read>(2); - local_scalar_t__ mu_a = in__.template read(); - local_scalar_t__ sigma_a = + auto beta = in__.template read>(2); + auto mu_a = in__.template read(); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -37053,15 +37030,14 @@ class partial_eval_model final : public model_base_crtp { int lcm_sym9__; int lcm_sym8__; int lcm_sym7__; - Eigen::Matrix a = + auto a = in__.template read>(n_pair); - Eigen::Matrix beta = - in__.template read>(2); - double mu_a = in__.template read(); - double sigma_a = + auto beta = in__.template read>(2); + auto mu_a = in__.template read(); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - double sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -37548,9 +37524,9 @@ class partial_eval_multiply_model final : public model_base_crtp lcm_sym13__; Eigen::Matrix lcm_sym12__; double lcm_sym11__; - Eigen::Matrix m2 = + auto m2 = in__.template read>(10, 10); - Eigen::Matrix m3 = + auto m3 = in__.template read>(10, 10); { Eigen::Matrix m5 = @@ -37608,9 +37584,9 @@ class partial_eval_multiply_model final : public model_base_crtp lcm_sym10__; Eigen::Matrix lcm_sym9__; double lcm_sym8__; - stan::math::var_value> m2 = + auto m2 = in__.template read>(10, 10); - stan::math::var_value> m3 = + auto m3 = in__.template read>(10, 10); { stan::math::var_value> m5 = @@ -37678,9 +37654,9 @@ class partial_eval_multiply_model final : public model_base_crtp m2 = + auto m2 = in__.template read>(10, 10); - Eigen::Matrix m3 = + auto m3 = in__.template read>(10, 10); out__.write(m2); out__.write(m3); @@ -39663,14 +39639,14 @@ class stalled1_failure_model final : public model_base_crtp(); - local_scalar_t__ alpha1 = in__.template read(); - local_scalar_t__ alpha2 = in__.template read(); - local_scalar_t__ alpha12 = in__.template read(); - local_scalar_t__ tau = + auto alpha0 = in__.template read(); + auto alpha1 = in__.template read(); + auto alpha2 = in__.template read(); + auto alpha12 = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - std::vector> b = + auto b = in__.template read< std::vector>>(I, 8); local_scalar_t__ sigma = DUMMY_VAR__; @@ -39780,14 +39756,14 @@ class stalled1_failure_model final : public model_base_crtp(); - local_scalar_t__ alpha1 = in__.template read(); - local_scalar_t__ alpha2 = in__.template read(); - local_scalar_t__ alpha12 = in__.template read(); - local_scalar_t__ tau = + auto alpha0 = in__.template read(); + auto alpha1 = in__.template read(); + auto alpha2 = in__.template read(); + auto alpha12 = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - std::vector>> b = + auto b = in__.template read< std::vector>>(I, 8); local_scalar_t__ sigma = DUMMY_VAR__; @@ -39905,14 +39881,14 @@ class stalled1_failure_model final : public model_base_crtp(); - double alpha1 = in__.template read(); - double alpha2 = in__.template read(); - double alpha12 = in__.template read(); - double tau = + auto alpha0 = in__.template read(); + auto alpha1 = in__.template read(); + auto alpha2 = in__.template read(); + auto alpha12 = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - std::vector> b = + auto b = in__.template read< std::vector>>(I, 8); double sigma = std::numeric_limits::quiet_NaN(); @@ -40536,7 +40512,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + auto param = in__.template read(); std::vector> local = std::vector>(2, Eigen::Matrix::Constant(5, @@ -40658,7 +40634,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + auto param = in__.template read(); std::vector>> local = std::vector>(2, Eigen::Matrix::Constant(5, @@ -40796,7 +40772,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + auto param = in__.template read(); std::vector> local = std::vector>(2, Eigen::Matrix::Constant(5, @@ -41222,7 +41198,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + auto y = in__.template read(); double no_init = std::numeric_limits::quiet_NaN(); local_scalar_t__ init_from_param; current_statement__ = 3; @@ -41311,7 +41287,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + auto y = in__.template read(); double no_init = std::numeric_limits::quiet_NaN(); local_scalar_t__ init_from_param; current_statement__ = 3; @@ -41413,7 +41389,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + auto y = in__.template read(); double no_init = std::numeric_limits::quiet_NaN(); double init_from_param = std::numeric_limits::quiet_NaN(); double dependent_no_init = std::numeric_limits::quiet_NaN(); diff --git a/test/integration/good/compiler-optimizations/cppO0.expected b/test/integration/good/compiler-optimizations/cppO0.expected index 4bdcef164..4a135a3f2 100644 --- a/test/integration/good/compiler-optimizations/cppO0.expected +++ b/test/integration/good/compiler-optimizations/cppO0.expected @@ -87,7 +87,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); @@ -155,7 +155,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); @@ -234,7 +234,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, @@ -921,16 +921,16 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); - local_scalar_t__ gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi = + auto xi = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ delta = + auto delta = in__.template read_constrain_lb(0, lp__); std::vector> y = @@ -1017,16 +1017,16 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); - local_scalar_t__ gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi = + auto xi = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ delta = + auto delta = in__.template read_constrain_lb(0, lp__); std::vector> y = @@ -1124,16 +1124,16 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); - double gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - double xi = + auto xi = in__.template read_constrain_lb(0, lp__); - double delta = + auto delta = in__.template read_constrain_lb(0, lp__); std::vector> y = @@ -1511,7 +1511,7 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); @@ -1555,7 +1555,7 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); @@ -1610,7 +1610,7 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, @@ -1992,7 +1992,7 @@ class copy_prop_profile_model final : public model_base_crtp X = + auto X = in__.template read>(N, N); { current_statement__ = 2; @@ -2063,7 +2063,7 @@ class copy_prop_profile_model final : public model_base_crtp X = + auto X = in__.template read>(N, N); { current_statement__ = 2; @@ -2145,7 +2145,7 @@ class copy_prop_profile_model final : public model_base_crtp X = + auto X = in__.template read>(N, N); out__.write(X); if (stan::math::logical_negation( @@ -2771,10 +2771,10 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -2898,10 +2898,10 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -3036,10 +3036,10 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -3658,40 +3658,39 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age = + auto sigma_age = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_edu = + auto sigma_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_state = + auto sigma_state = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_region = + auto sigma_region = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age_edu = + auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ b_0 = in__.template read(); - local_scalar_t__ b_female = in__.template read(); - local_scalar_t__ b_black = in__.template read(); - local_scalar_t__ b_female_black = - in__.template read(); - local_scalar_t__ b_v_prev = in__.template read(); - Eigen::Matrix b_age = + auto b_0 = in__.template read(); + auto b_female = in__.template read(); + auto b_black = in__.template read(); + auto b_female_black = in__.template read(); + auto b_v_prev = in__.template read(); + auto b_age = in__.template read>(n_age); - Eigen::Matrix b_edu = + auto b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region = + auto b_region = in__.template read>(n_region); - Eigen::Matrix b_age_edu = + auto b_age_edu = in__.template read>(n_age, n_edu); - Eigen::Matrix b_hat = + auto b_hat = in__.template read>(n_state); { current_statement__ = 17; @@ -3816,40 +3815,39 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age = + auto sigma_age = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_edu = + auto sigma_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_state = + auto sigma_state = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_region = + auto sigma_region = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age_edu = + auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ b_0 = in__.template read(); - local_scalar_t__ b_female = in__.template read(); - local_scalar_t__ b_black = in__.template read(); - local_scalar_t__ b_female_black = - in__.template read(); - local_scalar_t__ b_v_prev = in__.template read(); - Eigen::Matrix b_age = + auto b_0 = in__.template read(); + auto b_female = in__.template read(); + auto b_black = in__.template read(); + auto b_female_black = in__.template read(); + auto b_v_prev = in__.template read(); + auto b_age = in__.template read>(n_age); - Eigen::Matrix b_edu = + auto b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region = + auto b_region = in__.template read>(n_region); - Eigen::Matrix b_age_edu = + auto b_age_edu = in__.template read>(n_age, n_edu); - Eigen::Matrix b_hat = + auto b_hat = in__.template read>(n_state); { current_statement__ = 17; @@ -3985,39 +3983,39 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double sigma = + auto sigma = in__.template read_constrain_lb(0, lp__); - double sigma_age = + auto sigma_age = in__.template read_constrain_lb(0, lp__); - double sigma_edu = + auto sigma_edu = in__.template read_constrain_lb(0, lp__); - double sigma_state = + auto sigma_state = in__.template read_constrain_lb(0, lp__); - double sigma_region = + auto sigma_region = in__.template read_constrain_lb(0, lp__); - double sigma_age_edu = + auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); - double b_0 = in__.template read(); - double b_female = in__.template read(); - double b_black = in__.template read(); - double b_female_black = in__.template read(); - double b_v_prev = in__.template read(); - Eigen::Matrix b_age = + auto b_0 = in__.template read(); + auto b_female = in__.template read(); + auto b_black = in__.template read(); + auto b_female_black = in__.template read(); + auto b_v_prev = in__.template read(); + auto b_age = in__.template read>(n_age); - Eigen::Matrix b_edu = + auto b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region = + auto b_region = in__.template read>(n_region); - Eigen::Matrix b_age_edu = + auto b_age_edu = in__.template read>(n_age, n_edu); - Eigen::Matrix b_hat = + auto b_hat = in__.template read>(n_state); out__.write(sigma); out__.write(sigma_age); @@ -5321,13 +5319,13 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix mu = + auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); - std::vector sigma = + auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); - local_scalar_t__ theta = + auto theta = in__.template read_constrain_lub(0, 1, lp__); { @@ -5387,13 +5385,13 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix mu = + auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); - std::vector sigma = + auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); - local_scalar_t__ theta = + auto theta = in__.template read_constrain_lub(0, 1, lp__); { @@ -5464,13 +5462,13 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix mu = + auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); - std::vector sigma = + auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); - double theta = + auto theta = in__.template read_constrain_lub(0, 1, lp__); out__.write(mu); @@ -5833,10 +5831,9 @@ class expr_prop_fail2_model final : public model_base_crtp(); - std::vector theta = - in__.template read>(J); - local_scalar_t__ tau = + auto mu = in__.template read(); + auto theta = in__.template read>(J); + auto tau = in__.template read_constrain_lb(0, lp__); { @@ -5875,10 +5872,9 @@ class expr_prop_fail2_model final : public model_base_crtp(); - std::vector theta = - in__.template read>(J); - local_scalar_t__ tau = + auto mu = in__.template read(); + auto theta = in__.template read>(J); + auto tau = in__.template read_constrain_lb(0, lp__); { @@ -5928,10 +5924,9 @@ class expr_prop_fail2_model final : public model_base_crtp(); - std::vector theta = - in__.template read>(J); - double tau = + auto mu = in__.template read(); + auto theta = in__.template read>(J); + auto tau = in__.template read_constrain_lb(0, lp__); out__.write(mu); @@ -6456,32 +6451,31 @@ class expr_prop_fail3_model final : public model_base_crtp a = + auto a = in__.template read>(n_age); - Eigen::Matrix b = + auto b = in__.template read>(n_edu); - Eigen::Matrix c = + auto c = in__.template read>(n_age_edu); - Eigen::Matrix d = + auto d = in__.template read>(n_state); - Eigen::Matrix e = + auto e = in__.template read< Eigen::Matrix>(n_region_full); - Eigen::Matrix beta = - in__.template read>(5); - local_scalar_t__ sigma_a = + auto beta = in__.template read>(5); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_b = + auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_c = + auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_d = + auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_e = + auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -6568,32 +6562,31 @@ class expr_prop_fail3_model final : public model_base_crtp a = + auto a = in__.template read>(n_age); - Eigen::Matrix b = + auto b = in__.template read>(n_edu); - Eigen::Matrix c = + auto c = in__.template read>(n_age_edu); - Eigen::Matrix d = + auto d = in__.template read>(n_state); - Eigen::Matrix e = + auto e = in__.template read< Eigen::Matrix>(n_region_full); - Eigen::Matrix beta = - in__.template read>(5); - local_scalar_t__ sigma_a = + auto beta = in__.template read>(5); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_b = + auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_c = + auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_d = + auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_e = + auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -6691,32 +6684,31 @@ class expr_prop_fail3_model final : public model_base_crtp a = + auto a = in__.template read>(n_age); - Eigen::Matrix b = + auto b = in__.template read>(n_edu); - Eigen::Matrix c = + auto c = in__.template read>(n_age_edu); - Eigen::Matrix d = + auto d = in__.template read>(n_state); - Eigen::Matrix e = + auto e = in__.template read< Eigen::Matrix>(n_region_full); - Eigen::Matrix beta = - in__.template read>(5); - double sigma_a = + auto beta = in__.template read>(5); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - double sigma_b = + auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); - double sigma_c = + auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); - double sigma_d = + auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); - double sigma_e = + auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -7440,10 +7432,10 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); - Eigen::Matrix phi_std_raw = + auto phi_std_raw = in__.template read< Eigen::Matrix>(phi_std_raw_1dim__); local_scalar_t__ sigma_phi = DUMMY_VAR__; @@ -7504,10 +7496,10 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); - Eigen::Matrix phi_std_raw = + auto phi_std_raw = in__.template read< Eigen::Matrix>(phi_std_raw_1dim__); local_scalar_t__ sigma_phi = DUMMY_VAR__; @@ -7579,10 +7571,10 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); - Eigen::Matrix phi_std_raw = + auto phi_std_raw = in__.template read< Eigen::Matrix>(phi_std_raw_1dim__); double sigma_phi = std::numeric_limits::quiet_NaN(); @@ -8371,15 +8363,15 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(nind); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -8506,15 +8498,15 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(nind); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -8652,15 +8644,15 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(nind); - double sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -9812,21 +9804,21 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ psi = + auto psi = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(M); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -9942,21 +9934,21 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ psi = + auto psi = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(M); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -10083,21 +10075,21 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - double psi = + auto psi = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(M); - double sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -10932,10 +10924,10 @@ class expr_prop_fail7_model final : public model_base_crtp pi = + auto pi = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, K); - std::vector>> theta = + auto theta = in__.template read_constrain_simplex< std::vector>>, jacobian__>(lp__, J, K, K); @@ -11013,10 +11005,10 @@ class expr_prop_fail7_model final : public model_base_crtp pi = + auto pi = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, K); - std::vector>> theta = + auto theta = in__.template read_constrain_simplex< std::vector>>, jacobian__>(lp__, J, K, K); @@ -11105,10 +11097,10 @@ class expr_prop_fail7_model final : public model_base_crtp pi = + auto pi = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, K); - std::vector>> theta = + auto theta = in__.template read_constrain_simplex< std::vector>>, jacobian__>(lp__, J, K, K); @@ -11616,17 +11608,17 @@ class expr_prop_fail8_model final : public model_base_crtp(); - local_scalar_t__ beta1 = in__.template read(); - local_scalar_t__ tau_theta = + auto beta0 = in__.template read(); + auto beta1 = in__.template read(); + auto tau_theta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ tau_phi = + auto tau_phi = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_std = + auto theta_std = in__.template read>(N); - Eigen::Matrix phi_std_raw = + auto phi_std_raw = in__.template read>(N); local_scalar_t__ sigma_phi = DUMMY_VAR__; current_statement__ = 7; @@ -11679,17 +11671,17 @@ class expr_prop_fail8_model final : public model_base_crtp(); - local_scalar_t__ beta1 = in__.template read(); - local_scalar_t__ tau_theta = + auto beta0 = in__.template read(); + auto beta1 = in__.template read(); + auto tau_theta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ tau_phi = + auto tau_phi = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_std = + auto theta_std = in__.template read>(N); - Eigen::Matrix phi_std_raw = + auto phi_std_raw = in__.template read>(N); local_scalar_t__ sigma_phi = DUMMY_VAR__; current_statement__ = 7; @@ -11753,17 +11745,17 @@ class expr_prop_fail8_model final : public model_base_crtp(); - double beta1 = in__.template read(); - double tau_theta = + auto beta0 = in__.template read(); + auto beta1 = in__.template read(); + auto tau_theta = in__.template read_constrain_lb(0, lp__); - double tau_phi = + auto tau_phi = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_std = + auto theta_std = in__.template read>(N); - Eigen::Matrix phi_std_raw = + auto phi_std_raw = in__.template read>(N); double sigma_phi = std::numeric_limits::quiet_NaN(); Eigen::Matrix phi = @@ -12516,10 +12508,10 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -12643,10 +12635,10 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -12781,10 +12773,10 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -14387,9 +14379,8 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix y = - in__.template read>(3); - std::vector> arr_vec = + auto y = in__.template read>(3); + auto arr_vec = in__.template read< std::vector>>(3, 4); Eigen::Matrix x = @@ -14439,9 +14430,8 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix y = - in__.template read>(3); - std::vector> arr_vec = + auto y = in__.template read>(3); + auto arr_vec = in__.template read< std::vector>>(3, 4); Eigen::Matrix x = @@ -14502,9 +14492,8 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix y = - in__.template read>(3); - std::vector> arr_vec = + auto y = in__.template read>(3); + auto arr_vec = in__.template read< std::vector>>(3, 4); Eigen::Matrix x = @@ -14952,9 +14941,9 @@ class inline_functions_varmat_model final : public model_base_crtp p_single_ret_vec = + auto p_single_ret_vec = in__.template read>(5); - Eigen::Matrix p_multi_ret_vec = + auto p_multi_ret_vec = in__.template read>(5); Eigen::Matrix tp_single_ret_vec = Eigen::Matrix::Constant(5, DUMMY_VAR__); @@ -14998,9 +14987,9 @@ class inline_functions_varmat_model final : public model_base_crtp p_single_ret_vec = + auto p_single_ret_vec = in__.template read>(5); - Eigen::Matrix p_multi_ret_vec = + auto p_multi_ret_vec = in__.template read>(5); Eigen::Matrix tp_single_ret_vec = Eigen::Matrix::Constant(5, DUMMY_VAR__); @@ -15055,9 +15044,9 @@ class inline_functions_varmat_model final : public model_base_crtp p_single_ret_vec = + auto p_single_ret_vec = in__.template read>(5); - Eigen::Matrix p_multi_ret_vec = + auto p_multi_ret_vec = in__.template read>(5); Eigen::Matrix tp_single_ret_vec = Eigen::Matrix::Constant(5, @@ -15487,7 +15476,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha = in__.template read(); + auto alpha = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf( @@ -15523,7 +15512,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha = in__.template read(); + auto alpha = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf( @@ -15570,7 +15559,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double alpha = in__.template read(); + auto alpha = in__.template read(); out__.write(alpha); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -16991,20 +16980,20 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma = + auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read< Eigen::Matrix>(epsilon_1dim__); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -17083,20 +17072,20 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma = + auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read< Eigen::Matrix>(epsilon_1dim__); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -17186,20 +17175,20 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma = + auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read< Eigen::Matrix>(epsilon_1dim__); - double sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -18213,7 +18202,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + auto x = in__.template read(); { local_scalar_t__ y = DUMMY_VAR__; current_statement__ = 2; @@ -18261,7 +18250,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + auto x = in__.template read(); { local_scalar_t__ y = DUMMY_VAR__; current_statement__ = 2; @@ -18320,7 +18309,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + auto x = in__.template read(); out__.write(x); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -18605,8 +18594,7 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector theta = - in__.template read>(J); + auto theta = in__.template read>(J); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(y, theta, 1)); @@ -18641,8 +18629,7 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector theta = - in__.template read>(J); + auto theta = in__.template read>(J); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(y, theta, 1)); @@ -18688,8 +18675,7 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector theta = - in__.template read>(J); + auto theta = in__.template read>(J); out__.write(theta); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -19263,10 +19249,10 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); Eigen::Matrix phi = @@ -19385,10 +19371,10 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); Eigen::Matrix phi = @@ -19518,10 +19504,10 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); Eigen::Matrix phi = @@ -20007,7 +19993,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mu = in__.template read(); + auto mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; current_statement__ = 2; tp = foo_lpdf(mu, 1.0, pstream__); @@ -20047,7 +20033,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mu = in__.template read(); + auto mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; current_statement__ = 2; tp = foo_lpdf(mu, 1.0, pstream__); @@ -20098,7 +20084,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double mu = in__.template read(); + auto mu = in__.template read(); double tp = std::numeric_limits::quiet_NaN(); out__.write(mu); if (stan::math::logical_negation( @@ -20537,10 +20523,10 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha_occ = in__.template read(); - local_scalar_t__ beta_occ = in__.template read(); - local_scalar_t__ alpha_p = in__.template read(); - local_scalar_t__ beta_p = in__.template read(); + auto alpha_occ = in__.template read(); + auto beta_occ = in__.template read(); + auto alpha_p = in__.template read(); + auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); Eigen::Matrix logit_p = @@ -20614,10 +20600,10 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha_occ = in__.template read(); - local_scalar_t__ beta_occ = in__.template read(); - local_scalar_t__ alpha_p = in__.template read(); - local_scalar_t__ beta_p = in__.template read(); + auto alpha_occ = in__.template read(); + auto beta_occ = in__.template read(); + auto alpha_p = in__.template read(); + auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); Eigen::Matrix logit_p = @@ -20702,10 +20688,10 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double alpha_occ = in__.template read(); - double beta_occ = in__.template read(); - double alpha_p = in__.template read(); - double beta_p = in__.template read(); + auto alpha_occ = in__.template read(); + auto beta_occ = in__.template read(); + auto alpha_p = in__.template read(); + auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, std::numeric_limits::quiet_NaN()); @@ -21260,20 +21246,18 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ beta = in__.template read(); - Eigen::Matrix eta1 = - in__.template read>(J); - Eigen::Matrix eta2 = - in__.template read>(J); - local_scalar_t__ mu_a1 = in__.template read(); - local_scalar_t__ mu_a2 = in__.template read(); - local_scalar_t__ sigma_a1 = + auto beta = in__.template read(); + auto eta1 = in__.template read>(J); + auto eta2 = in__.template read>(J); + auto mu_a1 = in__.template read(); + auto mu_a2 = in__.template read(); + auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_a2 = + auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix a1 = @@ -21352,20 +21336,18 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ beta = in__.template read(); - Eigen::Matrix eta1 = - in__.template read>(J); - Eigen::Matrix eta2 = - in__.template read>(J); - local_scalar_t__ mu_a1 = in__.template read(); - local_scalar_t__ mu_a2 = in__.template read(); - local_scalar_t__ sigma_a1 = + auto beta = in__.template read(); + auto eta1 = in__.template read>(J); + auto eta2 = in__.template read>(J); + auto mu_a1 = in__.template read(); + auto mu_a2 = in__.template read(); + auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_a2 = + auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix a1 = @@ -21455,20 +21437,18 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double beta = in__.template read(); - Eigen::Matrix eta1 = - in__.template read>(J); - Eigen::Matrix eta2 = - in__.template read>(J); - double mu_a1 = in__.template read(); - double mu_a2 = in__.template read(); - double sigma_a1 = + auto beta = in__.template read(); + auto eta1 = in__.template read>(J); + auto eta2 = in__.template read>(J); + auto mu_a1 = in__.template read(); + auto mu_a2 = in__.template read(); + auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - double sigma_a2 = + auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - double sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix a1 = @@ -22183,13 +22163,13 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ theta = in__.template read(); - local_scalar_t__ phi = in__.template read(); - Eigen::Matrix x_matrix = + auto theta = in__.template read(); + auto phi = in__.template read(); + auto x_matrix = in__.template read>(3, 2); - Eigen::Matrix x_vector = + auto x_vector = in__.template read>(2); - Eigen::Matrix x_cov = + auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); { @@ -22468,13 +22448,13 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ theta = in__.template read(); - local_scalar_t__ phi = in__.template read(); - Eigen::Matrix x_matrix = + auto theta = in__.template read(); + auto phi = in__.template read(); + auto x_matrix = in__.template read>(3, 2); - Eigen::Matrix x_vector = + auto x_vector = in__.template read>(2); - Eigen::Matrix x_cov = + auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); { @@ -22764,13 +22744,13 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double theta = in__.template read(); - double phi = in__.template read(); - Eigen::Matrix x_matrix = + auto theta = in__.template read(); + auto phi = in__.template read(); + auto x_matrix = in__.template read>(3, 2); - Eigen::Matrix x_vector = + auto x_vector = in__.template read>(2); - Eigen::Matrix x_cov = + auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); out__.write(theta); @@ -24408,15 +24388,14 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix a = + auto a = in__.template read>(n_pair); - Eigen::Matrix beta = - in__.template read>(2); - local_scalar_t__ mu_a = in__.template read(); - local_scalar_t__ sigma_a = + auto beta = in__.template read>(2); + auto mu_a = in__.template read(); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -24489,15 +24468,14 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix a = + auto a = in__.template read>(n_pair); - Eigen::Matrix beta = - in__.template read>(2); - local_scalar_t__ mu_a = in__.template read(); - local_scalar_t__ sigma_a = + auto beta = in__.template read>(2); + auto mu_a = in__.template read(); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -24581,15 +24559,14 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix a = + auto a = in__.template read>(n_pair); - Eigen::Matrix beta = - in__.template read>(2); - double mu_a = in__.template read(); - double sigma_a = + auto beta = in__.template read>(2); + auto mu_a = in__.template read(); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - double sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -25035,9 +25012,9 @@ class partial_eval_multiply_model final : public model_base_crtp m2 = + auto m2 = in__.template read>(10, 10); - Eigen::Matrix m3 = + auto m3 = in__.template read>(10, 10); { Eigen::Matrix m5 = @@ -25099,9 +25076,9 @@ class partial_eval_multiply_model final : public model_base_crtp m2 = + auto m2 = in__.template read>(10, 10); - Eigen::Matrix m3 = + auto m3 = in__.template read>(10, 10); { Eigen::Matrix m5 = @@ -25174,9 +25151,9 @@ class partial_eval_multiply_model final : public model_base_crtp m2 = + auto m2 = in__.template read>(10, 10); - Eigen::Matrix m3 = + auto m3 = in__.template read>(10, 10); out__.write(m2); out__.write(m3); @@ -25950,14 +25927,14 @@ class stalled1_failure_model final : public model_base_crtp(); - local_scalar_t__ alpha1 = in__.template read(); - local_scalar_t__ alpha2 = in__.template read(); - local_scalar_t__ alpha12 = in__.template read(); - local_scalar_t__ tau = + auto alpha0 = in__.template read(); + auto alpha1 = in__.template read(); + auto alpha2 = in__.template read(); + auto alpha12 = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - std::vector> b = + auto b = in__.template read< std::vector>>(I, K); local_scalar_t__ sigma = DUMMY_VAR__; @@ -26027,14 +26004,14 @@ class stalled1_failure_model final : public model_base_crtp(); - local_scalar_t__ alpha1 = in__.template read(); - local_scalar_t__ alpha2 = in__.template read(); - local_scalar_t__ alpha12 = in__.template read(); - local_scalar_t__ tau = + auto alpha0 = in__.template read(); + auto alpha1 = in__.template read(); + auto alpha2 = in__.template read(); + auto alpha12 = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - std::vector> b = + auto b = in__.template read< std::vector>>(I, K); local_scalar_t__ sigma = DUMMY_VAR__; @@ -26115,14 +26092,14 @@ class stalled1_failure_model final : public model_base_crtp(); - double alpha1 = in__.template read(); - double alpha2 = in__.template read(); - double alpha12 = in__.template read(); - double tau = + auto alpha0 = in__.template read(); + auto alpha1 = in__.template read(); + auto alpha2 = in__.template read(); + auto alpha12 = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - std::vector> b = + auto b = in__.template read< std::vector>>(I, K); double sigma = std::numeric_limits::quiet_NaN(); @@ -26541,7 +26518,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + auto param = in__.template read(); std::vector> local = std::vector>(2, Eigen::Matrix::Constant(5, DUMMY_VAR__)); @@ -26592,7 +26569,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + auto param = in__.template read(); std::vector> local = std::vector>(2, Eigen::Matrix::Constant(5, DUMMY_VAR__)); @@ -26654,7 +26631,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + auto param = in__.template read(); std::vector> local = std::vector>(2, Eigen::Matrix::Constant(5, @@ -26976,7 +26953,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + auto y = in__.template read(); local_scalar_t__ no_init = DUMMY_VAR__; local_scalar_t__ init_from_param = DUMMY_VAR__; current_statement__ = 3; @@ -27029,7 +27006,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + auto y = in__.template read(); local_scalar_t__ no_init = DUMMY_VAR__; local_scalar_t__ init_from_param = DUMMY_VAR__; current_statement__ = 3; @@ -27093,7 +27070,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + auto y = in__.template read(); double no_init = std::numeric_limits::quiet_NaN(); double init_from_param = std::numeric_limits::quiet_NaN(); double dependent_no_init = std::numeric_limits::quiet_NaN(); diff --git a/test/integration/good/compiler-optimizations/cppO1.expected b/test/integration/good/compiler-optimizations/cppO1.expected index 04d0d3581..b40b4801a 100644 --- a/test/integration/good/compiler-optimizations/cppO1.expected +++ b/test/integration/good/compiler-optimizations/cppO1.expected @@ -87,7 +87,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1; current_statement__ = 2; @@ -148,7 +148,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp> X_p = + auto X_p = in__.template read>(10, 10); stan::math::var_value> X_tp1; current_statement__ = 2; @@ -220,7 +220,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, @@ -906,16 +906,16 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); - local_scalar_t__ gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi = + auto xi = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ delta = + auto delta = in__.template read_constrain_lb(0, lp__); std::vector> y = @@ -1002,16 +1002,16 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); - local_scalar_t__ gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ xi = + auto xi = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ delta = + auto delta = in__.template read_constrain_lb(0, lp__); std::vector> y = @@ -1109,16 +1109,16 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); - double gamma = + auto gamma = in__.template read_constrain_lb(0, lp__); - double xi = + auto xi = in__.template read_constrain_lb(0, lp__); - double delta = + auto delta = in__.template read_constrain_lb(0, lp__); std::vector> y = @@ -1496,7 +1496,7 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1; current_statement__ = 2; @@ -1538,7 +1538,7 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - stan::math::var_value> X_p = + auto X_p = in__.template read>(10, 10); stan::math::var_value> X_tp1; current_statement__ = 2; @@ -1591,7 +1591,7 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, @@ -1972,7 +1972,7 @@ class copy_prop_profile_model final : public model_base_crtp X = + auto X = in__.template read>(N, N); { current_statement__ = 2; @@ -2041,7 +2041,7 @@ class copy_prop_profile_model final : public model_base_crtp X = + auto X = in__.template read>(N, N); { current_statement__ = 2; @@ -2121,7 +2121,7 @@ class copy_prop_profile_model final : public model_base_crtp X = + auto X = in__.template read>(N, N); out__.write(X); if (stan::math::logical_negation( @@ -2745,10 +2745,10 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -2931,10 +2931,10 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -3128,10 +3128,10 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -3806,40 +3806,39 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age = + auto sigma_age = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_edu = + auto sigma_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_state = + auto sigma_state = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_region = + auto sigma_region = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age_edu = + auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ b_0 = in__.template read(); - local_scalar_t__ b_female = in__.template read(); - local_scalar_t__ b_black = in__.template read(); - local_scalar_t__ b_female_black = - in__.template read(); - local_scalar_t__ b_v_prev = in__.template read(); - Eigen::Matrix b_age = + auto b_0 = in__.template read(); + auto b_female = in__.template read(); + auto b_black = in__.template read(); + auto b_female_black = in__.template read(); + auto b_v_prev = in__.template read(); + auto b_age = in__.template read>(n_age); - Eigen::Matrix b_edu = + auto b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region = + auto b_region = in__.template read>(n_region); - Eigen::Matrix b_age_edu = + auto b_age_edu = in__.template read>(n_age, n_edu); - Eigen::Matrix b_hat = + auto b_hat = in__.template read>(n_state); { current_statement__ = 17; @@ -3968,40 +3967,39 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age = + auto sigma_age = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_edu = + auto sigma_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_state = + auto sigma_state = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_region = + auto sigma_region = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ sigma_age_edu = + auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ b_0 = in__.template read(); - local_scalar_t__ b_female = in__.template read(); - local_scalar_t__ b_black = in__.template read(); - local_scalar_t__ b_female_black = - in__.template read(); - local_scalar_t__ b_v_prev = in__.template read(); - Eigen::Matrix b_age = + auto b_0 = in__.template read(); + auto b_female = in__.template read(); + auto b_black = in__.template read(); + auto b_female_black = in__.template read(); + auto b_v_prev = in__.template read(); + auto b_age = in__.template read>(n_age); - Eigen::Matrix b_edu = + auto b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region = + auto b_region = in__.template read>(n_region); - Eigen::Matrix b_age_edu = + auto b_age_edu = in__.template read>(n_age, n_edu); - Eigen::Matrix b_hat = + auto b_hat = in__.template read>(n_state); { current_statement__ = 17; @@ -4141,39 +4139,39 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double sigma = + auto sigma = in__.template read_constrain_lb(0, lp__); - double sigma_age = + auto sigma_age = in__.template read_constrain_lb(0, lp__); - double sigma_edu = + auto sigma_edu = in__.template read_constrain_lb(0, lp__); - double sigma_state = + auto sigma_state = in__.template read_constrain_lb(0, lp__); - double sigma_region = + auto sigma_region = in__.template read_constrain_lb(0, lp__); - double sigma_age_edu = + auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); - double b_0 = in__.template read(); - double b_female = in__.template read(); - double b_black = in__.template read(); - double b_female_black = in__.template read(); - double b_v_prev = in__.template read(); - Eigen::Matrix b_age = + auto b_0 = in__.template read(); + auto b_female = in__.template read(); + auto b_black = in__.template read(); + auto b_female_black = in__.template read(); + auto b_v_prev = in__.template read(); + auto b_age = in__.template read>(n_age); - Eigen::Matrix b_edu = + auto b_edu = in__.template read>(n_edu); - Eigen::Matrix b_region = + auto b_region = in__.template read>(n_region); - Eigen::Matrix b_age_edu = + auto b_age_edu = in__.template read>(n_age, n_edu); - Eigen::Matrix b_hat = + auto b_hat = in__.template read>(n_state); out__.write(sigma); out__.write(sigma_age); @@ -5471,13 +5469,13 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix mu = + auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); - std::vector sigma = + auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); - local_scalar_t__ theta = + auto theta = in__.template read_constrain_lub(0, 1, lp__); { @@ -5537,13 +5535,13 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix mu = + auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); - std::vector sigma = + auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); - local_scalar_t__ theta = + auto theta = in__.template read_constrain_lub(0, 1, lp__); { @@ -5614,13 +5612,13 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix mu = + auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); - std::vector sigma = + auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); - double theta = + auto theta = in__.template read_constrain_lub(0, 1, lp__); out__.write(mu); @@ -5981,10 +5979,9 @@ class expr_prop_fail2_model final : public model_base_crtp(); - std::vector theta = - in__.template read>(J); - local_scalar_t__ tau = + auto mu = in__.template read(); + auto theta = in__.template read>(J); + auto tau = in__.template read_constrain_lb(0, lp__); { @@ -6023,10 +6020,9 @@ class expr_prop_fail2_model final : public model_base_crtp(); - std::vector theta = - in__.template read>(J); - local_scalar_t__ tau = + auto mu = in__.template read(); + auto theta = in__.template read>(J); + auto tau = in__.template read_constrain_lb(0, lp__); { @@ -6076,10 +6072,9 @@ class expr_prop_fail2_model final : public model_base_crtp(); - std::vector theta = - in__.template read>(J); - double tau = + auto mu = in__.template read(); + auto theta = in__.template read>(J); + auto tau = in__.template read_constrain_lb(0, lp__); out__.write(mu); @@ -6603,32 +6598,31 @@ class expr_prop_fail3_model final : public model_base_crtp a = + auto a = in__.template read>(n_age); - Eigen::Matrix b = + auto b = in__.template read>(n_edu); - Eigen::Matrix c = + auto c = in__.template read>(n_age_edu); - Eigen::Matrix d = + auto d = in__.template read>(n_state); - Eigen::Matrix e = + auto e = in__.template read< Eigen::Matrix>(n_region_full); - Eigen::Matrix beta = - in__.template read>(5); - local_scalar_t__ sigma_a = + auto beta = in__.template read>(5); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_b = + auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_c = + auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_d = + auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_e = + auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -6726,32 +6720,31 @@ class expr_prop_fail3_model final : public model_base_crtp a = + auto a = in__.template read>(n_age); - Eigen::Matrix b = + auto b = in__.template read>(n_edu); - Eigen::Matrix c = + auto c = in__.template read>(n_age_edu); - Eigen::Matrix d = + auto d = in__.template read>(n_state); - Eigen::Matrix e = + auto e = in__.template read< Eigen::Matrix>(n_region_full); - Eigen::Matrix beta = - in__.template read>(5); - local_scalar_t__ sigma_a = + auto beta = in__.template read>(5); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_b = + auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_c = + auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_d = + auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_e = + auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -6860,32 +6853,31 @@ class expr_prop_fail3_model final : public model_base_crtp a = + auto a = in__.template read>(n_age); - Eigen::Matrix b = + auto b = in__.template read>(n_edu); - Eigen::Matrix c = + auto c = in__.template read>(n_age_edu); - Eigen::Matrix d = + auto d = in__.template read>(n_state); - Eigen::Matrix e = + auto e = in__.template read< Eigen::Matrix>(n_region_full); - Eigen::Matrix beta = - in__.template read>(5); - double sigma_a = + auto beta = in__.template read>(5); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - double sigma_b = + auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); - double sigma_c = + auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); - double sigma_d = + auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); - double sigma_e = + auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -7612,10 +7604,10 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); - Eigen::Matrix phi_std_raw = + auto phi_std_raw = in__.template read< Eigen::Matrix>(phi_std_raw_1dim__); local_scalar_t__ sigma_phi; @@ -7676,10 +7668,10 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); - stan::math::var_value> phi_std_raw = + auto phi_std_raw = in__.template read< Eigen::Matrix>(phi_std_raw_1dim__); local_scalar_t__ sigma_phi; @@ -7753,10 +7745,10 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); - Eigen::Matrix phi_std_raw = + auto phi_std_raw = in__.template read< Eigen::Matrix>(phi_std_raw_1dim__); double sigma_phi = std::numeric_limits::quiet_NaN(); @@ -8540,15 +8532,15 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(nind); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -8736,15 +8728,15 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(nind); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -8943,15 +8935,15 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(nind); - double sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -10157,21 +10149,21 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ psi = + auto psi = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(M); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -10596,21 +10588,21 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ psi = + auto psi = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(M); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -11046,21 +11038,21 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - double psi = + auto psi = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read>(M); - double sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -11979,10 +11971,10 @@ class expr_prop_fail7_model final : public model_base_crtp pi = + auto pi = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, K); - std::vector>> theta = + auto theta = in__.template read_constrain_simplex< std::vector>>, jacobian__>(lp__, J, K, K); @@ -12059,10 +12051,10 @@ class expr_prop_fail7_model final : public model_base_crtp> pi = + auto pi = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, K); - std::vector>> theta = + auto theta = in__.template read_constrain_simplex< std::vector>>, jacobian__>(lp__, J, K, K); @@ -12150,10 +12142,10 @@ class expr_prop_fail7_model final : public model_base_crtp pi = + auto pi = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, K); - std::vector>> theta = + auto theta = in__.template read_constrain_simplex< std::vector>>, jacobian__>(lp__, J, K, K); @@ -12658,17 +12650,17 @@ class expr_prop_fail8_model final : public model_base_crtp(); - local_scalar_t__ beta1 = in__.template read(); - local_scalar_t__ tau_theta = + auto beta0 = in__.template read(); + auto beta1 = in__.template read(); + auto tau_theta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ tau_phi = + auto tau_phi = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_std = + auto theta_std = in__.template read>(N); - Eigen::Matrix phi_std_raw = + auto phi_std_raw = in__.template read>(N); local_scalar_t__ sigma_phi; current_statement__ = 7; @@ -12721,17 +12713,17 @@ class expr_prop_fail8_model final : public model_base_crtp(); - local_scalar_t__ beta1 = in__.template read(); - local_scalar_t__ tau_theta = + auto beta0 = in__.template read(); + auto beta1 = in__.template read(); + auto tau_theta = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ tau_phi = + auto tau_phi = in__.template read_constrain_lb(0, lp__); - stan::math::var_value> theta_std = + auto theta_std = in__.template read>(N); - stan::math::var_value> phi_std_raw = + auto phi_std_raw = in__.template read>(N); local_scalar_t__ sigma_phi; current_statement__ = 7; @@ -12797,17 +12789,17 @@ class expr_prop_fail8_model final : public model_base_crtp(); - double beta1 = in__.template read(); - double tau_theta = + auto beta0 = in__.template read(); + auto beta1 = in__.template read(); + auto tau_theta = in__.template read_constrain_lb(0, lp__); - double tau_phi = + auto tau_phi = in__.template read_constrain_lb(0, lp__); - Eigen::Matrix theta_std = + auto theta_std = in__.template read>(N); - Eigen::Matrix phi_std_raw = + auto phi_std_raw = in__.template read>(N); double sigma_phi = std::numeric_limits::quiet_NaN(); Eigen::Matrix phi = @@ -13558,10 +13550,10 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -13744,10 +13736,10 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -13941,10 +13933,10 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix beta = + auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, max_age); @@ -15667,9 +15659,8 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix y = - in__.template read>(3); - std::vector> arr_vec = + auto y = in__.template read>(3); + auto arr_vec = in__.template read< std::vector>>(3, 4); Eigen::Matrix x; @@ -15718,10 +15709,8 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - stan::math::var_value> y = - in__.template read>(3); - std::vector>> - arr_vec = + auto y = in__.template read>(3); + auto arr_vec = in__.template read< std::vector>>(3, 4); stan::math::var_value> x; @@ -15781,9 +15770,8 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - Eigen::Matrix y = - in__.template read>(3); - std::vector> arr_vec = + auto y = in__.template read>(3); + auto arr_vec = in__.template read< std::vector>>(3, 4); Eigen::Matrix x = @@ -16229,9 +16217,9 @@ class inline_functions_varmat_model final : public model_base_crtp p_single_ret_vec = + auto p_single_ret_vec = in__.template read>(5); - Eigen::Matrix p_multi_ret_vec = + auto p_multi_ret_vec = in__.template read>(5); Eigen::Matrix tp_single_ret_vec = Eigen::Matrix::Constant(5, DUMMY_VAR__); @@ -16296,9 +16284,9 @@ class inline_functions_varmat_model final : public model_base_crtp> p_single_ret_vec = + auto p_single_ret_vec = in__.template read>(5); - stan::math::var_value> p_multi_ret_vec = + auto p_multi_ret_vec = in__.template read>(5); stan::math::var_value> tp_single_ret_vec = stan::math::var_value>(Eigen::Matrix::Constant(5, @@ -16381,9 +16369,9 @@ class inline_functions_varmat_model final : public model_base_crtp p_single_ret_vec = + auto p_single_ret_vec = in__.template read>(5); - Eigen::Matrix p_multi_ret_vec = + auto p_multi_ret_vec = in__.template read>(5); Eigen::Matrix tp_single_ret_vec = Eigen::Matrix::Constant(5, @@ -16830,7 +16818,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha = in__.template read(); + auto alpha = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf( @@ -16866,7 +16854,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha = in__.template read(); + auto alpha = in__.template read(); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf( @@ -16913,7 +16901,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double alpha = in__.template read(); + auto alpha = in__.template read(); out__.write(alpha); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -18368,20 +18356,20 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma = + auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read< Eigen::Matrix>(epsilon_1dim__); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -18774,20 +18762,20 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma = + auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read< Eigen::Matrix>(epsilon_1dim__); - local_scalar_t__ sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -19191,20 +19179,20 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); - Eigen::Matrix gamma = + auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); - Eigen::Matrix epsilon = + auto epsilon = in__.template read< Eigen::Matrix>(epsilon_1dim__); - double sigma = + auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = @@ -20331,7 +20319,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + auto x = in__.template read(); { local_scalar_t__ y; current_statement__ = 2; @@ -20378,7 +20366,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + auto x = in__.template read(); { local_scalar_t__ y; current_statement__ = 2; @@ -20436,7 +20424,7 @@ class lcm_experiment2_model final : public model_base_crtp(); + auto x = in__.template read(); out__.write(x); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -20721,8 +20709,7 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector theta = - in__.template read>(J); + auto theta = in__.template read>(J); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(y, theta, 1)); @@ -20757,8 +20744,7 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector theta = - in__.template read>(J); + auto theta = in__.template read>(J); { current_statement__ = 2; lp_accum__.add(stan::math::normal_lpdf(y, theta, 1)); @@ -20804,8 +20790,7 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector theta = - in__.template read>(J); + auto theta = in__.template read>(J); out__.write(theta); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -21378,10 +21363,10 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); Eigen::Matrix phi = @@ -21559,10 +21544,10 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); Eigen::Matrix phi = @@ -21751,10 +21736,10 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double mean_phi = + auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); - double mean_p = + auto mean_p = in__.template read_constrain_lub(0, 1, lp__); Eigen::Matrix phi = @@ -22296,7 +22281,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mu = in__.template read(); + auto mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; local_scalar_t__ inline_foo_lpdf_return_sym23__; { @@ -22358,7 +22343,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ mu = in__.template read(); + auto mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; local_scalar_t__ inline_foo_lpdf_return_sym16__; { @@ -22431,7 +22416,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double mu = in__.template read(); + auto mu = in__.template read(); double tp = std::numeric_limits::quiet_NaN(); out__.write(mu); if (stan::math::logical_negation( @@ -22891,10 +22876,10 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha_occ = in__.template read(); - local_scalar_t__ beta_occ = in__.template read(); - local_scalar_t__ alpha_p = in__.template read(); - local_scalar_t__ beta_p = in__.template read(); + auto alpha_occ = in__.template read(); + auto beta_occ = in__.template read(); + auto alpha_p = in__.template read(); + auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); Eigen::Matrix logit_p = @@ -22966,10 +22951,10 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha_occ = in__.template read(); - local_scalar_t__ beta_occ = in__.template read(); - local_scalar_t__ alpha_p = in__.template read(); - local_scalar_t__ beta_p = in__.template read(); + auto alpha_occ = in__.template read(); + auto beta_occ = in__.template read(); + auto alpha_p = in__.template read(); + auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); Eigen::Matrix logit_p = @@ -23052,10 +23037,10 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double alpha_occ = in__.template read(); - double beta_occ = in__.template read(); - double alpha_p = in__.template read(); - double beta_p = in__.template read(); + auto alpha_occ = in__.template read(); + auto beta_occ = in__.template read(); + auto alpha_p = in__.template read(); + auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, std::numeric_limits::quiet_NaN()); @@ -23606,20 +23591,18 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ beta = in__.template read(); - Eigen::Matrix eta1 = - in__.template read>(J); - Eigen::Matrix eta2 = - in__.template read>(J); - local_scalar_t__ mu_a1 = in__.template read(); - local_scalar_t__ mu_a2 = in__.template read(); - local_scalar_t__ sigma_a1 = + auto beta = in__.template read(); + auto eta1 = in__.template read>(J); + auto eta2 = in__.template read>(J); + auto mu_a1 = in__.template read(); + auto mu_a2 = in__.template read(); + auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_a2 = + auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix a1 = @@ -23700,20 +23683,18 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ beta = in__.template read(); - Eigen::Matrix eta1 = - in__.template read>(J); - Eigen::Matrix eta2 = - in__.template read>(J); - local_scalar_t__ mu_a1 = in__.template read(); - local_scalar_t__ mu_a2 = in__.template read(); - local_scalar_t__ sigma_a1 = + auto beta = in__.template read(); + auto eta1 = in__.template read>(J); + auto eta2 = in__.template read>(J); + auto mu_a1 = in__.template read(); + auto mu_a2 = in__.template read(); + auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_a2 = + auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix a1 = @@ -23805,20 +23786,18 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double beta = in__.template read(); - Eigen::Matrix eta1 = - in__.template read>(J); - Eigen::Matrix eta2 = - in__.template read>(J); - double mu_a1 = in__.template read(); - double mu_a2 = in__.template read(); - double sigma_a1 = + auto beta = in__.template read(); + auto eta1 = in__.template read>(J); + auto eta2 = in__.template read>(J); + auto mu_a1 = in__.template read(); + auto mu_a2 = in__.template read(); + auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); - double sigma_a2 = + auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); - double sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix a1 = @@ -24485,13 +24464,13 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ theta = in__.template read(); - local_scalar_t__ phi = in__.template read(); - Eigen::Matrix x_matrix = + auto theta = in__.template read(); + auto phi = in__.template read(); + auto x_matrix = in__.template read>(3, 2); - Eigen::Matrix x_vector = + auto x_vector = in__.template read>(2); - Eigen::Matrix x_cov = + auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); { @@ -24802,13 +24781,13 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ theta = in__.template read(); - local_scalar_t__ phi = in__.template read(); - stan::math::var_value> x_matrix = + auto theta = in__.template read(); + auto phi = in__.template read(); + auto x_matrix = in__.template read>(3, 2); - stan::math::var_value> x_vector = + auto x_vector = in__.template read>(2); - stan::math::var_value> x_cov = + auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); { @@ -25130,13 +25109,13 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double theta = in__.template read(); - double phi = in__.template read(); - Eigen::Matrix x_matrix = + auto theta = in__.template read(); + auto phi = in__.template read(); + auto x_matrix = in__.template read>(3, 2); - Eigen::Matrix x_vector = + auto x_vector = in__.template read>(2); - Eigen::Matrix x_cov = + auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); out__.write(theta); @@ -26766,15 +26745,14 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix a = + auto a = in__.template read>(n_pair); - Eigen::Matrix beta = - in__.template read>(2); - local_scalar_t__ mu_a = in__.template read(); - local_scalar_t__ sigma_a = + auto beta = in__.template read>(2); + auto mu_a = in__.template read(); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -26849,15 +26827,14 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix a = + auto a = in__.template read>(n_pair); - Eigen::Matrix beta = - in__.template read>(2); - local_scalar_t__ mu_a = in__.template read(); - local_scalar_t__ sigma_a = + auto beta = in__.template read>(2); + auto mu_a = in__.template read(); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - local_scalar_t__ sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -26943,15 +26920,14 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix a = + auto a = in__.template read>(n_pair); - Eigen::Matrix beta = - in__.template read>(2); - double mu_a = in__.template read(); - double sigma_a = + auto beta = in__.template read>(2); + auto mu_a = in__.template read(); + auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); - double sigma_y = + auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); Eigen::Matrix y_hat = @@ -27398,9 +27374,9 @@ class partial_eval_multiply_model final : public model_base_crtp m2 = + auto m2 = in__.template read>(10, 10); - Eigen::Matrix m3 = + auto m3 = in__.template read>(10, 10); { Eigen::Matrix m5; @@ -27454,9 +27430,9 @@ class partial_eval_multiply_model final : public model_base_crtp> m2 = + auto m2 = in__.template read>(10, 10); - stan::math::var_value> m3 = + auto m3 = in__.template read>(10, 10); { stan::math::var_value> m5; @@ -27521,9 +27497,9 @@ class partial_eval_multiply_model final : public model_base_crtp m2 = + auto m2 = in__.template read>(10, 10); - Eigen::Matrix m3 = + auto m3 = in__.template read>(10, 10); out__.write(m2); out__.write(m3); @@ -28295,14 +28271,14 @@ class stalled1_failure_model final : public model_base_crtp(); - local_scalar_t__ alpha1 = in__.template read(); - local_scalar_t__ alpha2 = in__.template read(); - local_scalar_t__ alpha12 = in__.template read(); - local_scalar_t__ tau = + auto alpha0 = in__.template read(); + auto alpha1 = in__.template read(); + auto alpha2 = in__.template read(); + auto alpha12 = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - std::vector> b = + auto b = in__.template read< std::vector>>(I, 8); local_scalar_t__ sigma; @@ -28375,14 +28351,14 @@ class stalled1_failure_model final : public model_base_crtp(); - local_scalar_t__ alpha1 = in__.template read(); - local_scalar_t__ alpha2 = in__.template read(); - local_scalar_t__ alpha12 = in__.template read(); - local_scalar_t__ tau = + auto alpha0 = in__.template read(); + auto alpha1 = in__.template read(); + auto alpha2 = in__.template read(); + auto alpha12 = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - std::vector>> b = + auto b = in__.template read< std::vector>>(I, 8); local_scalar_t__ sigma; @@ -28466,14 +28442,14 @@ class stalled1_failure_model final : public model_base_crtp(); - double alpha1 = in__.template read(); - double alpha2 = in__.template read(); - double alpha12 = in__.template read(); - double tau = + auto alpha0 = in__.template read(); + auto alpha1 = in__.template read(); + auto alpha2 = in__.template read(); + auto alpha12 = in__.template read(); + auto tau = in__.template read_constrain_lb(0, lp__); - std::vector> b = + auto b = in__.template read< std::vector>>(I, 8); double sigma = std::numeric_limits::quiet_NaN(); @@ -28892,7 +28868,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + auto param = in__.template read(); std::vector> local; current_statement__ = 2; stan::model::assign(local, inputs, "assigning variable local"); @@ -28941,7 +28917,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + auto param = in__.template read(); std::vector> local; current_statement__ = 2; stan::model::assign(local, inputs, "assigning variable local"); @@ -29001,7 +28977,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); + auto param = in__.template read(); std::vector> local = std::vector>(2, Eigen::Matrix::Constant(5, @@ -29322,7 +29298,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + auto y = in__.template read(); local_scalar_t__ no_init = DUMMY_VAR__; local_scalar_t__ init_from_param; current_statement__ = 3; @@ -29374,7 +29350,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + auto y = in__.template read(); local_scalar_t__ no_init = DUMMY_VAR__; local_scalar_t__ init_from_param; current_statement__ = 3; @@ -29437,7 +29413,7 @@ class unenforce_initialize_model final : public model_base_crtp(); + auto y = in__.template read(); double no_init = std::numeric_limits::quiet_NaN(); double init_from_param = std::numeric_limits::quiet_NaN(); double dependent_no_init = std::numeric_limits::quiet_NaN(); diff --git a/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected b/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected index 114c760fe..302b55183 100644 --- a/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected +++ b/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected @@ -139,10 +139,9 @@ class ad_scalar_data_matrix_model final : public model_base_crtp(); - local_scalar_t__ sigma = in__.template read(); - Eigen::Matrix beta = - in__.template read>(N); + auto alpha = in__.template read(); + auto sigma = in__.template read(); + auto beta = in__.template read>(N); { current_statement__ = 4; stan::math::validate_non_negative_index("soa_simple", "N", N); @@ -299,10 +298,9 @@ class ad_scalar_data_matrix_model final : public model_base_crtp(); - local_scalar_t__ sigma = in__.template read(); - stan::math::var_value> beta = - in__.template read>(N); + auto alpha = in__.template read(); + auto sigma = in__.template read(); + auto beta = in__.template read>(N); { current_statement__ = 4; stan::math::validate_non_negative_index("soa_simple", "N", N); @@ -491,10 +489,9 @@ class ad_scalar_data_matrix_model final : public model_base_crtp(); - double sigma = in__.template read(); - Eigen::Matrix beta = - in__.template read>(N); + auto alpha = in__.template read(); + auto sigma = in__.template read(); + auto beta = in__.template read>(N); out__.write(alpha); out__.write(sigma); out__.write(beta); @@ -807,7 +804,7 @@ class complex_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix A_p = + auto A_p = in__.template read>(10, 10); Eigen::Matrix,-1,-1> A_complex_tp = Eigen::Matrix,-1,-1>::Constant(10, 10, @@ -845,7 +842,7 @@ class complex_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix A_p = + auto A_p = in__.template read>(10, 10); Eigen::Matrix,-1,-1> A_complex_tp = Eigen::Matrix,-1,-1>::Constant(10, 10, @@ -894,7 +891,7 @@ class complex_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix A_p = + auto A_p = in__.template read>(10, 10); Eigen::Matrix,-1,-1> A_complex_tp = Eigen::Matrix,-1,-1>::Constant(10, 10, @@ -1498,7 +1495,7 @@ class constraints_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix high_low_est = + auto high_low_est = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(diff_low_mid, diff_high_mid, lp__, N); @@ -1508,30 +1505,27 @@ class constraints_model final : public model_base_crtp { current_statement__ = 1; stan::math::check_matching_dims("constraint", "high_low_est", high_low_est, "upper", diff_high_mid); - Eigen::Matrix b = - in__.template read>(K); - Eigen::Matrix h = - in__.template read>(Nr); - Eigen::Matrix ar = - in__.template read>(2); - local_scalar_t__ ma = in__.template read(); - local_scalar_t__ phi_beta = + auto b = in__.template read>(K); + auto h = in__.template read>(Nr); + auto ar = in__.template read>(2); + auto ma = in__.template read(); + auto phi_beta = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ sigma2 = + auto sigma2 = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ Intercept = in__.template read(); - Eigen::Matrix mean_price = + auto Intercept = in__.template read(); + auto mean_price = in__.template read>(N); - Eigen::Matrix sigma_price = + auto sigma_price = in__.template read_constrain_lb, jacobian__>(0.0, lp__, N); - local_scalar_t__ theta = in__.template read(); - Eigen::Matrix upper_test = + auto theta = in__.template read(); + auto upper_test = in__.template read_constrain_ub, jacobian__>(ma, lp__, N); - Eigen::Matrix lower_upper_test = + auto lower_upper_test = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(sigma_price, upper_test, lp__, N); @@ -1541,7 +1535,7 @@ class constraints_model final : public model_base_crtp { current_statement__ = 13; stan::math::check_matching_dims("constraint", "lower_upper_test", lower_upper_test, "upper", upper_test); - Eigen::Matrix row_vec_lower_upper_test = + auto row_vec_lower_upper_test = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(stan::math::transpose(sigma_price), @@ -1554,7 +1548,7 @@ class constraints_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "row_vec_lower_upper_test", row_vec_lower_upper_test, "upper", stan::math::transpose(upper_test)); - Eigen::Matrix offset_mult_test = + auto offset_mult_test = in__.template read_constrain_offset_multiplier< Eigen::Matrix, jacobian__>(mean_price, sigma_price, lp__, N); @@ -1564,25 +1558,25 @@ class constraints_model final : public model_base_crtp { current_statement__ = 15; stan::math::check_matching_dims("constraint", "offset_mult_test", offset_mult_test, "multiplier", sigma_price); - Eigen::Matrix ordered_test = + auto ordered_test = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, N); - Eigen::Matrix unit_vec_test = + auto unit_vec_test = in__.template read_constrain_unit_vector< Eigen::Matrix, jacobian__>(lp__, N); - Eigen::Matrix pos_ordered_test = + auto pos_ordered_test = in__.template read_constrain_positive_ordered< Eigen::Matrix, jacobian__>(lp__, N); - Eigen::Matrix corr_matrix_test = + auto corr_matrix_test = in__.template read_constrain_corr_matrix< Eigen::Matrix, jacobian__>(lp__, N); - Eigen::Matrix cov_matrix_test = + auto cov_matrix_test = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, N); - Eigen::Matrix chol_fac_cov_test = + auto chol_fac_cov_test = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, K, K); - Eigen::Matrix chol_fac_corr_test = + auto chol_fac_corr_test = in__.template read_constrain_cholesky_factor_corr< Eigen::Matrix, jacobian__>(lp__, K); local_scalar_t__ phi = DUMMY_VAR__; @@ -1750,7 +1744,7 @@ class constraints_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - stan::math::var_value> high_low_est = + auto high_low_est = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(diff_low_mid, diff_high_mid, lp__, N); @@ -1760,30 +1754,27 @@ class constraints_model final : public model_base_crtp { current_statement__ = 1; stan::math::check_matching_dims("constraint", "high_low_est", high_low_est, "upper", diff_high_mid); - stan::math::var_value> b = - in__.template read>(K); - stan::math::var_value> h = - in__.template read>(Nr); - stan::math::var_value> ar = - in__.template read>(2); - local_scalar_t__ ma = in__.template read(); - local_scalar_t__ phi_beta = + auto b = in__.template read>(K); + auto h = in__.template read>(Nr); + auto ar = in__.template read>(2); + auto ma = in__.template read(); + auto phi_beta = in__.template read_constrain_lub(0, 1, lp__); - local_scalar_t__ sigma2 = + auto sigma2 = in__.template read_constrain_lb(0, lp__); - local_scalar_t__ Intercept = in__.template read(); - stan::math::var_value> mean_price = + auto Intercept = in__.template read(); + auto mean_price = in__.template read>(N); - stan::math::var_value> sigma_price = + auto sigma_price = in__.template read_constrain_lb, jacobian__>(0.0, lp__, N); - local_scalar_t__ theta = in__.template read(); - stan::math::var_value> upper_test = + auto theta = in__.template read(); + auto upper_test = in__.template read_constrain_ub, jacobian__>(ma, lp__, N); - stan::math::var_value> lower_upper_test = + auto lower_upper_test = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(sigma_price, upper_test, lp__, N); @@ -1793,8 +1784,7 @@ class constraints_model final : public model_base_crtp { current_statement__ = 13; stan::math::check_matching_dims("constraint", "lower_upper_test", lower_upper_test, "upper", upper_test); - stan::math::var_value> - row_vec_lower_upper_test = + auto row_vec_lower_upper_test = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(stan::math::transpose(sigma_price), @@ -1807,7 +1797,7 @@ class constraints_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "row_vec_lower_upper_test", row_vec_lower_upper_test, "upper", stan::math::transpose(upper_test)); - stan::math::var_value> offset_mult_test = + auto offset_mult_test = in__.template read_constrain_offset_multiplier< Eigen::Matrix, jacobian__>(mean_price, sigma_price, lp__, N); @@ -1817,25 +1807,25 @@ class constraints_model final : public model_base_crtp { current_statement__ = 15; stan::math::check_matching_dims("constraint", "offset_mult_test", offset_mult_test, "multiplier", sigma_price); - stan::math::var_value> ordered_test = + auto ordered_test = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, N); - stan::math::var_value> unit_vec_test = + auto unit_vec_test = in__.template read_constrain_unit_vector< Eigen::Matrix, jacobian__>(lp__, N); - stan::math::var_value> pos_ordered_test = + auto pos_ordered_test = in__.template read_constrain_positive_ordered< Eigen::Matrix, jacobian__>(lp__, N); - stan::math::var_value> corr_matrix_test = + auto corr_matrix_test = in__.template read_constrain_corr_matrix< Eigen::Matrix, jacobian__>(lp__, N); - stan::math::var_value> cov_matrix_test = + auto cov_matrix_test = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, N); - stan::math::var_value> chol_fac_cov_test = + auto chol_fac_cov_test = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, K, K); - stan::math::var_value> chol_fac_corr_test = + auto chol_fac_corr_test = in__.template read_constrain_cholesky_factor_corr< Eigen::Matrix, jacobian__>(lp__, K); local_scalar_t__ phi = DUMMY_VAR__; @@ -2028,7 +2018,7 @@ class constraints_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix high_low_est = + auto high_low_est = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(diff_low_mid, diff_high_mid, lp__, N); @@ -2038,30 +2028,27 @@ class constraints_model final : public model_base_crtp { current_statement__ = 1; stan::math::check_matching_dims("constraint", "high_low_est", high_low_est, "upper", diff_high_mid); - Eigen::Matrix b = - in__.template read>(K); - Eigen::Matrix h = - in__.template read>(Nr); - Eigen::Matrix ar = - in__.template read>(2); - double ma = in__.template read(); - double phi_beta = + auto b = in__.template read>(K); + auto h = in__.template read>(Nr); + auto ar = in__.template read>(2); + auto ma = in__.template read(); + auto phi_beta = in__.template read_constrain_lub(0, 1, lp__); - double sigma2 = + auto sigma2 = in__.template read_constrain_lb(0, lp__); - double Intercept = in__.template read(); - Eigen::Matrix mean_price = + auto Intercept = in__.template read(); + auto mean_price = in__.template read>(N); - Eigen::Matrix sigma_price = + auto sigma_price = in__.template read_constrain_lb, jacobian__>(0.0, lp__, N); - double theta = in__.template read(); - Eigen::Matrix upper_test = + auto theta = in__.template read(); + auto upper_test = in__.template read_constrain_ub, jacobian__>(ma, lp__, N); - Eigen::Matrix lower_upper_test = + auto lower_upper_test = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(sigma_price, upper_test, lp__, N); @@ -2071,7 +2058,7 @@ class constraints_model final : public model_base_crtp { current_statement__ = 13; stan::math::check_matching_dims("constraint", "lower_upper_test", lower_upper_test, "upper", upper_test); - Eigen::Matrix row_vec_lower_upper_test = + auto row_vec_lower_upper_test = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(stan::math::transpose(sigma_price), @@ -2084,7 +2071,7 @@ class constraints_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "row_vec_lower_upper_test", row_vec_lower_upper_test, "upper", stan::math::transpose(upper_test)); - Eigen::Matrix offset_mult_test = + auto offset_mult_test = in__.template read_constrain_offset_multiplier< Eigen::Matrix, jacobian__>(mean_price, sigma_price, lp__, N); @@ -2094,25 +2081,25 @@ class constraints_model final : public model_base_crtp { current_statement__ = 15; stan::math::check_matching_dims("constraint", "offset_mult_test", offset_mult_test, "multiplier", sigma_price); - Eigen::Matrix ordered_test = + auto ordered_test = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, N); - Eigen::Matrix unit_vec_test = + auto unit_vec_test = in__.template read_constrain_unit_vector< Eigen::Matrix, jacobian__>(lp__, N); - Eigen::Matrix pos_ordered_test = + auto pos_ordered_test = in__.template read_constrain_positive_ordered< Eigen::Matrix, jacobian__>(lp__, N); - Eigen::Matrix corr_matrix_test = + auto corr_matrix_test = in__.template read_constrain_corr_matrix< Eigen::Matrix, jacobian__>(lp__, N); - Eigen::Matrix cov_matrix_test = + auto cov_matrix_test = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, N); - Eigen::Matrix chol_fac_cov_test = + auto chol_fac_cov_test = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, K, K); - Eigen::Matrix chol_fac_corr_test = + auto chol_fac_corr_test = in__.template read_constrain_cholesky_factor_corr< Eigen::Matrix, jacobian__>(lp__, K); double phi = std::numeric_limits::quiet_NaN(); @@ -3285,7 +3272,7 @@ class deep_dependence_model final : public model_base_crtp X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); @@ -3364,7 +3351,7 @@ class deep_dependence_model final : public model_base_crtp X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); @@ -3454,7 +3441,7 @@ class deep_dependence_model final : public model_base_crtp X_p = + auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = Eigen::Matrix::Constant(10, 10, @@ -4226,51 +4213,47 @@ class indexing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha = in__.template read(); - Eigen::Matrix p_soa_vec_v = + auto alpha = in__.template read(); + auto p_soa_vec_v = in__.template read>(M); - Eigen::Matrix p_soa_mat = + auto p_soa_mat = in__.template read>(N, M); - std::vector> p_soa_arr_vec_v = + auto p_soa_arr_vec_v = in__.template read< std::vector>>(10, N); - Eigen::Matrix p_soa_mat_uni_col_idx = + auto p_soa_mat_uni_col_idx = in__.template read>(N, M); - Eigen::Matrix p_soa_vec_uni_idx = + auto p_soa_vec_uni_idx = in__.template read>(N); - Eigen::Matrix p_soa_loop_mat_uni_col_idx = + auto p_soa_loop_mat_uni_col_idx = in__.template read>(N, M); - Eigen::Matrix p_soa_lhs_loop_mul = + auto p_soa_lhs_loop_mul = in__.template read>(N); - Eigen::Matrix p_soa_rhs_loop_mul = + auto p_soa_rhs_loop_mul = in__.template read>(N); - Eigen::Matrix - p_soa_used_with_aos_in_excluded_fun = + auto p_soa_used_with_aos_in_excluded_fun = in__.template read>(N); - Eigen::Matrix - p_soa_loop_mat_multi_uni_uni_idx = + auto p_soa_loop_mat_multi_uni_uni_idx = in__.template read>(N, M); - Eigen::Matrix p_aos_vec_v_assign_to_aos = + auto p_aos_vec_v_assign_to_aos = in__.template read>(M); - Eigen::Matrix p_aos_vec_v_tp_fails_func = + auto p_aos_vec_v_tp_fails_func = in__.template read>(M); - Eigen::Matrix p_aos_loop_vec_v_uni_idx = + auto p_aos_loop_vec_v_uni_idx = in__.template read>(M); - Eigen::Matrix p_aos_fail_assign_from_top_idx = + auto p_aos_fail_assign_from_top_idx = in__.template read>(M); - Eigen::Matrix p_aos_loop_mat_uni_uni_idx = + auto p_aos_loop_mat_uni_uni_idx = in__.template read>(N, M); - Eigen::Matrix p_aos_mat = + auto p_aos_mat = in__.template read>(N, M); - Eigen::Matrix - p_aos_mat_pass_func_outer_single_indexed1 = + auto p_aos_mat_pass_func_outer_single_indexed1 = in__.template read>(N, M); - Eigen::Matrix - p_aos_mat_pass_func_outer_single_indexed2 = + auto p_aos_mat_pass_func_outer_single_indexed2 = in__.template read>(N, M); - Eigen::Matrix p_aos_mat_fail_uni_uni_idx1 = + auto p_aos_mat_fail_uni_uni_idx1 = in__.template read>(N, M); - Eigen::Matrix p_aos_mat_fail_uni_uni_idx2 = + auto p_aos_mat_fail_uni_uni_idx2 = in__.template read>(N, M); local_scalar_t__ tp_real_from_aos = DUMMY_VAR__; current_statement__ = 22; @@ -4572,54 +4555,47 @@ class indexing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha = in__.template read(); - stan::math::var_value> p_soa_vec_v = + auto alpha = in__.template read(); + auto p_soa_vec_v = in__.template read>(M); - stan::math::var_value> p_soa_mat = + auto p_soa_mat = in__.template read>(N, M); - std::vector>> - p_soa_arr_vec_v = + auto p_soa_arr_vec_v = in__.template read< std::vector>>(10, N); - stan::math::var_value> - p_soa_mat_uni_col_idx = + auto p_soa_mat_uni_col_idx = in__.template read>(N, M); - stan::math::var_value> p_soa_vec_uni_idx = + auto p_soa_vec_uni_idx = in__.template read>(N); - stan::math::var_value> - p_soa_loop_mat_uni_col_idx = + auto p_soa_loop_mat_uni_col_idx = in__.template read>(N, M); - stan::math::var_value> p_soa_lhs_loop_mul = + auto p_soa_lhs_loop_mul = in__.template read>(N); - stan::math::var_value> p_soa_rhs_loop_mul = + auto p_soa_rhs_loop_mul = in__.template read>(N); - stan::math::var_value> - p_soa_used_with_aos_in_excluded_fun = + auto p_soa_used_with_aos_in_excluded_fun = in__.template read>(N); - stan::math::var_value> - p_soa_loop_mat_multi_uni_uni_idx = + auto p_soa_loop_mat_multi_uni_uni_idx = in__.template read>(N, M); - Eigen::Matrix p_aos_vec_v_assign_to_aos = + auto p_aos_vec_v_assign_to_aos = in__.template read>(M); - Eigen::Matrix p_aos_vec_v_tp_fails_func = + auto p_aos_vec_v_tp_fails_func = in__.template read>(M); - Eigen::Matrix p_aos_loop_vec_v_uni_idx = + auto p_aos_loop_vec_v_uni_idx = in__.template read>(M); - Eigen::Matrix p_aos_fail_assign_from_top_idx = + auto p_aos_fail_assign_from_top_idx = in__.template read>(M); - Eigen::Matrix p_aos_loop_mat_uni_uni_idx = + auto p_aos_loop_mat_uni_uni_idx = in__.template read>(N, M); - Eigen::Matrix p_aos_mat = + auto p_aos_mat = in__.template read>(N, M); - Eigen::Matrix - p_aos_mat_pass_func_outer_single_indexed1 = + auto p_aos_mat_pass_func_outer_single_indexed1 = in__.template read>(N, M); - Eigen::Matrix - p_aos_mat_pass_func_outer_single_indexed2 = + auto p_aos_mat_pass_func_outer_single_indexed2 = in__.template read>(N, M); - Eigen::Matrix p_aos_mat_fail_uni_uni_idx1 = + auto p_aos_mat_fail_uni_uni_idx1 = in__.template read>(N, M); - Eigen::Matrix p_aos_mat_fail_uni_uni_idx2 = + auto p_aos_mat_fail_uni_uni_idx2 = in__.template read>(N, M); local_scalar_t__ tp_real_from_aos = DUMMY_VAR__; current_statement__ = 22; @@ -4945,47 +4921,47 @@ class indexing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double alpha = in__.template read(); - Eigen::Matrix p_soa_vec_v = + auto alpha = in__.template read(); + auto p_soa_vec_v = in__.template read>(M); - Eigen::Matrix p_soa_mat = + auto p_soa_mat = in__.template read>(N, M); - std::vector> p_soa_arr_vec_v = + auto p_soa_arr_vec_v = in__.template read< std::vector>>(10, N); - Eigen::Matrix p_soa_mat_uni_col_idx = + auto p_soa_mat_uni_col_idx = in__.template read>(N, M); - Eigen::Matrix p_soa_vec_uni_idx = + auto p_soa_vec_uni_idx = in__.template read>(N); - Eigen::Matrix p_soa_loop_mat_uni_col_idx = + auto p_soa_loop_mat_uni_col_idx = in__.template read>(N, M); - Eigen::Matrix p_soa_lhs_loop_mul = + auto p_soa_lhs_loop_mul = in__.template read>(N); - Eigen::Matrix p_soa_rhs_loop_mul = + auto p_soa_rhs_loop_mul = in__.template read>(N); - Eigen::Matrix p_soa_used_with_aos_in_excluded_fun = + auto p_soa_used_with_aos_in_excluded_fun = in__.template read>(N); - Eigen::Matrix p_soa_loop_mat_multi_uni_uni_idx = + auto p_soa_loop_mat_multi_uni_uni_idx = in__.template read>(N, M); - Eigen::Matrix p_aos_vec_v_assign_to_aos = + auto p_aos_vec_v_assign_to_aos = in__.template read>(M); - Eigen::Matrix p_aos_vec_v_tp_fails_func = + auto p_aos_vec_v_tp_fails_func = in__.template read>(M); - Eigen::Matrix p_aos_loop_vec_v_uni_idx = + auto p_aos_loop_vec_v_uni_idx = in__.template read>(M); - Eigen::Matrix p_aos_fail_assign_from_top_idx = + auto p_aos_fail_assign_from_top_idx = in__.template read>(M); - Eigen::Matrix p_aos_loop_mat_uni_uni_idx = + auto p_aos_loop_mat_uni_uni_idx = in__.template read>(N, M); - Eigen::Matrix p_aos_mat = + auto p_aos_mat = in__.template read>(N, M); - Eigen::Matrix p_aos_mat_pass_func_outer_single_indexed1 = + auto p_aos_mat_pass_func_outer_single_indexed1 = in__.template read>(N, M); - Eigen::Matrix p_aos_mat_pass_func_outer_single_indexed2 = + auto p_aos_mat_pass_func_outer_single_indexed2 = in__.template read>(N, M); - Eigen::Matrix p_aos_mat_fail_uni_uni_idx1 = + auto p_aos_mat_fail_uni_uni_idx1 = in__.template read>(N, M); - Eigen::Matrix p_aos_mat_fail_uni_uni_idx2 = + auto p_aos_mat_fail_uni_uni_idx2 = in__.template read>(N, M); double tp_real_from_aos = std::numeric_limits::quiet_NaN(); Eigen::Matrix tp_aos_vec_v = @@ -6252,8 +6228,8 @@ class indexing2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha = in__.template read(); - Eigen::Matrix p_aos_loop_single_idx = + auto alpha = in__.template read(); + auto p_aos_loop_single_idx = in__.template read>(10); { current_statement__ = 3; @@ -6323,8 +6299,8 @@ class indexing2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - local_scalar_t__ alpha = in__.template read(); - Eigen::Matrix p_aos_loop_single_idx = + auto alpha = in__.template read(); + auto p_aos_loop_single_idx = in__.template read>(10); { current_statement__ = 3; @@ -6410,8 +6386,8 @@ class indexing2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - double alpha = in__.template read(); - Eigen::Matrix p_aos_loop_single_idx = + auto alpha = in__.template read(); + auto p_aos_loop_single_idx = in__.template read>(10); out__.write(alpha); out__.write(p_aos_loop_single_idx); @@ -6795,11 +6771,11 @@ class reductions_allowed_model final : public model_base_crtp soa_x = + auto soa_x = in__.template read>(5, 10); - Eigen::Matrix aos_x = + auto aos_x = in__.template read>(5, 10); - Eigen::Matrix aos_y = + auto aos_y = in__.template read>(5, 10); local_scalar_t__ tp_real_from_soa = DUMMY_VAR__; current_statement__ = 4; @@ -6852,11 +6828,11 @@ class reductions_allowed_model final : public model_base_crtp> soa_x = + auto soa_x = in__.template read>(5, 10); - Eigen::Matrix aos_x = + auto aos_x = in__.template read>(5, 10); - Eigen::Matrix aos_y = + auto aos_y = in__.template read>(5, 10); local_scalar_t__ tp_real_from_soa = DUMMY_VAR__; current_statement__ = 4; @@ -6920,11 +6896,11 @@ class reductions_allowed_model final : public model_base_crtp soa_x = + auto soa_x = in__.template read>(5, 10); - Eigen::Matrix aos_x = + auto aos_x = in__.template read>(5, 10); - Eigen::Matrix aos_y = + auto aos_y = in__.template read>(5, 10); double tp_real_from_soa = std::numeric_limits::quiet_NaN(); Eigen::Matrix tp_matrix_aos_from_mix = @@ -7438,9 +7414,9 @@ class return_types_and_udfs_demotes_model final : public model_base_crtp row_soa = + auto row_soa = in__.template read>(10, 10); - Eigen::Matrix udf_input_aos = + auto udf_input_aos = in__.template read>(10, 10); Eigen::Matrix user_func_aos = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); @@ -7503,9 +7479,9 @@ class return_types_and_udfs_demotes_model final : public model_base_crtp> row_soa = + auto row_soa = in__.template read>(10, 10); - Eigen::Matrix udf_input_aos = + auto udf_input_aos = in__.template read>(10, 10); Eigen::Matrix user_func_aos = Eigen::Matrix::Constant(10, 10, DUMMY_VAR__); @@ -7579,9 +7555,9 @@ class return_types_and_udfs_demotes_model final : public model_base_crtp row_soa = + auto row_soa = in__.template read>(10, 10); - Eigen::Matrix udf_input_aos = + auto udf_input_aos = in__.template read>(10, 10); Eigen::Matrix user_func_aos = Eigen::Matrix::Constant(10, 10, @@ -8053,9 +8029,9 @@ class single_indexing_model final : public model_base_crtp aos_p = + auto aos_p = in__.template read>(10, 10); - Eigen::Matrix soa_p = + auto soa_p = in__.template read>(10, 10); local_scalar_t__ tp_real_from_soa = DUMMY_VAR__; current_statement__ = 3; @@ -8111,9 +8087,9 @@ class single_indexing_model final : public model_base_crtp aos_p = + auto aos_p = in__.template read>(10, 10); - stan::math::var_value> soa_p = + auto soa_p = in__.template read>(10, 10); local_scalar_t__ tp_real_from_soa = DUMMY_VAR__; current_statement__ = 3; @@ -8186,9 +8162,9 @@ class single_indexing_model final : public model_base_crtp aos_p = + auto aos_p = in__.template read>(10, 10); - Eigen::Matrix soa_p = + auto soa_p = in__.template read>(10, 10); double tp_real_from_soa = std::numeric_limits::quiet_NaN(); out__.write(aos_p); @@ -8644,9 +8620,9 @@ class tp_reused_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix first_pass_soa_x = + auto first_pass_soa_x = in__.template read>(5, 10); - Eigen::Matrix aos_x = + auto aos_x = in__.template read>(5, 10); Eigen::Matrix tp_matrix_aos = Eigen::Matrix::Constant(5, 10, DUMMY_VAR__); @@ -8686,9 +8662,9 @@ class tp_reused_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix first_pass_soa_x = + auto first_pass_soa_x = in__.template read>(5, 10); - Eigen::Matrix aos_x = + auto aos_x = in__.template read>(5, 10); Eigen::Matrix tp_matrix_aos = Eigen::Matrix::Constant(5, 10, DUMMY_VAR__); @@ -8739,9 +8715,9 @@ class tp_reused_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix first_pass_soa_x = + auto first_pass_soa_x = in__.template read>(5, 10); - Eigen::Matrix aos_x = + auto aos_x = in__.template read>(5, 10); Eigen::Matrix tp_matrix_aos = Eigen::Matrix::Constant(5, 10, @@ -9722,9 +9698,9 @@ class tuple_test2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix m1 = + auto m1 = in__.template read>(3, 3); - Eigen::Matrix m2 = + auto m2 = in__.template read>(3, 3); { std::tuple, @@ -9780,9 +9756,9 @@ class tuple_test2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix m1 = + auto m1 = in__.template read>(3, 3); - Eigen::Matrix m2 = + auto m2 = in__.template read>(3, 3); { std::tuple, @@ -9849,9 +9825,9 @@ class tuple_test2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix m1 = + auto m1 = in__.template read>(3, 3); - Eigen::Matrix m2 = + auto m2 = in__.template read>(3, 3); out__.write(m1); out__.write(m2); diff --git a/test/integration/good/tuples/cpp.expected b/test/integration/good/tuples/cpp.expected index f3030b5cc..90dd9ab2b 100644 --- a/test/integration/good/tuples/cpp.expected +++ b/test/integration/good/tuples/cpp.expected @@ -2651,7 +2651,7 @@ class infer_tuple_ad_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ x = in__.template read(); + auto x = in__.template read(); { std::vector> z = std::vector>(2, @@ -2694,7 +2694,7 @@ class infer_tuple_ad_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - local_scalar_t__ x = in__.template read(); + auto x = in__.template read(); { std::vector> z = std::vector>(2, @@ -2748,7 +2748,7 @@ class infer_tuple_ad_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double x = in__.template read(); + auto x = in__.template read(); out__.write(x); if (stan::math::logical_negation( (stan::math::primitive_value(emit_transformed_parameters__) || @@ -3457,7 +3457,7 @@ class qr_unpack_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix A = + auto A = in__.template read>(N, M); { current_statement__ = 2; @@ -3517,7 +3517,7 @@ class qr_unpack_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix A = + auto A = in__.template read>(N, M); { current_statement__ = 2; @@ -3588,7 +3588,7 @@ class qr_unpack_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix A = + auto A = in__.template read>(N, M); out__.write(A); if (stan::math::logical_negation( @@ -5308,7 +5308,7 @@ class tuple_constraints_params_model final : public model_base_crtp>{DUMMY_VAR__, Eigen::Matrix::Constant(4, DUMMY_VAR__)})); - local_scalar_t__ t = + auto t = in__.template read_constrain_lub(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); std::vector< @@ -5386,7 +5386,7 @@ class tuple_constraints_params_model final : public model_base_crtp>{DUMMY_VAR__, Eigen::Matrix::Constant(4, DUMMY_VAR__)})); - local_scalar_t__ t = + auto t = in__.template read_constrain_lub(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); std::vector< @@ -5470,7 +5470,7 @@ class tuple_constraints_params_model final : public model_base_crtp::Constant(4, std::numeric_limits::quiet_NaN())})); - double t = + auto t = in__.template read_constrain_lub(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); std::vector< @@ -11756,9 +11756,9 @@ class tuple_copying_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix m1 = + auto m1 = in__.template read>(3, 3); - Eigen::Matrix m2 = + auto m2 = in__.template read>(3, 3); { std::tuple, @@ -11858,9 +11858,9 @@ class tuple_copying_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix m1 = + auto m1 = in__.template read>(3, 3); - Eigen::Matrix m2 = + auto m2 = in__.template read>(3, 3); { std::tuple, @@ -11971,9 +11971,9 @@ class tuple_copying_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - Eigen::Matrix m1 = + auto m1 = in__.template read>(3, 3); - Eigen::Matrix m2 = + auto m2 = in__.template read>(3, 3); out__.write(m1); out__.write(m2); @@ -12804,8 +12804,7 @@ class tuple_hof_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector param_y = - in__.template read>(N); + auto param_y = in__.template read>(N); local_scalar_t__ sum2 = DUMMY_VAR__; current_statement__ = 2; sum2 = stan::math::reduce_sum(param_y, 1, pstream__, @@ -12840,8 +12839,7 @@ class tuple_hof_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector param_y = - in__.template read>(N); + auto param_y = in__.template read>(N); local_scalar_t__ sum2 = DUMMY_VAR__; current_statement__ = 2; sum2 = stan::math::reduce_sum(param_y, 1, pstream__, @@ -12887,8 +12885,7 @@ class tuple_hof_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { - std::vector param_y = - in__.template read>(N); + auto param_y = in__.template read>(N); double sum2 = std::numeric_limits::quiet_NaN(); out__.write(param_y); if (stan::math::logical_negation( @@ -14741,9 +14738,8 @@ class unpack_promote_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - std::vector alpha = - in__.template read>(N); - Eigen::Matrix theta = + auto alpha = in__.template read>(N); + auto theta = in__.template read>(N); { current_statement__ = 3; @@ -14892,9 +14888,8 @@ class unpack_promote_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - std::vector alpha = - in__.template read>(N); - Eigen::Matrix theta = + auto alpha = in__.template read>(N); + auto theta = in__.template read>(N); { current_statement__ = 3; @@ -15054,9 +15049,8 @@ class unpack_promote_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - std::vector alpha = - in__.template read>(N); - Eigen::Matrix theta = + auto alpha = in__.template read>(N); + auto theta = in__.template read>(N); out__.write(alpha); out__.write(theta); From ab91640e6f77971807cc4b27eb586a3c4a4e06c1 Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Thu, 18 Jul 2024 17:48:31 -0400 Subject: [PATCH 05/17] update --- src/analysis_and_optimization/Optimize.ml | 23 +++--- src/middle/Stmt.ml | 9 ++- test/integration/good/code-gen/cpp.expected | 16 ++++ test/integration/good/code-gen/lir.expected | 8 ++ test/integration/good/code-gen/mir.expected | 26 ++++--- .../good/code-gen/transformed_mir.expected | 26 ++++--- .../good/compiler-optimizations/cpp.expected | 77 ++++++++++++------- .../compiler-optimizations/cppO1.expected | 55 ++++++++----- test/unit/Optimize.ml | 6 +- 9 files changed, 163 insertions(+), 83 deletions(-) diff --git a/src/analysis_and_optimization/Optimize.ml b/src/analysis_and_optimization/Optimize.ml index 91f43df9a..7fc45ce19 100644 --- a/src/analysis_and_optimization/Optimize.ml +++ b/src/analysis_and_optimization/Optimize.ml @@ -203,15 +203,20 @@ let handle_early_returns (fname : string) opt_var stmt = ; decl_id= returned ; decl_type= Sized SInt ; initialize= true - ; assignment= - Some - Expr.Fixed. - { pattern= Lit (Int, "0") - ; meta= - Expr.Typed.Meta. - { type_= UInt - ; adlevel= DataOnly - ; loc= Location_span.empty } } } + ; assignment= None } + ; meta= Location_span.empty } + ; Stmt.Fixed. + { pattern= + Assignment + ( Stmt.Helpers.lvariable returned + , UInt + , Expr.Fixed. + { pattern= Lit (Int, "0") + ; meta= + Expr.Typed.Meta. + { type_= UInt + ; adlevel= DataOnly + ; loc= Location_span.empty } } ) ; meta= Location_span.empty } ; Stmt.Fixed. { pattern= diff --git a/src/middle/Stmt.ml b/src/middle/Stmt.ml index 16bc101bf..ea5cd8686 100644 --- a/src/middle/Stmt.ml +++ b/src/middle/Stmt.ml @@ -151,9 +151,14 @@ module Helpers = struct ; decl_id= sym ; decl_type= Unsized (Expr.Typed.type_of e) ; initialize= true - ; assignment= Some e } + ; assignment= None } ; meta= e.meta.loc } in - loop es (Gensym.generate ()) (decl :: inits) + let assign = + { decl with + Fixed.pattern= + Assignment ((LVariable sym, []), Expr.Typed.type_of e, e) } + in + loop es (Gensym.generate ()) (decl :: assign :: inits) ({e with pattern= Var sym} :: vars) in let setups, exprs = loop (List.rev exprs) sym [] [] in (setups, exprs, reset) diff --git a/test/integration/good/code-gen/cpp.expected b/test/integration/good/code-gen/cpp.expected index 744143a35..1fba40e5b 100644 --- a/test/integration/good/code-gen/cpp.expected +++ b/test/integration/good/code-gen/cpp.expected @@ -11271,6 +11271,10 @@ class mother_model final : public model_base_crtp { "assigning variable indices"); { std::vector sym1__; + current_statement__ = 354; + stan::model::assign(sym1__, + stan::model::rvalue(indices, "indices", + stan::model::index_min_max(1, 3)), "assigning variable sym1__"); current_statement__ = 355; for (int sym3__ = 1; sym3__ <= stan::math::size(sym1__); ++sym3__) { int i; @@ -46998,7 +47002,13 @@ class vector_truncate_model final : public model_base_crtp sym2__; + current_statement__ = 78; + stan::model::assign(sym2__, stan::math::multiply(vector_mu, 4), + "assigning variable sym2__"); Eigen::Matrix sym1__; + current_statement__ = 79; + stan::model::assign(sym1__, stan::math::add(vector_sigma, 1), + "assigning variable sym1__"); current_statement__ = 80; for (int sym4__ = 1; sym4__ <= stan::math::size(sym2__); ++sym4__) { current_statement__ = 80; @@ -47507,7 +47517,13 @@ class vector_truncate_model final : public model_base_crtp sym2__; + current_statement__ = 78; + stan::model::assign(sym2__, stan::math::multiply(vector_mu, 4), + "assigning variable sym2__"); Eigen::Matrix sym1__; + current_statement__ = 79; + stan::model::assign(sym1__, stan::math::add(vector_sigma, 1), + "assigning variable sym1__"); current_statement__ = 80; for (int sym4__ = 1; sym4__ <= stan::math::size(sym2__); ++sym4__) { current_statement__ = 80; diff --git a/test/integration/good/code-gen/lir.expected b/test/integration/good/code-gen/lir.expected index 58e77aa4c..ce107ba1a 100644 --- a/test/integration/good/code-gen/lir.expected +++ b/test/integration/good/code-gen/lir.expected @@ -17473,6 +17473,14 @@ ((VariableDefn ((static false) (constexpr false) (type_ (StdVector Int)) (name sym1__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 354))) + (Expression + (FunCall stan::model::assign () + ((Var sym1__) + (FunCall stan::model::rvalue () + ((Var indices) (Literal "\"indices\"") + (FunCall stan::model::index_min_max () ((Literal 1) (Literal 3))))) + (Literal "\"assigning variable sym1__\"")))) (Expression (Assign (Var current_statement__) (Literal 355))) (For ((static false) (constexpr false) (type_ Int) (name sym3__) diff --git a/test/integration/good/code-gen/mir.expected b/test/integration/good/code-gen/mir.expected index 9a7f6a04e..c4d384ca1 100644 --- a/test/integration/good/code-gen/mir.expected +++ b/test/integration/good/code-gen/mir.expected @@ -4466,18 +4466,20 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id sym1__) - (decl_type (Unsized (UArray UInt))) (initialize true) - (assignment - (((pattern - (Indexed - ((pattern (Var indices)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Between - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) + (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable sym1__) ()) (UArray UInt) + ((pattern + (Indexed + ((pattern (Var indices)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Between + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (For (loopvar sym3__) diff --git a/test/integration/good/code-gen/transformed_mir.expected b/test/integration/good/code-gen/transformed_mir.expected index 676098016..eb91c9d7c 100644 --- a/test/integration/good/code-gen/transformed_mir.expected +++ b/test/integration/good/code-gen/transformed_mir.expected @@ -4589,18 +4589,20 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id sym1__) - (decl_type (Unsized (UArray UInt))) (initialize true) - (assignment - (((pattern - (Indexed - ((pattern (Var indices)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Between - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) + (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable sym1__) ()) (UArray UInt) + ((pattern + (Indexed + ((pattern (Var indices)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Between + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (For (loopvar sym3__) diff --git a/test/integration/good/compiler-optimizations/cpp.expected b/test/integration/good/compiler-optimizations/cpp.expected index 45607e0a0..1f80dc5bd 100644 --- a/test/integration/good/compiler-optimizations/cpp.expected +++ b/test/integration/good/compiler-optimizations/cpp.expected @@ -16441,7 +16441,8 @@ class expr_prop_fail6_model final : public model_base_crtp::min(); int inline_first_capture_return_sym10__; - int inline_first_capture_early_ret_check_sym12__ = 0; + int inline_first_capture_early_ret_check_sym12__; + inline_first_capture_early_ret_check_sym12__ = 0; for (int inline_first_capture_iterator_sym13__ = 1; inline_first_capture_iterator_sym13__ <= 1; ++inline_first_capture_iterator_sym13__) { lcm_sym169__ = stan::math::size( @@ -16474,7 +16475,8 @@ class expr_prop_fail6_model final : public model_base_crtp::min(); int inline_first_capture_return_sym10__; - int inline_first_capture_early_ret_check_sym12__ = 0; + int inline_first_capture_early_ret_check_sym12__; + inline_first_capture_early_ret_check_sym12__ = 0; for (int inline_first_capture_iterator_sym13__ = 1; inline_first_capture_iterator_sym13__ <= 1; ++inline_first_capture_iterator_sym13__) { lcm_sym168__ = stan::math::size( @@ -21444,7 +21446,7 @@ class function_in_function_loops_model final : public model_base_crtp::min(); for (int inline_summer_inline_do_something_iterator_sym6___sym20__ = 1; inline_summer_inline_do_something_iterator_sym6___sym20__ @@ -21462,7 +21464,7 @@ class function_in_function_loops_model final : public model_base_crtp::min(); for (int inline_summer_inline_do_something_iterator_sym6___sym20__ = 1; inline_summer_inline_do_something_iterator_sym6___sym20__ @@ -21540,7 +21542,7 @@ class function_in_function_loops_model final : public model_base_crtp::min(); for (int inline_summer_inline_do_something_iterator_sym6___sym12__ = 1; inline_summer_inline_do_something_iterator_sym6___sym12__ @@ -21558,7 +21560,7 @@ class function_in_function_loops_model final : public model_base_crtp::min(); for (int inline_summer_inline_do_something_iterator_sym6___sym12__ = 1; inline_summer_inline_do_something_iterator_sym6___sym12__ @@ -22972,7 +22974,8 @@ class inline_functions_varmat_model final : public model_base_crtp::Constant(5, DUMMY_VAR__); Eigen::Matrix inline_multi_ret_fun_return_sym15__; - int inline_multi_ret_fun_early_ret_check_sym17__ = 0; + int inline_multi_ret_fun_early_ret_check_sym17__ = + std::numeric_limits::min(); for (int inline_multi_ret_fun_iterator_sym18__ = 1; inline_multi_ret_fun_iterator_sym18__ <= 1; ++inline_multi_ret_fun_iterator_sym18__) { Eigen::Matrix inline_multi_ret_fun_B_sym16__ = @@ -23045,7 +23048,8 @@ class inline_functions_varmat_model final : public model_base_crtp> inline_multi_ret_fun_return_sym9__; - int inline_multi_ret_fun_early_ret_check_sym11__ = 0; + int inline_multi_ret_fun_early_ret_check_sym11__ = + std::numeric_limits::min(); for (int inline_multi_ret_fun_iterator_sym12__ = 1; inline_multi_ret_fun_iterator_sym12__ <= 1; ++inline_multi_ret_fun_iterator_sym12__) { stan::math::var_value> @@ -23135,7 +23139,8 @@ class inline_functions_varmat_model final : public model_base_crtp inline_multi_ret_fun_return_sym3__; - int inline_multi_ret_fun_early_ret_check_sym5__ = 0; + int inline_multi_ret_fun_early_ret_check_sym5__ = + std::numeric_limits::min(); for (int inline_multi_ret_fun_iterator_sym6__ = 1; inline_multi_ret_fun_iterator_sym6__ <= 1; ++inline_multi_ret_fun_iterator_sym6__) { Eigen::Matrix inline_multi_ret_fun_B_sym4__ = @@ -27888,7 +27893,8 @@ class inlining_fail2_model final : public model_base_crtp if (lcm_sym143__) { int f = std::numeric_limits::min(); int inline_first_capture_return_sym16__; - int inline_first_capture_early_ret_check_sym18__ = 0; + int inline_first_capture_early_ret_check_sym18__; + inline_first_capture_early_ret_check_sym18__ = 0; for (int inline_first_capture_iterator_sym19__ = 1; inline_first_capture_iterator_sym19__ <= 1; ++inline_first_capture_iterator_sym19__) { lcm_sym190__ = stan::math::size( @@ -27921,7 +27927,8 @@ class inlining_fail2_model final : public model_base_crtp for (int i = 2; i <= M; ++i) { int f = std::numeric_limits::min(); int inline_first_capture_return_sym16__; - int inline_first_capture_early_ret_check_sym18__ = 0; + int inline_first_capture_early_ret_check_sym18__; + inline_first_capture_early_ret_check_sym18__ = 0; for (int inline_first_capture_iterator_sym19__ = 1; inline_first_capture_iterator_sym19__ <= 1; ++inline_first_capture_iterator_sym19__) { lcm_sym189__ = stan::math::size( @@ -34051,7 +34058,8 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } int inline_rfun_return_sym29__; - int inline_rfun_early_ret_check_sym30__ = 0; + int inline_rfun_early_ret_check_sym30__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym31__ = 1; inline_rfun_iterator_sym31__ <= 1; ++inline_rfun_iterator_sym31__) { { @@ -34066,7 +34074,8 @@ class optimizations_model final : public model_base_crtp { *(pstream__) << std::endl; } int inline_rfun_return_sym32__; - int inline_rfun_early_ret_check_sym33__ = 0; + int inline_rfun_early_ret_check_sym33__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym34__ = 1; inline_rfun_iterator_sym34__ <= 1; ++inline_rfun_iterator_sym34__) { { @@ -34085,7 +34094,8 @@ class optimizations_model final : public model_base_crtp { } int inline_rfun_return_sym35__; int inline_rfun_return_sym38__; - int inline_rfun_early_ret_check_sym36__ = 0; + int inline_rfun_early_ret_check_sym36__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym37__ = 1; inline_rfun_iterator_sym37__ <= 1; ++inline_rfun_iterator_sym37__) { { @@ -34095,7 +34105,8 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym35__ = 9; break; } - int inline_rfun_early_ret_check_sym39__ = 0; + int inline_rfun_early_ret_check_sym39__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym40__ = 1; inline_rfun_iterator_sym40__ <= 1; ++inline_rfun_iterator_sym40__) { { @@ -34109,7 +34120,8 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym35__)) { { int inline_rfun_return_sym41__; - int inline_rfun_early_ret_check_sym42__ = 0; + int inline_rfun_early_ret_check_sym42__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym43__ = 1; inline_rfun_iterator_sym43__ <= 1; ++inline_rfun_iterator_sym43__) { { @@ -34125,7 +34137,8 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } } - int inline_rfun_early_ret_check_sym39__ = 0; + int inline_rfun_early_ret_check_sym39__ = + std::numeric_limits::min(); lcm_sym101__ = (inline_rfun_return_sym35__ + 1); for (int inline_rfun_iterator_sym40__ = 1; inline_rfun_iterator_sym40__ <= 1; ++inline_rfun_iterator_sym40__) { @@ -34141,7 +34154,8 @@ class optimizations_model final : public model_base_crtp { for (int i = lcm_sym101__; i <= inline_rfun_return_sym38__; ++i) { { int inline_rfun_return_sym41__; - int inline_rfun_early_ret_check_sym42__ = 0; + int inline_rfun_early_ret_check_sym42__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym43__ = 1; inline_rfun_iterator_sym43__ <= 1; ++inline_rfun_iterator_sym43__) { { @@ -34157,7 +34171,8 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } } - int inline_rfun_early_ret_check_sym39__ = 0; + int inline_rfun_early_ret_check_sym39__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym40__ = 1; inline_rfun_iterator_sym40__ <= 1; ++inline_rfun_iterator_sym40__) { { @@ -34572,7 +34587,8 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } int inline_rfun_return_sym2__; - int inline_rfun_early_ret_check_sym3__ = 0; + int inline_rfun_early_ret_check_sym3__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym4__ = 1; inline_rfun_iterator_sym4__ <= 1; ++inline_rfun_iterator_sym4__) { { @@ -34587,7 +34603,8 @@ class optimizations_model final : public model_base_crtp { *(pstream__) << std::endl; } int inline_rfun_return_sym5__; - int inline_rfun_early_ret_check_sym6__ = 0; + int inline_rfun_early_ret_check_sym6__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym7__ = 1; inline_rfun_iterator_sym7__ <= 1; ++inline_rfun_iterator_sym7__) { { @@ -34606,7 +34623,8 @@ class optimizations_model final : public model_base_crtp { } int inline_rfun_return_sym8__; int inline_rfun_return_sym11__; - int inline_rfun_early_ret_check_sym9__ = 0; + int inline_rfun_early_ret_check_sym9__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym10__ = 1; inline_rfun_iterator_sym10__ <= 1; ++inline_rfun_iterator_sym10__) { { @@ -34616,7 +34634,8 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym8__ = 9; break; } - int inline_rfun_early_ret_check_sym12__ = 0; + int inline_rfun_early_ret_check_sym12__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym13__ = 1; inline_rfun_iterator_sym13__ <= 1; ++inline_rfun_iterator_sym13__) { { @@ -34630,7 +34649,8 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym8__)) { { int inline_rfun_return_sym14__; - int inline_rfun_early_ret_check_sym15__ = 0; + int inline_rfun_early_ret_check_sym15__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym16__ = 1; inline_rfun_iterator_sym16__ <= 1; ++inline_rfun_iterator_sym16__) { { @@ -34646,7 +34666,8 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } } - int inline_rfun_early_ret_check_sym12__ = 0; + int inline_rfun_early_ret_check_sym12__ = + std::numeric_limits::min(); lcm_sym77__ = (inline_rfun_return_sym8__ + 1); for (int inline_rfun_iterator_sym13__ = 1; inline_rfun_iterator_sym13__ <= 1; ++inline_rfun_iterator_sym13__) { @@ -34662,7 +34683,8 @@ class optimizations_model final : public model_base_crtp { for (int i = lcm_sym77__; i <= inline_rfun_return_sym11__; ++i) { { int inline_rfun_return_sym14__; - int inline_rfun_early_ret_check_sym15__ = 0; + int inline_rfun_early_ret_check_sym15__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym16__ = 1; inline_rfun_iterator_sym16__ <= 1; ++inline_rfun_iterator_sym16__) { { @@ -34678,7 +34700,8 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } } - int inline_rfun_early_ret_check_sym12__ = 0; + int inline_rfun_early_ret_check_sym12__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym13__ = 1; inline_rfun_iterator_sym13__ <= 1; ++inline_rfun_iterator_sym13__) { { diff --git a/test/integration/good/compiler-optimizations/cppO1.expected b/test/integration/good/compiler-optimizations/cppO1.expected index b40b4801a..a28a409db 100644 --- a/test/integration/good/compiler-optimizations/cppO1.expected +++ b/test/integration/good/compiler-optimizations/cppO1.expected @@ -11290,7 +11290,8 @@ class expr_prop_fail6_model final : public model_base_crtp::min(); int inline_first_capture_return_sym10__; - int inline_first_capture_early_ret_check_sym12__ = 0; + int inline_first_capture_early_ret_check_sym12__; + inline_first_capture_early_ret_check_sym12__ = 0; for (int inline_first_capture_iterator_sym13__ = 1; inline_first_capture_iterator_sym13__ <= 1; ++inline_first_capture_iterator_sym13__) { for (int inline_first_capture_k_sym11__ = 1; inline_first_capture_k_sym11__ @@ -14930,7 +14931,7 @@ class function_in_function_loops_model final : public model_base_crtp::min(); for (int inline_summer_inline_do_something_iterator_sym6___sym20__ = 1; inline_summer_inline_do_something_iterator_sym6___sym20__ @@ -15000,7 +15001,7 @@ class function_in_function_loops_model final : public model_base_crtp::min(); for (int inline_summer_inline_do_something_iterator_sym6___sym12__ = 1; inline_summer_inline_do_something_iterator_sym6___sym12__ @@ -16231,7 +16232,8 @@ class inline_functions_varmat_model final : public model_base_crtp::Constant(5, DUMMY_VAR__); Eigen::Matrix inline_multi_ret_fun_return_sym15__; - int inline_multi_ret_fun_early_ret_check_sym17__ = 0; + int inline_multi_ret_fun_early_ret_check_sym17__ = + std::numeric_limits::min(); for (int inline_multi_ret_fun_iterator_sym18__ = 1; inline_multi_ret_fun_iterator_sym18__ <= 1; ++inline_multi_ret_fun_iterator_sym18__) { Eigen::Matrix inline_multi_ret_fun_B_sym16__ = @@ -16302,7 +16304,8 @@ class inline_functions_varmat_model final : public model_base_crtp> inline_multi_ret_fun_return_sym9__; - int inline_multi_ret_fun_early_ret_check_sym11__ = 0; + int inline_multi_ret_fun_early_ret_check_sym11__ = + std::numeric_limits::min(); for (int inline_multi_ret_fun_iterator_sym12__ = 1; inline_multi_ret_fun_iterator_sym12__ <= 1; ++inline_multi_ret_fun_iterator_sym12__) { stan::math::var_value> @@ -16390,7 +16393,8 @@ class inline_functions_varmat_model final : public model_base_crtp inline_multi_ret_fun_return_sym3__; - int inline_multi_ret_fun_early_ret_check_sym5__ = 0; + int inline_multi_ret_fun_early_ret_check_sym5__ = + std::numeric_limits::min(); for (int inline_multi_ret_fun_iterator_sym6__ = 1; inline_multi_ret_fun_iterator_sym6__ <= 1; ++inline_multi_ret_fun_iterator_sym6__) { Eigen::Matrix inline_multi_ret_fun_B_sym4__ = @@ -19435,7 +19439,8 @@ class inlining_fail2_model final : public model_base_crtp for (int i = 1; i <= M; ++i) { int f = std::numeric_limits::min(); int inline_first_capture_return_sym16__; - int inline_first_capture_early_ret_check_sym18__ = 0; + int inline_first_capture_early_ret_check_sym18__; + inline_first_capture_early_ret_check_sym18__ = 0; for (int inline_first_capture_iterator_sym19__ = 1; inline_first_capture_iterator_sym19__ <= 1; ++inline_first_capture_iterator_sym19__) { for (int inline_first_capture_k_sym17__ = 1; inline_first_capture_k_sym17__ @@ -24480,7 +24485,8 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } int inline_rfun_return_sym29__; - int inline_rfun_early_ret_check_sym30__ = 0; + int inline_rfun_early_ret_check_sym30__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym31__ = 1; inline_rfun_iterator_sym31__ <= 1; ++inline_rfun_iterator_sym31__) { { @@ -24495,7 +24501,8 @@ class optimizations_model final : public model_base_crtp { *(pstream__) << std::endl; } int inline_rfun_return_sym32__; - int inline_rfun_early_ret_check_sym33__ = 0; + int inline_rfun_early_ret_check_sym33__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym34__ = 1; inline_rfun_iterator_sym34__ <= 1; ++inline_rfun_iterator_sym34__) { { @@ -24514,7 +24521,8 @@ class optimizations_model final : public model_base_crtp { } int inline_rfun_return_sym35__; int inline_rfun_return_sym38__; - int inline_rfun_early_ret_check_sym36__ = 0; + int inline_rfun_early_ret_check_sym36__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym37__ = 1; inline_rfun_iterator_sym37__ <= 1; ++inline_rfun_iterator_sym37__) { { @@ -24524,7 +24532,8 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym35__ = 9; break; } - int inline_rfun_early_ret_check_sym39__ = 0; + int inline_rfun_early_ret_check_sym39__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym40__ = 1; inline_rfun_iterator_sym40__ <= 1; ++inline_rfun_iterator_sym40__) { { @@ -24538,7 +24547,8 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym38__; ++i) { { int inline_rfun_return_sym41__; - int inline_rfun_early_ret_check_sym42__ = 0; + int inline_rfun_early_ret_check_sym42__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym43__ = 1; inline_rfun_iterator_sym43__ <= 1; ++inline_rfun_iterator_sym43__) { { @@ -24554,7 +24564,8 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } } - int inline_rfun_early_ret_check_sym39__ = 0; + int inline_rfun_early_ret_check_sym39__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym40__ = 1; inline_rfun_iterator_sym40__ <= 1; ++inline_rfun_iterator_sym40__) { { @@ -24797,7 +24808,8 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } int inline_rfun_return_sym2__; - int inline_rfun_early_ret_check_sym3__ = 0; + int inline_rfun_early_ret_check_sym3__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym4__ = 1; inline_rfun_iterator_sym4__ <= 1; ++inline_rfun_iterator_sym4__) { { @@ -24812,7 +24824,8 @@ class optimizations_model final : public model_base_crtp { *(pstream__) << std::endl; } int inline_rfun_return_sym5__; - int inline_rfun_early_ret_check_sym6__ = 0; + int inline_rfun_early_ret_check_sym6__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym7__ = 1; inline_rfun_iterator_sym7__ <= 1; ++inline_rfun_iterator_sym7__) { { @@ -24831,7 +24844,8 @@ class optimizations_model final : public model_base_crtp { } int inline_rfun_return_sym8__; int inline_rfun_return_sym11__; - int inline_rfun_early_ret_check_sym9__ = 0; + int inline_rfun_early_ret_check_sym9__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym10__ = 1; inline_rfun_iterator_sym10__ <= 1; ++inline_rfun_iterator_sym10__) { { @@ -24841,7 +24855,8 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym8__ = 9; break; } - int inline_rfun_early_ret_check_sym12__ = 0; + int inline_rfun_early_ret_check_sym12__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym13__ = 1; inline_rfun_iterator_sym13__ <= 1; ++inline_rfun_iterator_sym13__) { { @@ -24855,7 +24870,8 @@ class optimizations_model final : public model_base_crtp { inline_rfun_return_sym11__; ++i) { { int inline_rfun_return_sym14__; - int inline_rfun_early_ret_check_sym15__ = 0; + int inline_rfun_early_ret_check_sym15__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym16__ = 1; inline_rfun_iterator_sym16__ <= 1; ++inline_rfun_iterator_sym16__) { { @@ -24871,7 +24887,8 @@ class optimizations_model final : public model_base_crtp { lp_accum__.add(3); } } - int inline_rfun_early_ret_check_sym12__ = 0; + int inline_rfun_early_ret_check_sym12__ = + std::numeric_limits::min(); for (int inline_rfun_iterator_sym13__ = 1; inline_rfun_iterator_sym13__ <= 1; ++inline_rfun_iterator_sym13__) { { diff --git a/test/unit/Optimize.ml b/test/unit/Optimize.ml index 13aeafece..2df8ca189 100644 --- a/test/unit/Optimize.ml +++ b/test/unit/Optimize.ml @@ -434,7 +434,8 @@ let%expect_test "recursive functions" = log_prob { { int inline_fib_return_sym1__; - data int inline_fib_early_ret_check_sym2__ = 0; + data int inline_fib_early_ret_check_sym2__; + inline_fib_early_ret_check_sym2__ = 0; for(inline_fib_iterator_sym3__ in 1:1) { if((5 == 0)) ; else { @@ -910,7 +911,8 @@ let%expect_test "inline function multiple returns " = log_prob { { int inline_f_return_sym1__; - data int inline_f_early_ret_check_sym2__ = 0; + data int inline_f_early_ret_check_sym2__; + inline_f_early_ret_check_sym2__ = 0; for(inline_f_iterator_sym3__ in 1:1) { if(2) { FnPrint__("f"); From b6eb7a31e4a1e854e9508aa5d24281faea12380a Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Thu, 18 Jul 2024 17:54:36 -0400 Subject: [PATCH 06/17] update --- src/stan_math_backend/Transform_Mir.ml | 2 +- test/integration/good/code-gen/cl.expected | 53 + .../code-gen/complex_numbers/cpp.expected | 277 + test/integration/good/code-gen/cpp.expected | 968 +++ .../good/code-gen/expressions/cpp.expected | 14 + test/integration/good/code-gen/lir.expected | 1060 +++- .../good/code-gen/ode/cpp.expected | 11 + .../good/code-gen/opencl/cpp.expected | 44 + .../good/code-gen/profiling/cpp.expected | 11 + .../profiling/transformed_mir.expected | 57 + .../good/code-gen/transformed_mir.expected | 2946 ++++++++- .../good/compiler-optimizations/cpp.expected | 4541 +++++++++++-- .../compiler-optimizations/cppO0.expected | 408 ++ .../compiler-optimizations/cppO1.expected | 408 ++ .../mem_patterns/cpp.expected | 142 + .../mem_patterns/transformed_mir.expected | 723 +++ test/integration/good/tuples/cpp.expected | 1075 ++++ .../good/tuples/transformed_mir.expected | 5639 ++++++++++++++++- 18 files changed, 17666 insertions(+), 713 deletions(-) diff --git a/src/stan_math_backend/Transform_Mir.ml b/src/stan_math_backend/Transform_Mir.ml index 317118131..9937d2b0f 100644 --- a/src/stan_math_backend/Transform_Mir.ml +++ b/src/stan_math_backend/Transform_Mir.ml @@ -784,7 +784,7 @@ let add_reads vars mkread stmts = ; decl_type ; initialize ; assignment= Some e } } ] - | _ -> [stmt]) + | _ -> stmt :: param_reader) | _ -> [stmt] in List.concat_map ~f:add_read_to_decl stmts diff --git a/test/integration/good/code-gen/cl.expected b/test/integration/good/code-gen/cl.expected index 57ec2d41f..b4b1c5487 100644 --- a/test/integration/good/code-gen/cl.expected +++ b/test/integration/good/code-gen/cl.expected @@ -301,6 +301,20 @@ class optimize_glm_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&X_d) Eigen::Map>(X_d_data__.data(), n, k); + { + std::vector X_d_flat__; + current_statement__ = 180; + X_d_flat__ = context__.vals_r("X_d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= k; ++sym1__) { + for (int sym2__ = 1; sym2__ <= n; ++sym2__) { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 181; stan::math::validate_non_negative_index("X_d_a", "n", n); current_statement__ = 182; @@ -312,6 +326,23 @@ class optimize_glm_model final : public model_base_crtp { X_d_a = std::vector>(2, Eigen::Matrix::Constant(n, k, std::numeric_limits::quiet_NaN())); + { + std::vector X_d_a_flat__; + current_statement__ = 183; + X_d_a_flat__ = context__.vals_r("X_d_a"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= k; ++sym1__) { + for (int sym2__ = 1; sym2__ <= n; ++sym2__) { + for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { + stan::model::assign(X_d_a, X_d_a_flat__[(pos__ - 1)], + "assigning variable X_d_a", stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 184; stan::math::validate_non_negative_index("y_v_d", "n", n); current_statement__ = 185; @@ -321,6 +352,17 @@ class optimize_glm_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&y_v_d) Eigen::Map>(y_v_d_data__.data(), n); + { + std::vector y_v_d_flat__; + current_statement__ = 185; + y_v_d_flat__ = context__.vals_r("y_v_d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n; ++sym1__) { + stan::model::assign(y_v_d, y_v_d_flat__[(pos__ - 1)], + "assigning variable y_v_d", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 186; stan::math::validate_non_negative_index("X_rv_d", "n", n); current_statement__ = 187; @@ -330,6 +372,17 @@ class optimize_glm_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&X_rv_d) Eigen::Map>(X_rv_d_data__.data(), n); + { + std::vector X_rv_d_flat__; + current_statement__ = 187; + X_rv_d_flat__ = context__.vals_r("X_rv_d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n; ++sym1__) { + stan::model::assign(X_rv_d, X_rv_d_flat__[(pos__ - 1)], + "assigning variable X_rv_d", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 188; stan::math::validate_non_negative_index("y_vi_d", "n", n); current_statement__ = 189; diff --git a/test/integration/good/code-gen/complex_numbers/cpp.expected b/test/integration/good/code-gen/complex_numbers/cpp.expected index 798249fdb..7b2d2f0f2 100644 --- a/test/integration/good/code-gen/complex_numbers/cpp.expected +++ b/test/integration/good/code-gen/complex_numbers/cpp.expected @@ -2558,6 +2558,20 @@ class basic_operations_model final : public model_base_crtp,-1,-1>>(cmat_data__.data(), N, N); + { + std::vector> cmat_flat__; + current_statement__ = 119; + cmat_flat__ = context__.vals_c("cmat"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(cmat, cmat_flat__[(pos__ - 1)], + "assigning variable cmat", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 120; stan::math::validate_non_negative_index("cvec", "N", N); current_statement__ = 121; @@ -2570,6 +2584,17 @@ class basic_operations_model final : public model_base_crtp,-1,1>>(cvec_data__.data(), N); + { + std::vector> cvec_flat__; + current_statement__ = 121; + cvec_flat__ = context__.vals_c("cvec"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(cvec, cvec_flat__[(pos__ - 1)], + "assigning variable cvec", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 122; stan::math::validate_non_negative_index("crowvec", "N", N); current_statement__ = 123; @@ -2582,6 +2607,17 @@ class basic_operations_model final : public model_base_crtp,1,-1>>(crowvec_data__.data(), N); + { + std::vector> crowvec_flat__; + current_statement__ = 123; + crowvec_flat__ = context__.vals_c("crowvec"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(crowvec, crowvec_flat__[(pos__ - 1)], + "assigning variable crowvec", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 124; context__.validate_dims("data initialization", "z", "double", std::vector{static_cast(2)}); @@ -2598,6 +2634,20 @@ class basic_operations_model final : public model_base_crtp::quiet_NaN()); new (&mat) Eigen::Map>(mat_data__.data(), N, N); + { + std::vector mat_flat__; + current_statement__ = 127; + mat_flat__ = context__.vals_r("mat"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(mat, mat_flat__[(pos__ - 1)], + "assigning variable mat", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 128; stan::math::validate_non_negative_index("vec", "N", N); current_statement__ = 129; @@ -2606,6 +2656,17 @@ class basic_operations_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&vec) Eigen::Map>(vec_data__.data(), N); + { + std::vector vec_flat__; + current_statement__ = 129; + vec_flat__ = context__.vals_r("vec"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(vec, vec_flat__[(pos__ - 1)], + "assigning variable vec", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 130; stan::math::validate_non_negative_index("rowvec", "N", N); current_statement__ = 131; @@ -2615,6 +2676,17 @@ class basic_operations_model final : public model_base_crtp::quiet_NaN()); new (&rowvec) Eigen::Map>(rowvec_data__.data(), N); + { + std::vector rowvec_flat__; + current_statement__ = 131; + rowvec_flat__ = context__.vals_r("rowvec"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(rowvec, rowvec_flat__[(pos__ - 1)], + "assigning variable rowvec", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 132; context__.validate_dims("data initialization", "r", "double", std::vector{}); @@ -3704,6 +3776,20 @@ class basic_ops_mix_model final : public model_base_crtp { new (&cmat) Eigen::Map,-1,-1>>(cmat_data__.data(), N, N); + { + std::vector> cmat_flat__; + current_statement__ = 149; + cmat_flat__ = context__.vals_c("cmat"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(cmat, cmat_flat__[(pos__ - 1)], + "assigning variable cmat", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 150; stan::math::validate_non_negative_index("cvec", "N", N); current_statement__ = 151; @@ -3716,6 +3802,17 @@ class basic_ops_mix_model final : public model_base_crtp { new (&cvec) Eigen::Map,-1,1>>(cvec_data__.data(), N); + { + std::vector> cvec_flat__; + current_statement__ = 151; + cvec_flat__ = context__.vals_c("cvec"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(cvec, cvec_flat__[(pos__ - 1)], + "assigning variable cvec", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 152; stan::math::validate_non_negative_index("crowvec", "N", N); current_statement__ = 153; @@ -3728,6 +3825,17 @@ class basic_ops_mix_model final : public model_base_crtp { new (&crowvec) Eigen::Map,1,-1>>(crowvec_data__.data(), N); + { + std::vector> crowvec_flat__; + current_statement__ = 153; + crowvec_flat__ = context__.vals_c("crowvec"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(crowvec, crowvec_flat__[(pos__ - 1)], + "assigning variable crowvec", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 154; context__.validate_dims("data initialization", "z", "double", std::vector{static_cast(2)}); @@ -3744,6 +3852,20 @@ class basic_ops_mix_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&mat) Eigen::Map>(mat_data__.data(), N, N); + { + std::vector mat_flat__; + current_statement__ = 157; + mat_flat__ = context__.vals_r("mat"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(mat, mat_flat__[(pos__ - 1)], + "assigning variable mat", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 158; stan::math::validate_non_negative_index("vec", "N", N); current_statement__ = 159; @@ -3752,6 +3874,17 @@ class basic_ops_mix_model final : public model_base_crtp { vec_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&vec) Eigen::Map>(vec_data__.data(), N); + { + std::vector vec_flat__; + current_statement__ = 159; + vec_flat__ = context__.vals_r("vec"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(vec, vec_flat__[(pos__ - 1)], + "assigning variable vec", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 160; stan::math::validate_non_negative_index("rowvec", "N", N); current_statement__ = 161; @@ -3761,6 +3894,17 @@ class basic_ops_mix_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&rowvec) Eigen::Map>(rowvec_data__.data(), N); + { + std::vector rowvec_flat__; + current_statement__ = 161; + rowvec_flat__ = context__.vals_r("rowvec"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(rowvec, rowvec_flat__[(pos__ - 1)], + "assigning variable rowvec", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 162; context__.validate_dims("data initialization", "r", "double", std::vector{}); @@ -6303,6 +6447,17 @@ class complex_data_model final : public model_base_crtp { new (&z1) Eigen::Map,-1,1>>(z1_data__.data(), N); + { + std::vector> z1_flat__; + current_statement__ = 4; + z1_flat__ = context__.vals_c("z1"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(z1, z1_flat__[(pos__ - 1)], + "assigning variable z1", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 5; stan::math::validate_non_negative_index("z2", "N", N); current_statement__ = 6; @@ -6315,6 +6470,17 @@ class complex_data_model final : public model_base_crtp { new (&z2) Eigen::Map,1,-1>>(z2_data__.data(), N); + { + std::vector> z2_flat__; + current_statement__ = 6; + z2_flat__ = context__.vals_c("z2"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(z2, z2_flat__[(pos__ - 1)], + "assigning variable z2", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 7; stan::math::validate_non_negative_index("z3", "N", N); current_statement__ = 8; @@ -6330,6 +6496,20 @@ class complex_data_model final : public model_base_crtp { new (&z3) Eigen::Map,-1,-1>>(z3_data__.data(), N, N); + { + std::vector> z3_flat__; + current_statement__ = 9; + z3_flat__ = context__.vals_c("z3"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(z3, z3_flat__[(pos__ - 1)], + "assigning variable z3", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 10; context__.validate_dims("data initialization", "M", "int", std::vector{}); @@ -6342,6 +6522,17 @@ class complex_data_model final : public model_base_crtp { z4 = std::vector>(M, std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN())); + { + std::vector> z4_flat__; + current_statement__ = 12; + z4_flat__ = context__.vals_c("z4"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= M; ++sym1__) { + stan::model::assign(z4, z4_flat__[(pos__ - 1)], + "assigning variable z4", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 13; stan::math::validate_non_negative_index("z5", "M", M); current_statement__ = 14; @@ -6354,6 +6545,20 @@ class complex_data_model final : public model_base_crtp { Eigen::Matrix,-1,1>::Constant(N, std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()))); + { + std::vector> z5_flat__; + current_statement__ = 15; + z5_flat__ = context__.vals_c("z5"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= M; ++sym2__) { + stan::model::assign(z5, z5_flat__[(pos__ - 1)], + "assigning variable z5", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 16; stan::math::validate_non_negative_index("z6", "M", M); current_statement__ = 17; @@ -6366,6 +6571,20 @@ class complex_data_model final : public model_base_crtp { Eigen::Matrix,1,-1>::Constant(N, std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()))); + { + std::vector> z6_flat__; + current_statement__ = 18; + z6_flat__ = context__.vals_c("z6"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= M; ++sym2__) { + stan::model::assign(z6, z6_flat__[(pos__ - 1)], + "assigning variable z6", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 19; stan::math::validate_non_negative_index("z7", "M", M); current_statement__ = 20; @@ -6380,6 +6599,23 @@ class complex_data_model final : public model_base_crtp { Eigen::Matrix,-1,-1>::Constant(N, N, std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()))); + { + std::vector> z7_flat__; + current_statement__ = 22; + z7_flat__ = context__.vals_c("z7"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + for (int sym3__ = 1; sym3__ <= M; ++sym3__) { + stan::model::assign(z7, z7_flat__[(pos__ - 1)], + "assigning variable z7", stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 23; stan::math::validate_non_negative_index("z8", "N", N); current_statement__ = 24; @@ -6395,6 +6631,20 @@ class complex_data_model final : public model_base_crtp { new (&z8) Eigen::Map,-1,-1>>(z8_data__.data(), N, M); + { + std::vector> z8_flat__; + current_statement__ = 25; + z8_flat__ = context__.vals_c("z8"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= M; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(z8, z8_flat__[(pos__ - 1)], + "assigning variable z8", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -7542,6 +7792,18 @@ class complex_scalar_model final : public model_base_crtp std::complex(std::numeric_limits::quiet_NaN( ), std::numeric_limits::quiet_NaN())); + { + std::vector> d_complex_array_flat__; + current_statement__ = 348; + d_complex_array_flat__ = context__.vals_c("d_complex_array"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + stan::model::assign(d_complex_array, d_complex_array_flat__[(pos__ + - 1)], "assigning variable d_complex_array", + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 349; context__.validate_dims("data initialization", "d_complex_array_2d", "double", @@ -7552,6 +7814,21 @@ class complex_scalar_model final : public model_base_crtp std::complex(std::numeric_limits::quiet_NaN( ), std::numeric_limits::quiet_NaN()))); + { + std::vector> d_complex_array_2d_flat__; + current_statement__ = 349; + d_complex_array_2d_flat__ = context__.vals_c("d_complex_array_2d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { + stan::model::assign(d_complex_array_2d, + d_complex_array_2d_flat__[(pos__ - 1)], + "assigning variable d_complex_array_2d", + stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 350; td_i = std::numeric_limits::min(); current_statement__ = 350; diff --git a/test/integration/good/code-gen/cpp.expected b/test/integration/good/code-gen/cpp.expected index 1fba40e5b..234bd626b 100644 --- a/test/integration/good/code-gen/cpp.expected +++ b/test/integration/good/code-gen/cpp.expected @@ -3411,6 +3411,20 @@ class data_only_functions_model final : public model_base_crtp::Constant(N, N, std::numeric_limits::quiet_NaN()); new (&d) Eigen::Map>(d_data__.data(), N, N); + { + std::vector d_flat__; + current_statement__ = 11; + d_flat__ = context__.vals_r("d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(d, d_flat__[(pos__ - 1)], + "assigning variable d", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 12; stan::math::validate_non_negative_index("p", "N", N); current_statement__ = 13; @@ -10621,6 +10635,24 @@ class mother_model final : public model_base_crtp { d_int_3d_ar = std::vector>>(N, std::vector>(M, std::vector(K, std::numeric_limits::min()))); + { + std::vector d_int_3d_ar_flat__; + current_statement__ = 198; + d_int_3d_ar_flat__ = context__.vals_i("d_int_3d_ar"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= K; ++sym1__) { + for (int sym2__ = 1; sym2__ <= M; ++sym2__) { + for (int sym3__ = 1; sym3__ <= N; ++sym3__) { + stan::model::assign(d_int_3d_ar, d_int_3d_ar_flat__[(pos__ - + 1)], "assigning variable d_int_3d_ar", + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 198; stan::math::check_less_or_equal(function__, "d_int_3d_ar", d_int_3d_ar, N); @@ -10654,6 +10686,24 @@ class mother_model final : public model_base_crtp { std::vector>(M, std::vector(K, std::numeric_limits::quiet_NaN()))); + { + std::vector d_real_3d_ar_flat__; + current_statement__ = 205; + d_real_3d_ar_flat__ = context__.vals_r("d_real_3d_ar"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= K; ++sym1__) { + for (int sym2__ = 1; sym2__ <= M; ++sym2__) { + for (int sym3__ = 1; sym3__ <= N; ++sym3__) { + stan::model::assign(d_real_3d_ar, d_real_3d_ar_flat__[(pos__ - + 1)], "assigning variable d_real_3d_ar", + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 206; stan::math::validate_non_negative_index("d_vec", "N", N); current_statement__ = 207; @@ -10663,6 +10713,17 @@ class mother_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&d_vec) Eigen::Map>(d_vec_data__.data(), N); + { + std::vector d_vec_flat__; + current_statement__ = 207; + d_vec_flat__ = context__.vals_r("d_vec"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(d_vec, d_vec_flat__[(pos__ - 1)], + "assigning variable d_vec", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 208; stan::math::validate_non_negative_index("d_1d_vec", "N", N); current_statement__ = 209; @@ -10673,6 +10734,20 @@ class mother_model final : public model_base_crtp { d_1d_vec = std::vector>(N, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())); + { + std::vector d_1d_vec_flat__; + current_statement__ = 210; + d_1d_vec_flat__ = context__.vals_r("d_1d_vec"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(d_1d_vec, d_1d_vec_flat__[(pos__ - 1)], + "assigning variable d_1d_vec", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 211; stan::math::validate_non_negative_index("d_3d_vec", "N", N); current_statement__ = 212; @@ -10691,6 +10766,27 @@ class mother_model final : public model_base_crtp { std::vector>(K, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())))); + { + std::vector d_3d_vec_flat__; + current_statement__ = 215; + d_3d_vec_flat__ = context__.vals_r("d_3d_vec"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= K; ++sym2__) { + for (int sym3__ = 1; sym3__ <= M; ++sym3__) { + for (int sym4__ = 1; sym4__ <= N; ++sym4__) { + stan::model::assign(d_3d_vec, d_3d_vec_flat__[(pos__ - 1)], + "assigning variable d_3d_vec", + stan::model::index_uni(sym4__), + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } + } current_statement__ = 216; stan::math::validate_non_negative_index("d_row_vec", "N", N); current_statement__ = 217; @@ -10700,6 +10796,17 @@ class mother_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&d_row_vec) Eigen::Map>(d_row_vec_data__.data(), N); + { + std::vector d_row_vec_flat__; + current_statement__ = 217; + d_row_vec_flat__ = context__.vals_r("d_row_vec"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(d_row_vec, d_row_vec_flat__[(pos__ - 1)], + "assigning variable d_row_vec", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 218; stan::math::validate_non_negative_index("d_1d_row_vec", "N", N); current_statement__ = 219; @@ -10711,6 +10818,20 @@ class mother_model final : public model_base_crtp { d_1d_row_vec = std::vector>(N, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())); + { + std::vector d_1d_row_vec_flat__; + current_statement__ = 220; + d_1d_row_vec_flat__ = context__.vals_r("d_1d_row_vec"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(d_1d_row_vec, d_1d_row_vec_flat__[(pos__ - + 1)], "assigning variable d_1d_row_vec", + stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 221; stan::math::validate_non_negative_index("d_3d_row_vec", "N", N); current_statement__ = 222; @@ -10730,6 +10851,27 @@ class mother_model final : public model_base_crtp { std::vector>(K, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())))); + { + std::vector d_3d_row_vec_flat__; + current_statement__ = 225; + d_3d_row_vec_flat__ = context__.vals_r("d_3d_row_vec"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= K; ++sym2__) { + for (int sym3__ = 1; sym3__ <= M; ++sym3__) { + for (int sym4__ = 1; sym4__ <= N; ++sym4__) { + stan::model::assign(d_3d_row_vec, d_3d_row_vec_flat__[(pos__ + - 1)], "assigning variable d_3d_row_vec", + stan::model::index_uni(sym4__), + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } + } current_statement__ = 226; context__.validate_dims("data initialization", "d_ar_mat", "double", std::vector{static_cast(4), static_cast(5), @@ -10738,6 +10880,27 @@ class mother_model final : public model_base_crtp { std::vector>(5, Eigen::Matrix::Constant(2, 3, std::numeric_limits::quiet_NaN()))); + { + std::vector d_ar_mat_flat__; + current_statement__ = 226; + d_ar_mat_flat__ = context__.vals_r("d_ar_mat"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { + for (int sym3__ = 1; sym3__ <= 5; ++sym3__) { + for (int sym4__ = 1; sym4__ <= 4; ++sym4__) { + stan::model::assign(d_ar_mat, d_ar_mat_flat__[(pos__ - 1)], + "assigning variable d_ar_mat", + stan::model::index_uni(sym4__), + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } + } current_statement__ = 226; stan::math::check_greater_or_equal(function__, "d_ar_mat", d_ar_mat, 0); current_statement__ = 226; @@ -10751,6 +10914,17 @@ class mother_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&d_simplex) Eigen::Map>(d_simplex_data__.data(), N); + { + std::vector d_simplex_flat__; + current_statement__ = 228; + d_simplex_flat__ = context__.vals_r("d_simplex"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(d_simplex, d_simplex_flat__[(pos__ - 1)], + "assigning variable d_simplex", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 228; stan::math::check_simplex(function__, "d_simplex", d_simplex); current_statement__ = 229; @@ -10764,6 +10938,20 @@ class mother_model final : public model_base_crtp { d_1d_simplex = std::vector>(N, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())); + { + std::vector d_1d_simplex_flat__; + current_statement__ = 231; + d_1d_simplex_flat__ = context__.vals_r("d_1d_simplex"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(d_1d_simplex, d_1d_simplex_flat__[(pos__ - + 1)], "assigning variable d_1d_simplex", + stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 231; stan::math::check_simplex(function__, "d_1d_simplex", d_1d_simplex); current_statement__ = 232; @@ -10785,6 +10973,27 @@ class mother_model final : public model_base_crtp { std::vector>(K, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())))); + { + std::vector d_3d_simplex_flat__; + current_statement__ = 236; + d_3d_simplex_flat__ = context__.vals_r("d_3d_simplex"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= K; ++sym2__) { + for (int sym3__ = 1; sym3__ <= M; ++sym3__) { + for (int sym4__ = 1; sym4__ <= N; ++sym4__) { + stan::model::assign(d_3d_simplex, d_3d_simplex_flat__[(pos__ + - 1)], "assigning variable d_3d_simplex", + stan::model::index_uni(sym4__), + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } + } current_statement__ = 236; stan::math::check_simplex(function__, "d_3d_simplex", d_3d_simplex); current_statement__ = 237; @@ -10795,6 +11004,20 @@ class mother_model final : public model_base_crtp { new (&d_cfcov_54) Eigen::Map>(d_cfcov_54_data__.data(), 5, 4); + { + std::vector d_cfcov_54_flat__; + current_statement__ = 237; + d_cfcov_54_flat__ = context__.vals_r("d_cfcov_54"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 4; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 5; ++sym2__) { + stan::model::assign(d_cfcov_54, d_cfcov_54_flat__[(pos__ - 1)], + "assigning variable d_cfcov_54", + stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 237; stan::math::check_cholesky_factor(function__, "d_cfcov_54", d_cfcov_54); current_statement__ = 238; @@ -10805,6 +11028,20 @@ class mother_model final : public model_base_crtp { new (&d_cfcov_33) Eigen::Map>(d_cfcov_33_data__.data(), 3, 3); + { + std::vector d_cfcov_33_flat__; + current_statement__ = 238; + d_cfcov_33_flat__ = context__.vals_r("d_cfcov_33"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + stan::model::assign(d_cfcov_33, d_cfcov_33_flat__[(pos__ - 1)], + "assigning variable d_cfcov_33", + stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 238; stan::math::check_cholesky_factor(function__, "d_cfcov_33", d_cfcov_33); current_statement__ = 239; @@ -10817,6 +11054,24 @@ class mother_model final : public model_base_crtp { d_cfcov_33_ar = std::vector>(K, Eigen::Matrix::Constant(3, 3, std::numeric_limits::quiet_NaN())); + { + std::vector d_cfcov_33_ar_flat__; + current_statement__ = 240; + d_cfcov_33_ar_flat__ = context__.vals_r("d_cfcov_33_ar"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + for (int sym3__ = 1; sym3__ <= K; ++sym3__) { + stan::model::assign(d_cfcov_33_ar, d_cfcov_33_ar_flat__[(pos__ + - 1)], "assigning variable d_cfcov_33_ar", + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 240; stan::math::check_cholesky_factor(function__, "d_cfcov_33_ar", d_cfcov_33_ar); @@ -10839,6 +11094,20 @@ class mother_model final : public model_base_crtp { static_cast(2)}); d_int_array_2d = std::vector>(d_int, std::vector(2, std::numeric_limits::min())); + { + std::vector d_int_array_2d_flat__; + current_statement__ = 245; + d_int_array_2d_flat__ = context__.vals_i("d_int_array_2d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + stan::model::assign(d_int_array_2d, d_int_array_2d_flat__[(pos__ + - 1)], "assigning variable d_int_array_2d", + stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 246; stan::math::validate_non_negative_index("d_int_array_3d", "d_int", d_int); @@ -10850,6 +11119,25 @@ class mother_model final : public model_base_crtp { std::vector>(2, std::vector(3, std::numeric_limits::min()))); + { + std::vector d_int_array_3d_flat__; + current_statement__ = 247; + d_int_array_3d_flat__ = context__.vals_i("d_int_array_3d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { + for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { + stan::model::assign(d_int_array_3d, + d_int_array_3d_flat__[(pos__ - 1)], + "assigning variable d_int_array_3d", + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 248; context__.validate_dims("data initialization", "d_real", "double", std::vector{}); @@ -10872,6 +11160,21 @@ class mother_model final : public model_base_crtp { d_real_array_2d = std::vector>(d_int, std::vector(2, std::numeric_limits::quiet_NaN())); + { + std::vector d_real_array_2d_flat__; + current_statement__ = 252; + d_real_array_2d_flat__ = context__.vals_r("d_real_array_2d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + stan::model::assign(d_real_array_2d, + d_real_array_2d_flat__[(pos__ - 1)], + "assigning variable d_real_array_2d", + stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 253; stan::math::validate_non_negative_index("d_real_array_3d", "d_int", d_int); @@ -10884,6 +11187,25 @@ class mother_model final : public model_base_crtp { std::vector>(2, std::vector(3, std::numeric_limits::quiet_NaN()))); + { + std::vector d_real_array_3d_flat__; + current_statement__ = 254; + d_real_array_3d_flat__ = context__.vals_r("d_real_array_3d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { + for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { + stan::model::assign(d_real_array_3d, + d_real_array_3d_flat__[(pos__ - 1)], + "assigning variable d_real_array_3d", + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 255; stan::math::validate_non_negative_index("d_matrix", "d_int", d_int); current_statement__ = 256; @@ -10897,6 +11219,20 @@ class mother_model final : public model_base_crtp { new (&d_matrix) Eigen::Map>(d_matrix_data__.data(), d_int, d_int); + { + std::vector d_matrix_flat__; + current_statement__ = 257; + d_matrix_flat__ = context__.vals_r("d_matrix"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + stan::model::assign(d_matrix, d_matrix_flat__[(pos__ - 1)], + "assigning variable d_matrix", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 258; stan::math::validate_non_negative_index("d_matrix_array", "d_int", d_int); @@ -10914,6 +11250,25 @@ class mother_model final : public model_base_crtp { d_matrix_array = std::vector>(d_int, Eigen::Matrix::Constant(d_int, d_int, std::numeric_limits::quiet_NaN())); + { + std::vector d_matrix_array_flat__; + current_statement__ = 261; + d_matrix_array_flat__ = context__.vals_r("d_matrix_array"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { + stan::model::assign(d_matrix_array, + d_matrix_array_flat__[(pos__ - 1)], + "assigning variable d_matrix_array", + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 262; stan::math::validate_non_negative_index("d_matrix_array_2d", "d_int", d_int); @@ -10935,6 +11290,28 @@ class mother_model final : public model_base_crtp { Eigen::Matrix::Constant(d_int, d_int, std::numeric_limits::quiet_NaN()))); + { + std::vector d_matrix_array_2d_flat__; + current_statement__ = 265; + d_matrix_array_2d_flat__ = context__.vals_r("d_matrix_array_2d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { + for (int sym4__ = 1; sym4__ <= d_int; ++sym4__) { + stan::model::assign(d_matrix_array_2d, + d_matrix_array_2d_flat__[(pos__ - 1)], + "assigning variable d_matrix_array_2d", + stan::model::index_uni(sym4__), + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } + } current_statement__ = 266; stan::math::validate_non_negative_index("d_matrix_array_3d", "d_int", d_int); @@ -10959,6 +11336,31 @@ class mother_model final : public model_base_crtp { Eigen::Matrix::Constant(d_int, d_int, std::numeric_limits::quiet_NaN())))); + { + std::vector d_matrix_array_3d_flat__; + current_statement__ = 269; + d_matrix_array_3d_flat__ = context__.vals_r("d_matrix_array_3d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + for (int sym3__ = 1; sym3__ <= 3; ++sym3__) { + for (int sym4__ = 1; sym4__ <= 2; ++sym4__) { + for (int sym5__ = 1; sym5__ <= d_int; ++sym5__) { + stan::model::assign(d_matrix_array_3d, + d_matrix_array_3d_flat__[(pos__ - 1)], + "assigning variable d_matrix_array_3d", + stan::model::index_uni(sym5__), + stan::model::index_uni(sym4__), + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } + } + } current_statement__ = 270; stan::math::validate_non_negative_index("d_vector", "d_int", d_int); current_statement__ = 271; @@ -10968,6 +11370,17 @@ class mother_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&d_vector) Eigen::Map>(d_vector_data__.data(), d_int); + { + std::vector d_vector_flat__; + current_statement__ = 271; + d_vector_flat__ = context__.vals_r("d_vector"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + stan::model::assign(d_vector, d_vector_flat__[(pos__ - 1)], + "assigning variable d_vector", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 272; stan::math::validate_non_negative_index("d_vector_array", "d_int", d_int); @@ -10982,6 +11395,20 @@ class mother_model final : public model_base_crtp { d_vector_array = std::vector>(d_int, Eigen::Matrix::Constant(d_int, std::numeric_limits::quiet_NaN())); + { + std::vector d_vector_array_flat__; + current_statement__ = 274; + d_vector_array_flat__ = context__.vals_r("d_vector_array"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + stan::model::assign(d_vector_array, d_vector_array_flat__[(pos__ + - 1)], "assigning variable d_vector_array", + stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 275; stan::math::validate_non_negative_index("d_vector_array_2d", "d_int", d_int); @@ -10998,6 +11425,25 @@ class mother_model final : public model_base_crtp { std::vector>(2, Eigen::Matrix::Constant(d_int, std::numeric_limits::quiet_NaN()))); + { + std::vector d_vector_array_2d_flat__; + current_statement__ = 277; + d_vector_array_2d_flat__ = context__.vals_r("d_vector_array_2d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { + for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { + stan::model::assign(d_vector_array_2d, + d_vector_array_2d_flat__[(pos__ - 1)], + "assigning variable d_vector_array_2d", + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 278; stan::math::validate_non_negative_index("d_vector_array_3d", "d_int", d_int); @@ -11018,6 +11464,28 @@ class mother_model final : public model_base_crtp { std::vector>(3, Eigen::Matrix::Constant(d_int, std::numeric_limits::quiet_NaN())))); + { + std::vector d_vector_array_3d_flat__; + current_statement__ = 280; + d_vector_array_3d_flat__ = context__.vals_r("d_vector_array_3d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { + for (int sym4__ = 1; sym4__ <= d_int; ++sym4__) { + stan::model::assign(d_vector_array_3d, + d_vector_array_3d_flat__[(pos__ - 1)], + "assigning variable d_vector_array_3d", + stan::model::index_uni(sym4__), + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } + } current_statement__ = 281; stan::math::validate_non_negative_index("d_row_vector", "d_int", d_int); current_statement__ = 282; @@ -11028,6 +11496,17 @@ class mother_model final : public model_base_crtp { new (&d_row_vector) Eigen::Map>(d_row_vector_data__.data(), d_int); + { + std::vector d_row_vector_flat__; + current_statement__ = 282; + d_row_vector_flat__ = context__.vals_r("d_row_vector"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + stan::model::assign(d_row_vector, d_row_vector_flat__[(pos__ - 1)], + "assigning variable d_row_vector", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 283; stan::math::validate_non_negative_index("d_row_vector_array", "d_int", d_int); @@ -11042,6 +11521,21 @@ class mother_model final : public model_base_crtp { d_row_vector_array = std::vector>(d_int, Eigen::Matrix::Constant(d_int, std::numeric_limits::quiet_NaN())); + { + std::vector d_row_vector_array_flat__; + current_statement__ = 285; + d_row_vector_array_flat__ = context__.vals_r("d_row_vector_array"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + stan::model::assign(d_row_vector_array, + d_row_vector_array_flat__[(pos__ - 1)], + "assigning variable d_row_vector_array", + stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 286; stan::math::validate_non_negative_index("d_row_vector_array_2d", "d_int", d_int); @@ -11058,6 +11552,25 @@ class mother_model final : public model_base_crtp { std::vector>(2, Eigen::Matrix::Constant(d_int, std::numeric_limits::quiet_NaN()))); + { + std::vector d_row_vector_array_2d_flat__; + current_statement__ = 288; + d_row_vector_array_2d_flat__ = context__.vals_r("d_row_vector_array_2d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { + for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { + stan::model::assign(d_row_vector_array_2d, + d_row_vector_array_2d_flat__[(pos__ - 1)], + "assigning variable d_row_vector_array_2d", + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 289; stan::math::validate_non_negative_index("d_row_vector_array_3d", "d_int", d_int); @@ -11078,6 +11591,28 @@ class mother_model final : public model_base_crtp { std::vector>(3, Eigen::Matrix::Constant(d_int, std::numeric_limits::quiet_NaN())))); + { + std::vector d_row_vector_array_3d_flat__; + current_statement__ = 291; + d_row_vector_array_3d_flat__ = context__.vals_r("d_row_vector_array_3d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { + for (int sym4__ = 1; sym4__ <= d_int; ++sym4__) { + stan::model::assign(d_row_vector_array_3d, + d_row_vector_array_3d_flat__[(pos__ - 1)], + "assigning variable d_row_vector_array_3d", + stan::model::index_uni(sym4__), + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } + } current_statement__ = 292; td_int = std::numeric_limits::min(); current_statement__ = 293; @@ -16735,6 +17270,18 @@ class motherHOF_model final : public model_base_crtp { new (&shared_params_d) Eigen::Map>(shared_params_d_data__.data(), 3); + { + std::vector shared_params_d_flat__; + current_statement__ = 133; + shared_params_d_flat__ = context__.vals_r("shared_params_d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + stan::model::assign(shared_params_d, shared_params_d_flat__[(pos__ + - 1)], "assigning variable shared_params_d", + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 134; context__.validate_dims("data initialization", "job_params_d", "double", @@ -16742,17 +17289,59 @@ class motherHOF_model final : public model_base_crtp { job_params_d = std::vector>(3, Eigen::Matrix::Constant(3, std::numeric_limits::quiet_NaN())); + { + std::vector job_params_d_flat__; + current_statement__ = 134; + job_params_d_flat__ = context__.vals_r("job_params_d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + stan::model::assign(job_params_d, job_params_d_flat__[(pos__ - + 1)], "assigning variable job_params_d", + stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 135; context__.validate_dims("data initialization", "data_r", "double", std::vector{static_cast(3), static_cast(3)}); data_r = std::vector>(3, std::vector(3, std::numeric_limits::quiet_NaN())); + { + std::vector data_r_flat__; + current_statement__ = 135; + data_r_flat__ = context__.vals_r("data_r"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + stan::model::assign(data_r, data_r_flat__[(pos__ - 1)], + "assigning variable data_r", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 136; context__.validate_dims("data initialization", "data_i", "int", std::vector{static_cast(3), static_cast(3)}); data_i = std::vector>(3, std::vector(3, std::numeric_limits::min())); + { + std::vector data_i_flat__; + current_statement__ = 136; + data_i_flat__ = context__.vals_i("data_i"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + stan::model::assign(data_i, data_i_flat__[(pos__ - 1)], + "assigning variable data_i", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 137; stan::math::validate_non_negative_index("theta_p", "1", 1); current_statement__ = 138; @@ -19234,6 +19823,17 @@ class new_integrate_interface_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&vd) Eigen::Map>(vd_data__.data(), N); + { + std::vector vd_flat__; + current_statement__ = 607; + vd_flat__ = context__.vals_r("vd"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(vd, vd_flat__[(pos__ - 1)], + "assigning variable vd", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 608; stan::math::validate_non_negative_index("zd", "N", N); current_statement__ = 609; @@ -24789,6 +25389,20 @@ class old_integrate_interface_model final : public model_base_crtp{static_cast(N), static_cast(2)}); y = std::vector>(N, std::vector(2, std::numeric_limits::quiet_NaN())); + { + std::vector y_flat__; + current_statement__ = 23; + y_flat__ = context__.vals_r("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 23; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 24; @@ -25682,6 +26296,20 @@ class optimize_glm_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&X_d) Eigen::Map>(X_d_data__.data(), n, k); + { + std::vector X_d_flat__; + current_statement__ = 180; + X_d_flat__ = context__.vals_r("X_d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= k; ++sym1__) { + for (int sym2__ = 1; sym2__ <= n; ++sym2__) { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 181; stan::math::validate_non_negative_index("X_d_a", "n", n); current_statement__ = 182; @@ -25693,6 +26321,23 @@ class optimize_glm_model final : public model_base_crtp { X_d_a = std::vector>(2, Eigen::Matrix::Constant(n, k, std::numeric_limits::quiet_NaN())); + { + std::vector X_d_a_flat__; + current_statement__ = 183; + X_d_a_flat__ = context__.vals_r("X_d_a"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= k; ++sym1__) { + for (int sym2__ = 1; sym2__ <= n; ++sym2__) { + for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { + stan::model::assign(X_d_a, X_d_a_flat__[(pos__ - 1)], + "assigning variable X_d_a", stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 184; stan::math::validate_non_negative_index("y_v_d", "n", n); current_statement__ = 185; @@ -25702,6 +26347,17 @@ class optimize_glm_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&y_v_d) Eigen::Map>(y_v_d_data__.data(), n); + { + std::vector y_v_d_flat__; + current_statement__ = 185; + y_v_d_flat__ = context__.vals_r("y_v_d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n; ++sym1__) { + stan::model::assign(y_v_d, y_v_d_flat__[(pos__ - 1)], + "assigning variable y_v_d", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 186; stan::math::validate_non_negative_index("X_rv_d", "n", n); current_statement__ = 187; @@ -25711,6 +26367,17 @@ class optimize_glm_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&X_rv_d) Eigen::Map>(X_rv_d_data__.data(), n); + { + std::vector X_rv_d_flat__; + current_statement__ = 187; + X_rv_d_flat__ = context__.vals_r("X_rv_d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n; ++sym1__) { + stan::model::assign(X_rv_d, X_rv_d_flat__[(pos__ - 1)], + "assigning variable X_rv_d", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 188; stan::math::validate_non_negative_index("y_vi_d", "n", n); current_statement__ = 189; @@ -36539,6 +37206,20 @@ class reduce_sum_m3_model final : public model_base_crtp { y2d = std::vector>(N, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())); + { + std::vector y2d_flat__; + current_statement__ = 72; + y2d_flat__ = context__.vals_r("y2d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(y2d, y2d_flat__[(pos__ - 1)], + "assigning variable y2d", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 73; stan::math::validate_non_negative_index("y3d", "N", N); current_statement__ = 74; @@ -36549,6 +37230,20 @@ class reduce_sum_m3_model final : public model_base_crtp { y3d = std::vector>(N, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN())); + { + std::vector y3d_flat__; + current_statement__ = 75; + y3d_flat__ = context__.vals_r("y3d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(y3d, y3d_flat__[(pos__ - 1)], + "assigning variable y3d", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 76; stan::math::validate_non_negative_index("y4d", "N", N); current_statement__ = 77; @@ -36562,6 +37257,23 @@ class reduce_sum_m3_model final : public model_base_crtp { y4d = std::vector>(N, Eigen::Matrix::Constant(N, N, std::numeric_limits::quiet_NaN())); + { + std::vector y4d_flat__; + current_statement__ = 79; + y4d_flat__ = context__.vals_r("y4d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + for (int sym3__ = 1; sym3__ <= N; ++sym3__) { + stan::model::assign(y4d, y4d_flat__[(pos__ - 1)], + "assigning variable y4d", stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 80; stan::math::validate_non_negative_index("y5d", "N", N); current_statement__ = 81; @@ -36572,6 +37284,20 @@ class reduce_sum_m3_model final : public model_base_crtp { y5d = std::vector>(N, std::vector(N, std::numeric_limits::quiet_NaN())); + { + std::vector y5d_flat__; + current_statement__ = 82; + y5d_flat__ = context__.vals_r("y5d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(y5d, y5d_flat__[(pos__ - 1)], + "assigning variable y5d", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 83; stan::math::validate_non_negative_index("y6d", "N", N); current_statement__ = 84; @@ -36586,6 +37312,23 @@ class reduce_sum_m3_model final : public model_base_crtp { std::vector>(N, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()))); + { + std::vector y6d_flat__; + current_statement__ = 86; + y6d_flat__ = context__.vals_r("y6d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + for (int sym3__ = 1; sym3__ <= N; ++sym3__) { + stan::model::assign(y6d, y6d_flat__[(pos__ - 1)], + "assigning variable y6d", stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 87; stan::math::validate_non_negative_index("y7d", "N", N); current_statement__ = 88; @@ -36600,6 +37343,23 @@ class reduce_sum_m3_model final : public model_base_crtp { std::vector>(N, Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()))); + { + std::vector y7d_flat__; + current_statement__ = 90; + y7d_flat__ = context__.vals_r("y7d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + for (int sym3__ = 1; sym3__ <= N; ++sym3__) { + stan::model::assign(y7d, y7d_flat__[(pos__ - 1)], + "assigning variable y7d", stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 91; stan::math::validate_non_negative_index("y8d", "N", N); current_statement__ = 92; @@ -36616,6 +37376,26 @@ class reduce_sum_m3_model final : public model_base_crtp { std::vector>(N, Eigen::Matrix::Constant(N, N, std::numeric_limits::quiet_NaN()))); + { + std::vector y8d_flat__; + current_statement__ = 95; + y8d_flat__ = context__.vals_r("y8d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + for (int sym3__ = 1; sym3__ <= N; ++sym3__) { + for (int sym4__ = 1; sym4__ <= N; ++sym4__) { + stan::model::assign(y8d, y8d_flat__[(pos__ - 1)], + "assigning variable y8d", stan::model::index_uni(sym4__), + stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } + } current_statement__ = 96; context__.validate_dims("data initialization", "y9d", "double", std::vector{}); @@ -36629,6 +37409,17 @@ class reduce_sum_m3_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&y10d) Eigen::Map>(y10d_data__.data(), N); + { + std::vector y10d_flat__; + current_statement__ = 98; + y10d_flat__ = context__.vals_r("y10d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(y10d, y10d_flat__[(pos__ - 1)], + "assigning variable y10d", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 99; stan::math::validate_non_negative_index("y11d", "N", N); current_statement__ = 100; @@ -36638,6 +37429,17 @@ class reduce_sum_m3_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&y11d) Eigen::Map>(y11d_data__.data(), N); + { + std::vector y11d_flat__; + current_statement__ = 100; + y11d_flat__ = context__.vals_r("y11d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(y11d, y11d_flat__[(pos__ - 1)], + "assigning variable y11d", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 101; stan::math::validate_non_negative_index("y12d", "N", N); current_statement__ = 102; @@ -36649,6 +37451,20 @@ class reduce_sum_m3_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&y12d) Eigen::Map>(y12d_data__.data(), N, N); + { + std::vector y12d_flat__; + current_statement__ = 103; + y12d_flat__ = context__.vals_r("y12d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(y12d, y12d_flat__[(pos__ - 1)], + "assigning variable y12d", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 104; context__.validate_dims("data initialization", "y13d", "int", std::vector{}); @@ -36668,6 +37484,20 @@ class reduce_sum_m3_model final : public model_base_crtp { std::vector{static_cast(N), static_cast(N)}); y15d = std::vector>(N, std::vector(N, std::numeric_limits::min())); + { + std::vector y15d_flat__; + current_statement__ = 109; + y15d_flat__ = context__.vals_i("y15d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(y15d, y15d_flat__[(pos__ - 1)], + "assigning variable y15d", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 110; stan::math::validate_non_negative_index("y16d", "N", N); current_statement__ = 111; @@ -36681,6 +37511,23 @@ class reduce_sum_m3_model final : public model_base_crtp { y16d = std::vector>>(N, std::vector>(N, std::vector(N, std::numeric_limits::min()))); + { + std::vector y16d_flat__; + current_statement__ = 113; + y16d_flat__ = context__.vals_i("y16d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + for (int sym3__ = 1; sym3__ <= N; ++sym3__) { + stan::model::assign(y16d, y16d_flat__[(pos__ - 1)], + "assigning variable y16d", stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 114; stan::math::validate_non_negative_index("y17d", "N", N); current_statement__ = 115; @@ -36695,6 +37542,23 @@ class reduce_sum_m3_model final : public model_base_crtp { std::vector>(N, std::vector(N, std::numeric_limits::quiet_NaN()))); + { + std::vector y17d_flat__; + current_statement__ = 117; + y17d_flat__ = context__.vals_r("y17d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + for (int sym3__ = 1; sym3__ <= N; ++sym3__) { + stan::model::assign(y17d, y17d_flat__[(pos__ - 1)], + "assigning variable y17d", stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 118; td1 = std::numeric_limits::quiet_NaN(); current_statement__ = 118; @@ -38337,6 +39201,20 @@ class reject_exit_model final : public model_base_crtp { A_data__ = Eigen::Matrix::Constant(3, 3, std::numeric_limits::quiet_NaN()); new (&A) Eigen::Map>(A_data__.data(), 3, 3); + { + std::vector A_flat__; + current_statement__ = 6; + A_flat__ = context__.vals_r("A"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + stan::model::assign(A, A_flat__[(pos__ - 1)], + "assigning variable A", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -39685,6 +40563,17 @@ class shadowing_model final : public model_base_crtp { x_data__ = Eigen::Matrix::Constant(4, std::numeric_limits::quiet_NaN()); new (&x) Eigen::Map>(x_data__.data(), 4); + { + std::vector x_flat__; + current_statement__ = 47; + x_flat__ = context__.vals_r("x"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 4; ++sym1__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 48; stan::math::validate_non_negative_index("called", "1", 1); current_statement__ = 49; @@ -41887,6 +42776,23 @@ class transform_model final : public model_base_crtp { std::vector>(m, std::vector(k, std::numeric_limits::quiet_NaN()))); + { + std::vector ds_flat__; + current_statement__ = 43; + ds_flat__ = context__.vals_r("ds"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= k; ++sym1__) { + for (int sym2__ = 1; sym2__ <= m; ++sym2__) { + for (int sym3__ = 1; sym3__ <= n; ++sym3__) { + stan::model::assign(ds, ds_flat__[(pos__ - 1)], + "assigning variable ds", stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 44; stan::math::validate_non_negative_index("dv", "n", n); current_statement__ = 45; @@ -41901,6 +42807,23 @@ class transform_model final : public model_base_crtp { std::vector>(m, Eigen::Matrix::Constant(k, std::numeric_limits::quiet_NaN()))); + { + std::vector dv_flat__; + current_statement__ = 47; + dv_flat__ = context__.vals_r("dv"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= k; ++sym1__) { + for (int sym2__ = 1; sym2__ <= m; ++sym2__) { + for (int sym3__ = 1; sym3__ <= n; ++sym3__) { + stan::model::assign(dv, dv_flat__[(pos__ - 1)], + "assigning variable dv", stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 48; stan::math::validate_non_negative_index("dr", "n", n); current_statement__ = 49; @@ -41915,6 +42838,23 @@ class transform_model final : public model_base_crtp { std::vector>(m, Eigen::Matrix::Constant(k, std::numeric_limits::quiet_NaN()))); + { + std::vector dr_flat__; + current_statement__ = 51; + dr_flat__ = context__.vals_r("dr"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= k; ++sym1__) { + for (int sym2__ = 1; sym2__ <= m; ++sym2__) { + for (int sym3__ = 1; sym3__ <= n; ++sym3__) { + stan::model::assign(dr, dr_flat__[(pos__ - 1)], + "assigning variable dr", stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 52; stan::math::validate_non_negative_index("dm", "n", n); current_statement__ = 53; @@ -41928,6 +42868,23 @@ class transform_model final : public model_base_crtp { dm = std::vector>(n, Eigen::Matrix::Constant(m, k, std::numeric_limits::quiet_NaN())); + { + std::vector dm_flat__; + current_statement__ = 55; + dm_flat__ = context__.vals_r("dm"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= k; ++sym1__) { + for (int sym2__ = 1; sym2__ <= m; ++sym2__) { + for (int sym3__ = 1; sym3__ <= n; ++sym3__) { + stan::model::assign(dm, dm_flat__[(pos__ - 1)], + "assigning variable dm", stan::model::index_uni(sym3__), + stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 56; stan::math::validate_non_negative_index("p_1", "k", k); current_statement__ = 57; @@ -46044,6 +47001,17 @@ class variable_named_context_model final : public model_base_crtp::quiet_NaN()); new (&context) Eigen::Map>(context_data__.data(), N); + { + std::vector context_flat__; + current_statement__ = 6; + context_flat__ = context__.vals_r("context"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(context, context_flat__[(pos__ - 1)], + "assigning variable context", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } diff --git a/test/integration/good/code-gen/expressions/cpp.expected b/test/integration/good/code-gen/expressions/cpp.expected index 757c41ccd..29bf0eb56 100644 --- a/test/integration/good/code-gen/expressions/cpp.expected +++ b/test/integration/good/code-gen/expressions/cpp.expected @@ -799,6 +799,20 @@ class simple_function_model final : public model_base_crtp::Constant(N, N, std::numeric_limits::quiet_NaN()); new (&m) Eigen::Map>(m_data__.data(), N, N); + { + std::vector m_flat__; + current_statement__ = 4; + m_flat__ = context__.vals_r("m"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(m, m_flat__[(pos__ - 1)], + "assigning variable m", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } diff --git a/test/integration/good/code-gen/lir.expected b/test/integration/good/code-gen/lir.expected index ce107ba1a..74c0758b8 100644 --- a/test/integration/good/code-gen/lir.expected +++ b/test/integration/good/code-gen/lir.expected @@ -16284,6 +16284,41 @@ ((Var M) (Constructor (StdVector Int) ((Var K) (FunCall std::numeric_limits::min () ()))))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) (type_ (StdVector Int)) + (name d_int_3d_ar_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 198))) + (Expression + (Assign (Var d_int_3d_ar_flat__) + (MethodCall (Var context__) vals_i () ((Literal "\"d_int_3d_ar\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var K)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var M)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Var N)) (Increment (Var sym3__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_int_3d_ar) + (Index (Var d_int_3d_ar_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_int_3d_ar\"") + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 198))) (Expression (FunCall stan::math::check_less_or_equal () @@ -16348,6 +16383,42 @@ ((Var M) (Constructor (StdVector Double) ((Var K) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_real_3d_ar_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 205))) + (Expression + (Assign (Var d_real_3d_ar_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_real_3d_ar\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var K)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var M)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Var N)) (Increment (Var sym3__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_real_3d_ar) + (Index (Var d_real_3d_ar_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_real_3d_ar\"") + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 206))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16366,6 +16437,30 @@ (Expression (OperatorNew d_vec (TypeTrait Eigen::Map ((Matrix Double -1 1 AoS))) ((MethodCall (Var d_vec_data__) data () ()) (Var N)))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_vec_flat__) + (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 207))) + (Expression + (Assign (Var d_vec_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_vec\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_vec) + (Index (Var d_vec_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_vec\"") + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))) (Expression (Assign (Var current_statement__) (Literal 208))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16388,6 +16483,36 @@ ((Var N) (StaticMethodCall (Matrix Double -1 1 AoS) Constant () ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_1d_vec_flat__) + (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 210))) + (Expression + (Assign (Var d_1d_vec_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_1d_vec\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var N)) (Increment (Var sym2__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_1d_vec) + (Index (Var d_1d_vec_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_1d_vec\"") + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 211))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16424,6 +16549,49 @@ ((Var K) (StaticMethodCall (Matrix Double -1 1 AoS) Constant () ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_3d_vec_flat__) + (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 215))) + (Expression + (Assign (Var d_3d_vec_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_3d_vec\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var K)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Var M)) (Increment (Var sym3__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) + (name sym4__) (init (Assignment (Literal 1)))) + (BinOp (Var sym4__) LEq (Var N)) (Increment (Var sym4__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_3d_vec) + (Index (Var d_3d_vec_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_3d_vec\"") + (FunCall stan::model::index_uni () ((Var sym4__))) + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) + (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 216))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16442,6 +16610,30 @@ (Expression (OperatorNew d_row_vec (TypeTrait Eigen::Map ((Matrix Double 1 -1 AoS))) ((MethodCall (Var d_row_vec_data__) data () ()) (Var N)))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_row_vec_flat__) + (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 217))) + (Expression + (Assign (Var d_row_vec_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_row_vec\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_row_vec) + (Index (Var d_row_vec_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_row_vec\"") + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))) (Expression (Assign (Var current_statement__) (Literal 218))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16464,6 +16656,36 @@ ((Var N) (StaticMethodCall (Matrix Double 1 -1 AoS) Constant () ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_1d_row_vec_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 220))) + (Expression + (Assign (Var d_1d_row_vec_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_1d_row_vec\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var N)) (Increment (Var sym2__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_1d_row_vec) + (Index (Var d_1d_row_vec_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_1d_row_vec\"") + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 221))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16500,6 +16722,49 @@ ((Var K) (StaticMethodCall (Matrix Double 1 -1 AoS) Constant () ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_3d_row_vec_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 225))) + (Expression + (Assign (Var d_3d_row_vec_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_3d_row_vec\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var K)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Var M)) (Increment (Var sym3__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) + (name sym4__) (init (Assignment (Literal 1)))) + (BinOp (Var sym4__) LEq (Var N)) (Increment (Var sym4__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_3d_row_vec) + (Index (Var d_3d_row_vec_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_3d_row_vec\"") + (FunCall stan::model::index_uni () ((Var sym4__))) + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) + (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 226))) (Expression (MethodCall (Var context__) validate_dims () @@ -16519,6 +16784,49 @@ (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () ((Literal 2) (Literal 3) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_ar_mat_flat__) + (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 226))) + (Expression + (Assign (Var d_ar_mat_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_ar_mat\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Literal 3)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Literal 2)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Literal 5)) (Increment (Var sym3__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) + (name sym4__) (init (Assignment (Literal 1)))) + (BinOp (Var sym4__) LEq (Literal 4)) (Increment (Var sym4__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_ar_mat) + (Index (Var d_ar_mat_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_ar_mat\"") + (FunCall stan::model::index_uni () ((Var sym4__))) + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) + (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 226))) (Expression (FunCall stan::math::check_greater_or_equal () @@ -16545,6 +16853,30 @@ (Expression (OperatorNew d_simplex (TypeTrait Eigen::Map ((Matrix Double -1 1 AoS))) ((MethodCall (Var d_simplex_data__) data () ()) (Var N)))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_simplex_flat__) + (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 228))) + (Expression + (Assign (Var d_simplex_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_simplex\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_simplex) + (Index (Var d_simplex_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_simplex\"") + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))) (Expression (Assign (Var current_statement__) (Literal 228))) (Expression (FunCall stan::math::check_simplex () @@ -16571,6 +16903,36 @@ ((Var N) (StaticMethodCall (Matrix Double -1 1 AoS) Constant () ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_1d_simplex_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 231))) + (Expression + (Assign (Var d_1d_simplex_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_1d_simplex\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var N)) (Increment (Var sym2__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_1d_simplex) + (Index (Var d_1d_simplex_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_1d_simplex\"") + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 231))) (Expression (FunCall stan::math::check_simplex () @@ -16611,6 +16973,49 @@ ((Var K) (StaticMethodCall (Matrix Double -1 1 AoS) Constant () ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_3d_simplex_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 236))) + (Expression + (Assign (Var d_3d_simplex_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_3d_simplex\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var N)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var K)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Var M)) (Increment (Var sym3__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) + (name sym4__) (init (Assignment (Literal 1)))) + (BinOp (Var sym4__) LEq (Var N)) (Increment (Var sym4__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_3d_simplex) + (Index (Var d_3d_simplex_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_3d_simplex\"") + (FunCall stan::model::index_uni () ((Var sym4__))) + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) + (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 236))) (Expression (FunCall stan::math::check_simplex () @@ -16631,6 +17036,36 @@ (Expression (OperatorNew d_cfcov_54 (TypeTrait Eigen::Map ((Matrix Double -1 -1 AoS))) ((MethodCall (Var d_cfcov_54_data__) data () ()) (Literal 5) (Literal 4)))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_cfcov_54_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 237))) + (Expression + (Assign (Var d_cfcov_54_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_cfcov_54\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Literal 4)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Literal 5)) (Increment (Var sym2__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_cfcov_54) + (Index (Var d_cfcov_54_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_cfcov_54\"") + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 237))) (Expression (FunCall stan::math::check_cholesky_factor () @@ -16651,6 +17086,36 @@ (Expression (OperatorNew d_cfcov_33 (TypeTrait Eigen::Map ((Matrix Double -1 -1 AoS))) ((MethodCall (Var d_cfcov_33_data__) data () ()) (Literal 3) (Literal 3)))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_cfcov_33_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 238))) + (Expression + (Assign (Var d_cfcov_33_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_cfcov_33\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Literal 3)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Literal 3)) (Increment (Var sym2__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_cfcov_33) + (Index (Var d_cfcov_33_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_cfcov_33\"") + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 238))) (Expression (FunCall stan::math::check_cholesky_factor () @@ -16675,7 +17140,43 @@ (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () ((Literal 3) (Literal 3) (FunCall std::numeric_limits::quiet_NaN () ()))))))) - (Expression (Assign (Var current_statement__) (Literal 240))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_cfcov_33_ar_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 240))) + (Expression + (Assign (Var d_cfcov_33_ar_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_cfcov_33_ar\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Literal 3)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Literal 3)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Var K)) (Increment (Var sym3__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_cfcov_33_ar) + (Index (Var d_cfcov_33_ar_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_cfcov_33_ar\"") + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) + (Expression (Assign (Var current_statement__) (Literal 240))) (Expression (FunCall stan::math::check_cholesky_factor () ((Var function__) (Literal "\"d_cfcov_33_ar\"") (Var d_cfcov_33_ar)))) @@ -16719,6 +17220,35 @@ ((Var d_int) (Constructor (StdVector Int) ((Literal 2) (FunCall std::numeric_limits::min () ()))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) (type_ (StdVector Int)) + (name d_int_array_2d_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 245))) + (Expression + (Assign (Var d_int_array_2d_flat__) + (MethodCall (Var context__) vals_i () ((Literal "\"d_int_array_2d\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Literal 2)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_int_array_2d) + (Index (Var d_int_array_2d_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_int_array_2d\"") + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 246))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16740,6 +17270,41 @@ ((Literal 2) (Constructor (StdVector Int) ((Literal 3) (FunCall std::numeric_limits::min () ()))))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) (type_ (StdVector Int)) + (name d_int_array_3d_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 247))) + (Expression + (Assign (Var d_int_array_3d_flat__) + (MethodCall (Var context__) vals_i () ((Literal "\"d_int_array_3d\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Literal 3)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Literal 2)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Var d_int)) (Increment (Var sym3__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_int_array_3d) + (Index (Var d_int_array_3d_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_int_array_3d\"") + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 248))) (Expression (MethodCall (Var context__) validate_dims () @@ -16781,6 +17346,36 @@ ((Var d_int) (Constructor (StdVector Double) ((Literal 2) (FunCall std::numeric_limits::quiet_NaN () ()))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_real_array_2d_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 252))) + (Expression + (Assign (Var d_real_array_2d_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_real_array_2d\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Literal 2)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_real_array_2d) + (Index (Var d_real_array_2d_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_real_array_2d\"") + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 253))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16802,6 +17397,42 @@ ((Literal 2) (Constructor (StdVector Double) ((Literal 3) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_real_array_3d_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 254))) + (Expression + (Assign (Var d_real_array_3d_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_real_array_3d\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Literal 3)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Literal 2)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Var d_int)) (Increment (Var sym3__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_real_array_3d) + (Index (Var d_real_array_3d_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_real_array_3d\"") + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 255))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16826,6 +17457,36 @@ (Expression (OperatorNew d_matrix (TypeTrait Eigen::Map ((Matrix Double -1 -1 AoS))) ((MethodCall (Var d_matrix_data__) data () ()) (Var d_int) (Var d_int)))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_matrix_flat__) + (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 257))) + (Expression + (Assign (Var d_matrix_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_matrix\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_matrix) + (Index (Var d_matrix_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_matrix\"") + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 258))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16854,6 +17515,42 @@ (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () ((Var d_int) (Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_matrix_array_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 261))) + (Expression + (Assign (Var d_matrix_array_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_matrix_array\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Var d_int)) (Increment (Var sym3__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_matrix_array) + (Index (Var d_matrix_array_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_matrix_array\"") + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 262))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16885,6 +17582,49 @@ (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () ((Var d_int) (Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_matrix_array_2d_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 265))) + (Expression + (Assign (Var d_matrix_array_2d_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_matrix_array_2d\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Literal 2)) (Increment (Var sym3__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) + (name sym4__) (init (Assignment (Literal 1)))) + (BinOp (Var sym4__) LEq (Var d_int)) (Increment (Var sym4__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_matrix_array_2d) + (Index (Var d_matrix_array_2d_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_matrix_array_2d\"") + (FunCall stan::model::index_uni () ((Var sym4__))) + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) + (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 266))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16919,6 +17659,55 @@ (StaticMethodCall (Matrix Double -1 -1 AoS) Constant () ((Var d_int) (Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_matrix_array_3d_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 269))) + (Expression + (Assign (Var d_matrix_array_3d_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_matrix_array_3d\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Literal 3)) (Increment (Var sym3__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) + (name sym4__) (init (Assignment (Literal 1)))) + (BinOp (Var sym4__) LEq (Literal 2)) (Increment (Var sym4__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) + (name sym5__) (init (Assignment (Literal 1)))) + (BinOp (Var sym5__) LEq (Var d_int)) (Increment (Var sym5__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_matrix_array_3d) + (Index (Var d_matrix_array_3d_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_matrix_array_3d\"") + (FunCall stan::model::index_uni () ((Var sym5__))) + (FunCall stan::model::index_uni () ((Var sym4__))) + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) + (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 270))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16937,6 +17726,30 @@ (Expression (OperatorNew d_vector (TypeTrait Eigen::Map ((Matrix Double -1 1 AoS))) ((MethodCall (Var d_vector_data__) data () ()) (Var d_int)))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) (name d_vector_flat__) + (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 271))) + (Expression + (Assign (Var d_vector_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_vector\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_vector) + (Index (Var d_vector_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_vector\"") + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))) (Expression (Assign (Var current_statement__) (Literal 272))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16959,6 +17772,36 @@ ((Var d_int) (StaticMethodCall (Matrix Double -1 1 AoS) Constant () ((Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_vector_array_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 274))) + (Expression + (Assign (Var d_vector_array_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_vector_array\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_vector_array) + (Index (Var d_vector_array_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_vector_array\"") + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 275))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -16984,6 +17827,42 @@ ((Literal 2) (StaticMethodCall (Matrix Double -1 1 AoS) Constant () ((Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_vector_array_2d_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 277))) + (Expression + (Assign (Var d_vector_array_2d_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_vector_array_2d\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Literal 2)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Var d_int)) (Increment (Var sym3__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_vector_array_2d) + (Index (Var d_vector_array_2d_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_vector_array_2d\"") + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 278))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17012,6 +17891,49 @@ ((Literal 3) (StaticMethodCall (Matrix Double -1 1 AoS) Constant () ((Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_vector_array_3d_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 280))) + (Expression + (Assign (Var d_vector_array_3d_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_vector_array_3d\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Literal 3)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Literal 2)) (Increment (Var sym3__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) + (name sym4__) (init (Assignment (Literal 1)))) + (BinOp (Var sym4__) LEq (Var d_int)) (Increment (Var sym4__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_vector_array_3d) + (Index (Var d_vector_array_3d_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_vector_array_3d\"") + (FunCall stan::model::index_uni () ((Var sym4__))) + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) + (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 281))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17030,6 +17952,30 @@ (Expression (OperatorNew d_row_vector (TypeTrait Eigen::Map ((Matrix Double 1 -1 AoS))) ((MethodCall (Var d_row_vector_data__) data () ()) (Var d_int)))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_row_vector_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 282))) + (Expression + (Assign (Var d_row_vector_flat__) + (MethodCall (Var context__) vals_r () ((Literal "\"d_row_vector\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_row_vector) + (Index (Var d_row_vector_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_row_vector\"") + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))) (Expression (Assign (Var current_statement__) (Literal 283))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17052,6 +17998,37 @@ ((Var d_int) (StaticMethodCall (Matrix Double 1 -1 AoS) Constant () ((Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_row_vector_array_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 285))) + (Expression + (Assign (Var d_row_vector_array_flat__) + (MethodCall (Var context__) vals_r () + ((Literal "\"d_row_vector_array\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Var d_int)) (Increment (Var sym2__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_row_vector_array) + (Index (Var d_row_vector_array_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_row_vector_array\"") + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))) (Expression (Assign (Var current_statement__) (Literal 286))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17077,6 +18054,43 @@ ((Literal 2) (StaticMethodCall (Matrix Double 1 -1 AoS) Constant () ((Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_row_vector_array_2d_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 288))) + (Expression + (Assign (Var d_row_vector_array_2d_flat__) + (MethodCall (Var context__) vals_r () + ((Literal "\"d_row_vector_array_2d\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Literal 2)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Var d_int)) (Increment (Var sym3__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_row_vector_array_2d) + (Index (Var d_row_vector_array_2d_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_row_vector_array_2d\"") + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) (Parens (BinOp (Var pos__) Add (Literal 1)))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 289))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17105,6 +18119,50 @@ ((Literal 3) (StaticMethodCall (Matrix Double 1 -1 AoS) Constant () ((Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))))))))) + (Block + ((VariableDefn + ((static false) (constexpr false) + (type_ (StdVector (TypeLiteral local_scalar_t__))) + (name d_row_vector_array_3d_flat__) (init Uninitialized))) + (Expression (Assign (Var current_statement__) (Literal 291))) + (Expression + (Assign (Var d_row_vector_array_3d_flat__) + (MethodCall (Var context__) vals_r () + ((Literal "\"d_row_vector_array_3d\""))))) + (Expression (Assign (Var pos__) (Literal 1))) + (For + ((static false) (constexpr false) (type_ Int) (name sym1__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym1__) LEq (Var d_int)) (Increment (Var sym1__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym2__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym2__) LEq (Literal 3)) (Increment (Var sym2__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) (name sym3__) + (init (Assignment (Literal 1)))) + (BinOp (Var sym3__) LEq (Literal 2)) (Increment (Var sym3__)) + (Block + ((For + ((static false) (constexpr false) (type_ Int) + (name sym4__) (init (Assignment (Literal 1)))) + (BinOp (Var sym4__) LEq (Var d_int)) (Increment (Var sym4__)) + (Block + ((Expression + (FunCall stan::model::assign () + ((Var d_row_vector_array_3d) + (Index (Var d_row_vector_array_3d_flat__) + (Parens (BinOp (Var pos__) Subtract (Literal 1)))) + (Literal "\"assigning variable d_row_vector_array_3d\"") + (FunCall stan::model::index_uni () ((Var sym4__))) + (FunCall stan::model::index_uni () ((Var sym3__))) + (FunCall stan::model::index_uni () ((Var sym2__))) + (FunCall stan::model::index_uni () ((Var sym1__)))))) + (Expression + (Assign (Var pos__) + (Parens (BinOp (Var pos__) Add (Literal 1))))))))))))))))))) (Expression (Assign (Var current_statement__) (Literal 292))) (Expression (Assign (Var td_int) (FunCall std::numeric_limits::min () ()))) diff --git a/test/integration/good/code-gen/ode/cpp.expected b/test/integration/good/code-gen/ode/cpp.expected index f30f5893d..ecb14f96d 100644 --- a/test/integration/good/code-gen/ode/cpp.expected +++ b/test/integration/good/code-gen/ode/cpp.expected @@ -1136,6 +1136,17 @@ class overloaded_ode_model final : public model_base_crtp y0_data__ = Eigen::Matrix::Constant(4, std::numeric_limits::quiet_NaN()); new (&y0) Eigen::Map>(y0_data__.data(), 4); + { + std::vector y0_flat__; + current_statement__ = 30; + y0_flat__ = context__.vals_r("y0"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 4; ++sym1__) { + stan::model::assign(y0, y0_flat__[(pos__ - 1)], + "assigning variable y0", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 31; stan::math::validate_non_negative_index("stoi", "N_t", N_t); current_statement__ = 32; diff --git a/test/integration/good/code-gen/opencl/cpp.expected b/test/integration/good/code-gen/opencl/cpp.expected index 846615b93..7c26459d9 100644 --- a/test/integration/good/code-gen/opencl/cpp.expected +++ b/test/integration/good/code-gen/opencl/cpp.expected @@ -843,6 +843,17 @@ class distributions_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&d_vector) Eigen::Map>(d_vector_data__.data(), d_int); + { + std::vector d_vector_flat__; + current_statement__ = 763; + d_vector_flat__ = context__.vals_r("d_vector"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + stan::model::assign(d_vector, d_vector_flat__[(pos__ - 1)], + "assigning variable d_vector", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 764; stan::math::validate_non_negative_index("d_row_vector", "d_int", d_int); current_statement__ = 765; @@ -853,6 +864,17 @@ class distributions_model final : public model_base_crtp { new (&d_row_vector) Eigen::Map>(d_row_vector_data__.data(), d_int); + { + std::vector d_row_vector_flat__; + current_statement__ = 765; + d_row_vector_flat__ = context__.vals_r("d_row_vector"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + stan::model::assign(d_row_vector, d_row_vector_flat__[(pos__ - 1)], + "assigning variable d_row_vector", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 766; stan::math::validate_non_negative_index("p_real_array", "d_int", d_int); current_statement__ = 767; @@ -10480,6 +10502,17 @@ class restricted_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&d_vector) Eigen::Map>(d_vector_data__.data(), d_int); + { + std::vector d_vector_flat__; + current_statement__ = 32; + d_vector_flat__ = context__.vals_r("d_vector"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + stan::model::assign(d_vector, d_vector_flat__[(pos__ - 1)], + "assigning variable d_vector", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 33; stan::math::validate_non_negative_index("d_row_vector", "d_int", d_int); current_statement__ = 34; @@ -10490,6 +10523,17 @@ class restricted_model final : public model_base_crtp { new (&d_row_vector) Eigen::Map>(d_row_vector_data__.data(), d_int); + { + std::vector d_row_vector_flat__; + current_statement__ = 34; + d_row_vector_flat__ = context__.vals_r("d_row_vector"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + stan::model::assign(d_row_vector, d_row_vector_flat__[(pos__ - 1)], + "assigning variable d_row_vector", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 35; stan::math::validate_non_negative_index("p_real_array", "d_int", d_int); current_statement__ = 36; diff --git a/test/integration/good/code-gen/profiling/cpp.expected b/test/integration/good/code-gen/profiling/cpp.expected index 313f39cc4..10c98fc33 100644 --- a/test/integration/good/code-gen/profiling/cpp.expected +++ b/test/integration/good/code-gen/profiling/cpp.expected @@ -84,6 +84,17 @@ class simple_function_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); + { + std::vector y_flat__; + current_statement__ = 25; + y_flat__ = context__.vals_r("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 26; sum_y = std::numeric_limits::quiet_NaN(); current_statement__ = 28; diff --git a/test/integration/good/code-gen/profiling/transformed_mir.expected b/test/integration/good/code-gen/profiling/transformed_mir.expected index 9c1b4c12b..ac6ae247a 100644 --- a/test/integration/good/code-gen/profiling/transformed_mir.expected +++ b/test/integration/good/code-gen/profiling/transformed_mir.expected @@ -91,6 +91,63 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id y_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable y_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str y)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable y) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var y_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sum_y) (decl_type (Sized SReal)) (initialize true) (assignment ()))) diff --git a/test/integration/good/code-gen/transformed_mir.expected b/test/integration/good/code-gen/transformed_mir.expected index eb91c9d7c..faa264833 100644 --- a/test/integration/good/code-gen/transformed_mir.expected +++ b/test/integration/good/code-gen/transformed_mir.expected @@ -2934,6 +2934,107 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_int_3d_ar_flat__) + (decl_type (Unsized (UArray UInt))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_int_3d_ar_flat__) ()) (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_int_3d_ar)) + (meta + ((type_ (UArray (UArray (UArray UInt)))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_int_3d_ar) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UArray (UArray UInt))) + ((pattern + (Indexed + ((pattern (Var d_int_3d_ar_flat__)) + (meta + ((type_ (UArray UInt)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -3052,6 +3153,107 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_real_3d_ar_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_real_3d_ar_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_real_3d_ar)) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_real_3d_ar) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UArray (UArray UReal))) + ((pattern + (Indexed + ((pattern (Var d_real_3d_ar_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_vec)) @@ -3067,6 +3269,63 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_vec_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_vec_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_vec)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_vec) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var d_vec_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_1d_vec)) @@ -3092,21 +3351,95 @@ (initialize true) (assignment ()))) (meta )) ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_3d_vec)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) - (((pattern (Lit Str d_3d_vec)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta )) - ((pattern - (NRFunApp (CompilerInternal FnValidateSize) + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_1d_vec_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_1d_vec_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_1d_vec)) + (meta ((type_ (UArray UVector)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_1d_vec) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray UVector) + ((pattern + (Indexed + ((pattern (Var d_1d_vec_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_3d_vec)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) + (((pattern (Lit Str d_3d_vec)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_3d_vec)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Str K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) @@ -3133,6 +3466,135 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_3d_vec_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_3d_vec_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_3d_vec)) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym4__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_3d_vec) + ((Single + ((pattern (Var sym4__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (UArray (UArray (UArray UVector))) + ((pattern + (Indexed + ((pattern (Var d_3d_vec_flat__)) + (meta + ((type_ (UArray UReal)) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_row_vec)) @@ -3148,6 +3610,63 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_row_vec_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_row_vec_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_row_vec)) + (meta ((type_ URowVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_row_vec) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + URowVector + ((pattern + (Indexed + ((pattern (Var d_row_vec_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_1d_row_vec)) @@ -3172,6 +3691,80 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_1d_row_vec_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_1d_row_vec_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_1d_row_vec)) + (meta ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_1d_row_vec) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray URowVector) + ((pattern + (Indexed + ((pattern (Var d_1d_row_vec_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_3d_row_vec)) @@ -3214,6 +3807,135 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_3d_row_vec_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_3d_row_vec_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_3d_row_vec)) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym4__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_3d_row_vec) + ((Single + ((pattern (Var sym4__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (UArray (UArray (UArray URowVector))) + ((pattern + (Indexed + ((pattern (Var d_3d_row_vec_flat__)) + (meta + ((type_ (UArray UReal)) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_ar_mat) (decl_type @@ -3229,6 +3951,135 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_ar_mat_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_ar_mat_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_ar_mat)) + (meta + ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym4__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_ar_mat) + ((Single + ((pattern (Var sym4__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (UArray (UArray UMatrix)) + ((pattern + (Indexed + ((pattern (Var d_ar_mat_flat__)) + (meta + ((type_ (UArray UReal)) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -3270,6 +4121,63 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_simplex_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_simplex_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_simplex)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_simplex) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var d_simplex_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -3303,6 +4211,80 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_1d_simplex_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_1d_simplex_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_1d_simplex)) + (meta ((type_ (UArray UVector)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_1d_simplex) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray UVector) + ((pattern + (Indexed + ((pattern (Var d_1d_simplex_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -3354,6 +4336,135 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_3d_simplex_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_3d_simplex_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_3d_simplex)) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym4__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_3d_simplex) + ((Single + ((pattern (Var sym4__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (UArray (UArray (UArray UVector))) + ((pattern + (Indexed + ((pattern (Var d_3d_simplex_flat__)) + (meta + ((type_ (UArray UReal)) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -3373,6 +4484,81 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_cfcov_54_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_cfcov_54_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_cfcov_54)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_cfcov_54) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UMatrix + ((pattern + (Indexed + ((pattern (Var d_cfcov_54_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -3391,6 +4577,81 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_cfcov_33_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_cfcov_33_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_cfcov_33)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_cfcov_33) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UMatrix + ((pattern + (Indexed + ((pattern (Var d_cfcov_33_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -3418,6 +4679,106 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_cfcov_33_ar_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_cfcov_33_ar_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_cfcov_33_ar)) + (meta ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_cfcov_33_ar) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray UMatrix) + ((pattern + (Indexed + ((pattern (Var d_cfcov_33_ar_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -3483,6 +4844,81 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_int_array_2d_flat__) + (decl_type (Unsized (UArray UInt))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_int_array_2d_flat__) ()) (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_int_array_2d)) + (meta ((type_ (UArray (UArray UInt))) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_int_array_2d) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UArray UInt)) + ((pattern + (Indexed + ((pattern (Var d_int_array_2d_flat__)) + (meta + ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_int_array_3d)) @@ -3504,6 +4940,108 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_int_array_3d_flat__) + (decl_type (Unsized (UArray UInt))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_int_array_3d_flat__) ()) (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_int_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UInt)))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_int_array_3d) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UArray (UArray UInt))) + ((pattern + (Indexed + ((pattern (Var d_int_array_3d_flat__)) + (meta + ((type_ (UArray UInt)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_real) (decl_type (Sized SReal)) (initialize true) @@ -3560,6 +5098,81 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_real_array_2d_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_real_array_2d_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_real_array_2d)) + (meta ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_real_array_2d) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UArray UReal)) + ((pattern + (Indexed + ((pattern (Var d_real_array_2d_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_real_array_3d)) @@ -3581,6 +5194,108 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_real_array_3d_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_real_array_3d_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_real_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_real_array_3d) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UArray (UArray UReal))) + ((pattern + (Indexed + ((pattern (Var d_real_array_3d_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_matrix)) @@ -3606,6 +5321,81 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_matrix_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_matrix)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_matrix) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UMatrix + ((pattern + (Indexed + ((pattern (Var d_matrix_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_matrix_array)) @@ -3641,6 +5431,106 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_array_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_matrix_array_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_matrix_array)) + (meta ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_matrix_array) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray UMatrix) + ((pattern + (Indexed + ((pattern (Var d_matrix_array_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_matrix_array_2d)) @@ -3680,6 +5570,135 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_array_2d_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_matrix_array_2d_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_matrix_array_2d)) + (meta + ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym4__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_matrix_array_2d) + ((Single + ((pattern (Var sym4__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (UArray (UArray UMatrix)) + ((pattern + (Indexed + ((pattern (Var d_matrix_array_2d_flat__)) + (meta + ((type_ (UArray UReal)) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_matrix_array_3d)) @@ -3718,9 +5737,171 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_array_3d_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_matrix_array_3d_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_matrix_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UMatrix)))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym4__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym5__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_matrix_array_3d) + ((Single + ((pattern (Var sym5__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym4__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))))) + (UArray (UArray (UArray UMatrix))) + ((pattern + (Indexed + ((pattern + (Var d_matrix_array_3d_flat__)) + (meta + ((type_ (UArray UReal)) + (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3738,6 +5919,64 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_vector_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_vector_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_vector)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_vector) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var d_vector_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_vector_array)) @@ -3764,6 +6003,81 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_vector_array_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_vector_array_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_vector_array)) + (meta ((type_ (UArray UVector)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_vector_array) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray UVector) + ((pattern + (Indexed + ((pattern (Var d_vector_array_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_vector_array_2d)) @@ -3793,6 +6107,107 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_vector_array_2d_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_vector_array_2d_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_vector_array_2d)) + (meta + ((type_ (UArray (UArray UVector))) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_vector_array_2d) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UArray UVector)) + ((pattern + (Indexed + ((pattern (Var d_vector_array_2d_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_vector_array_3d)) @@ -3825,6 +6240,136 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_vector_array_3d_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_vector_array_3d_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_vector_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym4__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_vector_array_3d) + ((Single + ((pattern (Var sym4__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (UArray (UArray (UArray UVector))) + ((pattern + (Indexed + ((pattern (Var d_vector_array_3d_flat__)) + (meta + ((type_ (UArray UReal)) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_row_vector)) @@ -3841,6 +6386,64 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_row_vector_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_row_vector)) + (meta ((type_ URowVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_row_vector) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + URowVector + ((pattern + (Indexed + ((pattern (Var d_row_vector_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_row_vector_array)) @@ -3867,6 +6470,81 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_array_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_row_vector_array_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_row_vector_array)) + (meta ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_row_vector_array) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray URowVector) + ((pattern + (Indexed + ((pattern (Var d_row_vector_array_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_row_vector_array_2d)) @@ -3896,6 +6574,107 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_array_2d_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_row_vector_array_2d_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_row_vector_array_2d)) + (meta + ((type_ (UArray (UArray URowVector))) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_row_vector_array_2d) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UArray URowVector)) + ((pattern + (Indexed + ((pattern (Var d_row_vector_array_2d_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str d_row_vector_array_3d)) @@ -3928,6 +6707,137 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_array_3d_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_row_vector_array_3d_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_row_vector_array_3d)) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym4__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var d_int)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable d_row_vector_array_3d) + ((Single + ((pattern (Var sym4__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (UArray (UArray (UArray URowVector))) + ((pattern + (Indexed + ((pattern + (Var d_row_vector_array_3d_flat__)) + (meta + ((type_ (UArray UReal)) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_int) (decl_type (Sized SInt)) (initialize true) (assignment ()))) diff --git a/test/integration/good/compiler-optimizations/cpp.expected b/test/integration/good/compiler-optimizations/cpp.expected index 1f80dc5bd..8d3e54f96 100644 --- a/test/integration/good/compiler-optimizations/cpp.expected +++ b/test/integration/good/compiler-optimizations/cpp.expected @@ -19,6 +19,9 @@ static constexpr std::array locations_array__ = " (in 'ad-level-deep-dependence.stan', line 7, column 4 to column 23)"}; class ad_level_deep_dependence_model final : public model_base_crtp { private: + double lcm_sym26__; + double lcm_sym25__; + int lcm_sym24__; Eigen::Matrix X_d_data__; Eigen::Map> X_d{nullptr, 0, 0}; public: @@ -51,6 +54,615 @@ class ad_level_deep_dependence_model final : public model_base_crtp::quiet_NaN()); new (&X_d) Eigen::Map>(X_d_data__.data(), 10, 10); + { + std::vector X_d_flat__; + current_statement__ = 10; + X_d_flat__ = context__.vals_r("X_d"); + pos__ = 1; + { + { + stan::model::assign(X_d, + stan::model::rvalue(X_d_flat__, "X_d_flat__", + stan::model::index_uni(1)), "assigning variable X_d", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(2), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(3), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(4), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(5), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(6), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(7), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(8), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(9), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(10), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(1), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(2), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(3), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(4), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(5), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(6), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(7), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(8), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(9), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(10), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(1), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(2), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(3), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(4), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(5), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(6), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(7), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(8), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(9), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(10), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(1), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(2), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(3), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(4), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(5), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(6), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(7), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(8), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(9), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(10), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(1), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(2), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(3), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(4), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(5), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(6), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(7), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(8), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(9), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(10), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(1), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(2), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(3), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(4), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(5), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(6), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(7), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(8), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(9), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(10), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(1), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(2), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(3), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(4), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(5), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(6), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(7), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(8), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(9), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(10), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(1), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(2), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(3), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(4), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(5), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(6), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(7), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(8), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(9), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(10), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(1), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(2), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(3), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(4), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(5), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(6), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(7), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(8), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(9), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(10), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(1), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(2), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(3), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(4), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(5), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(6), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(7), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(8), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(9), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(10), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + } + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -1036,53 +1648,53 @@ class ad_level_deep_dependence_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_p" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } if (emit_transformed_parameters__) { - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_tp1" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_tp2" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_tp3" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_tp4" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_tp5" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_tp6" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_tp7" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } } @@ -1092,53 +1704,53 @@ class ad_level_deep_dependence_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_p" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } if (emit_transformed_parameters__) { - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_tp1" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_tp2" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_tp3" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_tp4" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_tp5" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_tp6" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } - for (int sym24__ = 1; sym24__ <= 10; ++sym24__) { - for (int sym25__ = 1; sym25__ <= 10; ++sym25__) { + for (int sym27__ = 1; sym27__ <= 10; ++sym27__) { + for (int sym28__ = 1; sym28__ <= 10; ++sym28__) { param_names__.emplace_back(std::string() + "X_tp7" + '.' + - std::to_string(sym25__) + '.' + std::to_string(sym24__)); + std::to_string(sym28__) + '.' + std::to_string(sym27__)); } } } @@ -2166,6 +2778,9 @@ static constexpr std::array locations_array__ = " (in 'ad-levels-deep.stan', line 2, column 4 to column 26)"}; class ad_levels_deep_model final : public model_base_crtp { private: + double lcm_sym14__; + double lcm_sym13__; + int lcm_sym12__; Eigen::Matrix X_data_data__; Eigen::Map> X_data{nullptr, 0, 0}; public: @@ -2197,6 +2812,615 @@ class ad_levels_deep_model final : public model_base_crtp std::numeric_limits::quiet_NaN()); new (&X_data) Eigen::Map>(X_data_data__.data(), 10, 10); + { + std::vector X_data_flat__; + current_statement__ = 5; + X_data_flat__ = context__.vals_r("X_data"); + pos__ = 1; + { + { + stan::model::assign(X_data, + stan::model::rvalue(X_data_flat__, "X_data_flat__", + stan::model::index_uni(1)), "assigning variable X_data", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(2), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(3), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(4), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(5), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(6), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(7), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(8), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(9), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(10), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(1), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(2), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(3), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(4), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(5), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(6), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(7), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(8), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(9), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(10), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(1), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(2), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(3), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(4), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(5), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(6), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(7), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(8), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(9), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(10), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(1), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(2), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(3), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(4), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(5), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(6), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(7), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(8), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(9), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(10), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(1), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(2), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(3), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(4), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(5), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(6), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(7), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(8), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(9), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(10), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(1), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(2), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(3), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(4), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(5), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(6), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(7), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(8), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(9), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(10), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(1), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(2), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(3), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(4), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(5), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(6), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(7), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(8), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(9), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(10), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(1), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(2), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(3), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(4), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(5), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(6), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(7), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(8), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(9), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(10), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(1), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(2), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(3), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(4), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(5), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(6), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(7), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(8), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(9), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(10), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(1), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(2), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(3), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(4), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(5), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(6), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(7), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(8), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(9), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(10), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + } + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -3072,23 +4296,23 @@ class ad_levels_deep_model final : public model_base_crtp constrained_param_names(std::vector& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym12__ = 1; sym12__ <= 10; ++sym12__) { - for (int sym13__ = 1; sym13__ <= 10; ++sym13__) { + for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { + for (int sym16__ = 1; sym16__ <= 10; ++sym16__) { param_names__.emplace_back(std::string() + "X_p" + '.' + - std::to_string(sym13__) + '.' + std::to_string(sym12__)); + std::to_string(sym16__) + '.' + std::to_string(sym15__)); } } if (emit_transformed_parameters__) { - for (int sym12__ = 1; sym12__ <= 10; ++sym12__) { - for (int sym13__ = 1; sym13__ <= 10; ++sym13__) { + for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { + for (int sym16__ = 1; sym16__ <= 10; ++sym16__) { param_names__.emplace_back(std::string() + "X_tp1" + '.' + - std::to_string(sym13__) + '.' + std::to_string(sym12__)); + std::to_string(sym16__) + '.' + std::to_string(sym15__)); } } - for (int sym12__ = 1; sym12__ <= 10; ++sym12__) { - for (int sym13__ = 1; sym13__ <= 10; ++sym13__) { + for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { + for (int sym16__ = 1; sym16__ <= 10; ++sym16__) { param_names__.emplace_back(std::string() + "X_tp2" + '.' + - std::to_string(sym13__) + '.' + std::to_string(sym12__)); + std::to_string(sym16__) + '.' + std::to_string(sym15__)); } } } @@ -3098,23 +4322,23 @@ class ad_levels_deep_model final : public model_base_crtp unconstrained_param_names(std::vector& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym12__ = 1; sym12__ <= 10; ++sym12__) { - for (int sym13__ = 1; sym13__ <= 10; ++sym13__) { + for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { + for (int sym16__ = 1; sym16__ <= 10; ++sym16__) { param_names__.emplace_back(std::string() + "X_p" + '.' + - std::to_string(sym13__) + '.' + std::to_string(sym12__)); + std::to_string(sym16__) + '.' + std::to_string(sym15__)); } } if (emit_transformed_parameters__) { - for (int sym12__ = 1; sym12__ <= 10; ++sym12__) { - for (int sym13__ = 1; sym13__ <= 10; ++sym13__) { + for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { + for (int sym16__ = 1; sym16__ <= 10; ++sym16__) { param_names__.emplace_back(std::string() + "X_tp1" + '.' + - std::to_string(sym13__) + '.' + std::to_string(sym12__)); + std::to_string(sym16__) + '.' + std::to_string(sym15__)); } } - for (int sym12__ = 1; sym12__ <= 10; ++sym12__) { - for (int sym13__ = 1; sym13__ <= 10; ++sym13__) { + for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { + for (int sym16__ = 1; sym16__ <= 10; ++sym16__) { param_names__.emplace_back(std::string() + "X_tp2" + '.' + - std::to_string(sym13__) + '.' + std::to_string(sym12__)); + std::to_string(sym16__) + '.' + std::to_string(sym15__)); } } } @@ -3726,7 +4950,7 @@ namespace copy_fail_model_namespace { using stan::model::model_base_crtp; using namespace stan::math; stan::math::profile_map profiles__; -static constexpr std::array locations_array__ = +static constexpr std::array locations_array__ = {" (found before start of program)", " (in 'copy_fail.stan', line 68, column 2 to column 32)", " (in 'copy_fail.stan', line 69, column 2 to column 41)", @@ -3774,6 +4998,7 @@ static constexpr std::array locations_array__ = " (in 'copy_fail.stan', line 59, column 8 to column 12)", " (in 'copy_fail.stan', line 59, column 2 to column 51)", " (in 'copy_fail.stan', line 63, column 4 to column 35)", + " (in 'copy_fail.stan', line 62, column 2 to line 63, column 35)", " (in 'copy_fail.stan', line 65, column 4 to column 33)", " (in 'copy_fail.stan', line 64, column 2 to line 65, column 33)", " (in 'copy_fail.stan', line 69, column 27 to column 34)", @@ -3835,20 +5060,20 @@ int first_capture(const T0__& y_i, std::ostream* pstream__) { { lcm_sym23__ = stan::math::size(y_i); if (stan::math::logical_gte(lcm_sym23__, 1)) { - current_statement__ = 57; + current_statement__ = 58; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(1))) { - current_statement__ = 56; + current_statement__ = 57; return 1; } for (int k = 2; k <= lcm_sym23__; ++k) { - current_statement__ = 57; + current_statement__ = 58; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(k))) { - current_statement__ = 56; + current_statement__ = 57; return k; } } } - current_statement__ = 58; + current_statement__ = 59; return 0; } } catch (const std::exception& e) { @@ -3882,22 +5107,22 @@ int last_capture(const T0__& y_i, std::ostream* pstream__) { if (stan::math::logical_gte(lcm_sym29__, 0)) { int k = std::numeric_limits::min(); lcm_sym28__ = (stan::math::size(y_i) - 0); - current_statement__ = 62; + current_statement__ = 63; if (y_i[(lcm_sym28__ - 1)]) { - current_statement__ = 61; + current_statement__ = 62; return lcm_sym28__; } for (int k_rev = 1; k_rev <= lcm_sym29__; ++k_rev) { int k = std::numeric_limits::min(); lcm_sym27__ = (stan::math::size(y_i) - k_rev); - current_statement__ = 62; + current_statement__ = 63; if (y_i[(lcm_sym27__ - 1)]) { - current_statement__ = 61; + current_statement__ = 62; return lcm_sym27__; } } } - current_statement__ = 64; + current_statement__ = 65; return 0; } } catch (const std::exception& e) { @@ -4045,6 +5270,13 @@ prob_uncaptured(const T0__& nind, const T1__& n_occasions, const T2__& } class copy_fail_model final : public model_base_crtp { private: + int lcm_sym171__; + int lcm_sym170__; + int lcm_sym169__; + int lcm_sym168__; + int lcm_sym167__; + int lcm_sym166__; + int lcm_sym165__; int lcm_sym164__; int lcm_sym163__; int lcm_sym162__; @@ -4104,6 +5336,44 @@ class copy_fail_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 37; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + if (stan::math::logical_gte(n_occasions, 1)) { + lcm_sym160__ = stan::math::logical_gte(nind, 1); + if (lcm_sym160__) { + stan::model::assign(y, + stan::model::rvalue(y_flat__, "y_flat__", + stan::model::index_uni(1)), "assigning variable y", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + for (int sym1__ = 2; sym1__ <= n_occasions; ++sym1__) { + if (lcm_sym160__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(1), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } else { + lcm_sym160__ = stan::math::logical_gte(nind, 1); + } + } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 37; @@ -4116,15 +5386,50 @@ class copy_fail_model final : public model_base_crtp { stan::math::check_greater_or_equal(function__, "max_age", max_age, 1); current_statement__ = 39; stan::math::validate_non_negative_index("x", "nind", nind); - lcm_sym160__ = (n_occasions - 1); + lcm_sym162__ = (n_occasions - 1); stan::math::validate_non_negative_index("x", "n_occasions - 1", - lcm_sym160__); + lcm_sym162__); current_statement__ = 40; context__.validate_dims("data initialization", "x", "int", std::vector{static_cast(nind), - static_cast(lcm_sym160__)}); + static_cast(lcm_sym162__)}); x = std::vector>(nind, - std::vector(lcm_sym160__, std::numeric_limits::min())); + std::vector(lcm_sym162__, std::numeric_limits::min())); + { + std::vector x_flat__; + current_statement__ = 40; + x_flat__ = context__.vals_i("x"); + pos__ = 1; + if (stan::math::logical_gte(lcm_sym162__, 1)) { + if (lcm_sym160__) { + stan::model::assign(x, + stan::model::rvalue(x_flat__, "x_flat__", + stan::model::index_uni(1)), "assigning variable x", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym2__), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + for (int sym1__ = 2; sym1__ <= lcm_sym162__; ++sym1__) { + if (lcm_sym160__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(1), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } + } current_statement__ = 40; stan::math::check_greater_or_equal(function__, "x", x, 0); current_statement__ = 40; @@ -4132,7 +5437,7 @@ class copy_fail_model final : public model_base_crtp { current_statement__ = 41; n_occ_minus_1 = std::numeric_limits::min(); current_statement__ = 41; - n_occ_minus_1 = lcm_sym160__; + n_occ_minus_1 = lcm_sym162__; current_statement__ = 42; stan::math::validate_non_negative_index("first", "nind", nind); current_statement__ = 43; @@ -4141,8 +5446,8 @@ class copy_fail_model final : public model_base_crtp { stan::math::validate_non_negative_index("last", "nind", nind); current_statement__ = 45; last = std::vector(nind, std::numeric_limits::min()); - lcm_sym159__ = stan::math::logical_gte(nind, 1); - if (lcm_sym159__) { + current_statement__ = 47; + if (lcm_sym160__) { current_statement__ = 46; stan::model::assign(first, first_capture( @@ -4157,15 +5462,15 @@ class copy_fail_model final : public model_base_crtp { stan::model::index_uni(i)); } } - current_statement__ = 48; - if (lcm_sym159__) { - current_statement__ = 47; + current_statement__ = 49; + if (lcm_sym160__) { + current_statement__ = 48; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(1)), pstream__), "assigning variable last", stan::model::index_uni(1)); for (int i = 2; i <= nind; ++i) { - current_statement__ = 47; + current_statement__ = 48; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(i)), @@ -4181,21 +5486,21 @@ class copy_fail_model final : public model_base_crtp { stan::math::check_greater_or_equal(function__, "last", last, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "last", last, n_occasions); - current_statement__ = 49; - stan::math::validate_non_negative_index("beta", "max_age", max_age); current_statement__ = 50; - stan::math::validate_non_negative_index("phi", "nind", nind); + stan::math::validate_non_negative_index("beta", "max_age", max_age); current_statement__ = 51; - stan::math::validate_non_negative_index("phi", "n_occ_minus_1", - lcm_sym160__); + stan::math::validate_non_negative_index("phi", "nind", nind); current_statement__ = 52; - stan::math::validate_non_negative_index("p", "nind", nind); + stan::math::validate_non_negative_index("phi", "n_occ_minus_1", + lcm_sym162__); current_statement__ = 53; - stan::math::validate_non_negative_index("p", "n_occ_minus_1", - lcm_sym160__); + stan::math::validate_non_negative_index("p", "nind", nind); current_statement__ = 54; - stan::math::validate_non_negative_index("chi", "nind", nind); + stan::math::validate_non_negative_index("p", "n_occ_minus_1", + lcm_sym162__); current_statement__ = 55; + stan::math::validate_non_negative_index("chi", "nind", nind); + current_statement__ = 56; stan::math::validate_non_negative_index("chi", "n_occasions", n_occasions); } catch (const std::exception& e) { @@ -5534,27 +6839,27 @@ class copy_fail_model final : public model_base_crtp { emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "mean_p"); - for (int sym165__ = 1; sym165__ <= max_age; ++sym165__) { + for (int sym172__ = 1; sym172__ <= max_age; ++sym172__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym165__)); + std::to_string(sym172__)); } if (emit_transformed_parameters__) { - for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { - for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { + for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { + for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym166__) + '.' + std::to_string(sym165__)); + std::to_string(sym173__) + '.' + std::to_string(sym172__)); } } - for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { - for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { + for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { + for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym166__) + '.' + std::to_string(sym165__)); + std::to_string(sym173__) + '.' + std::to_string(sym172__)); } } - for (int sym165__ = 1; sym165__ <= n_occasions; ++sym165__) { - for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { + for (int sym172__ = 1; sym172__ <= n_occasions; ++sym172__) { + for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym166__) + '.' + std::to_string(sym165__)); + std::to_string(sym173__) + '.' + std::to_string(sym172__)); } } } @@ -5565,27 +6870,27 @@ class copy_fail_model final : public model_base_crtp { emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "mean_p"); - for (int sym165__ = 1; sym165__ <= max_age; ++sym165__) { + for (int sym172__ = 1; sym172__ <= max_age; ++sym172__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym165__)); + std::to_string(sym172__)); } if (emit_transformed_parameters__) { - for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { - for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { + for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { + for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym166__) + '.' + std::to_string(sym165__)); + std::to_string(sym173__) + '.' + std::to_string(sym172__)); } } - for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { - for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { + for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { + for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym166__) + '.' + std::to_string(sym165__)); + std::to_string(sym173__) + '.' + std::to_string(sym172__)); } } - for (int sym165__ = 1; sym165__ <= n_occasions; ++sym165__) { - for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { + for (int sym172__ = 1; sym172__ <= n_occasions; ++sym172__) { + for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym166__) + '.' + std::to_string(sym165__)); + std::to_string(sym173__) + '.' + std::to_string(sym172__)); } } } @@ -5771,6 +7076,10 @@ static constexpr std::array locations_array__ = " (in 'dce-fail.stan', line 37, column 9 to column 16)"}; class dce_fail_model final : public model_base_crtp { private: + double lcm_sym65__; + double lcm_sym64__; + int lcm_sym63__; + int lcm_sym62__; int N; int n_age; int n_edu; @@ -5916,6 +7225,24 @@ class dce_fail_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&v_prev) Eigen::Map>(v_prev_data__.data(), n_state); + { + std::vector v_prev_flat__; + current_statement__ = 59; + v_prev_flat__ = context__.vals_r("v_prev"); + pos__ = 1; + if (stan::math::logical_gte(n_state, 1)) { + stan::model::assign(v_prev, + stan::model::rvalue(v_prev_flat__, "v_prev_flat__", + stan::model::index_uni(1)), "assigning variable v_prev", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= n_state; ++sym1__) { + stan::model::assign(v_prev, v_prev_flat__[(pos__ - 1)], + "assigning variable v_prev", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 60; stan::math::validate_non_negative_index("b_age", "n_age", n_age); current_statement__ = 61; @@ -6950,27 +8277,27 @@ class dce_fail_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "b_black"); param_names__.emplace_back(std::string() + "b_female_black"); param_names__.emplace_back(std::string() + "b_v_prev"); - for (int sym62__ = 1; sym62__ <= n_age; ++sym62__) { + for (int sym66__ = 1; sym66__ <= n_age; ++sym66__) { param_names__.emplace_back(std::string() + "b_age" + '.' + - std::to_string(sym62__)); + std::to_string(sym66__)); } - for (int sym62__ = 1; sym62__ <= n_edu; ++sym62__) { + for (int sym66__ = 1; sym66__ <= n_edu; ++sym66__) { param_names__.emplace_back(std::string() + "b_edu" + '.' + - std::to_string(sym62__)); + std::to_string(sym66__)); } - for (int sym62__ = 1; sym62__ <= n_region; ++sym62__) { + for (int sym66__ = 1; sym66__ <= n_region; ++sym66__) { param_names__.emplace_back(std::string() + "b_region" + '.' + - std::to_string(sym62__)); + std::to_string(sym66__)); } - for (int sym62__ = 1; sym62__ <= n_edu; ++sym62__) { - for (int sym63__ = 1; sym63__ <= n_age; ++sym63__) { + for (int sym66__ = 1; sym66__ <= n_edu; ++sym66__) { + for (int sym67__ = 1; sym67__ <= n_age; ++sym67__) { param_names__.emplace_back(std::string() + "b_age_edu" + '.' + - std::to_string(sym63__) + '.' + std::to_string(sym62__)); + std::to_string(sym67__) + '.' + std::to_string(sym66__)); } } - for (int sym62__ = 1; sym62__ <= n_state; ++sym62__) { + for (int sym66__ = 1; sym66__ <= n_state; ++sym66__) { param_names__.emplace_back(std::string() + "b_hat" + '.' + - std::to_string(sym62__)); + std::to_string(sym66__)); } if (emit_transformed_parameters__) {} if (emit_generated_quantities__) {} @@ -6990,27 +8317,27 @@ class dce_fail_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "b_black"); param_names__.emplace_back(std::string() + "b_female_black"); param_names__.emplace_back(std::string() + "b_v_prev"); - for (int sym62__ = 1; sym62__ <= n_age; ++sym62__) { + for (int sym66__ = 1; sym66__ <= n_age; ++sym66__) { param_names__.emplace_back(std::string() + "b_age" + '.' + - std::to_string(sym62__)); + std::to_string(sym66__)); } - for (int sym62__ = 1; sym62__ <= n_edu; ++sym62__) { + for (int sym66__ = 1; sym66__ <= n_edu; ++sym66__) { param_names__.emplace_back(std::string() + "b_edu" + '.' + - std::to_string(sym62__)); + std::to_string(sym66__)); } - for (int sym62__ = 1; sym62__ <= n_region; ++sym62__) { + for (int sym66__ = 1; sym66__ <= n_region; ++sym66__) { param_names__.emplace_back(std::string() + "b_region" + '.' + - std::to_string(sym62__)); + std::to_string(sym66__)); } - for (int sym62__ = 1; sym62__ <= n_edu; ++sym62__) { - for (int sym63__ = 1; sym63__ <= n_age; ++sym63__) { + for (int sym66__ = 1; sym66__ <= n_edu; ++sym66__) { + for (int sym67__ = 1; sym67__ <= n_age; ++sym67__) { param_names__.emplace_back(std::string() + "b_age_edu" + '.' + - std::to_string(sym63__) + '.' + std::to_string(sym62__)); + std::to_string(sym67__) + '.' + std::to_string(sym66__)); } } - for (int sym62__ = 1; sym62__ <= n_state; ++sym62__) { + for (int sym66__ = 1; sym66__ <= n_state; ++sym66__) { param_names__.emplace_back(std::string() + "b_hat" + '.' + - std::to_string(sym62__)); + std::to_string(sym66__)); } if (emit_transformed_parameters__) {} if (emit_generated_quantities__) {} @@ -7822,6 +9149,10 @@ static constexpr std::array locations_array__ = " (in 'expr-prop-fail.stan', line 3, column 2 to column 14)"}; class expr_prop_fail_model final : public model_base_crtp { private: + double lcm_sym21__; + double lcm_sym20__; + int lcm_sym19__; + int lcm_sym18__; int N; Eigen::Matrix y_data__; Eigen::Map> y{nullptr, 0}; @@ -7861,6 +9192,24 @@ class expr_prop_fail_model final : public model_base_crtp y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); + { + std::vector y_flat__; + current_statement__ = 11; + y_flat__ = context__.vals_r("y"); + pos__ = 1; + if (stan::math::logical_gte(N, 1)) { + stan::model::assign(y, + stan::model::rvalue(y_flat__, "y_flat__", + stan::model::index_uni(1)), "assigning variable y", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= N; ++sym1__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -8233,13 +9582,13 @@ class expr_prop_fail_model final : public model_base_crtp constrained_param_names(std::vector& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym18__ = 1; sym18__ <= 2; ++sym18__) { + for (int sym22__ = 1; sym22__ <= 2; ++sym22__) { param_names__.emplace_back(std::string() + "mu" + '.' + - std::to_string(sym18__)); + std::to_string(sym22__)); } - for (int sym18__ = 1; sym18__ <= 2; ++sym18__) { + for (int sym22__ = 1; sym22__ <= 2; ++sym22__) { param_names__.emplace_back(std::string() + "sigma" + '.' + - std::to_string(sym18__)); + std::to_string(sym22__)); } param_names__.emplace_back(std::string() + "theta"); if (emit_transformed_parameters__) {} @@ -8249,13 +9598,13 @@ class expr_prop_fail_model final : public model_base_crtp unconstrained_param_names(std::vector& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym18__ = 1; sym18__ <= 2; ++sym18__) { + for (int sym22__ = 1; sym22__ <= 2; ++sym22__) { param_names__.emplace_back(std::string() + "mu" + '.' + - std::to_string(sym18__)); + std::to_string(sym22__)); } - for (int sym18__ = 1; sym18__ <= 2; ++sym18__) { + for (int sym22__ = 1; sym22__ <= 2; ++sym22__) { param_names__.emplace_back(std::string() + "sigma" + '.' + - std::to_string(sym18__)); + std::to_string(sym22__)); } param_names__.emplace_back(std::string() + "theta"); if (emit_transformed_parameters__) {} @@ -8866,6 +10215,14 @@ static constexpr std::array locations_array__ = " (in 'expr-prop-fail3.stan', line 32, column 9 to column 10)"}; class expr_prop_fail3_model final : public model_base_crtp { private: + double lcm_sym51__; + double lcm_sym50__; + double lcm_sym49__; + double lcm_sym48__; + double lcm_sym47__; + double lcm_sym46__; + int lcm_sym45__; + int lcm_sym44__; int N; int n_age; int n_age_edu; @@ -8974,6 +10331,25 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&black) Eigen::Map>(black_data__.data(), N); + { + std::vector black_flat__; + current_statement__ = 33; + black_flat__ = context__.vals_r("black"); + pos__ = 1; + lcm_sym44__ = stan::math::logical_gte(N, 1); + if (lcm_sym44__) { + stan::model::assign(black, + stan::model::rvalue(black_flat__, "black_flat__", + stan::model::index_uni(1)), "assigning variable black", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= N; ++sym1__) { + stan::model::assign(black, black_flat__[(pos__ - 1)], + "assigning variable black", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 33; stan::math::check_greater_or_equal(function__, "black", black, 0); current_statement__ = 33; @@ -8997,6 +10373,24 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&female) Eigen::Map>(female_data__.data(), N); + { + std::vector female_flat__; + current_statement__ = 37; + female_flat__ = context__.vals_r("female"); + pos__ = 1; + if (lcm_sym44__) { + stan::model::assign(female, + stan::model::rvalue(female_flat__, "female_flat__", + stan::model::index_uni(1)), "assigning variable female", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= N; ++sym1__) { + stan::model::assign(female, female_flat__[(pos__ - 1)], + "assigning variable female", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "female", female, 0); current_statement__ = 37; @@ -9032,6 +10426,25 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&v_prev_full) Eigen::Map>(v_prev_full_data__.data(), N); + { + std::vector v_prev_full_flat__; + current_statement__ = 43; + v_prev_full_flat__ = context__.vals_r("v_prev_full"); + pos__ = 1; + if (lcm_sym44__) { + stan::model::assign(v_prev_full, + stan::model::rvalue(v_prev_full_flat__, "v_prev_full_flat__", + stan::model::index_uni(1)), "assigning variable v_prev_full", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= N; ++sym1__) { + stan::model::assign(v_prev_full, v_prev_full_flat__[(pos__ - 1)], + "assigning variable v_prev_full", + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 44; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 45; @@ -9971,29 +11384,29 @@ class expr_prop_fail3_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym44__ = 1; sym44__ <= n_age; ++sym44__) { + for (int sym52__ = 1; sym52__ <= n_age; ++sym52__) { param_names__.emplace_back(std::string() + "a" + '.' + - std::to_string(sym44__)); + std::to_string(sym52__)); } - for (int sym44__ = 1; sym44__ <= n_edu; ++sym44__) { + for (int sym52__ = 1; sym52__ <= n_edu; ++sym52__) { param_names__.emplace_back(std::string() + "b" + '.' + - std::to_string(sym44__)); + std::to_string(sym52__)); } - for (int sym44__ = 1; sym44__ <= n_age_edu; ++sym44__) { + for (int sym52__ = 1; sym52__ <= n_age_edu; ++sym52__) { param_names__.emplace_back(std::string() + "c" + '.' + - std::to_string(sym44__)); + std::to_string(sym52__)); } - for (int sym44__ = 1; sym44__ <= n_state; ++sym44__) { + for (int sym52__ = 1; sym52__ <= n_state; ++sym52__) { param_names__.emplace_back(std::string() + "d" + '.' + - std::to_string(sym44__)); + std::to_string(sym52__)); } - for (int sym44__ = 1; sym44__ <= n_region_full; ++sym44__) { + for (int sym52__ = 1; sym52__ <= n_region_full; ++sym52__) { param_names__.emplace_back(std::string() + "e" + '.' + - std::to_string(sym44__)); + std::to_string(sym52__)); } - for (int sym44__ = 1; sym44__ <= 5; ++sym44__) { + for (int sym52__ = 1; sym52__ <= 5; ++sym52__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym44__)); + std::to_string(sym52__)); } param_names__.emplace_back(std::string() + "sigma_a"); param_names__.emplace_back(std::string() + "sigma_b"); @@ -10001,9 +11414,9 @@ class expr_prop_fail3_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym44__ = 1; sym44__ <= n_age; ++sym44__) { + for (int sym52__ = 1; sym52__ <= n_age; ++sym52__) { param_names__.emplace_back(std::string() + "a" + '.' + - std::to_string(sym44__)); + std::to_string(sym52__)); } - for (int sym44__ = 1; sym44__ <= n_edu; ++sym44__) { + for (int sym52__ = 1; sym52__ <= n_edu; ++sym52__) { param_names__.emplace_back(std::string() + "b" + '.' + - std::to_string(sym44__)); + std::to_string(sym52__)); } - for (int sym44__ = 1; sym44__ <= n_age_edu; ++sym44__) { + for (int sym52__ = 1; sym52__ <= n_age_edu; ++sym52__) { param_names__.emplace_back(std::string() + "c" + '.' + - std::to_string(sym44__)); + std::to_string(sym52__)); } - for (int sym44__ = 1; sym44__ <= n_state; ++sym44__) { + for (int sym52__ = 1; sym52__ <= n_state; ++sym52__) { param_names__.emplace_back(std::string() + "d" + '.' + - std::to_string(sym44__)); + std::to_string(sym52__)); } - for (int sym44__ = 1; sym44__ <= n_region_full; ++sym44__) { + for (int sym52__ = 1; sym52__ <= n_region_full; ++sym52__) { param_names__.emplace_back(std::string() + "e" + '.' + - std::to_string(sym44__)); + std::to_string(sym52__)); } - for (int sym44__ = 1; sym44__ <= 5; ++sym44__) { + for (int sym52__ = 1; sym52__ <= 5; ++sym52__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym44__)); + std::to_string(sym52__)); } param_names__.emplace_back(std::string() + "sigma_a"); param_names__.emplace_back(std::string() + "sigma_b"); @@ -10042,9 +11455,9 @@ class expr_prop_fail3_model final : public model_base_crtp locations_array__ = " (in 'expr-prop-fail4.stan', line 35, column 8 to column 9)"}; class expr_prop_fail4_model final : public model_base_crtp { private: - Eigen::Matrix lcm_sym30___data__; + double lcm_sym34__; + double lcm_sym33__; + Eigen::Matrix lcm_sym32___data__; + int lcm_sym31__; + int lcm_sym30__; int lcm_sym29__; int N; int N_edges; @@ -10215,7 +11632,7 @@ class expr_prop_fail4_model final : public model_base_crtp E_data__; Eigen::Matrix log_E_data__; int phi_std_raw_1dim__; - Eigen::Map> lcm_sym30__{nullptr, 0}; + Eigen::Map> lcm_sym32__{nullptr, 0}; Eigen::Map> E{nullptr, 0}; Eigen::Map> log_E{nullptr, 0}; public: @@ -10280,6 +11697,24 @@ class expr_prop_fail4_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&E) Eigen::Map>(E_data__.data(), N); + { + std::vector E_flat__; + current_statement__ = 34; + E_flat__ = context__.vals_r("E"); + pos__ = 1; + if (stan::math::logical_gte(N, 1)) { + stan::model::assign(E, + stan::model::rvalue(E_flat__, "E_flat__", + stan::model::index_uni(1)), "assigning variable E", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= N; ++sym1__) { + stan::model::assign(E, E_flat__[(pos__ - 1)], + "assigning variable E", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 34; stan::math::check_greater_or_equal(function__, "E", E, 0); current_statement__ = 35; @@ -10294,11 +11729,11 @@ class expr_prop_fail4_model final : public model_base_crtp::min(); - lcm_sym29__ = (N - 1); - phi_std_raw_1dim__ = lcm_sym29__; + lcm_sym30__ = (N - 1); + phi_std_raw_1dim__ = lcm_sym30__; current_statement__ = 37; stan::math::validate_non_negative_index("phi_std_raw", "N - 1", - lcm_sym29__); + lcm_sym30__); current_statement__ = 38; stan::math::validate_non_negative_index("phi", "N", N); current_statement__ = 39; @@ -10772,15 +12207,15 @@ class expr_prop_fail4_model final : public model_base_crtp locations_array__ = +static constexpr std::array locations_array__ = {" (found before start of program)", " (in 'expr-prop-fail5.stan', line 68, column 2 to column 34)", " (in 'expr-prop-fail5.stan', line 69, column 2 to column 32)", @@ -11006,6 +12441,7 @@ static constexpr std::array locations_array__ = " (in 'expr-prop-fail5.stan', line 59, column 8 to column 12)", " (in 'expr-prop-fail5.stan', line 59, column 2 to column 51)", " (in 'expr-prop-fail5.stan', line 63, column 4 to column 35)", + " (in 'expr-prop-fail5.stan', line 62, column 2 to line 63, column 35)", " (in 'expr-prop-fail5.stan', line 65, column 4 to column 33)", " (in 'expr-prop-fail5.stan', line 64, column 2 to line 65, column 33)", " (in 'expr-prop-fail5.stan', line 70, column 9 to column 13)", @@ -11067,20 +12503,20 @@ int first_capture(const T0__& y_i, std::ostream* pstream__) { { lcm_sym23__ = stan::math::size(y_i); if (stan::math::logical_gte(lcm_sym23__, 1)) { - current_statement__ = 59; + current_statement__ = 60; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(1))) { - current_statement__ = 58; + current_statement__ = 59; return 1; } for (int k = 2; k <= lcm_sym23__; ++k) { - current_statement__ = 59; + current_statement__ = 60; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(k))) { - current_statement__ = 58; + current_statement__ = 59; return k; } } } - current_statement__ = 60; + current_statement__ = 61; return 0; } } catch (const std::exception& e) { @@ -11114,22 +12550,22 @@ int last_capture(const T0__& y_i, std::ostream* pstream__) { if (stan::math::logical_gte(lcm_sym29__, 0)) { int k = std::numeric_limits::min(); lcm_sym28__ = (stan::math::size(y_i) - 0); - current_statement__ = 64; + current_statement__ = 65; if (y_i[(lcm_sym28__ - 1)]) { - current_statement__ = 63; + current_statement__ = 64; return lcm_sym28__; } for (int k_rev = 1; k_rev <= lcm_sym29__; ++k_rev) { int k = std::numeric_limits::min(); lcm_sym27__ = (stan::math::size(y_i) - k_rev); - current_statement__ = 64; + current_statement__ = 65; if (y_i[(lcm_sym27__ - 1)]) { - current_statement__ = 63; + current_statement__ = 64; return lcm_sym27__; } } } - current_statement__ = 66; + current_statement__ = 67; return 0; } } catch (const std::exception& e) { @@ -11277,6 +12713,10 @@ prob_uncaptured(const T0__& nind, const T1__& n_occasions, const T2__& } class expr_prop_fail5_model final : public model_base_crtp { private: + int lcm_sym168__; + int lcm_sym167__; + int lcm_sym166__; + int lcm_sym165__; int lcm_sym164__; int lcm_sym163__; int lcm_sym162__; @@ -11334,14 +12774,52 @@ class expr_prop_fail5_model final : public model_base_crtp(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 42; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + if (stan::math::logical_gte(n_occasions, 1)) { + lcm_sym160__ = stan::math::logical_gte(nind, 1); + if (lcm_sym160__) { + stan::model::assign(y, + stan::model::rvalue(y_flat__, "y_flat__", + stan::model::index_uni(1)), "assigning variable y", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + for (int sym1__ = 2; sym1__ <= n_occasions; ++sym1__) { + if (lcm_sym160__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(1), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } else { + lcm_sym160__ = stan::math::logical_gte(nind, 1); + } + } current_statement__ = 42; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 42; stan::math::check_less_or_equal(function__, "y", y, 1); current_statement__ = 43; n_occ_minus_1 = std::numeric_limits::min(); - lcm_sym160__ = (n_occasions - 1); - n_occ_minus_1 = lcm_sym160__; + lcm_sym161__ = (n_occasions - 1); + n_occ_minus_1 = lcm_sym161__; current_statement__ = 44; stan::math::validate_non_negative_index("first", "nind", nind); current_statement__ = 45; @@ -11350,8 +12828,8 @@ class expr_prop_fail5_model final : public model_base_crtp(nind, std::numeric_limits::min()); - lcm_sym159__ = stan::math::logical_gte(nind, 1); - if (lcm_sym159__) { + current_statement__ = 49; + if (lcm_sym160__) { current_statement__ = 48; stan::model::assign(first, first_capture( @@ -11366,15 +12844,15 @@ class expr_prop_fail5_model final : public model_base_crtp locations_array__ = +static constexpr std::array locations_array__ = {" (found before start of program)", " (in 'expr-prop-fail6.stan', line 160, column 2 to column 34)", " (in 'expr-prop-fail6.stan', line 161, column 2 to column 32)", @@ -13070,6 +14548,7 @@ static constexpr std::array locations_array__ = " (in 'expr-prop-fail6.stan', line 152, column 8 to column 9)", " (in 'expr-prop-fail6.stan', line 152, column 2 to column 48)", " (in 'expr-prop-fail6.stan', line 155, column 4 to column 35)", + " (in 'expr-prop-fail6.stan', line 154, column 2 to line 155, column 35)", " (in 'expr-prop-fail6.stan', line 157, column 4 to column 33)", " (in 'expr-prop-fail6.stan', line 156, column 2 to line 157, column 33)", " (in 'expr-prop-fail6.stan', line 163, column 18 to column 29)", @@ -13173,7 +14652,7 @@ int first_capture(const T0__& y_i, std::ostream* pstream__) { } } } - current_statement__ = 137; + current_statement__ = 138; return 0; } } catch (const std::exception& e) { @@ -13207,22 +14686,22 @@ int last_capture(const T0__& y_i, std::ostream* pstream__) { if (stan::math::logical_gte(lcm_sym55__, 0)) { int k = std::numeric_limits::min(); lcm_sym54__ = (stan::math::size(y_i) - 0); - current_statement__ = 140; + current_statement__ = 141; if (y_i[(lcm_sym54__ - 1)]) { - current_statement__ = 139; + current_statement__ = 140; return lcm_sym54__; } for (int k_rev = 1; k_rev <= lcm_sym55__; ++k_rev) { int k = std::numeric_limits::min(); lcm_sym53__ = (stan::math::size(y_i) - k_rev); - current_statement__ = 140; + current_statement__ = 141; if (y_i[(lcm_sym53__ - 1)]) { - current_statement__ = 139; + current_statement__ = 140; return lcm_sym53__; } } } - current_statement__ = 142; + current_statement__ = 143; return 0; } } catch (const std::exception& e) { @@ -13927,6 +15406,10 @@ js_super_lp(const T0__& y, const T1__& first, const T2__& last, const T3__& } class expr_prop_fail6_model final : public model_base_crtp { private: + int lcm_sym346__; + int lcm_sym345__; + int lcm_sym344__; + int lcm_sym343__; int lcm_sym342__; int lcm_sym341__; int lcm_sym340__; @@ -13984,6 +15467,44 @@ class expr_prop_fail6_model final : public model_base_crtp(n_occasions)}); y = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 115; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + if (stan::math::logical_gte(n_occasions, 1)) { + lcm_sym337__ = stan::math::logical_gte(M, 1); + if (lcm_sym337__) { + stan::model::assign(y, + stan::model::rvalue(y_flat__, "y_flat__", + stan::model::index_uni(1)), "assigning variable y", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + for (int sym2__ = 2; sym2__ <= M; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + for (int sym1__ = 2; sym1__ <= n_occasions; ++sym1__) { + if (lcm_sym337__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(1), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + for (int sym2__ = 2; sym2__ <= M; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } else { + lcm_sym337__ = stan::math::logical_gte(M, 1); + } + } current_statement__ = 115; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 115; @@ -13996,7 +15517,7 @@ class expr_prop_fail6_model final : public model_base_crtp(M, std::numeric_limits::min()); - lcm_sym337__ = stan::math::logical_gte(M, 1); + current_statement__ = 121; if (lcm_sym337__) { current_statement__ = 120; stan::model::assign(first, @@ -14012,15 +15533,15 @@ class expr_prop_fail6_model final : public model_base_crtp::min(); - lcm_sym338__ = (n_occasions - 1); - phi_2dim__ = lcm_sym338__; - current_statement__ = 126; - stan::math::validate_non_negative_index("phi", "n_occasions - 1", - lcm_sym338__); + lcm_sym339__ = (n_occasions - 1); + phi_2dim__ = lcm_sym339__; current_statement__ = 127; - stan::math::validate_non_negative_index("p", "M", M); + stan::math::validate_non_negative_index("phi", "n_occasions - 1", + lcm_sym339__); current_statement__ = 128; - stan::math::validate_non_negative_index("p", "n_occasions", n_occasions); + stan::math::validate_non_negative_index("p", "M", M); current_statement__ = 129; - stan::math::validate_non_negative_index("b", "n_occasions", n_occasions); + stan::math::validate_non_negative_index("p", "n_occasions", n_occasions); current_statement__ = 130; + stan::math::validate_non_negative_index("b", "n_occasions", n_occasions); + current_statement__ = 131; stan::math::validate_non_negative_index("nu", "n_occasions", n_occasions); - current_statement__ = 131; - stan::math::validate_non_negative_index("chi", "M", M); current_statement__ = 132; + stan::math::validate_non_negative_index("chi", "M", M); + current_statement__ = 133; stan::math::validate_non_negative_index("chi", "n_occasions", n_occasions); - current_statement__ = 133; - stan::math::validate_non_negative_index("N", "n_occasions", n_occasions); current_statement__ = 134; - stan::math::validate_non_negative_index("B", "n_occasions", n_occasions); + stan::math::validate_non_negative_index("N", "n_occasions", n_occasions); current_statement__ = 135; - stan::math::validate_non_negative_index("z", "M", M); + stan::math::validate_non_negative_index("B", "n_occasions", n_occasions); current_statement__ = 136; + stan::math::validate_non_negative_index("z", "M", M); + current_statement__ = 137; stan::math::validate_non_negative_index("z", "n_occasions", n_occasions); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -16816,58 +18337,58 @@ class expr_prop_fail6_model final : public model_base_crtp locations_array__ = " (in 'expr-prop-fail7.stan', line 40, column 18 to column 19)"}; class expr_prop_fail7_model final : public model_base_crtp { private: + int lcm_sym68__; + int lcm_sym67__; + double lcm_sym66__; + double lcm_sym65__; + double lcm_sym64__; + double lcm_sym63__; + int lcm_sym62__; + int lcm_sym61__; + int lcm_sym60__; + int lcm_sym59__; int K; int I; int J; @@ -17146,6 +18677,42 @@ class expr_prop_fail7_model final : public model_base_crtp{static_cast(I), static_cast(J)}); y = std::vector>(I, std::vector(J, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 25; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + if (stan::math::logical_gte(J, 1)) { + lcm_sym59__ = stan::math::logical_gte(I, 1); + if (lcm_sym59__) { + stan::model::assign(y, + stan::model::rvalue(y_flat__, "y_flat__", + stan::model::index_uni(1)), "assigning variable y", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + for (int sym2__ = 2; sym2__ <= I; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + for (int sym1__ = 2; sym1__ <= J; ++sym1__) { + if (lcm_sym59__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(1), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + for (int sym2__ = 2; sym2__ <= I; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } + } current_statement__ = 25; stan::math::check_greater_or_equal(function__, "y", y, 1); current_statement__ = 25; @@ -17159,6 +18726,25 @@ class expr_prop_fail7_model final : public model_base_crtp::quiet_NaN()); new (&alpha) Eigen::Map>(alpha_data__.data(), K); + { + std::vector alpha_flat__; + current_statement__ = 27; + alpha_flat__ = context__.vals_r("alpha"); + pos__ = 1; + lcm_sym61__ = stan::math::logical_gte(K, 1); + if (lcm_sym61__) { + stan::model::assign(alpha, + stan::model::rvalue(alpha_flat__, "alpha_flat__", + stan::model::index_uni(1)), "assigning variable alpha", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= K; ++sym1__) { + stan::model::assign(alpha, alpha_flat__[(pos__ - 1)], + "assigning variable alpha", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 27; stan::math::check_greater_or_equal(function__, "alpha", alpha, 0); current_statement__ = 28; @@ -17171,6 +18757,41 @@ class expr_prop_fail7_model final : public model_base_crtp>(K, Eigen::Matrix::Constant(K, std::numeric_limits::quiet_NaN())); + { + std::vector beta_flat__; + current_statement__ = 30; + beta_flat__ = context__.vals_r("beta"); + pos__ = 1; + if (lcm_sym61__) { + if (lcm_sym61__) { + stan::model::assign(beta, + stan::model::rvalue(beta_flat__, "beta_flat__", + stan::model::index_uni(1)), "assigning variable beta", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + for (int sym2__ = 2; sym2__ <= K; ++sym2__) { + stan::model::assign(beta, beta_flat__[(pos__ - 1)], + "assigning variable beta", stan::model::index_uni(sym2__), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + for (int sym1__ = 2; sym1__ <= K; ++sym1__) { + if (lcm_sym61__) { + stan::model::assign(beta, beta_flat__[(pos__ - 1)], + "assigning variable beta", stan::model::index_uni(1), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + for (int sym2__ = 2; sym2__ <= K; ++sym2__) { + stan::model::assign(beta, beta_flat__[(pos__ - 1)], + "assigning variable beta", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } + } current_statement__ = 30; stan::math::check_greater_or_equal(function__, "beta", beta, 0); current_statement__ = 31; @@ -18015,25 +19636,25 @@ class expr_prop_fail7_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym59__ = 1; sym59__ <= K; ++sym59__) { + for (int sym69__ = 1; sym69__ <= K; ++sym69__) { param_names__.emplace_back(std::string() + "pi" + '.' + - std::to_string(sym59__)); + std::to_string(sym69__)); } - for (int sym59__ = 1; sym59__ <= K; ++sym59__) { - for (int sym60__ = 1; sym60__ <= K; ++sym60__) { - for (int sym61__ = 1; sym61__ <= J; ++sym61__) { + for (int sym69__ = 1; sym69__ <= K; ++sym69__) { + for (int sym70__ = 1; sym70__ <= K; ++sym70__) { + for (int sym71__ = 1; sym71__ <= J; ++sym71__) { param_names__.emplace_back(std::string() + "theta" + '.' + - std::to_string(sym61__) + '.' + std::to_string(sym60__) + '.' + - std::to_string(sym59__)); + std::to_string(sym71__) + '.' + std::to_string(sym70__) + '.' + + std::to_string(sym69__)); } } } if (emit_transformed_parameters__) {} if (emit_generated_quantities__) { - for (int sym59__ = 1; sym59__ <= K; ++sym59__) { - for (int sym60__ = 1; sym60__ <= I; ++sym60__) { + for (int sym69__ = 1; sym69__ <= K; ++sym69__) { + for (int sym70__ = 1; sym70__ <= I; ++sym70__) { param_names__.emplace_back(std::string() + "log_Pr_z" + '.' + - std::to_string(sym60__) + '.' + std::to_string(sym59__)); + std::to_string(sym70__) + '.' + std::to_string(sym69__)); } } } @@ -18042,25 +19663,25 @@ class expr_prop_fail7_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym59__ = 1; sym59__ <= (K - 1); ++sym59__) { + for (int sym69__ = 1; sym69__ <= (K - 1); ++sym69__) { param_names__.emplace_back(std::string() + "pi" + '.' + - std::to_string(sym59__)); + std::to_string(sym69__)); } - for (int sym59__ = 1; sym59__ <= (K - 1); ++sym59__) { - for (int sym60__ = 1; sym60__ <= K; ++sym60__) { - for (int sym61__ = 1; sym61__ <= J; ++sym61__) { + for (int sym69__ = 1; sym69__ <= (K - 1); ++sym69__) { + for (int sym70__ = 1; sym70__ <= K; ++sym70__) { + for (int sym71__ = 1; sym71__ <= J; ++sym71__) { param_names__.emplace_back(std::string() + "theta" + '.' + - std::to_string(sym61__) + '.' + std::to_string(sym60__) + '.' + - std::to_string(sym59__)); + std::to_string(sym71__) + '.' + std::to_string(sym70__) + '.' + + std::to_string(sym69__)); } } } if (emit_transformed_parameters__) {} if (emit_generated_quantities__) { - for (int sym59__ = 1; sym59__ <= K; ++sym59__) { - for (int sym60__ = 1; sym60__ <= I; ++sym60__) { + for (int sym69__ = 1; sym69__ <= K; ++sym69__) { + for (int sym70__ = 1; sym70__ <= I; ++sym70__) { param_names__.emplace_back(std::string() + "log_Pr_z" + '.' + - std::to_string(sym60__) + '.' + std::to_string(sym59__)); + std::to_string(sym70__) + '.' + std::to_string(sym69__)); } } } @@ -18202,6 +19823,10 @@ static constexpr std::array locations_array__ = " (in 'expr-prop-fail8.stan', line 22, column 9 to column 10)"}; class expr_prop_fail8_model final : public model_base_crtp { private: + double lcm_sym20__; + double lcm_sym19__; + int lcm_sym18__; + int lcm_sym17__; int N; int N_edges; std::vector node1; @@ -18279,6 +19904,24 @@ class expr_prop_fail8_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&x) Eigen::Map>(x_data__.data(), N); + { + std::vector x_flat__; + current_statement__ = 21; + x_flat__ = context__.vals_r("x"); + pos__ = 1; + if (stan::math::logical_gte(N, 1)) { + stan::model::assign(x, + stan::model::rvalue(x_flat__, "x_flat__", + stan::model::index_uni(1)), "assigning variable x", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= N; ++sym1__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 22; stan::math::validate_non_negative_index("theta_std", "N", N); current_statement__ = 23; @@ -18710,19 +20353,19 @@ class expr_prop_fail8_model final : public model_base_crtp locations_array__ = +static constexpr std::array locations_array__ = {" (found before start of program)", " (in 'fails-test.stan', line 68, column 2 to column 32)", " (in 'fails-test.stan', line 69, column 2 to column 41)", @@ -18909,6 +20552,7 @@ static constexpr std::array locations_array__ = " (in 'fails-test.stan', line 59, column 8 to column 12)", " (in 'fails-test.stan', line 59, column 2 to column 51)", " (in 'fails-test.stan', line 63, column 4 to column 35)", + " (in 'fails-test.stan', line 62, column 2 to line 63, column 35)", " (in 'fails-test.stan', line 65, column 4 to column 33)", " (in 'fails-test.stan', line 64, column 2 to line 65, column 33)", " (in 'fails-test.stan', line 69, column 27 to column 34)", @@ -18970,20 +20614,20 @@ int first_capture(const T0__& y_i, std::ostream* pstream__) { { lcm_sym23__ = stan::math::size(y_i); if (stan::math::logical_gte(lcm_sym23__, 1)) { - current_statement__ = 57; + current_statement__ = 58; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(1))) { - current_statement__ = 56; + current_statement__ = 57; return 1; } for (int k = 2; k <= lcm_sym23__; ++k) { - current_statement__ = 57; + current_statement__ = 58; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(k))) { - current_statement__ = 56; + current_statement__ = 57; return k; } } } - current_statement__ = 58; + current_statement__ = 59; return 0; } } catch (const std::exception& e) { @@ -19017,22 +20661,22 @@ int last_capture(const T0__& y_i, std::ostream* pstream__) { if (stan::math::logical_gte(lcm_sym29__, 0)) { int k = std::numeric_limits::min(); lcm_sym28__ = (stan::math::size(y_i) - 0); - current_statement__ = 62; + current_statement__ = 63; if (y_i[(lcm_sym28__ - 1)]) { - current_statement__ = 61; + current_statement__ = 62; return lcm_sym28__; } for (int k_rev = 1; k_rev <= lcm_sym29__; ++k_rev) { int k = std::numeric_limits::min(); lcm_sym27__ = (stan::math::size(y_i) - k_rev); - current_statement__ = 62; + current_statement__ = 63; if (y_i[(lcm_sym27__ - 1)]) { - current_statement__ = 61; + current_statement__ = 62; return lcm_sym27__; } } } - current_statement__ = 64; + current_statement__ = 65; return 0; } } catch (const std::exception& e) { @@ -19180,6 +20824,13 @@ prob_uncaptured(const T0__& nind, const T1__& n_occasions, const T2__& } class fails_test_model final : public model_base_crtp { private: + int lcm_sym171__; + int lcm_sym170__; + int lcm_sym169__; + int lcm_sym168__; + int lcm_sym167__; + int lcm_sym166__; + int lcm_sym165__; int lcm_sym164__; int lcm_sym163__; int lcm_sym162__; @@ -19239,6 +20890,44 @@ class fails_test_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 37; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + if (stan::math::logical_gte(n_occasions, 1)) { + lcm_sym160__ = stan::math::logical_gte(nind, 1); + if (lcm_sym160__) { + stan::model::assign(y, + stan::model::rvalue(y_flat__, "y_flat__", + stan::model::index_uni(1)), "assigning variable y", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + for (int sym1__ = 2; sym1__ <= n_occasions; ++sym1__) { + if (lcm_sym160__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(1), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } else { + lcm_sym160__ = stan::math::logical_gte(nind, 1); + } + } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 37; @@ -19251,15 +20940,50 @@ class fails_test_model final : public model_base_crtp { stan::math::check_greater_or_equal(function__, "max_age", max_age, 1); current_statement__ = 39; stan::math::validate_non_negative_index("x", "nind", nind); - lcm_sym160__ = (n_occasions - 1); + lcm_sym162__ = (n_occasions - 1); stan::math::validate_non_negative_index("x", "n_occasions - 1", - lcm_sym160__); + lcm_sym162__); current_statement__ = 40; context__.validate_dims("data initialization", "x", "int", std::vector{static_cast(nind), - static_cast(lcm_sym160__)}); + static_cast(lcm_sym162__)}); x = std::vector>(nind, - std::vector(lcm_sym160__, std::numeric_limits::min())); + std::vector(lcm_sym162__, std::numeric_limits::min())); + { + std::vector x_flat__; + current_statement__ = 40; + x_flat__ = context__.vals_i("x"); + pos__ = 1; + if (stan::math::logical_gte(lcm_sym162__, 1)) { + if (lcm_sym160__) { + stan::model::assign(x, + stan::model::rvalue(x_flat__, "x_flat__", + stan::model::index_uni(1)), "assigning variable x", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym2__), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + for (int sym1__ = 2; sym1__ <= lcm_sym162__; ++sym1__) { + if (lcm_sym160__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(1), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } + } current_statement__ = 40; stan::math::check_greater_or_equal(function__, "x", x, 0); current_statement__ = 40; @@ -19267,7 +20991,7 @@ class fails_test_model final : public model_base_crtp { current_statement__ = 41; n_occ_minus_1 = std::numeric_limits::min(); current_statement__ = 41; - n_occ_minus_1 = lcm_sym160__; + n_occ_minus_1 = lcm_sym162__; current_statement__ = 42; stan::math::validate_non_negative_index("first", "nind", nind); current_statement__ = 43; @@ -19276,8 +21000,8 @@ class fails_test_model final : public model_base_crtp { stan::math::validate_non_negative_index("last", "nind", nind); current_statement__ = 45; last = std::vector(nind, std::numeric_limits::min()); - lcm_sym159__ = stan::math::logical_gte(nind, 1); - if (lcm_sym159__) { + current_statement__ = 47; + if (lcm_sym160__) { current_statement__ = 46; stan::model::assign(first, first_capture( @@ -19292,15 +21016,15 @@ class fails_test_model final : public model_base_crtp { stan::model::index_uni(i)); } } - current_statement__ = 48; - if (lcm_sym159__) { - current_statement__ = 47; + current_statement__ = 49; + if (lcm_sym160__) { + current_statement__ = 48; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(1)), pstream__), "assigning variable last", stan::model::index_uni(1)); for (int i = 2; i <= nind; ++i) { - current_statement__ = 47; + current_statement__ = 48; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(i)), @@ -19316,21 +21040,21 @@ class fails_test_model final : public model_base_crtp { stan::math::check_greater_or_equal(function__, "last", last, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "last", last, n_occasions); - current_statement__ = 49; - stan::math::validate_non_negative_index("beta", "max_age", max_age); current_statement__ = 50; - stan::math::validate_non_negative_index("phi", "nind", nind); + stan::math::validate_non_negative_index("beta", "max_age", max_age); current_statement__ = 51; - stan::math::validate_non_negative_index("phi", "n_occ_minus_1", - lcm_sym160__); + stan::math::validate_non_negative_index("phi", "nind", nind); current_statement__ = 52; - stan::math::validate_non_negative_index("p", "nind", nind); + stan::math::validate_non_negative_index("phi", "n_occ_minus_1", + lcm_sym162__); current_statement__ = 53; - stan::math::validate_non_negative_index("p", "n_occ_minus_1", - lcm_sym160__); + stan::math::validate_non_negative_index("p", "nind", nind); current_statement__ = 54; - stan::math::validate_non_negative_index("chi", "nind", nind); + stan::math::validate_non_negative_index("p", "n_occ_minus_1", + lcm_sym162__); current_statement__ = 55; + stan::math::validate_non_negative_index("chi", "nind", nind); + current_statement__ = 56; stan::math::validate_non_negative_index("chi", "n_occasions", n_occasions); } catch (const std::exception& e) { @@ -20669,27 +22393,27 @@ class fails_test_model final : public model_base_crtp { emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "mean_p"); - for (int sym165__ = 1; sym165__ <= max_age; ++sym165__) { + for (int sym172__ = 1; sym172__ <= max_age; ++sym172__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym165__)); + std::to_string(sym172__)); } if (emit_transformed_parameters__) { - for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { - for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { + for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { + for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym166__) + '.' + std::to_string(sym165__)); + std::to_string(sym173__) + '.' + std::to_string(sym172__)); } } - for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { - for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { + for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { + for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym166__) + '.' + std::to_string(sym165__)); + std::to_string(sym173__) + '.' + std::to_string(sym172__)); } } - for (int sym165__ = 1; sym165__ <= n_occasions; ++sym165__) { - for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { + for (int sym172__ = 1; sym172__ <= n_occasions; ++sym172__) { + for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym166__) + '.' + std::to_string(sym165__)); + std::to_string(sym173__) + '.' + std::to_string(sym172__)); } } } @@ -20700,27 +22424,27 @@ class fails_test_model final : public model_base_crtp { emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "mean_p"); - for (int sym165__ = 1; sym165__ <= max_age; ++sym165__) { + for (int sym172__ = 1; sym172__ <= max_age; ++sym172__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym165__)); + std::to_string(sym172__)); } if (emit_transformed_parameters__) { - for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { - for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { + for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { + for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym166__) + '.' + std::to_string(sym165__)); + std::to_string(sym173__) + '.' + std::to_string(sym172__)); } } - for (int sym165__ = 1; sym165__ <= n_occ_minus_1; ++sym165__) { - for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { + for (int sym172__ = 1; sym172__ <= n_occ_minus_1; ++sym172__) { + for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym166__) + '.' + std::to_string(sym165__)); + std::to_string(sym173__) + '.' + std::to_string(sym172__)); } } - for (int sym165__ = 1; sym165__ <= n_occasions; ++sym165__) { - for (int sym166__ = 1; sym166__ <= nind; ++sym166__) { + for (int sym172__ = 1; sym172__ <= n_occasions; ++sym172__) { + for (int sym173__ = 1; sym173__ <= nind; ++sym173__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym166__) + '.' + std::to_string(sym165__)); + std::to_string(sym173__) + '.' + std::to_string(sym172__)); } } } @@ -20906,6 +22630,9 @@ outer_lpdf(const T0__& phi_arg__, std::ostream* pstream__) { } class function_in_function_inline_model final : public model_base_crtp { private: + double lcm_sym23__; + double lcm_sym22__; + int lcm_sym21__; Eigen::Matrix phi_data__; Eigen::Map> phi{nullptr, 0}; public: @@ -20938,6 +22665,64 @@ class function_in_function_inline_model final : public model_base_crtp::quiet_NaN()); new (&phi) Eigen::Map>(phi_data__.data(), 10); + { + std::vector phi_flat__; + current_statement__ = 3; + phi_flat__ = context__.vals_r("phi"); + pos__ = 1; + { + stan::model::assign(phi, + stan::model::rvalue(phi_flat__, "phi_flat__", + stan::model::index_uni(1)), "assigning variable phi", + stan::model::index_uni(1)); + pos__ = 2; + { + stan::model::assign(phi, phi_flat__[(pos__ - 1)], + "assigning variable phi", stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(phi, phi_flat__[(pos__ - 1)], + "assigning variable phi", stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(phi, phi_flat__[(pos__ - 1)], + "assigning variable phi", stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(phi, phi_flat__[(pos__ - 1)], + "assigning variable phi", stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(phi, phi_flat__[(pos__ - 1)], + "assigning variable phi", stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(phi, phi_flat__[(pos__ - 1)], + "assigning variable phi", stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(phi, phi_flat__[(pos__ - 1)], + "assigning variable phi", stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(phi, phi_flat__[(pos__ - 1)], + "assigning variable phi", stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(phi, phi_flat__[(pos__ - 1)], + "assigning variable phi", stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -24377,7 +26162,7 @@ namespace inlining_fail2_model_namespace { using stan::model::model_base_crtp; using namespace stan::math; stan::math::profile_map profiles__; -static constexpr std::array locations_array__ = +static constexpr std::array locations_array__ = {" (found before start of program)", " (in 'inlining-fail2.stan', line 175, column 2 to column 34)", " (in 'inlining-fail2.stan', line 176, column 2 to column 32)", @@ -24497,6 +26282,7 @@ static constexpr std::array locations_array__ = " (in 'inlining-fail2.stan', line 167, column 8 to column 9)", " (in 'inlining-fail2.stan', line 167, column 2 to column 48)", " (in 'inlining-fail2.stan', line 170, column 4 to column 35)", + " (in 'inlining-fail2.stan', line 169, column 2 to line 170, column 35)", " (in 'inlining-fail2.stan', line 172, column 4 to column 33)", " (in 'inlining-fail2.stan', line 171, column 2 to line 172, column 33)", " (in 'inlining-fail2.stan', line 177, column 27 to column 38)", @@ -24603,7 +26389,7 @@ int first_capture(const T0__& y_i, std::ostream* pstream__) { } } } - current_statement__ = 134; + current_statement__ = 135; return 0; } } catch (const std::exception& e) { @@ -24637,22 +26423,22 @@ int last_capture(const T0__& y_i, std::ostream* pstream__) { if (stan::math::logical_gte(lcm_sym61__, 0)) { int k = std::numeric_limits::min(); lcm_sym60__ = (stan::math::size(y_i) - 0); - current_statement__ = 137; + current_statement__ = 138; if (y_i[(lcm_sym60__ - 1)]) { - current_statement__ = 136; + current_statement__ = 137; return lcm_sym60__; } for (int k_rev = 1; k_rev <= lcm_sym61__; ++k_rev) { int k = std::numeric_limits::min(); lcm_sym59__ = (stan::math::size(y_i) - k_rev); - current_statement__ = 137; + current_statement__ = 138; if (y_i[(lcm_sym59__ - 1)]) { - current_statement__ = 136; + current_statement__ = 137; return lcm_sym59__; } } } - current_statement__ = 139; + current_statement__ = 140; return 0; } } catch (const std::exception& e) { @@ -25418,6 +27204,10 @@ seq_cprob(const T0__& gamma_arg__, std::ostream* pstream__) { } class inlining_fail2_model final : public model_base_crtp { private: + int lcm_sym354__; + int lcm_sym353__; + int lcm_sym352__; + int lcm_sym351__; int lcm_sym350__; int lcm_sym349__; int lcm_sym348__; @@ -25476,6 +27266,44 @@ class inlining_fail2_model final : public model_base_crtp static_cast(n_occasions)}); y = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 113; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + if (stan::math::logical_gte(n_occasions, 1)) { + lcm_sym345__ = stan::math::logical_gte(M, 1); + if (lcm_sym345__) { + stan::model::assign(y, + stan::model::rvalue(y_flat__, "y_flat__", + stan::model::index_uni(1)), "assigning variable y", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + for (int sym2__ = 2; sym2__ <= M; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + for (int sym1__ = 2; sym1__ <= n_occasions; ++sym1__) { + if (lcm_sym345__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(1), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + for (int sym2__ = 2; sym2__ <= M; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } else { + lcm_sym345__ = stan::math::logical_gte(M, 1); + } + } current_statement__ = 113; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 113; @@ -25488,7 +27316,7 @@ class inlining_fail2_model final : public model_base_crtp stan::math::validate_non_negative_index("last", "M", M); current_statement__ = 117; last = std::vector(M, std::numeric_limits::min()); - lcm_sym345__ = stan::math::logical_gte(M, 1); + current_statement__ = 119; if (lcm_sym345__) { current_statement__ = 118; stan::model::assign(first, @@ -25504,15 +27332,15 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(i)); } } - current_statement__ = 120; + current_statement__ = 121; if (lcm_sym345__) { - current_statement__ = 119; + current_statement__ = 120; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(1)), pstream__), "assigning variable last", stan::model::index_uni(1)); for (int i = 2; i <= M; ++i) { - current_statement__ = 119; + current_statement__ = 120; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(i)), @@ -25528,43 +27356,43 @@ class inlining_fail2_model final : public model_base_crtp stan::math::check_greater_or_equal(function__, "last", last, 0); current_statement__ = 117; stan::math::check_less_or_equal(function__, "last", last, n_occasions); - current_statement__ = 121; + current_statement__ = 122; stan::math::validate_non_negative_index("gamma", "n_occasions", n_occasions); - current_statement__ = 122; + current_statement__ = 123; epsilon_1dim__ = std::numeric_limits::min(); - lcm_sym346__ = (n_occasions - 1); - epsilon_1dim__ = lcm_sym346__; - current_statement__ = 122; - stan::math::validate_non_negative_index("epsilon", "n_occasions - 1", - lcm_sym346__); + lcm_sym347__ = (n_occasions - 1); + epsilon_1dim__ = lcm_sym347__; current_statement__ = 123; - stan::math::validate_non_negative_index("phi", "M", M); + stan::math::validate_non_negative_index("epsilon", "n_occasions - 1", + lcm_sym347__); current_statement__ = 124; + stan::math::validate_non_negative_index("phi", "M", M); + current_statement__ = 125; phi_2dim__ = std::numeric_limits::min(); - current_statement__ = 124; - phi_2dim__ = lcm_sym346__; - current_statement__ = 124; - stan::math::validate_non_negative_index("phi", "n_occasions - 1", - lcm_sym346__); current_statement__ = 125; - stan::math::validate_non_negative_index("p", "M", M); + phi_2dim__ = lcm_sym347__; + current_statement__ = 125; + stan::math::validate_non_negative_index("phi", "n_occasions - 1", + lcm_sym347__); current_statement__ = 126; - stan::math::validate_non_negative_index("p", "n_occasions", n_occasions); + stan::math::validate_non_negative_index("p", "M", M); current_statement__ = 127; - stan::math::validate_non_negative_index("chi", "M", M); + stan::math::validate_non_negative_index("p", "n_occasions", n_occasions); current_statement__ = 128; + stan::math::validate_non_negative_index("chi", "M", M); + current_statement__ = 129; stan::math::validate_non_negative_index("chi", "n_occasions", n_occasions); - current_statement__ = 129; - stan::math::validate_non_negative_index("b", "n_occasions", n_occasions); current_statement__ = 130; - stan::math::validate_non_negative_index("N", "n_occasions", n_occasions); + stan::math::validate_non_negative_index("b", "n_occasions", n_occasions); current_statement__ = 131; - stan::math::validate_non_negative_index("B", "n_occasions", n_occasions); + stan::math::validate_non_negative_index("N", "n_occasions", n_occasions); current_statement__ = 132; - stan::math::validate_non_negative_index("z", "M", M); + stan::math::validate_non_negative_index("B", "n_occasions", n_occasions); current_statement__ = 133; + stan::math::validate_non_negative_index("z", "M", M); + current_statement__ = 134; stan::math::validate_non_negative_index("z", "n_occasions", n_occasions); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -28249,55 +30077,55 @@ class inlining_fail2_model final : public model_base_crtp emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "mean_phi"); param_names__.emplace_back(std::string() + "mean_p"); - for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { + for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { param_names__.emplace_back(std::string() + "gamma" + '.' + - std::to_string(sym351__)); + std::to_string(sym355__)); } - for (int sym351__ = 1; sym351__ <= epsilon_1dim__; ++sym351__) { + for (int sym355__ = 1; sym355__ <= epsilon_1dim__; ++sym355__) { param_names__.emplace_back(std::string() + "epsilon" + '.' + - std::to_string(sym351__)); + std::to_string(sym355__)); } param_names__.emplace_back(std::string() + "sigma"); if (emit_transformed_parameters__) { - for (int sym351__ = 1; sym351__ <= phi_2dim__; ++sym351__) { - for (int sym352__ = 1; sym352__ <= M; ++sym352__) { + for (int sym355__ = 1; sym355__ <= phi_2dim__; ++sym355__) { + for (int sym356__ = 1; sym356__ <= M; ++sym356__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym352__) + '.' + std::to_string(sym351__)); + std::to_string(sym356__) + '.' + std::to_string(sym355__)); } } - for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { - for (int sym352__ = 1; sym352__ <= M; ++sym352__) { + for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { + for (int sym356__ = 1; sym356__ <= M; ++sym356__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym352__) + '.' + std::to_string(sym351__)); + std::to_string(sym356__) + '.' + std::to_string(sym355__)); } } - for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { - for (int sym352__ = 1; sym352__ <= M; ++sym352__) { + for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { + for (int sym356__ = 1; sym356__ <= M; ++sym356__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym352__) + '.' + std::to_string(sym351__)); + std::to_string(sym356__) + '.' + std::to_string(sym355__)); } } } if (emit_generated_quantities__) { param_names__.emplace_back(std::string() + "sigma2"); param_names__.emplace_back(std::string() + "psi"); - for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { + for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { param_names__.emplace_back(std::string() + "b" + '.' + - std::to_string(sym351__)); + std::to_string(sym355__)); } param_names__.emplace_back(std::string() + "Nsuper"); - for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { + for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { param_names__.emplace_back(std::string() + "N" + '.' + - std::to_string(sym351__)); + std::to_string(sym355__)); } - for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { + for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { param_names__.emplace_back(std::string() + "B" + '.' + - std::to_string(sym351__)); + std::to_string(sym355__)); } - for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { - for (int sym352__ = 1; sym352__ <= M; ++sym352__) { + for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { + for (int sym356__ = 1; sym356__ <= M; ++sym356__) { param_names__.emplace_back(std::string() + "z" + '.' + - std::to_string(sym352__) + '.' + std::to_string(sym351__)); + std::to_string(sym356__) + '.' + std::to_string(sym355__)); } } } @@ -28308,55 +30136,55 @@ class inlining_fail2_model final : public model_base_crtp emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "mean_phi"); param_names__.emplace_back(std::string() + "mean_p"); - for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { + for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { param_names__.emplace_back(std::string() + "gamma" + '.' + - std::to_string(sym351__)); + std::to_string(sym355__)); } - for (int sym351__ = 1; sym351__ <= epsilon_1dim__; ++sym351__) { + for (int sym355__ = 1; sym355__ <= epsilon_1dim__; ++sym355__) { param_names__.emplace_back(std::string() + "epsilon" + '.' + - std::to_string(sym351__)); + std::to_string(sym355__)); } param_names__.emplace_back(std::string() + "sigma"); if (emit_transformed_parameters__) { - for (int sym351__ = 1; sym351__ <= phi_2dim__; ++sym351__) { - for (int sym352__ = 1; sym352__ <= M; ++sym352__) { + for (int sym355__ = 1; sym355__ <= phi_2dim__; ++sym355__) { + for (int sym356__ = 1; sym356__ <= M; ++sym356__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym352__) + '.' + std::to_string(sym351__)); + std::to_string(sym356__) + '.' + std::to_string(sym355__)); } } - for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { - for (int sym352__ = 1; sym352__ <= M; ++sym352__) { + for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { + for (int sym356__ = 1; sym356__ <= M; ++sym356__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym352__) + '.' + std::to_string(sym351__)); + std::to_string(sym356__) + '.' + std::to_string(sym355__)); } } - for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { - for (int sym352__ = 1; sym352__ <= M; ++sym352__) { + for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { + for (int sym356__ = 1; sym356__ <= M; ++sym356__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym352__) + '.' + std::to_string(sym351__)); + std::to_string(sym356__) + '.' + std::to_string(sym355__)); } } } if (emit_generated_quantities__) { param_names__.emplace_back(std::string() + "sigma2"); param_names__.emplace_back(std::string() + "psi"); - for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { + for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { param_names__.emplace_back(std::string() + "b" + '.' + - std::to_string(sym351__)); + std::to_string(sym355__)); } param_names__.emplace_back(std::string() + "Nsuper"); - for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { + for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { param_names__.emplace_back(std::string() + "N" + '.' + - std::to_string(sym351__)); + std::to_string(sym355__)); } - for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { + for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { param_names__.emplace_back(std::string() + "B" + '.' + - std::to_string(sym351__)); + std::to_string(sym355__)); } - for (int sym351__ = 1; sym351__ <= n_occasions; ++sym351__) { - for (int sym352__ = 1; sym352__ <= M; ++sym352__) { + for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { + for (int sym356__ = 1; sym356__ <= M; ++sym356__) { param_names__.emplace_back(std::string() + "z" + '.' + - std::to_string(sym352__) + '.' + std::to_string(sym351__)); + std::to_string(sym356__) + '.' + std::to_string(sym355__)); } } } @@ -29570,7 +31398,7 @@ namespace lcm_fails2_model_namespace { using stan::model::model_base_crtp; using namespace stan::math; stan::math::profile_map profiles__; -static constexpr std::array locations_array__ = +static constexpr std::array locations_array__ = {" (found before start of program)", " (in 'lcm-fails2.stan', line 66, column 2 to column 34)", " (in 'lcm-fails2.stan', line 67, column 2 to column 32)", @@ -29615,6 +31443,7 @@ static constexpr std::array locations_array__ = " (in 'lcm-fails2.stan', line 57, column 8 to column 12)", " (in 'lcm-fails2.stan', line 57, column 2 to column 51)", " (in 'lcm-fails2.stan', line 61, column 4 to column 35)", + " (in 'lcm-fails2.stan', line 60, column 2 to line 61, column 35)", " (in 'lcm-fails2.stan', line 63, column 4 to column 33)", " (in 'lcm-fails2.stan', line 62, column 2 to line 63, column 33)", " (in 'lcm-fails2.stan', line 70, column 27 to column 31)", @@ -29675,20 +31504,20 @@ int first_capture(const T0__& y_i, std::ostream* pstream__) { { lcm_sym23__ = stan::math::size(y_i); if (stan::math::logical_gte(lcm_sym23__, 1)) { - current_statement__ = 53; + current_statement__ = 54; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(1))) { - current_statement__ = 52; + current_statement__ = 53; return 1; } for (int k = 2; k <= lcm_sym23__; ++k) { - current_statement__ = 53; + current_statement__ = 54; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(k))) { - current_statement__ = 52; + current_statement__ = 53; return k; } } } - current_statement__ = 54; + current_statement__ = 55; return 0; } } catch (const std::exception& e) { @@ -29722,22 +31551,22 @@ int last_capture(const T0__& y_i, std::ostream* pstream__) { if (stan::math::logical_gte(lcm_sym29__, 0)) { int k = std::numeric_limits::min(); lcm_sym28__ = (stan::math::size(y_i) - 0); - current_statement__ = 58; + current_statement__ = 59; if (y_i[(lcm_sym28__ - 1)]) { - current_statement__ = 57; + current_statement__ = 58; return lcm_sym28__; } for (int k_rev = 1; k_rev <= lcm_sym29__; ++k_rev) { int k = std::numeric_limits::min(); lcm_sym27__ = (stan::math::size(y_i) - k_rev); - current_statement__ = 58; + current_statement__ = 59; if (y_i[(lcm_sym27__ - 1)]) { - current_statement__ = 57; + current_statement__ = 58; return lcm_sym27__; } } } - current_statement__ = 60; + current_statement__ = 61; return 0; } } catch (const std::exception& e) { @@ -29885,6 +31714,10 @@ prob_uncaptured(const T0__& nind, const T1__& n_occasions, const T2__& } class lcm_fails2_model final : public model_base_crtp { private: + int lcm_sym152__; + int lcm_sym151__; + int lcm_sym150__; + int lcm_sym149__; int lcm_sym148__; int lcm_sym147__; int lcm_sym146__; @@ -29942,14 +31775,52 @@ class lcm_fails2_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 37; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + if (stan::math::logical_gte(n_occasions, 1)) { + lcm_sym144__ = stan::math::logical_gte(nind, 1); + if (lcm_sym144__) { + stan::model::assign(y, + stan::model::rvalue(y_flat__, "y_flat__", + stan::model::index_uni(1)), "assigning variable y", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + for (int sym1__ = 2; sym1__ <= n_occasions; ++sym1__) { + if (lcm_sym144__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(1), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + for (int sym2__ = 2; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } else { + lcm_sym144__ = stan::math::logical_gte(nind, 1); + } + } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 37; stan::math::check_less_or_equal(function__, "y", y, 1); current_statement__ = 38; n_occ_minus_1 = std::numeric_limits::min(); - lcm_sym144__ = (n_occasions - 1); - n_occ_minus_1 = lcm_sym144__; + lcm_sym145__ = (n_occasions - 1); + n_occ_minus_1 = lcm_sym145__; current_statement__ = 39; stan::math::validate_non_negative_index("first", "nind", nind); current_statement__ = 40; @@ -29958,8 +31829,8 @@ class lcm_fails2_model final : public model_base_crtp { stan::math::validate_non_negative_index("last", "nind", nind); current_statement__ = 42; last = std::vector(nind, std::numeric_limits::min()); - lcm_sym143__ = stan::math::logical_gte(nind, 1); - if (lcm_sym143__) { + current_statement__ = 44; + if (lcm_sym144__) { current_statement__ = 43; stan::model::assign(first, first_capture( @@ -29974,15 +31845,15 @@ class lcm_fails2_model final : public model_base_crtp { stan::model::index_uni(i)); } } - current_statement__ = 45; - if (lcm_sym143__) { - current_statement__ = 44; + current_statement__ = 46; + if (lcm_sym144__) { + current_statement__ = 45; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(1)), pstream__), "assigning variable last", stan::model::index_uni(1)); for (int i = 2; i <= nind; ++i) { - current_statement__ = 44; + current_statement__ = 45; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(i)), @@ -29998,19 +31869,19 @@ class lcm_fails2_model final : public model_base_crtp { stan::math::check_greater_or_equal(function__, "last", last, 0); current_statement__ = 42; stan::math::check_less_or_equal(function__, "last", last, n_occasions); - current_statement__ = 46; - stan::math::validate_non_negative_index("phi", "nind", nind); current_statement__ = 47; - stan::math::validate_non_negative_index("phi", "n_occ_minus_1", - lcm_sym144__); + stan::math::validate_non_negative_index("phi", "nind", nind); current_statement__ = 48; - stan::math::validate_non_negative_index("p", "nind", nind); + stan::math::validate_non_negative_index("phi", "n_occ_minus_1", + lcm_sym145__); current_statement__ = 49; - stan::math::validate_non_negative_index("p", "n_occ_minus_1", - lcm_sym144__); + stan::math::validate_non_negative_index("p", "nind", nind); current_statement__ = 50; - stan::math::validate_non_negative_index("chi", "nind", nind); + stan::math::validate_non_negative_index("p", "n_occ_minus_1", + lcm_sym145__); current_statement__ = 51; + stan::math::validate_non_negative_index("chi", "nind", nind); + current_statement__ = 52; stan::math::validate_non_negative_index("chi", "n_occasions", n_occasions); } catch (const std::exception& e) { @@ -31257,22 +33128,22 @@ class lcm_fails2_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "mean_phi"); param_names__.emplace_back(std::string() + "mean_p"); if (emit_transformed_parameters__) { - for (int sym149__ = 1; sym149__ <= n_occ_minus_1; ++sym149__) { - for (int sym150__ = 1; sym150__ <= nind; ++sym150__) { + for (int sym153__ = 1; sym153__ <= n_occ_minus_1; ++sym153__) { + for (int sym154__ = 1; sym154__ <= nind; ++sym154__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym150__) + '.' + std::to_string(sym149__)); + std::to_string(sym154__) + '.' + std::to_string(sym153__)); } } - for (int sym149__ = 1; sym149__ <= n_occ_minus_1; ++sym149__) { - for (int sym150__ = 1; sym150__ <= nind; ++sym150__) { + for (int sym153__ = 1; sym153__ <= n_occ_minus_1; ++sym153__) { + for (int sym154__ = 1; sym154__ <= nind; ++sym154__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym150__) + '.' + std::to_string(sym149__)); + std::to_string(sym154__) + '.' + std::to_string(sym153__)); } } - for (int sym149__ = 1; sym149__ <= n_occasions; ++sym149__) { - for (int sym150__ = 1; sym150__ <= nind; ++sym150__) { + for (int sym153__ = 1; sym153__ <= n_occasions; ++sym153__) { + for (int sym154__ = 1; sym154__ <= nind; ++sym154__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym150__) + '.' + std::to_string(sym149__)); + std::to_string(sym154__) + '.' + std::to_string(sym153__)); } } } @@ -31285,22 +33156,22 @@ class lcm_fails2_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "mean_phi"); param_names__.emplace_back(std::string() + "mean_p"); if (emit_transformed_parameters__) { - for (int sym149__ = 1; sym149__ <= n_occ_minus_1; ++sym149__) { - for (int sym150__ = 1; sym150__ <= nind; ++sym150__) { + for (int sym153__ = 1; sym153__ <= n_occ_minus_1; ++sym153__) { + for (int sym154__ = 1; sym154__ <= nind; ++sym154__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym150__) + '.' + std::to_string(sym149__)); + std::to_string(sym154__) + '.' + std::to_string(sym153__)); } } - for (int sym149__ = 1; sym149__ <= n_occ_minus_1; ++sym149__) { - for (int sym150__ = 1; sym150__ <= nind; ++sym150__) { + for (int sym153__ = 1; sym153__ <= n_occ_minus_1; ++sym153__) { + for (int sym154__ = 1; sym154__ <= nind; ++sym154__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym150__) + '.' + std::to_string(sym149__)); + std::to_string(sym154__) + '.' + std::to_string(sym153__)); } } - for (int sym149__ = 1; sym149__ <= n_occasions; ++sym149__) { - for (int sym150__ = 1; sym150__ <= nind; ++sym150__) { + for (int sym153__ = 1; sym153__ <= n_occasions; ++sym153__) { + for (int sym154__ = 1; sym154__ <= nind; ++sym154__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym150__) + '.' + std::to_string(sym149__)); + std::to_string(sym154__) + '.' + std::to_string(sym153__)); } } } @@ -32019,6 +33890,12 @@ static constexpr std::array locations_array__ = " (in 'off-dce.stan', line 56, column 8 to column 9)"}; class off_dce_model final : public model_base_crtp { private: + int lcm_sym53__; + int lcm_sym52__; + int lcm_sym51__; + int lcm_sym50__; + double lcm_sym49__; + double lcm_sym48__; int lcm_sym47__; int lcm_sym46__; int lcm_sym45__; @@ -32075,6 +33952,44 @@ class off_dce_model final : public model_base_crtp { std::vector{static_cast(R), static_cast(T)}); y = std::vector>(R, std::vector(T, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 35; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + if (stan::math::logical_gte(T, 1)) { + lcm_sym42__ = stan::math::logical_gte(R, 1); + if (lcm_sym42__) { + stan::model::assign(y, + stan::model::rvalue(y_flat__, "y_flat__", + stan::model::index_uni(1)), "assigning variable y", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + for (int sym2__ = 2; sym2__ <= R; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + for (int sym1__ = 2; sym1__ <= T; ++sym1__) { + if (lcm_sym42__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(1), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + for (int sym2__ = 2; sym2__ <= R; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } + } else { + lcm_sym42__ = stan::math::logical_gte(R, 1); + } + } current_statement__ = 35; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 35; @@ -32087,6 +34002,24 @@ class off_dce_model final : public model_base_crtp { X_data__ = Eigen::Matrix::Constant(R, std::numeric_limits::quiet_NaN()); new (&X) Eigen::Map>(X_data__.data(), R); + { + std::vector X_flat__; + current_statement__ = 37; + X_flat__ = context__.vals_r("X"); + pos__ = 1; + if (lcm_sym42__) { + stan::model::assign(X, + stan::model::rvalue(X_flat__, "X_flat__", + stan::model::index_uni(1)), "assigning variable X", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= R; ++sym1__) { + stan::model::assign(X, X_flat__[(pos__ - 1)], + "assigning variable X", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 38; stan::math::validate_non_negative_index("sum_y", "R", R); current_statement__ = 39; @@ -32096,7 +34029,7 @@ class off_dce_model final : public model_base_crtp { current_statement__ = 41; occ_obs = 0; current_statement__ = 46; - if (stan::math::logical_gte(R, 1)) { + if (lcm_sym42__) { current_statement__ = 42; stan::model::assign(sum_y, stan::math::sum( @@ -32704,26 +34637,26 @@ class off_dce_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "alpha_p"); param_names__.emplace_back(std::string() + "beta_p"); if (emit_transformed_parameters__) { - for (int sym48__ = 1; sym48__ <= R; ++sym48__) { + for (int sym54__ = 1; sym54__ <= R; ++sym54__) { param_names__.emplace_back(std::string() + "logit_psi" + '.' + - std::to_string(sym48__)); + std::to_string(sym54__)); } - for (int sym48__ = 1; sym48__ <= T; ++sym48__) { - for (int sym49__ = 1; sym49__ <= R; ++sym49__) { + for (int sym54__ = 1; sym54__ <= T; ++sym54__) { + for (int sym55__ = 1; sym55__ <= R; ++sym55__) { param_names__.emplace_back(std::string() + "logit_p" + '.' + - std::to_string(sym49__) + '.' + std::to_string(sym48__)); + std::to_string(sym55__) + '.' + std::to_string(sym54__)); } } } if (emit_generated_quantities__) { param_names__.emplace_back(std::string() + "occ_fs"); - for (int sym48__ = 1; sym48__ <= R; ++sym48__) { + for (int sym54__ = 1; sym54__ <= R; ++sym54__) { param_names__.emplace_back(std::string() + "psi_con" + '.' + - std::to_string(sym48__)); + std::to_string(sym54__)); } - for (int sym48__ = 1; sym48__ <= R; ++sym48__) { + for (int sym54__ = 1; sym54__ <= R; ++sym54__) { param_names__.emplace_back(std::string() + "z" + '.' + - std::to_string(sym48__)); + std::to_string(sym54__)); } } } @@ -32736,26 +34669,26 @@ class off_dce_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "alpha_p"); param_names__.emplace_back(std::string() + "beta_p"); if (emit_transformed_parameters__) { - for (int sym48__ = 1; sym48__ <= R; ++sym48__) { + for (int sym54__ = 1; sym54__ <= R; ++sym54__) { param_names__.emplace_back(std::string() + "logit_psi" + '.' + - std::to_string(sym48__)); + std::to_string(sym54__)); } - for (int sym48__ = 1; sym48__ <= T; ++sym48__) { - for (int sym49__ = 1; sym49__ <= R; ++sym49__) { + for (int sym54__ = 1; sym54__ <= T; ++sym54__) { + for (int sym55__ = 1; sym55__ <= R; ++sym55__) { param_names__.emplace_back(std::string() + "logit_p" + '.' + - std::to_string(sym49__) + '.' + std::to_string(sym48__)); + std::to_string(sym55__) + '.' + std::to_string(sym54__)); } } } if (emit_generated_quantities__) { param_names__.emplace_back(std::string() + "occ_fs"); - for (int sym48__ = 1; sym48__ <= R; ++sym48__) { + for (int sym54__ = 1; sym54__ <= R; ++sym54__) { param_names__.emplace_back(std::string() + "psi_con" + '.' + - std::to_string(sym48__)); + std::to_string(sym54__)); } - for (int sym48__ = 1; sym48__ <= R; ++sym48__) { + for (int sym54__ = 1; sym54__ <= R; ++sym54__) { param_names__.emplace_back(std::string() + "z" + '.' + - std::to_string(sym48__)); + std::to_string(sym54__)); } } } @@ -32910,6 +34843,14 @@ static constexpr std::array locations_array__ = " (in 'off-small.stan', line 22, column 9 to column 10)"}; class off_small_model final : public model_base_crtp { private: + double lcm_sym43__; + double lcm_sym42__; + double lcm_sym41__; + double lcm_sym40__; + double lcm_sym39__; + double lcm_sym38__; + int lcm_sym37__; + int lcm_sym36__; int J; int N; std::vector person; @@ -32972,6 +34913,25 @@ class off_small_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&time) Eigen::Map>(time_data__.data(), N); + { + std::vector time_flat__; + current_statement__ = 25; + time_flat__ = context__.vals_r("time"); + pos__ = 1; + lcm_sym36__ = stan::math::logical_gte(N, 1); + if (lcm_sym36__) { + stan::model::assign(time, + stan::model::rvalue(time_flat__, "time_flat__", + stan::model::index_uni(1)), "assigning variable time", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= N; ++sym1__) { + stan::model::assign(time, time_flat__[(pos__ - 1)], + "assigning variable time", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 26; stan::math::validate_non_negative_index("treatment", "N", N); current_statement__ = 27; @@ -32981,6 +34941,24 @@ class off_small_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&treatment) Eigen::Map>(treatment_data__.data(), N); + { + std::vector treatment_flat__; + current_statement__ = 27; + treatment_flat__ = context__.vals_r("treatment"); + pos__ = 1; + if (lcm_sym36__) { + stan::model::assign(treatment, + stan::model::rvalue(treatment_flat__, "treatment_flat__", + stan::model::index_uni(1)), "assigning variable treatment", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= N; ++sym1__) { + stan::model::assign(treatment, treatment_flat__[(pos__ - 1)], + "assigning variable treatment", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 28; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 29; @@ -32989,6 +34967,24 @@ class off_small_model final : public model_base_crtp { y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); + { + std::vector y_flat__; + current_statement__ = 29; + y_flat__ = context__.vals_r("y"); + pos__ = 1; + if (lcm_sym36__) { + stan::model::assign(y, + stan::model::rvalue(y_flat__, "y_flat__", + stan::model::index_uni(1)), "assigning variable y", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= N; ++sym1__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 30; stan::math::validate_non_negative_index("eta1", "J", J); current_statement__ = 31; @@ -33602,13 +35598,13 @@ class off_small_model final : public model_base_crtp { emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "beta"); - for (int sym36__ = 1; sym36__ <= J; ++sym36__) { + for (int sym44__ = 1; sym44__ <= J; ++sym44__) { param_names__.emplace_back(std::string() + "eta1" + '.' + - std::to_string(sym36__)); + std::to_string(sym44__)); } - for (int sym36__ = 1; sym36__ <= J; ++sym36__) { + for (int sym44__ = 1; sym44__ <= J; ++sym44__) { param_names__.emplace_back(std::string() + "eta2" + '.' + - std::to_string(sym36__)); + std::to_string(sym44__)); } param_names__.emplace_back(std::string() + "mu_a1"); param_names__.emplace_back(std::string() + "mu_a2"); @@ -33616,17 +35612,17 @@ class off_small_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "sigma_a2"); param_names__.emplace_back(std::string() + "sigma_y"); if (emit_transformed_parameters__) { - for (int sym36__ = 1; sym36__ <= J; ++sym36__) { + for (int sym44__ = 1; sym44__ <= J; ++sym44__) { param_names__.emplace_back(std::string() + "a1" + '.' + - std::to_string(sym36__)); + std::to_string(sym44__)); } - for (int sym36__ = 1; sym36__ <= J; ++sym36__) { + for (int sym44__ = 1; sym44__ <= J; ++sym44__) { param_names__.emplace_back(std::string() + "a2" + '.' + - std::to_string(sym36__)); + std::to_string(sym44__)); } - for (int sym36__ = 1; sym36__ <= N; ++sym36__) { + for (int sym44__ = 1; sym44__ <= N; ++sym44__) { param_names__.emplace_back(std::string() + "y_hat" + '.' + - std::to_string(sym36__)); + std::to_string(sym44__)); } } if (emit_generated_quantities__) {} @@ -33636,13 +35632,13 @@ class off_small_model final : public model_base_crtp { emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "beta"); - for (int sym36__ = 1; sym36__ <= J; ++sym36__) { + for (int sym44__ = 1; sym44__ <= J; ++sym44__) { param_names__.emplace_back(std::string() + "eta1" + '.' + - std::to_string(sym36__)); + std::to_string(sym44__)); } - for (int sym36__ = 1; sym36__ <= J; ++sym36__) { + for (int sym44__ = 1; sym44__ <= J; ++sym44__) { param_names__.emplace_back(std::string() + "eta2" + '.' + - std::to_string(sym36__)); + std::to_string(sym44__)); } param_names__.emplace_back(std::string() + "mu_a1"); param_names__.emplace_back(std::string() + "mu_a2"); @@ -33650,17 +35646,17 @@ class off_small_model final : public model_base_crtp { param_names__.emplace_back(std::string() + "sigma_a2"); param_names__.emplace_back(std::string() + "sigma_y"); if (emit_transformed_parameters__) { - for (int sym36__ = 1; sym36__ <= J; ++sym36__) { + for (int sym44__ = 1; sym44__ <= J; ++sym44__) { param_names__.emplace_back(std::string() + "a1" + '.' + - std::to_string(sym36__)); + std::to_string(sym44__)); } - for (int sym36__ = 1; sym36__ <= J; ++sym36__) { + for (int sym44__ = 1; sym44__ <= J; ++sym44__) { param_names__.emplace_back(std::string() + "a2" + '.' + - std::to_string(sym36__)); + std::to_string(sym44__)); } - for (int sym36__ = 1; sym36__ <= N; ++sym36__) { + for (int sym44__ = 1; sym44__ <= N; ++sym44__) { param_names__.emplace_back(std::string() + "y_hat" + '.' + - std::to_string(sym36__)); + std::to_string(sym44__)); } } if (emit_generated_quantities__) {} @@ -36695,6 +38691,14 @@ static constexpr std::array locations_array__ = " (in 'partial-eval.stan', line 17, column 9 to column 10)"}; class partial_eval_model final : public model_base_crtp { private: + double lcm_sym39__; + double lcm_sym38__; + double lcm_sym37__; + double lcm_sym36__; + double lcm_sym35__; + double lcm_sym34__; + int lcm_sym33__; + int lcm_sym32__; int N; int n_pair; std::vector pair; @@ -36757,6 +38761,25 @@ class partial_eval_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&pre_test) Eigen::Map>(pre_test_data__.data(), N); + { + std::vector pre_test_flat__; + current_statement__ = 21; + pre_test_flat__ = context__.vals_r("pre_test"); + pos__ = 1; + lcm_sym32__ = stan::math::logical_gte(N, 1); + if (lcm_sym32__) { + stan::model::assign(pre_test, + stan::model::rvalue(pre_test_flat__, "pre_test_flat__", + stan::model::index_uni(1)), "assigning variable pre_test", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= N; ++sym1__) { + stan::model::assign(pre_test, pre_test_flat__[(pos__ - 1)], + "assigning variable pre_test", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 22; stan::math::validate_non_negative_index("treatment", "N", N); current_statement__ = 23; @@ -36766,6 +38789,24 @@ class partial_eval_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&treatment) Eigen::Map>(treatment_data__.data(), N); + { + std::vector treatment_flat__; + current_statement__ = 23; + treatment_flat__ = context__.vals_r("treatment"); + pos__ = 1; + if (lcm_sym32__) { + stan::model::assign(treatment, + stan::model::rvalue(treatment_flat__, "treatment_flat__", + stan::model::index_uni(1)), "assigning variable treatment", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= N; ++sym1__) { + stan::model::assign(treatment, treatment_flat__[(pos__ - 1)], + "assigning variable treatment", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 23; stan::math::check_greater_or_equal(function__, "treatment", treatment, 0); @@ -36779,6 +38820,24 @@ class partial_eval_model final : public model_base_crtp { y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); + { + std::vector y_flat__; + current_statement__ = 25; + y_flat__ = context__.vals_r("y"); + pos__ = 1; + if (lcm_sym32__) { + stan::model::assign(y, + stan::model::rvalue(y_flat__, "y_flat__", + stan::model::index_uni(1)), "assigning variable y", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= N; ++sym1__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 26; stan::math::validate_non_negative_index("a", "n_pair", n_pair); current_statement__ = 27; @@ -37293,21 +39352,21 @@ class partial_eval_model final : public model_base_crtp { constrained_param_names(std::vector& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym32__ = 1; sym32__ <= n_pair; ++sym32__) { + for (int sym40__ = 1; sym40__ <= n_pair; ++sym40__) { param_names__.emplace_back(std::string() + "a" + '.' + - std::to_string(sym32__)); + std::to_string(sym40__)); } - for (int sym32__ = 1; sym32__ <= 2; ++sym32__) { + for (int sym40__ = 1; sym40__ <= 2; ++sym40__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym32__)); + std::to_string(sym40__)); } param_names__.emplace_back(std::string() + "mu_a"); param_names__.emplace_back(std::string() + "sigma_a"); param_names__.emplace_back(std::string() + "sigma_y"); if (emit_transformed_parameters__) { - for (int sym32__ = 1; sym32__ <= N; ++sym32__) { + for (int sym40__ = 1; sym40__ <= N; ++sym40__) { param_names__.emplace_back(std::string() + "y_hat" + '.' + - std::to_string(sym32__)); + std::to_string(sym40__)); } } if (emit_generated_quantities__) {} @@ -37316,21 +39375,21 @@ class partial_eval_model final : public model_base_crtp { unconstrained_param_names(std::vector& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym32__ = 1; sym32__ <= n_pair; ++sym32__) { + for (int sym40__ = 1; sym40__ <= n_pair; ++sym40__) { param_names__.emplace_back(std::string() + "a" + '.' + - std::to_string(sym32__)); + std::to_string(sym40__)); } - for (int sym32__ = 1; sym32__ <= 2; ++sym32__) { + for (int sym40__ = 1; sym40__ <= 2; ++sym40__) { param_names__.emplace_back(std::string() + "beta" + '.' + - std::to_string(sym32__)); + std::to_string(sym40__)); } param_names__.emplace_back(std::string() + "mu_a"); param_names__.emplace_back(std::string() + "sigma_a"); param_names__.emplace_back(std::string() + "sigma_y"); if (emit_transformed_parameters__) { - for (int sym32__ = 1; sym32__ <= N; ++sym32__) { + for (int sym40__ = 1; sym40__ <= N; ++sym40__) { param_names__.emplace_back(std::string() + "y_hat" + '.' + - std::to_string(sym32__)); + std::to_string(sym40__)); } } if (emit_generated_quantities__) {} @@ -37458,6 +39517,11 @@ static constexpr std::array locations_array__ = " (in 'partial_eval_multiply.stan', line 5, column 2 to column 20)"}; class partial_eval_multiply_model final : public model_base_crtp { private: + double lcm_sym18__; + double lcm_sym17__; + double lcm_sym16__; + double lcm_sym15__; + int lcm_sym14__; Eigen::Matrix m1_data__; Eigen::Matrix m4_data__; std::vector idx; @@ -37493,6 +39557,615 @@ class partial_eval_multiply_model final : public model_base_crtp::quiet_NaN()); new (&m1) Eigen::Map>(m1_data__.data(), 10, 10); + { + std::vector m1_flat__; + current_statement__ = 7; + m1_flat__ = context__.vals_r("m1"); + pos__ = 1; + { + { + stan::model::assign(m1, + stan::model::rvalue(m1_flat__, "m1_flat__", + stan::model::index_uni(1)), "assigning variable m1", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(2), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(3), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(4), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(5), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(6), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(7), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(8), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(9), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(10), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(1), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(2), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(3), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(4), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(5), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(6), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(7), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(8), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(9), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(10), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(1), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(2), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(3), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(4), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(5), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(6), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(7), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(8), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(9), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(10), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(1), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(2), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(3), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(4), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(5), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(6), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(7), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(8), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(9), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(10), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(1), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(2), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(3), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(4), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(5), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(6), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(7), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(8), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(9), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(10), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(1), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(2), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(3), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(4), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(5), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(6), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(7), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(8), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(9), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(10), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(1), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(2), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(3), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(4), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(5), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(6), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(7), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(8), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(9), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(10), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(1), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(2), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(3), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(4), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(5), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(6), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(7), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(8), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(9), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(10), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(1), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(2), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(3), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(4), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(5), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(6), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(7), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(8), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(9), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(10), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(1), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(2), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(3), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(4), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(5), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(6), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(7), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(8), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(9), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(10), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 8; context__.validate_dims("data initialization", "m4", "double", std::vector{static_cast(10), static_cast(10)}); @@ -37500,6 +40173,615 @@ class partial_eval_multiply_model final : public model_base_crtp::quiet_NaN()); new (&m4) Eigen::Map>(m4_data__.data(), 10, 10); + { + std::vector m4_flat__; + current_statement__ = 8; + m4_flat__ = context__.vals_r("m4"); + pos__ = 1; + { + { + stan::model::assign(m4, + stan::model::rvalue(m4_flat__, "m4_flat__", + stan::model::index_uni(1)), "assigning variable m4", + stan::model::index_uni(1), stan::model::index_uni(1)); + pos__ = 2; + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(2), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(3), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(4), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(5), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(6), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(7), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(8), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(9), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(10), + stan::model::index_uni(1)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(1), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(2), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(3), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(4), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(5), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(6), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(7), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(8), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(9), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(10), + stan::model::index_uni(2)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(1), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(2), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(3), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(4), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(5), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(6), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(7), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(8), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(9), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(10), + stan::model::index_uni(3)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(1), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(2), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(3), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(4), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(5), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(6), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(7), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(8), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(9), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(10), + stan::model::index_uni(4)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(1), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(2), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(3), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(4), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(5), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(6), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(7), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(8), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(9), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(10), + stan::model::index_uni(5)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(1), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(2), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(3), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(4), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(5), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(6), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(7), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(8), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(9), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(10), + stan::model::index_uni(6)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(1), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(2), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(3), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(4), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(5), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(6), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(7), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(8), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(9), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(10), + stan::model::index_uni(7)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(1), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(2), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(3), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(4), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(5), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(6), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(7), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(8), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(9), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(10), + stan::model::index_uni(8)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(1), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(2), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(3), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(4), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(5), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(6), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(7), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(8), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(9), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(10), + stan::model::index_uni(9)); + pos__ = (pos__ + 1); + } + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(1), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(2), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(3), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(4), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(5), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(6), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(7), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(8), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(9), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(10), + stan::model::index_uni(10)); + pos__ = (pos__ + 1); + } + } + } + } current_statement__ = 9; context__.validate_dims("data initialization", "idx", "int", std::vector{static_cast(10)}); @@ -39006,16 +42288,16 @@ class partial_eval_multiply_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym14__ = 1; sym14__ <= 10; ++sym14__) { - for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { + for (int sym19__ = 1; sym19__ <= 10; ++sym19__) { + for (int sym20__ = 1; sym20__ <= 10; ++sym20__) { param_names__.emplace_back(std::string() + "m2" + '.' + - std::to_string(sym15__) + '.' + std::to_string(sym14__)); + std::to_string(sym20__) + '.' + std::to_string(sym19__)); } } - for (int sym14__ = 1; sym14__ <= 10; ++sym14__) { - for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { + for (int sym19__ = 1; sym19__ <= 10; ++sym19__) { + for (int sym20__ = 1; sym20__ <= 10; ++sym20__) { param_names__.emplace_back(std::string() + "m3" + '.' + - std::to_string(sym15__) + '.' + std::to_string(sym14__)); + std::to_string(sym20__) + '.' + std::to_string(sym19__)); } } if (emit_transformed_parameters__) {} @@ -39025,16 +42307,16 @@ class partial_eval_multiply_model final : public model_base_crtp& param_names__, bool emit_transformed_parameters__ = true, bool emit_generated_quantities__ = true) const final { - for (int sym14__ = 1; sym14__ <= 10; ++sym14__) { - for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { + for (int sym19__ = 1; sym19__ <= 10; ++sym19__) { + for (int sym20__ = 1; sym20__ <= 10; ++sym20__) { param_names__.emplace_back(std::string() + "m2" + '.' + - std::to_string(sym15__) + '.' + std::to_string(sym14__)); + std::to_string(sym20__) + '.' + std::to_string(sym19__)); } } - for (int sym14__ = 1; sym14__ <= 10; ++sym14__) { - for (int sym15__ = 1; sym15__ <= 10; ++sym15__) { + for (int sym19__ = 1; sym19__ <= 10; ++sym19__) { + for (int sym20__ = 1; sym20__ <= 10; ++sym20__) { param_names__.emplace_back(std::string() + "m3" + '.' + - std::to_string(sym15__) + '.' + std::to_string(sym14__)); + std::to_string(sym20__) + '.' + std::to_string(sym19__)); } } if (emit_transformed_parameters__) {} @@ -39525,6 +42807,12 @@ static constexpr std::array locations_array__ = " (in 'stalled1-failure.stan', line 32, column 18 to column 19)"}; class stalled1_failure_model final : public model_base_crtp { private: + double lcm_sym41__; + double lcm_sym40__; + double lcm_sym39__; + double lcm_sym38__; + int lcm_sym37__; + int lcm_sym36__; Eigen::Matrix lcm_sym35___data__; int I; std::vector n; @@ -39589,6 +42877,25 @@ class stalled1_failure_model final : public model_base_crtp::Constant(I, std::numeric_limits::quiet_NaN()); new (&x1) Eigen::Map>(x1_data__.data(), I); + { + std::vector x1_flat__; + current_statement__ = 23; + x1_flat__ = context__.vals_r("x1"); + pos__ = 1; + lcm_sym36__ = stan::math::logical_gte(I, 1); + if (lcm_sym36__) { + stan::model::assign(x1, + stan::model::rvalue(x1_flat__, "x1_flat__", + stan::model::index_uni(1)), "assigning variable x1", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= I; ++sym1__) { + stan::model::assign(x1, x1_flat__[(pos__ - 1)], + "assigning variable x1", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 24; stan::math::validate_non_negative_index("x2", "I", I); current_statement__ = 25; @@ -39597,6 +42904,24 @@ class stalled1_failure_model final : public model_base_crtp::Constant(I, std::numeric_limits::quiet_NaN()); new (&x2) Eigen::Map>(x2_data__.data(), I); + { + std::vector x2_flat__; + current_statement__ = 25; + x2_flat__ = context__.vals_r("x2"); + pos__ = 1; + if (lcm_sym36__) { + stan::model::assign(x2, + stan::model::rvalue(x2_flat__, "x2_flat__", + stan::model::index_uni(1)), "assigning variable x2", + stan::model::index_uni(1)); + pos__ = 2; + for (int sym1__ = 2; sym1__ <= I; ++sym1__) { + stan::model::assign(x2, x2_flat__[(pos__ - 1)], + "assigning variable x2", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 26; K = std::numeric_limits::min(); current_statement__ = 27; @@ -40309,10 +43634,10 @@ class stalled1_failure_model final : public model_base_crtp::quiet_NaN()); new (&X_d) Eigen::Map>(X_d_data__.data(), 10, 10); + { + std::vector X_d_flat__; + current_statement__ = 10; + X_d_flat__ = context__.vals_r("X_d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -1475,6 +1489,20 @@ class ad_levels_deep_model final : public model_base_crtp std::numeric_limits::quiet_NaN()); new (&X_data) Eigen::Map>(X_data_data__.data(), 10, 10); + { + std::vector X_data_flat__; + current_statement__ = 5; + X_data_flat__ = context__.vals_r("X_data"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -2656,6 +2684,20 @@ class copy_fail_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 30; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { + for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 30; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 30; @@ -2678,6 +2720,20 @@ class copy_fail_model final : public model_base_crtp { x = std::vector>(nind, std::vector((n_occasions - 1), std::numeric_limits::min())); + { + std::vector x_flat__; + current_statement__ = 34; + x_flat__ = context__.vals_i("x"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= (n_occasions - 1); ++sym1__) { + for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 34; stan::math::check_greater_or_equal(function__, "x", x, 0); current_statement__ = 34; @@ -3608,6 +3664,17 @@ class dce_fail_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&v_prev) Eigen::Map>(v_prev_data__.data(), n_state); + { + std::vector v_prev_flat__; + current_statement__ = 59; + v_prev_flat__ = context__.vals_r("v_prev"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n_state; ++sym1__) { + stan::model::assign(v_prev, v_prev_flat__[(pos__ - 1)], + "assigning variable v_prev", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 60; stan::math::validate_non_negative_index("b_age", "n_age", n_age); current_statement__ = 61; @@ -5283,6 +5350,17 @@ class expr_prop_fail_model final : public model_base_crtp y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); + { + std::vector y_flat__; + current_statement__ = 11; + y_flat__ = context__.vals_r("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -6333,6 +6411,17 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&black) Eigen::Map>(black_data__.data(), N); + { + std::vector black_flat__; + current_statement__ = 33; + black_flat__ = context__.vals_r("black"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(black, black_flat__[(pos__ - 1)], + "assigning variable black", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 33; stan::math::check_greater_or_equal(function__, "black", black, 0); current_statement__ = 33; @@ -6356,6 +6445,17 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&female) Eigen::Map>(female_data__.data(), N); + { + std::vector female_flat__; + current_statement__ = 37; + female_flat__ = context__.vals_r("female"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(female, female_flat__[(pos__ - 1)], + "assigning variable female", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "female", female, 0); current_statement__ = 37; @@ -6391,6 +6491,17 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&v_prev_full) Eigen::Map>(v_prev_full_data__.data(), N); + { + std::vector v_prev_full_flat__; + current_statement__ = 43; + v_prev_full_flat__ = context__.vals_r("v_prev_full"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(v_prev_full, v_prev_full_flat__[(pos__ - 1)], + "assigning variable v_prev_full", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 44; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 45; @@ -7367,6 +7478,17 @@ class expr_prop_fail4_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&E) Eigen::Map>(E_data__.data(), N); + { + std::vector E_flat__; + current_statement__ = 37; + E_flat__ = context__.vals_r("E"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(E, E_flat__[(pos__ - 1)], + "assigning variable E", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "E", E, 0); current_statement__ = 38; @@ -8270,6 +8392,20 @@ class expr_prop_fail5_model final : public model_base_crtp(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 37; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { + for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 37; @@ -9696,6 +9832,20 @@ class expr_prop_fail6_model final : public model_base_crtp(n_occasions)}); y = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 72; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { + for (int sym2__ = 1; sym2__ <= M; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 72; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 72; @@ -10849,6 +10999,20 @@ class expr_prop_fail7_model final : public model_base_crtp{static_cast(I), static_cast(J)}); y = std::vector>(I, std::vector(J, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 27; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= J; ++sym1__) { + for (int sym2__ = 1; sym2__ <= I; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 27; stan::math::check_greater_or_equal(function__, "y", y, 1); current_statement__ = 27; @@ -10862,6 +11026,17 @@ class expr_prop_fail7_model final : public model_base_crtp::quiet_NaN()); new (&alpha) Eigen::Map>(alpha_data__.data(), K); + { + std::vector alpha_flat__; + current_statement__ = 29; + alpha_flat__ = context__.vals_r("alpha"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= K; ++sym1__) { + stan::model::assign(alpha, alpha_flat__[(pos__ - 1)], + "assigning variable alpha", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 29; stan::math::check_greater_or_equal(function__, "alpha", alpha, 0); current_statement__ = 30; @@ -10874,6 +11049,20 @@ class expr_prop_fail7_model final : public model_base_crtp>(K, Eigen::Matrix::Constant(K, std::numeric_limits::quiet_NaN())); + { + std::vector beta_flat__; + current_statement__ = 32; + beta_flat__ = context__.vals_r("beta"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= K; ++sym1__) { + for (int sym2__ = 1; sym2__ <= K; ++sym2__) { + stan::model::assign(beta, beta_flat__[(pos__ - 1)], + "assigning variable beta", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 32; stan::math::check_greater_or_equal(function__, "beta", beta, 0); current_statement__ = 33; @@ -11566,6 +11755,17 @@ class expr_prop_fail8_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&x) Eigen::Map>(x_data__.data(), N); + { + std::vector x_flat__; + current_statement__ = 21; + x_flat__ = context__.vals_r("x"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 22; stan::math::validate_non_negative_index("theta_std", "N", N); current_statement__ = 23; @@ -12393,6 +12593,20 @@ class fails_test_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 30; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { + for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 30; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 30; @@ -12415,6 +12629,20 @@ class fails_test_model final : public model_base_crtp { x = std::vector>(nind, std::vector((n_occasions - 1), std::numeric_limits::min())); + { + std::vector x_flat__; + current_statement__ = 34; + x_flat__ = context__.vals_i("x"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= (n_occasions - 1); ++sym1__) { + for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 34; stan::math::check_greater_or_equal(function__, "x", x, 0); current_statement__ = 34; @@ -13226,6 +13454,17 @@ class function_in_function_inline_model final : public model_base_crtp::quiet_NaN()); new (&phi) Eigen::Map>(phi_data__.data(), 10); + { + std::vector phi_flat__; + current_statement__ = 3; + phi_flat__ = context__.vals_r("phi"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { + stan::model::assign(phi, phi_flat__[(pos__ - 1)], + "assigning variable phi", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -16870,6 +17109,20 @@ class inlining_fail2_model final : public model_base_crtp static_cast(n_occasions)}); y = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 64; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { + for (int sym2__ = 1; sym2__ <= M; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 64; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 64; @@ -19158,6 +19411,20 @@ class lcm_fails2_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 30; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { + for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 30; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 30; @@ -20436,6 +20703,20 @@ class off_dce_model final : public model_base_crtp { std::vector{static_cast(R), static_cast(T)}); y = std::vector>(R, std::vector(T, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 38; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= T; ++sym1__) { + for (int sym2__ = 1; sym2__ <= R; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 38; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 38; @@ -20448,6 +20729,17 @@ class off_dce_model final : public model_base_crtp { X_data__ = Eigen::Matrix::Constant(R, std::numeric_limits::quiet_NaN()); new (&X) Eigen::Map>(X_data__.data(), R); + { + std::vector X_flat__; + current_statement__ = 40; + X_flat__ = context__.vals_r("X"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= R; ++sym1__) { + stan::model::assign(X, X_flat__[(pos__ - 1)], + "assigning variable X", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 41; stan::math::validate_non_negative_index("sum_y", "R", R); current_statement__ = 42; @@ -21183,6 +21475,17 @@ class off_small_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&time) Eigen::Map>(time_data__.data(), N); + { + std::vector time_flat__; + current_statement__ = 27; + time_flat__ = context__.vals_r("time"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(time, time_flat__[(pos__ - 1)], + "assigning variable time", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 28; stan::math::validate_non_negative_index("treatment", "N", N); current_statement__ = 29; @@ -21192,6 +21495,17 @@ class off_small_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&treatment) Eigen::Map>(treatment_data__.data(), N); + { + std::vector treatment_flat__; + current_statement__ = 29; + treatment_flat__ = context__.vals_r("treatment"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(treatment, treatment_flat__[(pos__ - 1)], + "assigning variable treatment", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 30; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 31; @@ -21200,6 +21514,17 @@ class off_small_model final : public model_base_crtp { y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); + { + std::vector y_flat__; + current_statement__ = 31; + y_flat__ = context__.vals_r("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 32; stan::math::validate_non_negative_index("eta1", "J", J); current_statement__ = 33; @@ -24326,6 +24651,17 @@ class partial_eval_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&pre_test) Eigen::Map>(pre_test_data__.data(), N); + { + std::vector pre_test_flat__; + current_statement__ = 22; + pre_test_flat__ = context__.vals_r("pre_test"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(pre_test, pre_test_flat__[(pos__ - 1)], + "assigning variable pre_test", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 23; stan::math::validate_non_negative_index("treatment", "N", N); current_statement__ = 24; @@ -24335,6 +24671,17 @@ class partial_eval_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&treatment) Eigen::Map>(treatment_data__.data(), N); + { + std::vector treatment_flat__; + current_statement__ = 24; + treatment_flat__ = context__.vals_r("treatment"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(treatment, treatment_flat__[(pos__ - 1)], + "assigning variable treatment", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 24; stan::math::check_greater_or_equal(function__, "treatment", treatment, 0); @@ -24348,6 +24695,17 @@ class partial_eval_model final : public model_base_crtp { y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); + { + std::vector y_flat__; + current_statement__ = 26; + y_flat__ = context__.vals_r("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 27; stan::math::validate_non_negative_index("a", "n_pair", n_pair); current_statement__ = 28; @@ -24961,6 +25319,20 @@ class partial_eval_multiply_model final : public model_base_crtp::quiet_NaN()); new (&m1) Eigen::Map>(m1_data__.data(), 10, 10); + { + std::vector m1_flat__; + current_statement__ = 7; + m1_flat__ = context__.vals_r("m1"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 8; context__.validate_dims("data initialization", "m4", "double", std::vector{static_cast(10), static_cast(10)}); @@ -24968,6 +25340,20 @@ class partial_eval_multiply_model final : public model_base_crtp::quiet_NaN()); new (&m4) Eigen::Map>(m4_data__.data(), 10, 10); + { + std::vector m4_flat__; + current_statement__ = 8; + m4_flat__ = context__.vals_r("m4"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 9; context__.validate_dims("data initialization", "idx", "int", std::vector{static_cast(10)}); @@ -25865,6 +26251,17 @@ class stalled1_failure_model final : public model_base_crtp::Constant(I, std::numeric_limits::quiet_NaN()); new (&x1) Eigen::Map>(x1_data__.data(), I); + { + std::vector x1_flat__; + current_statement__ = 24; + x1_flat__ = context__.vals_r("x1"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= I; ++sym1__) { + stan::model::assign(x1, x1_flat__[(pos__ - 1)], + "assigning variable x1", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 25; stan::math::validate_non_negative_index("x2", "I", I); current_statement__ = 26; @@ -25873,6 +26270,17 @@ class stalled1_failure_model final : public model_base_crtp::Constant(I, std::numeric_limits::quiet_NaN()); new (&x2) Eigen::Map>(x2_data__.data(), I); + { + std::vector x2_flat__; + current_statement__ = 26; + x2_flat__ = context__.vals_r("x2"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= I; ++sym1__) { + stan::model::assign(x2, x2_flat__[(pos__ - 1)], + "assigning variable x2", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 27; K = std::numeric_limits::min(); current_statement__ = 28; diff --git a/test/integration/good/compiler-optimizations/cppO1.expected b/test/integration/good/compiler-optimizations/cppO1.expected index a28a409db..4ec28a87b 100644 --- a/test/integration/good/compiler-optimizations/cppO1.expected +++ b/test/integration/good/compiler-optimizations/cppO1.expected @@ -51,6 +51,20 @@ class ad_level_deep_dependence_model final : public model_base_crtp::quiet_NaN()); new (&X_d) Eigen::Map>(X_d_data__.data(), 10, 10); + { + std::vector X_d_flat__; + current_statement__ = 10; + X_d_flat__ = context__.vals_r("X_d"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { + stan::model::assign(X_d, X_d_flat__[(pos__ - 1)], + "assigning variable X_d", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -1460,6 +1474,20 @@ class ad_levels_deep_model final : public model_base_crtp std::numeric_limits::quiet_NaN()); new (&X_data) Eigen::Map>(X_data_data__.data(), 10, 10); + { + std::vector X_data_flat__; + current_statement__ = 5; + X_data_flat__ = context__.vals_r("X_data"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -2630,6 +2658,20 @@ class copy_fail_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 41; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { + for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 41; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 41; @@ -2652,6 +2694,20 @@ class copy_fail_model final : public model_base_crtp { x = std::vector>(nind, std::vector((n_occasions - 1), std::numeric_limits::min())); + { + std::vector x_flat__; + current_statement__ = 45; + x_flat__ = context__.vals_i("x"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= (n_occasions - 1); ++sym1__) { + for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 45; stan::math::check_greater_or_equal(function__, "x", x, 0); current_statement__ = 45; @@ -3756,6 +3812,17 @@ class dce_fail_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&v_prev) Eigen::Map>(v_prev_data__.data(), n_state); + { + std::vector v_prev_flat__; + current_statement__ = 59; + v_prev_flat__ = context__.vals_r("v_prev"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n_state; ++sym1__) { + stan::model::assign(v_prev, v_prev_flat__[(pos__ - 1)], + "assigning variable v_prev", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 60; stan::math::validate_non_negative_index("b_age", "n_age", n_age); current_statement__ = 61; @@ -5433,6 +5500,17 @@ class expr_prop_fail_model final : public model_base_crtp y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); + { + std::vector y_flat__; + current_statement__ = 11; + y_flat__ = context__.vals_r("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -6480,6 +6558,17 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&black) Eigen::Map>(black_data__.data(), N); + { + std::vector black_flat__; + current_statement__ = 33; + black_flat__ = context__.vals_r("black"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(black, black_flat__[(pos__ - 1)], + "assigning variable black", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 33; stan::math::check_greater_or_equal(function__, "black", black, 0); current_statement__ = 33; @@ -6503,6 +6592,17 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&female) Eigen::Map>(female_data__.data(), N); + { + std::vector female_flat__; + current_statement__ = 37; + female_flat__ = context__.vals_r("female"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(female, female_flat__[(pos__ - 1)], + "assigning variable female", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "female", female, 0); current_statement__ = 37; @@ -6538,6 +6638,17 @@ class expr_prop_fail3_model final : public model_base_crtp::quiet_NaN()); new (&v_prev_full) Eigen::Map>(v_prev_full_data__.data(), N); + { + std::vector v_prev_full_flat__; + current_statement__ = 43; + v_prev_full_flat__ = context__.vals_r("v_prev_full"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(v_prev_full, v_prev_full_flat__[(pos__ - 1)], + "assigning variable v_prev_full", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 44; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 45; @@ -7539,6 +7650,17 @@ class expr_prop_fail4_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&E) Eigen::Map>(E_data__.data(), N); + { + std::vector E_flat__; + current_statement__ = 37; + E_flat__ = context__.vals_r("E"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(E, E_flat__[(pos__ - 1)], + "assigning variable E", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 37; stan::math::check_greater_or_equal(function__, "E", E, 0); current_statement__ = 38; @@ -8439,6 +8561,20 @@ class expr_prop_fail5_model final : public model_base_crtp(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 50; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { + for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 50; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 50; @@ -10041,6 +10177,20 @@ class expr_prop_fail6_model final : public model_base_crtp(n_occasions)}); y = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 123; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { + for (int sym2__ = 1; sym2__ <= M; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 123; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 123; @@ -11897,6 +12047,20 @@ class expr_prop_fail7_model final : public model_base_crtp{static_cast(I), static_cast(J)}); y = std::vector>(I, std::vector(J, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 27; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= J; ++sym1__) { + for (int sym2__ = 1; sym2__ <= I; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 27; stan::math::check_greater_or_equal(function__, "y", y, 1); current_statement__ = 27; @@ -11910,6 +12074,17 @@ class expr_prop_fail7_model final : public model_base_crtp::quiet_NaN()); new (&alpha) Eigen::Map>(alpha_data__.data(), K); + { + std::vector alpha_flat__; + current_statement__ = 29; + alpha_flat__ = context__.vals_r("alpha"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= K; ++sym1__) { + stan::model::assign(alpha, alpha_flat__[(pos__ - 1)], + "assigning variable alpha", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 29; stan::math::check_greater_or_equal(function__, "alpha", alpha, 0); current_statement__ = 30; @@ -11922,6 +12097,20 @@ class expr_prop_fail7_model final : public model_base_crtp>(K, Eigen::Matrix::Constant(K, std::numeric_limits::quiet_NaN())); + { + std::vector beta_flat__; + current_statement__ = 32; + beta_flat__ = context__.vals_r("beta"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= K; ++sym1__) { + for (int sym2__ = 1; sym2__ <= K; ++sym2__) { + stan::model::assign(beta, beta_flat__[(pos__ - 1)], + "assigning variable beta", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 32; stan::math::check_greater_or_equal(function__, "beta", beta, 0); current_statement__ = 33; @@ -12609,6 +12798,17 @@ class expr_prop_fail8_model final : public model_base_crtp::Constant(N, std::numeric_limits::quiet_NaN()); new (&x) Eigen::Map>(x_data__.data(), N); + { + std::vector x_flat__; + current_statement__ = 21; + x_flat__ = context__.vals_r("x"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 22; stan::math::validate_non_negative_index("theta_std", "N", N); current_statement__ = 23; @@ -13436,6 +13636,20 @@ class fails_test_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 41; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { + for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 41; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 41; @@ -13458,6 +13672,20 @@ class fails_test_model final : public model_base_crtp { x = std::vector>(nind, std::vector((n_occasions - 1), std::numeric_limits::min())); + { + std::vector x_flat__; + current_statement__ = 45; + x_flat__ = context__.vals_i("x"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= (n_occasions - 1); ++sym1__) { + for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 45; stan::math::check_greater_or_equal(function__, "x", x, 0); current_statement__ = 45; @@ -14443,6 +14671,17 @@ class function_in_function_inline_model final : public model_base_crtp::quiet_NaN()); new (&phi) Eigen::Map>(phi_data__.data(), 10); + { + std::vector phi_flat__; + current_statement__ = 4; + phi_flat__ = context__.vals_r("phi"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { + stan::model::assign(phi, phi_flat__[(pos__ - 1)], + "assigning variable phi", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -18250,6 +18489,20 @@ class inlining_fail2_model final : public model_base_crtp static_cast(n_occasions)}); y = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 123; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { + for (int sym2__ = 1; sym2__ <= M; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 123; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 123; @@ -21277,6 +21530,20 @@ class lcm_fails2_model final : public model_base_crtp { static_cast(n_occasions)}); y = std::vector>(nind, std::vector(n_occasions, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 41; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= n_occasions; ++sym1__) { + for (int sym2__ = 1; sym2__ <= nind; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 41; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 41; @@ -22794,6 +23061,20 @@ class off_dce_model final : public model_base_crtp { std::vector{static_cast(R), static_cast(T)}); y = std::vector>(R, std::vector(T, std::numeric_limits::min())); + { + std::vector y_flat__; + current_statement__ = 38; + y_flat__ = context__.vals_i("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= T; ++sym1__) { + for (int sym2__ = 1; sym2__ <= R; ++sym2__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 38; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 38; @@ -22806,6 +23087,17 @@ class off_dce_model final : public model_base_crtp { X_data__ = Eigen::Matrix::Constant(R, std::numeric_limits::quiet_NaN()); new (&X) Eigen::Map>(X_data__.data(), R); + { + std::vector X_flat__; + current_statement__ = 40; + X_flat__ = context__.vals_r("X"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= R; ++sym1__) { + stan::model::assign(X, X_flat__[(pos__ - 1)], + "assigning variable X", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 41; stan::math::validate_non_negative_index("sum_y", "R", R); current_statement__ = 42; @@ -23533,6 +23825,17 @@ class off_small_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&time) Eigen::Map>(time_data__.data(), N); + { + std::vector time_flat__; + current_statement__ = 27; + time_flat__ = context__.vals_r("time"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(time, time_flat__[(pos__ - 1)], + "assigning variable time", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 28; stan::math::validate_non_negative_index("treatment", "N", N); current_statement__ = 29; @@ -23542,6 +23845,17 @@ class off_small_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&treatment) Eigen::Map>(treatment_data__.data(), N); + { + std::vector treatment_flat__; + current_statement__ = 29; + treatment_flat__ = context__.vals_r("treatment"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(treatment, treatment_flat__[(pos__ - 1)], + "assigning variable treatment", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 30; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 31; @@ -23550,6 +23864,17 @@ class off_small_model final : public model_base_crtp { y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); + { + std::vector y_flat__; + current_statement__ = 31; + y_flat__ = context__.vals_r("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 32; stan::math::validate_non_negative_index("eta1", "J", J); current_statement__ = 33; @@ -26700,6 +27025,17 @@ class partial_eval_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&pre_test) Eigen::Map>(pre_test_data__.data(), N); + { + std::vector pre_test_flat__; + current_statement__ = 22; + pre_test_flat__ = context__.vals_r("pre_test"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(pre_test, pre_test_flat__[(pos__ - 1)], + "assigning variable pre_test", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 23; stan::math::validate_non_negative_index("treatment", "N", N); current_statement__ = 24; @@ -26709,6 +27045,17 @@ class partial_eval_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&treatment) Eigen::Map>(treatment_data__.data(), N); + { + std::vector treatment_flat__; + current_statement__ = 24; + treatment_flat__ = context__.vals_r("treatment"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(treatment, treatment_flat__[(pos__ - 1)], + "assigning variable treatment", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 24; stan::math::check_greater_or_equal(function__, "treatment", treatment, 0); @@ -26722,6 +27069,17 @@ class partial_eval_model final : public model_base_crtp { y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); + { + std::vector y_flat__; + current_statement__ = 26; + y_flat__ = context__.vals_r("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 27; stan::math::validate_non_negative_index("a", "n_pair", n_pair); current_statement__ = 28; @@ -27340,6 +27698,20 @@ class partial_eval_multiply_model final : public model_base_crtp::quiet_NaN()); new (&m1) Eigen::Map>(m1_data__.data(), 10, 10); + { + std::vector m1_flat__; + current_statement__ = 7; + m1_flat__ = context__.vals_r("m1"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 8; context__.validate_dims("data initialization", "m4", "double", std::vector{static_cast(10), static_cast(10)}); @@ -27347,6 +27719,20 @@ class partial_eval_multiply_model final : public model_base_crtp::quiet_NaN()); new (&m4) Eigen::Map>(m4_data__.data(), 10, 10); + { + std::vector m4_flat__; + current_statement__ = 8; + m4_flat__ = context__.vals_r("m4"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 10; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 10; ++sym2__) { + stan::model::assign(m4, m4_flat__[(pos__ - 1)], + "assigning variable m4", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 9; context__.validate_dims("data initialization", "idx", "int", std::vector{static_cast(10)}); @@ -28226,6 +28612,17 @@ class stalled1_failure_model final : public model_base_crtp::Constant(I, std::numeric_limits::quiet_NaN()); new (&x1) Eigen::Map>(x1_data__.data(), I); + { + std::vector x1_flat__; + current_statement__ = 24; + x1_flat__ = context__.vals_r("x1"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= I; ++sym1__) { + stan::model::assign(x1, x1_flat__[(pos__ - 1)], + "assigning variable x1", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 25; stan::math::validate_non_negative_index("x2", "I", I); current_statement__ = 26; @@ -28234,6 +28631,17 @@ class stalled1_failure_model final : public model_base_crtp::Constant(I, std::numeric_limits::quiet_NaN()); new (&x2) Eigen::Map>(x2_data__.data(), I); + { + std::vector x2_flat__; + current_statement__ = 26; + x2_flat__ = context__.vals_r("x2"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= I; ++sym1__) { + stan::model::assign(x2, x2_flat__[(pos__ - 1)], + "assigning variable x2", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 27; K = std::numeric_limits::min(); current_statement__ = 28; diff --git a/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected b/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected index 302b55183..80c6c61c4 100644 --- a/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected +++ b/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected @@ -92,6 +92,20 @@ class ad_scalar_data_matrix_model final : public model_base_crtp::quiet_NaN()); new (&X_data) Eigen::Map>(X_data_data__.data(), N, N); + { + std::vector X_data_flat__; + current_statement__ = 38; + X_data_flat__ = context__.vals_r("X_data"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(X_data, X_data_flat__[(pos__ - 1)], + "assigning variable X_data", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 39; stan::math::validate_non_negative_index("y_data", "N", N); current_statement__ = 40; @@ -101,6 +115,17 @@ class ad_scalar_data_matrix_model final : public model_base_crtp::quiet_NaN()); new (&y_data) Eigen::Map>(y_data_data__.data(), N); + { + std::vector y_data_flat__; + current_statement__ = 40; + y_data_flat__ = context__.vals_r("y_data"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(y_data, y_data_flat__[(pos__ - 1)], + "assigning variable y_data", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 41; stan::math::validate_non_negative_index("beta", "N", N); } catch (const std::exception& e) { @@ -1325,6 +1350,17 @@ class constraints_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&diff_low_mid) Eigen::Map>(diff_low_mid_data__.data(), N); + { + std::vector diff_low_mid_flat__; + current_statement__ = 54; + diff_low_mid_flat__ = context__.vals_r("diff_low_mid"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(diff_low_mid, diff_low_mid_flat__[(pos__ - 1)], + "assigning variable diff_low_mid", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 55; stan::math::validate_non_negative_index("diff_high_mid", "N", N); current_statement__ = 56; @@ -1335,6 +1371,18 @@ class constraints_model final : public model_base_crtp { new (&diff_high_mid) Eigen::Map>(diff_high_mid_data__.data(), N); + { + std::vector diff_high_mid_flat__; + current_statement__ = 56; + diff_high_mid_flat__ = context__.vals_r("diff_high_mid"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(diff_high_mid, diff_high_mid_flat__[(pos__ - + 1)], "assigning variable diff_high_mid", + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 57; stan::math::validate_non_negative_index("mid_price", "N", N); current_statement__ = 58; @@ -1344,6 +1392,17 @@ class constraints_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&mid_price) Eigen::Map>(mid_price_data__.data(), N); + { + std::vector mid_price_flat__; + current_statement__ = 58; + mid_price_flat__ = context__.vals_r("mid_price"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(mid_price, mid_price_flat__[(pos__ - 1)], + "assigning variable mid_price", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 59; stan::math::validate_non_negative_index("X_all", "N", N); current_statement__ = 60; @@ -1355,6 +1414,20 @@ class constraints_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&X_all) Eigen::Map>(X_all_data__.data(), N, K); + { + std::vector X_all_flat__; + current_statement__ = 61; + X_all_flat__ = context__.vals_r("X_all"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= K; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(X_all, X_all_flat__[(pos__ - 1)], + "assigning variable X_all", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 62; context__.validate_dims("data initialization", "phi_prior_a", "double", std::vector{}); @@ -4071,6 +4144,20 @@ class indexing_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()); new (&dat_x) Eigen::Map>(dat_x_data__.data(), N, M); + { + std::vector dat_x_flat__; + current_statement__ = 73; + dat_x_flat__ = context__.vals_r("dat_x"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= M; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(dat_x, dat_x_flat__[(pos__ - 1)], + "assigning variable dat_x", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 74; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 75; @@ -4079,6 +4166,17 @@ class indexing_model final : public model_base_crtp { y_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&y) Eigen::Map>(y_data__.data(), N); + { + std::vector y_flat__; + current_statement__ = 75; + y_flat__ = context__.vals_r("y"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(y, y_flat__[(pos__ - 1)], + "assigning variable y", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 76; stan::math::validate_non_negative_index("idx_tester", "N", N); current_statement__ = 77; @@ -9126,6 +9224,16 @@ class tuple_test_model final : public model_base_crtp { 1, DUMMY_VAR__)), Eigen::Matrix::Constant(1, 2, DUMMY_VAR__), Eigen::Matrix::Constant(1, 3, DUMMY_VAR__)}; + current_statement__ = 1; + std::get<0>(xx) = in__.template read< + std::vector>>(1, + 1, 1); + current_statement__ = 1; + std::get<1>(xx) = in__.template read< + Eigen::Matrix>(1, 2); + current_statement__ = 1; + std::get<2>(xx) = in__.template read< + Eigen::Matrix>(1, 3); Eigen::Matrix x = Eigen::Matrix::Constant(1, 1, DUMMY_VAR__); current_statement__ = 2; @@ -9173,6 +9281,16 @@ class tuple_test_model final : public model_base_crtp { 1, DUMMY_VAR__)), Eigen::Matrix::Constant(1, 2, DUMMY_VAR__), Eigen::Matrix::Constant(1, 3, DUMMY_VAR__)}; + current_statement__ = 1; + std::get<0>(xx) = in__.template read< + std::vector>>(1, + 1, 1); + current_statement__ = 1; + std::get<1>(xx) = in__.template read< + Eigen::Matrix>(1, 2); + current_statement__ = 1; + std::get<2>(xx) = in__.template read< + Eigen::Matrix>(1, 3); Eigen::Matrix x = Eigen::Matrix::Constant(1, 1, DUMMY_VAR__); current_statement__ = 2; @@ -9233,6 +9351,16 @@ class tuple_test_model final : public model_base_crtp { std::numeric_limits::quiet_NaN()), Eigen::Matrix::Constant(1, 3, std::numeric_limits::quiet_NaN())}; + current_statement__ = 1; + std::get<0>(xx) = in__.template read< + std::vector>>(1, + 1, 1); + current_statement__ = 1; + std::get<1>(xx) = in__.template read< + Eigen::Matrix>(1, 2); + current_statement__ = 1; + std::get<2>(xx) = in__.template read< + Eigen::Matrix>(1, 3); Eigen::Matrix x = Eigen::Matrix::Constant(1, 1, std::numeric_limits::quiet_NaN()); @@ -9662,6 +9790,20 @@ class tuple_test2_model final : public model_base_crtp { x_data__ = Eigen::Matrix::Constant(2, 2, std::numeric_limits::quiet_NaN()); new (&x) Eigen::Map>(x_data__.data(), 2, 2); + { + std::vector x_flat__; + current_statement__ = 5; + x_flat__ = context__.vals_r("x"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } diff --git a/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected b/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected index 5f0674475..a1d308340 100644 --- a/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected +++ b/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected @@ -83,6 +83,80 @@ matrix[2, 2] aos_mat_from_vecs: AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id X_data_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable X_data_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str X_data)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable X_data) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UMatrix + ((pattern + (Indexed + ((pattern (Var X_data_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str y_data)) @@ -98,6 +172,63 @@ matrix[2, 2] aos_mat_from_vecs: AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id y_data_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable y_data_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str y_data)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable y_data) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var y_data_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str beta)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) @@ -2076,6 +2207,63 @@ vector[Nr] h_sigma: SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id diff_low_mid_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable diff_low_mid_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str diff_low_mid)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable diff_low_mid) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var diff_low_mid_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str diff_high_mid)) @@ -2091,6 +2279,63 @@ vector[Nr] h_sigma: SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id diff_high_mid_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable diff_high_mid_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str diff_high_mid)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable diff_high_mid) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var diff_high_mid_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str mid_price)) @@ -2106,6 +2351,63 @@ vector[Nr] h_sigma: SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id mid_price_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable mid_price_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str mid_price)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable mid_price) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var mid_price_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str X_all)) @@ -2129,6 +2431,80 @@ vector[Nr] h_sigma: SoA ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id X_all_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable X_all_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str X_all)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable X_all) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UMatrix + ((pattern + (Indexed + ((pattern (Var X_all_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi_prior_a) (decl_type (Sized SReal)) (initialize true) @@ -9850,6 +10226,80 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id dat_x_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable dat_x_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str dat_x)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable dat_x) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UMatrix + ((pattern + (Indexed + ((pattern (Var dat_x_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) @@ -9864,6 +10314,63 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id y_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable y_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str y)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable y) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var y_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str idx_tester)) @@ -20306,6 +20813,53 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable xx) ()) 1) ()) (UArray UMatrix) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UMatrix)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable xx) ()) 2) ()) UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable xx) ()) 3) ()) UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type @@ -20359,6 +20913,53 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable xx) ()) 1) ()) (UArray UMatrix) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UMatrix)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable xx) ()) 2) ()) UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable xx) ()) 3) ()) UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type @@ -20411,6 +21012,53 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable xx) ()) 1) ()) (UArray UMatrix) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UMatrix)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable xx) ()) 2) ()) UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable xx) ()) 3) ()) UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x) (decl_type @@ -21127,6 +21775,81 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id x_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable x_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str x)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable x) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UMatrix + ((pattern + (Indexed + ((pattern (Var x_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) (meta )))) (log_prob (((pattern diff --git a/test/integration/good/tuples/cpp.expected b/test/integration/good/tuples/cpp.expected index 90dd9ab2b..0b521ddc3 100644 --- a/test/integration/good/tuples/cpp.expected +++ b/test/integration/good/tuples/cpp.expected @@ -76,6 +76,9 @@ class arrays_tuples_nested_model final : public model_base_crtp::quiet_NaN( )), std::numeric_limits::min()}; + current_statement__ = 8; + std::get<0>(basic) = context__.vals_r("basic.1"); + std::get<1>(basic) = context__.vals_i("basic.2")[(1 - 1)]; current_statement__ = 9; context__.validate_dims("data initialization", "tuple_tuple.1", "int", std::vector{}); @@ -90,6 +93,22 @@ class arrays_tuples_nested_model final : public model_base_crtp::quiet_NaN(), Eigen::Matrix::Constant(2, std::numeric_limits::quiet_NaN())}}; + current_statement__ = 9; + std::get<0>(tuple_tuple) = context__.vals_i("tuple_tuple.1")[(1 - 1)]; + std::get<0>(std::get<1>(tuple_tuple)) = context__.vals_r("tuple_tuple.2.1")[(1 + - 1)]; + { + std::vector tuple_tuple_dot_2_dot_2_flat__; + tuple_tuple_dot_2_dot_2_flat__ = context__.vals_r("tuple_tuple.2.2"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + stan::model::assign(std::get<1>(std::get<1>(tuple_tuple)), + tuple_tuple_dot_2_dot_2_flat__[(pos__ - 1)], + "assigning variable tuple_tuple.2.2", + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 10; context__.validate_dims("data initialization", "arr_tuple.1", "int", std::vector{static_cast(3)}); @@ -107,6 +126,64 @@ class arrays_tuples_nested_model final : public model_base_crtp::quiet_NaN()), Eigen::Matrix::Constant(3, std::numeric_limits::quiet_NaN())}); + { + std::vector arr_tuple_dot_1_flat__; + current_statement__ = 10; + arr_tuple_dot_1_flat__ = context__.vals_i("arr_tuple.1"); + int arr_tuple_dot_1_flat__pos__; + arr_tuple_dot_1_flat__pos__ = 1; + std::vector arr_tuple_dot_2_flat__; + current_statement__ = 10; + arr_tuple_dot_2_flat__ = context__.vals_r("arr_tuple.2"); + int arr_tuple_dot_2_flat__pos__; + arr_tuple_dot_2_flat__pos__ = 1; + std::vector arr_tuple_dot_3_flat__; + current_statement__ = 10; + arr_tuple_dot_3_flat__ = context__.vals_r("arr_tuple.3"); + int arr_tuple_dot_3_flat__pos__; + arr_tuple_dot_3_flat__pos__ = 1; + int arr_tuple_dot_1_temp__ = std::numeric_limits::min(); + std::vector arr_tuple_dot_2_temp__ = + std::vector(4, std::numeric_limits::quiet_NaN()); + Eigen::Matrix arr_tuple_dot_3_temp__ = + Eigen::Matrix::Constant(3, + std::numeric_limits::quiet_NaN()); + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + arr_tuple_dot_1_temp__ = arr_tuple_dot_1_flat__[(arr_tuple_dot_1_flat__pos__ + - 1)]; + arr_tuple_dot_1_flat__pos__ = (arr_tuple_dot_1_flat__pos__ + 1); + stan::model::assign(arr_tuple_dot_2_temp__, + stan::model::rvalue(arr_tuple_dot_2_flat__, + "arr_tuple_dot_2_flat__", + stan::model::index_min_max(arr_tuple_dot_2_flat__pos__, + ((arr_tuple_dot_2_flat__pos__ + 4) - 1))), + "assigning variable arr_tuple_dot_2_temp__"); + arr_tuple_dot_2_flat__pos__ = (arr_tuple_dot_2_flat__pos__ + 4); + { + std::vector arr_tuple_dot_3_temp___flat__; + stan::model::assign(arr_tuple_dot_3_temp___flat__, + stan::model::rvalue(arr_tuple_dot_3_flat__, + "arr_tuple_dot_3_flat__", + stan::model::index_min_max(arr_tuple_dot_3_flat__pos__, + ((arr_tuple_dot_3_flat__pos__ + 3) - 1))), + "assigning variable arr_tuple_dot_3_temp___flat__"); + pos__ = 1; + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + stan::model::assign(arr_tuple_dot_3_temp__, + arr_tuple_dot_3_temp___flat__[(pos__ - 1)], + "assigning variable arr_tuple_dot_3_temp__", + stan::model::index_uni(sym2__)); + pos__ = (pos__ + 1); + } + arr_tuple_dot_3_flat__pos__ = (arr_tuple_dot_3_flat__pos__ + 3); + } + stan::model::assign(arr_tuple, + std::tuple&, + Eigen::Matrix>(arr_tuple_dot_1_temp__, + arr_tuple_dot_2_temp__, arr_tuple_dot_3_temp__), + "assigning variable arr_tuple", stan::model::index_uni(sym1__)); + } + } current_statement__ = 11; context__.validate_dims("data initialization", "tuple_arr_tuple.1", "double", std::vector{static_cast(2)}); @@ -127,6 +204,44 @@ class arrays_tuples_nested_model final : public model_base_crtp(4, std::numeric_limits::min())})}; + current_statement__ = 11; + std::get<0>(tuple_arr_tuple) = context__.vals_r("tuple_arr_tuple.1"); + std::get<1>(tuple_arr_tuple) = context__.vals_i("tuple_arr_tuple.2")[(1 + - 1)]; + { + std::vector tuple_arr_tuple_dot_3_dot_1_flat__; + tuple_arr_tuple_dot_3_dot_1_flat__ = context__.vals_r("tuple_arr_tuple.3.1"); + int tuple_arr_tuple_dot_3_dot_1_flat__pos__; + tuple_arr_tuple_dot_3_dot_1_flat__pos__ = 1; + std::vector tuple_arr_tuple_dot_3_dot_2_flat__; + tuple_arr_tuple_dot_3_dot_2_flat__ = context__.vals_i("tuple_arr_tuple.3.2"); + int tuple_arr_tuple_dot_3_dot_2_flat__pos__; + tuple_arr_tuple_dot_3_dot_2_flat__pos__ = 1; + double tuple_arr_tuple_dot_3_dot_1_temp__ = + std::numeric_limits::quiet_NaN(); + std::vector tuple_arr_tuple_dot_3_dot_2_temp__ = + std::vector(4, std::numeric_limits::min()); + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + tuple_arr_tuple_dot_3_dot_1_temp__ = tuple_arr_tuple_dot_3_dot_1_flat__[(tuple_arr_tuple_dot_3_dot_1_flat__pos__ + - 1)]; + tuple_arr_tuple_dot_3_dot_1_flat__pos__ = (tuple_arr_tuple_dot_3_dot_1_flat__pos__ + + 1); + stan::model::assign(tuple_arr_tuple_dot_3_dot_2_temp__, + stan::model::rvalue(tuple_arr_tuple_dot_3_dot_2_flat__, + "tuple_arr_tuple_dot_3_dot_2_flat__", + stan::model::index_min_max( + tuple_arr_tuple_dot_3_dot_2_flat__pos__, + ((tuple_arr_tuple_dot_3_dot_2_flat__pos__ + 4) - 1))), + "assigning variable tuple_arr_tuple_dot_3_dot_2_temp__"); + tuple_arr_tuple_dot_3_dot_2_flat__pos__ = (tuple_arr_tuple_dot_3_dot_2_flat__pos__ + + 4); + stan::model::assign(std::get<2>(tuple_arr_tuple), + std::tuple&>(tuple_arr_tuple_dot_3_dot_1_temp__, + tuple_arr_tuple_dot_3_dot_2_temp__), + "assigning variable tuple_arr_tuple.3", + stan::model::index_uni(sym1__)); + } + } current_statement__ = 12; context__.validate_dims("data initialization", "arr_tuple_tuple.1", "double", std::vector{static_cast(2)}); @@ -155,6 +270,95 @@ class arrays_tuples_nested_model final : public model_base_crtp::min(), Eigen::Matrix::Constant(4, std::numeric_limits::quiet_NaN())}}}); + { + std::vector arr_tuple_tuple_dot_1_flat__; + current_statement__ = 12; + arr_tuple_tuple_dot_1_flat__ = context__.vals_r("arr_tuple_tuple.1"); + int arr_tuple_tuple_dot_1_flat__pos__; + arr_tuple_tuple_dot_1_flat__pos__ = 1; + std::vector arr_tuple_tuple_dot_2_flat__; + current_statement__ = 12; + arr_tuple_tuple_dot_2_flat__ = context__.vals_i("arr_tuple_tuple.2"); + int arr_tuple_tuple_dot_2_flat__pos__; + arr_tuple_tuple_dot_2_flat__pos__ = 1; + std::vector arr_tuple_tuple_dot_3_dot_1_flat__; + current_statement__ = 12; + arr_tuple_tuple_dot_3_dot_1_flat__ = context__.vals_r("arr_tuple_tuple.3.1"); + int arr_tuple_tuple_dot_3_dot_1_flat__pos__; + arr_tuple_tuple_dot_3_dot_1_flat__pos__ = 1; + std::vector arr_tuple_tuple_dot_3_dot_2_dot_1_flat__; + current_statement__ = 12; + arr_tuple_tuple_dot_3_dot_2_dot_1_flat__ = context__.vals_i("arr_tuple_tuple.3.2.1"); + int arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__; + arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__ = 1; + std::vector + arr_tuple_tuple_dot_3_dot_2_dot_2_flat__; + current_statement__ = 12; + arr_tuple_tuple_dot_3_dot_2_dot_2_flat__ = context__.vals_r("arr_tuple_tuple.3.2.2"); + int arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__; + arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__ = 1; + double arr_tuple_tuple_dot_1_temp__ = + std::numeric_limits::quiet_NaN(); + int arr_tuple_tuple_dot_2_temp__ = std::numeric_limits::min(); + std::tuple>> + arr_tuple_tuple_dot_3_temp__ = + std::tuple>>{ + std::numeric_limits::quiet_NaN(), + std::tuple>{std::numeric_limits::min( + ), + Eigen::Matrix::Constant(4, + std::numeric_limits::quiet_NaN())}}; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + arr_tuple_tuple_dot_1_temp__ = arr_tuple_tuple_dot_1_flat__[(arr_tuple_tuple_dot_1_flat__pos__ + - 1)]; + arr_tuple_tuple_dot_1_flat__pos__ = (arr_tuple_tuple_dot_1_flat__pos__ + + 1); + arr_tuple_tuple_dot_2_temp__ = arr_tuple_tuple_dot_2_flat__[(arr_tuple_tuple_dot_2_flat__pos__ + - 1)]; + arr_tuple_tuple_dot_2_flat__pos__ = (arr_tuple_tuple_dot_2_flat__pos__ + + 1); + stan::model::assign(std::get<0>(arr_tuple_tuple_dot_3_temp__), + arr_tuple_tuple_dot_3_dot_1_flat__[(arr_tuple_tuple_dot_3_dot_1_flat__pos__ + - 1)], "assigning variable arr_tuple_tuple_dot_3_temp__.1"); + arr_tuple_tuple_dot_3_dot_1_flat__pos__ = (arr_tuple_tuple_dot_3_dot_1_flat__pos__ + + 1); + stan::model::assign( + std::get<0>(std::get<1>(arr_tuple_tuple_dot_3_temp__)), + arr_tuple_tuple_dot_3_dot_2_dot_1_flat__[(arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__ + - 1)], "assigning variable arr_tuple_tuple_dot_3_temp__.2.1"); + arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__ = (arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__ + + 1); + { + std::vector + arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__; + stan::model::assign( + arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__, + stan::model::rvalue(arr_tuple_tuple_dot_3_dot_2_dot_2_flat__, + "arr_tuple_tuple_dot_3_dot_2_dot_2_flat__", + stan::model::index_min_max( + arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__, + ((arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__ + 4) - 1))), + "assigning variable arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__"); + pos__ = 1; + for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { + stan::model::assign( + std::get<1>(std::get<1>(arr_tuple_tuple_dot_3_temp__)), + arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__[(pos__ - 1)], + "assigning variable arr_tuple_tuple_dot_3_temp__.2.2", + stan::model::index_uni(sym2__)); + pos__ = (pos__ + 1); + } + arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__ = (arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__ + + 4); + } + stan::model::assign(arr_tuple_tuple, + std::tuple>>>(arr_tuple_tuple_dot_1_temp__, + arr_tuple_tuple_dot_2_temp__, arr_tuple_tuple_dot_3_temp__), + "assigning variable arr_tuple_tuple", + stan::model::index_uni(sym1__)); + } + } current_statement__ = 13; context__.validate_dims("data initialization", "arr_tuple_arr_tuple.1", "int", std::vector{static_cast(3)}); @@ -183,6 +387,86 @@ class arrays_tuples_nested_model final : public model_base_crtp::Constant(5, std::numeric_limits::quiet_NaN())})}); + { + std::vector arr_tuple_arr_tuple_dot_1_flat__; + current_statement__ = 13; + arr_tuple_arr_tuple_dot_1_flat__ = context__.vals_i("arr_tuple_arr_tuple.1"); + int arr_tuple_arr_tuple_dot_1_flat__pos__; + arr_tuple_arr_tuple_dot_1_flat__pos__ = 1; + std::vector arr_tuple_arr_tuple_dot_2_dot_1_flat__; + current_statement__ = 13; + arr_tuple_arr_tuple_dot_2_dot_1_flat__ = context__.vals_r("arr_tuple_arr_tuple.2.1"); + int arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__; + arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__ = 1; + std::vector arr_tuple_arr_tuple_dot_2_dot_2_flat__; + current_statement__ = 13; + arr_tuple_arr_tuple_dot_2_dot_2_flat__ = context__.vals_r("arr_tuple_arr_tuple.2.2"); + int arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__; + arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__ = 1; + int arr_tuple_arr_tuple_dot_1_temp__ = + std::numeric_limits::min(); + std::vector>> + arr_tuple_arr_tuple_dot_2_temp__ = + std::vector>>(4, + std::tuple>{std::numeric_limits::quiet_NaN( + ), + Eigen::Matrix::Constant(5, + std::numeric_limits::quiet_NaN())}); + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + arr_tuple_arr_tuple_dot_1_temp__ = arr_tuple_arr_tuple_dot_1_flat__[(arr_tuple_arr_tuple_dot_1_flat__pos__ + - 1)]; + arr_tuple_arr_tuple_dot_1_flat__pos__ = (arr_tuple_arr_tuple_dot_1_flat__pos__ + + 1); + { + double arr_tuple_arr_tuple_dot_2_dot_1_temp__ = + std::numeric_limits::quiet_NaN(); + Eigen::Matrix + arr_tuple_arr_tuple_dot_2_dot_2_temp__ = + Eigen::Matrix::Constant(5, + std::numeric_limits::quiet_NaN()); + for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { + arr_tuple_arr_tuple_dot_2_dot_1_temp__ = arr_tuple_arr_tuple_dot_2_dot_1_flat__[(arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__ + - 1)]; + arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__ = (arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__ + + 1); + { + std::vector + arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__; + stan::model::assign( + arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__, + stan::model::rvalue(arr_tuple_arr_tuple_dot_2_dot_2_flat__, + "arr_tuple_arr_tuple_dot_2_dot_2_flat__", + stan::model::index_min_max( + arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__, + ((arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__ + 5) - 1))), + "assigning variable arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__"); + pos__ = 1; + for (int sym3__ = 1; sym3__ <= 5; ++sym3__) { + stan::model::assign(arr_tuple_arr_tuple_dot_2_dot_2_temp__, + arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__[(pos__ - + 1)], + "assigning variable arr_tuple_arr_tuple_dot_2_dot_2_temp__", + stan::model::index_uni(sym3__)); + pos__ = (pos__ + 1); + } + arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__ = (arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__ + + 5); + } + stan::model::assign(arr_tuple_arr_tuple_dot_2_temp__, + std::tuple>(arr_tuple_arr_tuple_dot_2_dot_1_temp__, + arr_tuple_arr_tuple_dot_2_dot_2_temp__), + "assigning variable arr_tuple_arr_tuple_dot_2_temp__", + stan::model::index_uni(sym2__)); + } + } + stan::model::assign(arr_tuple_arr_tuple, + std::tuple>>>(arr_tuple_arr_tuple_dot_1_temp__, + arr_tuple_arr_tuple_dot_2_temp__), + "assigning variable arr_tuple_arr_tuple", + stan::model::index_uni(sym1__)); + } + } current_statement__ = 14; context__.validate_dims("data initialization", "very_deep.1", "int", std::vector{static_cast(3)}); @@ -233,6 +517,141 @@ class arrays_tuples_nested_model final : public model_base_crtp::Constant(6, 7, std::numeric_limits::quiet_NaN())})})}); + { + std::vector very_deep_dot_1_flat__; + current_statement__ = 14; + very_deep_dot_1_flat__ = context__.vals_i("very_deep.1"); + int very_deep_dot_1_flat__pos__; + very_deep_dot_1_flat__pos__ = 1; + std::vector very_deep_dot_2_dot_1_flat__; + current_statement__ = 14; + very_deep_dot_2_dot_1_flat__ = context__.vals_r("very_deep.2.1"); + int very_deep_dot_2_dot_1_flat__pos__; + very_deep_dot_2_dot_1_flat__pos__ = 1; + std::vector> + very_deep_dot_2_dot_2_dot_1_flat__; + current_statement__ = 14; + very_deep_dot_2_dot_2_dot_1_flat__ = context__.vals_c("very_deep.2.2.1"); + int very_deep_dot_2_dot_2_dot_1_flat__pos__; + very_deep_dot_2_dot_2_dot_1_flat__pos__ = 1; + std::vector very_deep_dot_2_dot_2_dot_2_flat__; + current_statement__ = 14; + very_deep_dot_2_dot_2_dot_2_flat__ = context__.vals_r("very_deep.2.2.2"); + int very_deep_dot_2_dot_2_dot_2_flat__pos__; + very_deep_dot_2_dot_2_dot_2_flat__pos__ = 1; + int very_deep_dot_1_temp__ = std::numeric_limits::min(); + std::vector< + std::tuple, Eigen::Matrix>>>> + very_deep_dot_2_temp__ = + std::vector< + std::tuple, Eigen::Matrix>>>>(4, + std::tuple, Eigen::Matrix>>>{ + std::numeric_limits::quiet_NaN(), + std::vector< + std::tuple, Eigen::Matrix>>(5, + std::tuple, Eigen::Matrix>{ + std::complex(std::numeric_limits::quiet_NaN(), + std::numeric_limits::quiet_NaN()), + Eigen::Matrix::Constant(6, 7, + std::numeric_limits::quiet_NaN())})}); + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + very_deep_dot_1_temp__ = very_deep_dot_1_flat__[(very_deep_dot_1_flat__pos__ + - 1)]; + very_deep_dot_1_flat__pos__ = (very_deep_dot_1_flat__pos__ + 1); + { + double very_deep_dot_2_dot_1_temp__ = + std::numeric_limits::quiet_NaN(); + std::vector< + std::tuple, Eigen::Matrix>> + very_deep_dot_2_dot_2_temp__ = + std::vector< + std::tuple, Eigen::Matrix>>(5, + std::tuple, Eigen::Matrix>{ + std::complex(std::numeric_limits::quiet_NaN(), + std::numeric_limits::quiet_NaN()), + Eigen::Matrix::Constant(6, 7, + std::numeric_limits::quiet_NaN())}); + for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { + very_deep_dot_2_dot_1_temp__ = very_deep_dot_2_dot_1_flat__[(very_deep_dot_2_dot_1_flat__pos__ + - 1)]; + very_deep_dot_2_dot_1_flat__pos__ = (very_deep_dot_2_dot_1_flat__pos__ + + 1); + { + std::complex very_deep_dot_2_dot_2_dot_1_temp__ = + std::complex(std::numeric_limits::quiet_NaN(), + std::numeric_limits::quiet_NaN()); + Eigen::Matrix + very_deep_dot_2_dot_2_dot_2_temp__ = + Eigen::Matrix::Constant(6, 7, + std::numeric_limits::quiet_NaN()); + for (int sym3__ = 1; sym3__ <= 5; ++sym3__) { + very_deep_dot_2_dot_2_dot_1_temp__ = very_deep_dot_2_dot_2_dot_1_flat__[(very_deep_dot_2_dot_2_dot_1_flat__pos__ + - 1)]; + very_deep_dot_2_dot_2_dot_1_flat__pos__ = (very_deep_dot_2_dot_2_dot_1_flat__pos__ + + 2); + { + std::vector + very_deep_dot_2_dot_2_dot_2_temp___flat__; + stan::model::assign( + very_deep_dot_2_dot_2_dot_2_temp___flat__, + stan::model::rvalue(very_deep_dot_2_dot_2_dot_2_flat__, + "very_deep_dot_2_dot_2_dot_2_flat__", + stan::model::index_min_max( + very_deep_dot_2_dot_2_dot_2_flat__pos__, + ((very_deep_dot_2_dot_2_dot_2_flat__pos__ + (6 * + 7)) - 1))), + "assigning variable very_deep_dot_2_dot_2_dot_2_temp___flat__"); + pos__ = 1; + for (int sym4__ = 1; sym4__ <= 7; ++sym4__) { + for (int sym5__ = 1; sym5__ <= 6; ++sym5__) { + stan::model::assign( + very_deep_dot_2_dot_2_dot_2_temp__, + very_deep_dot_2_dot_2_dot_2_temp___flat__[(pos__ - + 1)], + "assigning variable very_deep_dot_2_dot_2_dot_2_temp__", + stan::model::index_uni(sym5__), + stan::model::index_uni(sym4__)); + pos__ = (pos__ + 1); + } + } + very_deep_dot_2_dot_2_dot_2_flat__pos__ = (very_deep_dot_2_dot_2_dot_2_flat__pos__ + + (6 * 7)); + } + stan::model::assign(very_deep_dot_2_dot_2_temp__, + std::tuple&, + Eigen::Matrix>(very_deep_dot_2_dot_2_dot_1_temp__, + very_deep_dot_2_dot_2_dot_2_temp__), + "assigning variable very_deep_dot_2_dot_2_temp__", + stan::model::index_uni(sym3__)); + } + } + stan::model::assign(very_deep_dot_2_temp__, + std::tuple, + Eigen::Matrix>>>(very_deep_dot_2_dot_1_temp__, + very_deep_dot_2_dot_2_temp__), + "assigning variable very_deep_dot_2_temp__", + stan::model::index_uni(sym2__)); + } + } + stan::model::assign(very_deep, + std::tuple, + Eigen::Matrix>>>>>(very_deep_dot_1_temp__, + very_deep_dot_2_temp__), "assigning variable very_deep", + stan::model::index_uni(sym1__)); + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -276,6 +695,11 @@ class arrays_tuples_nested_model final : public model_base_crtp(10, DUMMY_VAR__), DUMMY_VAR__}; + current_statement__ = 1; + std::get<0>(basic_p) = in__.template read< + std::vector>(10); + current_statement__ = 1; + std::get<1>(basic_p) = in__.template read(); std::tuple>> tuple_tuple_p = @@ -283,6 +707,14 @@ class arrays_tuples_nested_model final : public model_base_crtp>>{DUMMY_VAR__, std::tuple>{DUMMY_VAR__, Eigen::Matrix::Constant(2, DUMMY_VAR__)}}; + current_statement__ = 2; + std::get<0>(tuple_tuple_p) = in__.template read(); + current_statement__ = 2; + std::get<0>(std::get<1>(tuple_tuple_p)) = in__.template read< + local_scalar_t__>(); + current_statement__ = 2; + std::get<1>(std::get<1>(tuple_tuple_p)) = in__.template read< + Eigen::Matrix>(2); std::vector< std::tuple, std::vector, @@ -297,6 +729,19 @@ class arrays_tuples_nested_model final : public model_base_crtp(4, DUMMY_VAR__), Eigen::Matrix::Constant(3, DUMMY_VAR__)}); + current_statement__ = 3; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + current_statement__ = 3; + std::get<0>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< + std::complex>(); + current_statement__ = 3; + std::get<1>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< + std::vector< + local_scalar_t__>>(4); + current_statement__ = 3; + std::get<2>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< + Eigen::Matrix>(3); + } std::tuple, local_scalar_t__, std::vector< std::tuple>>> @@ -309,6 +754,21 @@ class arrays_tuples_nested_model final : public model_base_crtp>>(3, std::tuple>{DUMMY_VAR__, std::vector(4, DUMMY_VAR__)})}; + current_statement__ = 4; + std::get<0>(tuple_arr_tuple_p) = in__.template read< + std::vector>(2); + current_statement__ = 4; + std::get<1>(tuple_arr_tuple_p) = in__.template read(); + current_statement__ = 4; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + current_statement__ = 4; + std::get<0>(std::get<2>(tuple_arr_tuple_p)[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 4; + std::get<1>(std::get<2>(tuple_arr_tuple_p)[(sym1__ - 1)]) = in__.template read< + std::vector< + local_scalar_t__>>(4); + } std::vector< std::tuple::Constant(4, DUMMY_VAR__)}}}); + current_statement__ = 5; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + current_statement__ = 5; + std::get<0>(arr_tuple_tuple_p[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 5; + std::get<1>(arr_tuple_tuple_p[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 5; + std::get<0>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)])) = in__.template read< + local_scalar_t__>(); + current_statement__ = 5; + std::get<0>(std::get<1>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)]))) = + in__.template read>(); + current_statement__ = 5; + std::get<1>(std::get<1>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)]))) = + in__.template read>(4); + } std::vector< std::tuple>{DUMMY_VAR__, Eigen::Matrix::Constant(5, DUMMY_VAR__)})}); + current_statement__ = 6; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + current_statement__ = 6; + std::get<0>(arr_tuple_arr_tuple_p[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 6; + for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { + current_statement__ = 6; + std::get<0>( + std::get<1>(arr_tuple_arr_tuple_p[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read(); + current_statement__ = 6; + std::get<1>( + std::get<1>(arr_tuple_arr_tuple_p[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read>(5); + } + } std::vector< std::tuple::Constant(6, 7, DUMMY_VAR__)})})}); + current_statement__ = 7; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + current_statement__ = 7; + std::get<0>(very_deep_p[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 7; + for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { + current_statement__ = 7; + std::get<0>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read(); + current_statement__ = 7; + for (int sym3__ = 1; sym3__ <= 5; ++sym3__) { + current_statement__ = 7; + std::get<0>( + std::get<1>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - + 1)])[(sym3__ - 1)]) = in__.template read< + std::complex>(); + current_statement__ = 7; + std::get<1>( + std::get<1>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - + 1)])[(sym3__ - 1)]) = in__.template read< + Eigen::Matrix>(6, + 7); + } + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -426,6 +947,11 @@ class arrays_tuples_nested_model final : public model_base_crtp(10, DUMMY_VAR__), DUMMY_VAR__}; + current_statement__ = 1; + std::get<0>(basic_p) = in__.template read< + std::vector>(10); + current_statement__ = 1; + std::get<1>(basic_p) = in__.template read(); std::tuple>> tuple_tuple_p = @@ -433,6 +959,14 @@ class arrays_tuples_nested_model final : public model_base_crtp>>{DUMMY_VAR__, std::tuple>{DUMMY_VAR__, Eigen::Matrix::Constant(2, DUMMY_VAR__)}}; + current_statement__ = 2; + std::get<0>(tuple_tuple_p) = in__.template read(); + current_statement__ = 2; + std::get<0>(std::get<1>(tuple_tuple_p)) = in__.template read< + local_scalar_t__>(); + current_statement__ = 2; + std::get<1>(std::get<1>(tuple_tuple_p)) = in__.template read< + Eigen::Matrix>(2); std::vector< std::tuple, std::vector, @@ -447,6 +981,19 @@ class arrays_tuples_nested_model final : public model_base_crtp(4, DUMMY_VAR__), Eigen::Matrix::Constant(3, DUMMY_VAR__)}); + current_statement__ = 3; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + current_statement__ = 3; + std::get<0>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< + std::complex>(); + current_statement__ = 3; + std::get<1>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< + std::vector< + local_scalar_t__>>(4); + current_statement__ = 3; + std::get<2>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< + Eigen::Matrix>(3); + } std::tuple, local_scalar_t__, std::vector< std::tuple>>> @@ -459,6 +1006,21 @@ class arrays_tuples_nested_model final : public model_base_crtp>>(3, std::tuple>{DUMMY_VAR__, std::vector(4, DUMMY_VAR__)})}; + current_statement__ = 4; + std::get<0>(tuple_arr_tuple_p) = in__.template read< + std::vector>(2); + current_statement__ = 4; + std::get<1>(tuple_arr_tuple_p) = in__.template read(); + current_statement__ = 4; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + current_statement__ = 4; + std::get<0>(std::get<2>(tuple_arr_tuple_p)[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 4; + std::get<1>(std::get<2>(tuple_arr_tuple_p)[(sym1__ - 1)]) = in__.template read< + std::vector< + local_scalar_t__>>(4); + } std::vector< std::tuple::Constant(4, DUMMY_VAR__)}}}); + current_statement__ = 5; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + current_statement__ = 5; + std::get<0>(arr_tuple_tuple_p[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 5; + std::get<1>(arr_tuple_tuple_p[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 5; + std::get<0>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)])) = in__.template read< + local_scalar_t__>(); + current_statement__ = 5; + std::get<0>(std::get<1>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)]))) = + in__.template read>(); + current_statement__ = 5; + std::get<1>(std::get<1>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)]))) = + in__.template read>(4); + } std::vector< std::tuple>{DUMMY_VAR__, Eigen::Matrix::Constant(5, DUMMY_VAR__)})}); + current_statement__ = 6; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + current_statement__ = 6; + std::get<0>(arr_tuple_arr_tuple_p[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 6; + for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { + current_statement__ = 6; + std::get<0>( + std::get<1>(arr_tuple_arr_tuple_p[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read(); + current_statement__ = 6; + std::get<1>( + std::get<1>(arr_tuple_arr_tuple_p[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read>(5); + } + } std::vector< std::tuple::Constant(6, 7, DUMMY_VAR__)})})}); + current_statement__ = 7; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + current_statement__ = 7; + std::get<0>(very_deep_p[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 7; + for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { + current_statement__ = 7; + std::get<0>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read(); + current_statement__ = 7; + for (int sym3__ = 1; sym3__ <= 5; ++sym3__) { + current_statement__ = 7; + std::get<0>( + std::get<1>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - + 1)])[(sym3__ - 1)]) = in__.template read< + std::complex>(); + current_statement__ = 7; + std::get<1>( + std::get<1>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - + 1)])[(sym3__ - 1)]) = in__.template read< + Eigen::Matrix>(6, + 7); + } + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -587,6 +1210,11 @@ class arrays_tuples_nested_model final : public model_base_crtp::quiet_NaN( )), std::numeric_limits::quiet_NaN()}; + current_statement__ = 1; + std::get<0>(basic_p) = in__.template read< + std::vector>(10); + current_statement__ = 1; + std::get<1>(basic_p) = in__.template read(); std::tuple>> tuple_tuple_p = std::tuple>>{ @@ -595,6 +1223,14 @@ class arrays_tuples_nested_model final : public model_base_crtp::Constant(2, std::numeric_limits::quiet_NaN())}}; + current_statement__ = 2; + std::get<0>(tuple_tuple_p) = in__.template read(); + current_statement__ = 2; + std::get<0>(std::get<1>(tuple_tuple_p)) = in__.template read< + local_scalar_t__>(); + current_statement__ = 2; + std::get<1>(std::get<1>(tuple_tuple_p)) = in__.template read< + Eigen::Matrix>(2); std::vector< std::tuple, std::vector, Eigen::Matrix>> arr_tuple_p = @@ -609,6 +1245,19 @@ class arrays_tuples_nested_model final : public model_base_crtp(4, std::numeric_limits::quiet_NaN()), Eigen::Matrix::Constant(3, std::numeric_limits::quiet_NaN())}); + current_statement__ = 3; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + current_statement__ = 3; + std::get<0>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< + std::complex>(); + current_statement__ = 3; + std::get<1>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< + std::vector< + local_scalar_t__>>(4); + current_statement__ = 3; + std::get<2>(arr_tuple_p[(sym1__ - 1)]) = in__.template read< + Eigen::Matrix>(3); + } std::tuple, double, std::vector>>> tuple_arr_tuple_p = @@ -623,6 +1272,21 @@ class arrays_tuples_nested_model final : public model_base_crtp(4, std::numeric_limits::quiet_NaN())})}; + current_statement__ = 4; + std::get<0>(tuple_arr_tuple_p) = in__.template read< + std::vector>(2); + current_statement__ = 4; + std::get<1>(tuple_arr_tuple_p) = in__.template read(); + current_statement__ = 4; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + current_statement__ = 4; + std::get<0>(std::get<2>(tuple_arr_tuple_p)[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 4; + std::get<1>(std::get<2>(tuple_arr_tuple_p)[(sym1__ - 1)]) = in__.template read< + std::vector< + local_scalar_t__>>(4); + } std::vector< std::tuple::quiet_NaN()), Eigen::Matrix::Constant(4, std::numeric_limits::quiet_NaN())}}}); + current_statement__ = 5; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + current_statement__ = 5; + std::get<0>(arr_tuple_tuple_p[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 5; + std::get<1>(arr_tuple_tuple_p[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 5; + std::get<0>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)])) = in__.template read< + local_scalar_t__>(); + current_statement__ = 5; + std::get<0>(std::get<1>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)]))) = + in__.template read>(); + current_statement__ = 5; + std::get<1>(std::get<1>(std::get<2>(arr_tuple_tuple_p[(sym1__ - 1)]))) = + in__.template read>(4); + } std::vector< std::tuple>>>> @@ -660,6 +1342,23 @@ class arrays_tuples_nested_model final : public model_base_crtp::Constant(5, std::numeric_limits::quiet_NaN())})}); + current_statement__ = 6; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + current_statement__ = 6; + std::get<0>(arr_tuple_arr_tuple_p[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 6; + for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { + current_statement__ = 6; + std::get<0>( + std::get<1>(arr_tuple_arr_tuple_p[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read(); + current_statement__ = 6; + std::get<1>( + std::get<1>(arr_tuple_arr_tuple_p[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read>(5); + } + } std::vector< std::tuple::Constant(6, 7, std::numeric_limits::quiet_NaN())})})}); + current_statement__ = 7; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + current_statement__ = 7; + std::get<0>(very_deep_p[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 7; + for (int sym2__ = 1; sym2__ <= 4; ++sym2__) { + current_statement__ = 7; + std::get<0>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read(); + current_statement__ = 7; + for (int sym3__ = 1; sym3__ <= 5; ++sym3__) { + current_statement__ = 7; + std::get<0>( + std::get<1>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - + 1)])[(sym3__ - 1)]) = in__.template read< + std::complex>(); + current_statement__ = 7; + std::get<1>( + std::get<1>(std::get<1>(very_deep_p[(sym1__ - 1)])[(sym2__ - + 1)])[(sym3__ - 1)]) = in__.template read< + Eigen::Matrix>(6, + 7); + } + } + } out__.write(std::get<0>(basic_p)); out__.write(std::get<1>(basic_p)); out__.write(std::get<0>(tuple_tuple_p)); @@ -3012,6 +3737,24 @@ class nested_unpacking_model final : public model_base_crtp(4, std::numeric_limits::quiet_NaN())}, std::numeric_limits::min()}; + current_statement__ = 8; + std::get<0>(complicated) = context__.vals_r("complicated.1"); + std::get<0>(std::get<1>(complicated)) = context__.vals_r("complicated.2.1")[(1 + - 1)]; + { + std::vector complicated_dot_2_dot_2_flat__; + complicated_dot_2_dot_2_flat__ = context__.vals_r("complicated.2.2"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 4; ++sym1__) { + stan::model::assign(std::get<1>(std::get<1>(complicated)), + complicated_dot_2_dot_2_flat__[(pos__ - 1)], + "assigning variable complicated.2.2", + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + std::get<2>(std::get<1>(complicated)) = context__.vals_r("complicated.2.3"); + std::get<2>(complicated) = context__.vals_i("complicated.3")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -4848,6 +5591,10 @@ class tuple_constraints_data_model final : public model_base_crtp{std::numeric_limits::quiet_NaN(), std::numeric_limits::min()}}; current_statement__ = 1; + std::get<0>(y) = context__.vals_i("y.1")[(1 - 1)]; + std::get<0>(std::get<1>(y)) = context__.vals_r("y.2.1")[(1 - 1)]; + std::get<1>(std::get<1>(y)) = context__.vals_i("y.2.2")[(1 - 1)]; + current_statement__ = 1; stan::math::check_greater_or_equal(function__, "y.1", std::get<0>(y), 0); current_statement__ = 1; stan::math::check_greater_or_equal(function__, "y.2.1", @@ -4868,6 +5615,19 @@ class tuple_constraints_data_model final : public model_base_crtp::Constant(2, std::numeric_limits::quiet_NaN())}; current_statement__ = 2; + std::get<0>(x) = context__.vals_i("x.1")[(1 - 1)]; + std::get<1>(x) = context__.vals_r("x.2")[(1 - 1)]; + { + std::vector x_dot_3_flat__; + x_dot_3_flat__ = context__.vals_r("x.3"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + stan::model::assign(std::get<2>(x), x_dot_3_flat__[(pos__ - 1)], + "assigning variable x.3", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + current_statement__ = 2; stan::math::check_greater_or_equal(function__, "x.1", std::get<0>(x), 0); current_statement__ = 2; stan::math::check_greater_or_equal(function__, "x.2", std::get<1>(x), 1); @@ -4886,6 +5646,49 @@ class tuple_constraints_data_model final : public model_base_crtp::Constant(4, std::numeric_limits::quiet_NaN())})); + { + std::vector z_dot_1_flat__; + current_statement__ = 3; + z_dot_1_flat__ = context__.vals_r("z.1"); + int z_dot_1_flat__pos__; + z_dot_1_flat__pos__ = 1; + std::vector z_dot_2_flat__; + current_statement__ = 3; + z_dot_2_flat__ = context__.vals_r("z.2"); + int z_dot_2_flat__pos__; + z_dot_2_flat__pos__ = 1; + double z_dot_1_temp__ = std::numeric_limits::quiet_NaN(); + Eigen::Matrix z_dot_2_temp__ = + Eigen::Matrix::Constant(4, + std::numeric_limits::quiet_NaN()); + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + z_dot_1_temp__ = z_dot_1_flat__[(z_dot_1_flat__pos__ - 1)]; + z_dot_1_flat__pos__ = (z_dot_1_flat__pos__ + 1); + { + std::vector z_dot_2_temp___flat__; + stan::model::assign(z_dot_2_temp___flat__, + stan::model::rvalue(z_dot_2_flat__, "z_dot_2_flat__", + stan::model::index_min_max(z_dot_2_flat__pos__, + ((z_dot_2_flat__pos__ + 4) - 1))), + "assigning variable z_dot_2_temp___flat__"); + pos__ = 1; + for (int sym3__ = 1; sym3__ <= 4; ++sym3__) { + stan::model::assign(z_dot_2_temp__, + z_dot_2_temp___flat__[(pos__ - 1)], + "assigning variable z_dot_2_temp__", + stan::model::index_uni(sym3__)); + pos__ = (pos__ + 1); + } + z_dot_2_flat__pos__ = (z_dot_2_flat__pos__ + 4); + } + stan::model::assign(z, + std::tuple>(z_dot_1_temp__, + z_dot_2_temp__), "assigning variable z", + stan::model::index_uni(sym2__), stan::model::index_uni(sym1__)); + } + } + } current_statement__ = 3; for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { @@ -5294,6 +6097,12 @@ class tuple_constraints_params_model final : public model_base_crtp ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; + current_statement__ = 1; + std::get<0>(ps) = in__.template read_constrain_lb(0, lp__); + current_statement__ = 1; + std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); std::vector< std::vector< std::tuple>>> @@ -5308,6 +6117,21 @@ class tuple_constraints_params_model final : public model_base_crtp>{DUMMY_VAR__, Eigen::Matrix::Constant(4, DUMMY_VAR__)})); + current_statement__ = 2; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + current_statement__ = 2; + std::get<0>(ps2[(sym2__ - 1)][(sym1__ - 1)]) = in__.template read_constrain_lb< + local_scalar_t__, + jacobian__>(0, + lp__); + current_statement__ = 2; + std::get<1>(ps2[(sym2__ - 1)][(sym1__ - 1)]) = in__.template read_constrain_simplex< + Eigen::Matrix, + jacobian__>(lp__, + 4); + } + } auto t = in__.template read_constrain_lub(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); @@ -5339,6 +6163,27 @@ class tuple_constraints_params_model final : public model_base_crtp::Constant(5, 4, DUMMY_VAR__)})}); + current_statement__ = 4; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + current_statement__ = 4; + std::get<0>(complicated[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 4; + for (int sym2__ = 1; sym2__ <= + complicated_brack_dot2_1dim__; ++sym2__) { + current_statement__ = 4; + std::get<0>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read(); + current_statement__ = 4; + std::get<1>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, 5); + current_statement__ = 4; + std::get<2>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read_constrain_cholesky_factor_cov< + Eigen::Matrix, jacobian__>(lp__, 5, 4); + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -5372,6 +6217,12 @@ class tuple_constraints_params_model final : public model_base_crtp ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; + current_statement__ = 1; + std::get<0>(ps) = in__.template read_constrain_lb(0, lp__); + current_statement__ = 1; + std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); std::vector< std::vector< std::tuple>>> @@ -5386,6 +6237,21 @@ class tuple_constraints_params_model final : public model_base_crtp>{DUMMY_VAR__, Eigen::Matrix::Constant(4, DUMMY_VAR__)})); + current_statement__ = 2; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + current_statement__ = 2; + std::get<0>(ps2[(sym2__ - 1)][(sym1__ - 1)]) = in__.template read_constrain_lb< + local_scalar_t__, + jacobian__>(0, + lp__); + current_statement__ = 2; + std::get<1>(ps2[(sym2__ - 1)][(sym1__ - 1)]) = in__.template read_constrain_simplex< + Eigen::Matrix, + jacobian__>(lp__, + 4); + } + } auto t = in__.template read_constrain_lub(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); @@ -5417,6 +6283,27 @@ class tuple_constraints_params_model final : public model_base_crtp::Constant(5, 4, DUMMY_VAR__)})}); + current_statement__ = 4; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + current_statement__ = 4; + std::get<0>(complicated[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 4; + for (int sym2__ = 1; sym2__ <= + complicated_brack_dot2_1dim__; ++sym2__) { + current_statement__ = 4; + std::get<0>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read(); + current_statement__ = 4; + std::get<1>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, 5); + current_statement__ = 4; + std::get<2>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read_constrain_cholesky_factor_cov< + Eigen::Matrix, jacobian__>(lp__, 5, 4); + } + } } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -5461,6 +6348,12 @@ class tuple_constraints_params_model final : public model_base_crtp ps = std::tuple{std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()}; + current_statement__ = 1; + std::get<0>(ps) = in__.template read_constrain_lb(0, lp__); + current_statement__ = 1; + std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); std::vector< std::vector>>> ps2 = std::vector< @@ -5470,6 +6363,21 @@ class tuple_constraints_params_model final : public model_base_crtp::Constant(4, std::numeric_limits::quiet_NaN())})); + current_statement__ = 2; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + current_statement__ = 2; + std::get<0>(ps2[(sym2__ - 1)][(sym1__ - 1)]) = in__.template read_constrain_lb< + local_scalar_t__, + jacobian__>(0, + lp__); + current_statement__ = 2; + std::get<1>(ps2[(sym2__ - 1)][(sym1__ - 1)]) = in__.template read_constrain_simplex< + Eigen::Matrix, + jacobian__>(lp__, + 4); + } + } auto t = in__.template read_constrain_lub(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); @@ -5498,6 +6406,27 @@ class tuple_constraints_params_model final : public model_base_crtp::quiet_NaN()), Eigen::Matrix::Constant(5, 4, std::numeric_limits::quiet_NaN())})}); + current_statement__ = 4; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + current_statement__ = 4; + std::get<0>(complicated[(sym1__ - 1)]) = in__.template read< + local_scalar_t__>(); + current_statement__ = 4; + for (int sym2__ = 1; sym2__ <= + complicated_brack_dot2_1dim__; ++sym2__) { + current_statement__ = 4; + std::get<0>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read(); + current_statement__ = 4; + std::get<1>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read_constrain_simplex< + Eigen::Matrix, jacobian__>(lp__, 5); + current_statement__ = 4; + std::get<2>(std::get<1>(complicated[(sym1__ - 1)])[(sym2__ - 1)]) = + in__.template read_constrain_cholesky_factor_cov< + Eigen::Matrix, jacobian__>(lp__, 5, 4); + } + } out__.write(std::get<0>(ps)); out__.write(std::get<1>(ps)); current_statement__ = 2; @@ -6310,6 +7239,9 @@ class tuple_dataonly_model final : public model_base_crtp std::vector{}); d = std::tuple{std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()}; + current_statement__ = 4; + std::get<0>(d) = context__.vals_r("d.1")[(1 - 1)]; + std::get<1>(d) = context__.vals_r("d.2")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -7363,6 +8295,10 @@ class tuple_full_model final : public model_base_crtp { )), std::vector(2, std::numeric_limits::min())}}; current_statement__ = 4; + std::get<0>(ds) = context__.vals_i("ds.1")[(1 - 1)]; + std::get<0>(std::get<1>(ds)) = context__.vals_i("ds.2.1"); + std::get<1>(std::get<1>(ds)) = context__.vals_i("ds.2.2"); + current_statement__ = 4; stan::math::check_greater_or_equal(function__, "ds.1", std::get<0>(ds), 0); current_statement__ = 4; @@ -7406,6 +8342,12 @@ class tuple_full_model final : public model_base_crtp { std::tuple ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; + current_statement__ = 1; + std::get<0>(ps) = in__.template read_constrain_lb(0, lp__); + current_statement__ = 1; + std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); { current_statement__ = 2; lp_accum__.add(stan::math::bernoulli_lpmf(std::get<0>(ds), @@ -7450,6 +8392,12 @@ class tuple_full_model final : public model_base_crtp { std::tuple ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; + current_statement__ = 1; + std::get<0>(ps) = in__.template read_constrain_lb(0, lp__); + current_statement__ = 1; + std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); { current_statement__ = 2; lp_accum__.add(stan::math::bernoulli_lpmf(std::get<0>(ds), @@ -7505,6 +8453,12 @@ class tuple_full_model final : public model_base_crtp { std::tuple ps = std::tuple{std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()}; + current_statement__ = 1; + std::get<0>(ps) = in__.template read_constrain_lb(0, lp__); + current_statement__ = 1; + std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); out__.write(std::get<0>(ps)); out__.write(std::get<1>(ps)); if (stan::math::logical_negation( @@ -9050,6 +10004,10 @@ class tuple_nested_param_model final : public model_base_crtp ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; + current_statement__ = 1; + std::get<0>(ps) = in__.template read(); + current_statement__ = 1; + std::get<1>(ps) = in__.template read(); std::tuple>> ps2 = @@ -9058,6 +10016,14 @@ class tuple_nested_param_model final : public model_base_crtp>{DUMMY_VAR__, Eigen::Matrix::Constant(10, 10, DUMMY_VAR__)}}; + current_statement__ = 2; + std::get<0>(ps2) = in__.template read(); + current_statement__ = 2; + std::get<0>(std::get<1>(ps2)) = in__.template read(); + current_statement__ = 2; + std::get<1>(std::get<1>(ps2)) = in__.template read< + Eigen::Matrix>(10, + 10); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -9091,6 +10057,10 @@ class tuple_nested_param_model final : public model_base_crtp ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; + current_statement__ = 1; + std::get<0>(ps) = in__.template read(); + current_statement__ = 1; + std::get<1>(ps) = in__.template read(); std::tuple>> ps2 = @@ -9099,6 +10069,14 @@ class tuple_nested_param_model final : public model_base_crtp>{DUMMY_VAR__, Eigen::Matrix::Constant(10, 10, DUMMY_VAR__)}}; + current_statement__ = 2; + std::get<0>(ps2) = in__.template read(); + current_statement__ = 2; + std::get<0>(std::get<1>(ps2)) = in__.template read(); + current_statement__ = 2; + std::get<1>(std::get<1>(ps2)) = in__.template read< + Eigen::Matrix>(10, + 10); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -9143,6 +10121,10 @@ class tuple_nested_param_model final : public model_base_crtp ps = std::tuple{std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()}; + current_statement__ = 1; + std::get<0>(ps) = in__.template read(); + current_statement__ = 1; + std::get<1>(ps) = in__.template read(); std::tuple>> ps2 = std::tuple>>{ @@ -9151,6 +10133,14 @@ class tuple_nested_param_model final : public model_base_crtp::Constant(10, 10, std::numeric_limits::quiet_NaN())}}; + current_statement__ = 2; + std::get<0>(ps2) = in__.template read(); + current_statement__ = 2; + std::get<0>(std::get<1>(ps2)) = in__.template read(); + current_statement__ = 2; + std::get<1>(std::get<1>(ps2)) = in__.template read< + Eigen::Matrix>(10, + 10); out__.write(std::get<0>(ps)); out__.write(std::get<1>(ps)); out__.write(std::get<0>(ps2)); @@ -9519,6 +10509,11 @@ class tuple_params_model final : public model_base_crtp { std::tuple ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; + current_statement__ = 1; + std::get<0>(ps) = in__.template read(); + current_statement__ = 1; + std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -9552,6 +10547,11 @@ class tuple_params_model final : public model_base_crtp { std::tuple ps = std::tuple{DUMMY_VAR__, DUMMY_VAR__}; + current_statement__ = 1; + std::get<0>(ps) = in__.template read(); + current_statement__ = 1; + std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -9596,6 +10596,11 @@ class tuple_params_model final : public model_base_crtp { std::tuple ps = std::tuple{std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()}; + current_statement__ = 1; + std::get<0>(ps) = in__.template read(); + current_statement__ = 1; + std::get<1>(ps) = in__.template read_constrain_lb(0, lp__); out__.write(std::get<0>(ps)); out__.write(std::get<1>(ps)); if (stan::math::logical_negation( @@ -9928,6 +10933,17 @@ class tuple_promotion_model final : public model_base_crtp::Constant(3, std::numeric_limits::quiet_NaN()); new (&V) Eigen::Map>(V_data__.data(), 3); + { + std::vector V_flat__; + current_statement__ = 11; + V_flat__ = context__.vals_r("V"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + stan::model::assign(V, V_flat__[(pos__ - 1)], + "assigning variable V", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 12; context__.validate_dims("data initialization", "d.1", "int", std::vector{static_cast(3)}); @@ -9937,6 +10953,9 @@ class tuple_promotion_model final : public model_base_crtp::min( )), std::vector(3, std::numeric_limits::min())}; + current_statement__ = 12; + std::get<0>(d) = context__.vals_i("d.1"); + std::get<1>(d) = context__.vals_i("d.2"); current_statement__ = 13; arrs = std::vector>>(4, std::tuple>{std::numeric_limits::min( @@ -11135,6 +12154,20 @@ class tuple_templating_model final : public model_base_crtp::quiet_NaN()); new (&m1) Eigen::Map>(m1_data__.data(), N, N); + { + std::vector m1_flat__; + current_statement__ = 9; + m1_flat__ = context__.vals_r("m1"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(m1, m1_flat__[(pos__ - 1)], + "assigning variable m1", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 10; stan::math::validate_non_negative_index("m2", "N", N); current_statement__ = 11; @@ -11146,6 +12179,20 @@ class tuple_templating_model final : public model_base_crtp::quiet_NaN()); new (&m2) Eigen::Map>(m2_data__.data(), N, N); + { + std::vector m2_flat__; + current_statement__ = 12; + m2_flat__ = context__.vals_r("m2"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + for (int sym2__ = 1; sym2__ <= N; ++sym2__) { + stan::model::assign(m2, m2_flat__[(pos__ - 1)], + "assigning variable m2", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 13; stan::math::validate_non_negative_index("a1", "N", N); current_statement__ = 14; @@ -11708,6 +12755,20 @@ class tuple_copying_model final : public model_base_crtp { x_data__ = Eigen::Matrix::Constant(2, 2, std::numeric_limits::quiet_NaN()); new (&x) Eigen::Map>(x_data__.data(), 2, 2); + { + std::vector x_flat__; + current_statement__ = 12; + x_flat__ = context__.vals_r("x"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym2__), + stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } + } current_statement__ = 13; context__.validate_dims("data initialization", "y", "double", std::vector{static_cast(10)}); @@ -12761,6 +13822,9 @@ class tuple_hof_model final : public model_base_crtp { data_m = std::tuple>{std::numeric_limits::quiet_NaN( ), std::vector(N, std::numeric_limits::min())}; + current_statement__ = 7; + std::get<0>(data_m) = context__.vals_r("data_m.1")[(1 - 1)]; + std::get<1>(data_m) = context__.vals_i("data_m.2"); current_statement__ = 8; sum1 = std::numeric_limits::quiet_NaN(); current_statement__ = 8; @@ -14677,6 +15741,17 @@ class unpack_promote_model final : public model_base_crtp x_data__ = Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN()); new (&x) Eigen::Map>(x_data__.data(), N); + { + std::vector x_flat__; + current_statement__ = 25; + x_flat__ = context__.vals_r("x"); + pos__ = 1; + for (int sym1__ = 1; sym1__ <= N; ++sym1__) { + stan::model::assign(x, x_flat__[(pos__ - 1)], + "assigning variable x", stan::model::index_uni(sym1__)); + pos__ = (pos__ + 1); + } + } current_statement__ = 26; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 27; diff --git a/test/integration/good/tuples/transformed_mir.expected b/test/integration/good/tuples/transformed_mir.expected index 58154339e..7d669c40c 100644 --- a/test/integration/good/tuples/transformed_mir.expected +++ b/test/integration/good/tuples/transformed_mir.expected @@ -124,6 +124,28 @@ SInt)))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable basic) ()) 1) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str basic.1)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable basic) ()) 2) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str basic.2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) (decl_id tuple_tuple) @@ -138,6 +160,96 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_tuple) ()) 1) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str tuple_tuple.1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple) ()) 2) ()) 1) ()) + UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str tuple_tuple.2.1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id tuple_tuple_dot_2_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_tuple_dot_2_dot_2_flat__) ()) + (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str tuple_tuple.2.2)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection ((LVariable tuple_tuple) ()) 2) ()) 2) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var tuple_tuple_dot_2_dot_2_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly DataOnly))) (decl_id arr_tuple) (decl_type @@ -155,91 +267,1914 @@ (initialize true) (assignment ()))) (meta )) ((pattern - (Decl (decl_adtype (TupleAD (DataOnly DataOnly (TupleAD (DataOnly DataOnly))))) - (decl_id tuple_arr_tuple) - (decl_type - (Sized - (STuple - ((SArray SReal - ((pattern (Lit Int 2)) + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_dot_1_flat__) + (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_dot_1_flat__) ()) UInt + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple.1)) + (meta + ((type_ (UArray (UTuple (UInt (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_dot_2_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple.2)) + (meta + ((type_ (UArray (UTuple (UInt (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_2_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_dot_2_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_dot_3_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_dot_3_flat__) ()) UVector + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple.3)) + (meta + ((type_ (UArray (UTuple (UInt (UArray UReal) UVector)))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_3_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_dot_3_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_1_temp__) + (decl_type (Sized SInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_2_temp__) + (decl_type + (Sized + (SArray SReal + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_3_temp__) + (decl_type + (Sized + (SVector AoS + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - SInt - (SArray - (STuple - (SReal - (SArray SInt - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (upper ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD (DataOnly DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))) - (decl_id arr_tuple_tuple) - (decl_type - (Sized - (SArray - (STuple - (SReal SInt - (STuple - (SReal - (STuple - (SInt - (SVector AoS - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) - (decl_id arr_tuple_arr_tuple) - (decl_type - (Sized - (SArray - (STuple - (SInt - (SArray - (STuple - (SReal - (SVector AoS - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) - (meta )) - ((pattern - (Decl - (decl_adtype - (TupleAD (DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))) - (decl_id very_deep) - (decl_type - (Sized - (SArray - (STuple - (SInt - (SArray - (STuple - (SReal - (SArray - (STuple - (SComplex - (SMatrix AoS - ((pattern (Lit Int 6)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 7)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 4)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment ((LVariable arr_tuple_dot_1_temp__) ()) UInt + ((pattern + (Indexed + ((pattern (Var arr_tuple_dot_1_flat__)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var arr_tuple_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_dot_1_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_dot_2_temp__) ()) + (UArray UReal) + ((pattern + (Indexed + ((pattern (Var arr_tuple_dot_2_flat__)) + (meta + ((type_ (UArray (UArray UReal))) (loc ) + (adlevel DataOnly)))) + ((Between + ((pattern (Var arr_tuple_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern + (FunApp (StanLib Minus__ FnPlain AoS) + (((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_dot_2_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id arr_tuple_dot_3_temp___flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) + (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_dot_3_temp___flat__) ()) + (UArray UReal) + ((pattern + (Indexed + ((pattern (Var arr_tuple_dot_3_flat__)) + (meta + ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))) + ((Between + ((pattern (Var arr_tuple_dot_3_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern + (FunApp (StanLib Minus__ FnPlain AoS) + (((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_dot_3_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable arr_tuple_dot_3_temp__) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var arr_tuple_dot_3_temp___flat__)) + (meta + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_dot_3_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_dot_3_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UTuple (UInt (UArray UReal) UVector))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var arr_tuple_dot_1_temp__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var arr_tuple_dot_2_temp__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((pattern (Var arr_tuple_dot_3_temp__)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UTuple (UInt (UArray UReal) UVector))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly DataOnly)))))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly DataOnly (TupleAD (DataOnly DataOnly))))) + (decl_id tuple_arr_tuple) + (decl_type + (Sized + (STuple + ((SArray SReal + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + SInt + (SArray + (STuple + (SReal + (SArray SInt + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple) ()) 1) ()) + (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str tuple_arr_tuple.1)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple) ()) 2) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str tuple_arr_tuple.2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_dot_3_dot_1_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_1_flat__) ()) UReal + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str tuple_arr_tuple.3.1)) + (meta + ((type_ (UArray (UTuple (UReal (UArray UInt))))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_dot_3_dot_2_flat__) + (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_2_flat__) ()) + (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str tuple_arr_tuple.3.2)) + (meta + ((type_ (UArray (UTuple (UReal (UArray UInt))))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_2_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_2_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_1_temp__) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_2_temp__) + (decl_type + (Sized + (SArray SInt + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_1_temp__) ()) UReal + ((pattern + (Indexed + ((pattern (Var tuple_arr_tuple_dot_3_dot_1_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var tuple_arr_tuple_dot_3_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_1_flat__pos__) ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var tuple_arr_tuple_dot_3_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_2_temp__) ()) + (UArray UInt) + ((pattern + (Indexed + ((pattern (Var tuple_arr_tuple_dot_3_dot_2_flat__)) + (meta + ((type_ (UArray (UArray UInt))) (loc ) (adlevel DataOnly)))) + ((Between + ((pattern (Var tuple_arr_tuple_dot_3_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern + (FunApp (StanLib Minus__ FnPlain AoS) + (((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var tuple_arr_tuple_dot_3_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UArray (UArray UInt))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_2_flat__pos__) ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var tuple_arr_tuple_dot_3_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LVariable tuple_arr_tuple) ()) 3) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UTuple (UReal (UArray UInt)))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var tuple_arr_tuple_dot_3_dot_1_temp__)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var tuple_arr_tuple_dot_3_dot_2_temp__)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UTuple (UReal (UArray UInt)))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Decl + (decl_adtype + (TupleAD (DataOnly DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))) + (decl_id arr_tuple_tuple) + (decl_type + (Sized + (SArray + (STuple + (SReal SInt + (STuple + (SReal + (STuple + (SInt + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_1_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_1_flat__) ()) UReal + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_tuple.1)) + (meta + ((type_ + (UArray (UTuple (UReal UInt (UTuple (UReal (UTuple (UInt UVector)))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_2_flat__) + (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_2_flat__) ()) UInt + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_tuple.2)) + (meta + ((type_ + (UArray (UTuple (UReal UInt (UTuple (UReal (UTuple (UInt UVector)))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_2_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_2_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_3_dot_1_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_1_flat__) ()) UReal + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_tuple.3.1)) + (meta + ((type_ + (UArray (UTuple (UReal UInt (UTuple (UReal (UTuple (UInt UVector)))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_3_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id arr_tuple_tuple_dot_3_dot_2_dot_1_flat__) + (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_1_flat__) ()) UInt + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_tuple.3.2.1)) + (meta + ((type_ + (UArray (UTuple (UReal UInt (UTuple (UReal (UTuple (UInt UVector)))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) + (decl_id arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id arr_tuple_tuple_dot_3_dot_2_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_2_flat__) ()) UVector + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_tuple.3.2.2)) + (meta + ((type_ + (UArray (UTuple (UReal UInt (UTuple (UReal (UTuple (UInt UVector)))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) + (decl_id arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_1_temp__) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_2_temp__) + (decl_type (Sized SInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) + (decl_id arr_tuple_tuple_dot_3_temp__) + (decl_type + (Sized + (STuple + (SReal + (STuple + (SInt + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_1_temp__) ()) UReal + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_dot_1_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var arr_tuple_tuple_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_1_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_tuple_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_2_temp__) ()) UInt + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_dot_2_flat__)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var arr_tuple_tuple_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_2_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_tuple_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LVariable arr_tuple_tuple_dot_3_temp__) ()) 1) ()) + UReal + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_dot_3_dot_1_flat__)) + (meta + ((type_ (UArray (UTuple (UReal (UTuple (UInt UVector)))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) + ((Single + ((pattern (Var arr_tuple_tuple_dot_3_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal (UTuple (UInt UVector))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_1_flat__pos__) ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_tuple_dot_3_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection ((LVariable arr_tuple_tuple_dot_3_temp__) ()) 2) + ()) + 1) + ()) + UInt + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_dot_3_dot_2_dot_1_flat__)) + (meta + ((type_ (UArray (UTuple (UReal (UTuple (UInt UVector)))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) + ((Single + ((pattern (Var arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UTuple (UReal (UTuple (UInt UVector))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) + (assignment ()))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__) ()) + (UArray UReal) + ((pattern + (Indexed + ((pattern (Var arr_tuple_tuple_dot_3_dot_2_dot_2_flat__)) + (meta + ((type_ (UArray (UTuple (UReal (UTuple (UInt UVector)))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))) + ((Between + ((pattern (Var arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern + (FunApp (StanLib Minus__ FnPlain AoS) + (((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern + (Var arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UArray (UTuple (UReal (UTuple (UInt UVector)))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_tuple_dot_3_temp__) ()) 2) + ()) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern + (Var arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_tuple) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UTuple (UReal UInt (UTuple (UReal (UTuple (UInt UVector))))))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var arr_tuple_tuple_dot_1_temp__)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var arr_tuple_tuple_dot_2_temp__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var arr_tuple_tuple_dot_3_temp__)) + (meta + ((type_ (UTuple (UReal (UTuple (UInt UVector))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))))))) + (meta + ((type_ + (UTuple (UReal UInt (UTuple (UReal (UTuple (UInt UVector))))))) + (loc ) + (adlevel + (TupleAD + (DataOnly DataOnly + (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) + (decl_id arr_tuple_arr_tuple) + (decl_type + (Sized + (SArray + (STuple + (SInt + (SArray + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_dot_1_flat__) + (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_dot_1_flat__) ()) UInt + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_arr_tuple.1)) + (meta + ((type_ (UArray (UTuple (UInt (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id arr_tuple_arr_tuple_dot_2_dot_1_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_1_flat__) ()) + (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_arr_tuple.2.1)) + (meta + ((type_ (UArray (UTuple (UInt (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) + (decl_id arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id arr_tuple_arr_tuple_dot_2_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_2_flat__) ()) + (UArray UVector) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str arr_tuple_arr_tuple.2.2)) + (meta + ((type_ (UArray (UTuple (UInt (UArray (UTuple (UReal UVector))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) + (decl_id arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_dot_1_temp__) + (decl_type (Sized SInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) + (decl_id arr_tuple_arr_tuple_dot_2_temp__) + (decl_type + (Sized + (SArray + (STuple + (SReal + (SVector AoS + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_dot_1_temp__) ()) UInt + ((pattern + (Indexed + ((pattern (Var arr_tuple_arr_tuple_dot_1_flat__)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var arr_tuple_arr_tuple_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable arr_tuple_arr_tuple_dot_1_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var arr_tuple_arr_tuple_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype DataOnly) + (decl_id arr_tuple_arr_tuple_dot_2_dot_1_temp__) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) + (decl_id arr_tuple_arr_tuple_dot_2_dot_2_temp__) + (decl_type + (Sized + (SVector AoS + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable arr_tuple_arr_tuple_dot_2_dot_1_temp__) ()) + UReal + ((pattern + (Indexed + ((pattern (Var arr_tuple_arr_tuple_dot_2_dot_1_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern + (Var arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__) + ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern + (Var arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__) + (decl_type (Unsized (UArray UReal))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment + ((LVariable + arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__) + ()) + (UArray UReal) + ((pattern + (Indexed + ((pattern + (Var arr_tuple_arr_tuple_dot_2_dot_2_flat__)) + (meta + ((type_ (UArray UVector)) (loc ) + (adlevel DataOnly)))) + ((Between + ((pattern + (Var + arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern + (FunApp (StanLib Minus__ FnPlain AoS) + (((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern + (Var + arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 5)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UArray UVector)) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 5)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable + arr_tuple_arr_tuple_dot_2_dot_2_temp__) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern + (Var + arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__)) + (meta + ((type_ (UArray UReal)) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable + arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__) + ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern + (Var arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 5)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_arr_tuple_dot_2_temp__) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UTuple (UReal UVector))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var arr_tuple_arr_tuple_dot_2_dot_1_temp__)) + (meta + ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var arr_tuple_arr_tuple_dot_2_dot_2_temp__)) + (meta + ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UTuple (UReal UVector))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable arr_tuple_arr_tuple) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UTuple (UInt (UArray (UTuple (UReal UVector)))))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var arr_tuple_arr_tuple_dot_1_temp__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var arr_tuple_arr_tuple_dot_2_temp__)) + (meta + ((type_ (UArray (UTuple (UReal UVector)))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly))))))))) + (meta + ((type_ (UTuple (UInt (UArray (UTuple (UReal UVector)))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Decl + (decl_adtype + (TupleAD (DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))) + (decl_id very_deep) + (decl_type + (Sized + (SArray + (STuple + (SInt + (SArray + (STuple + (SReal + (SArray + (STuple + (SComplex + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_1_flat__) + (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_dot_1_flat__) ()) UInt + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str very_deep.1)) + (meta + ((type_ + (UArray + (UTuple + (UInt (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_2_dot_1_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_dot_2_dot_1_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str very_deep.2.1)) + (meta + ((type_ + (UArray + (UTuple + (UInt (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_dot_2_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_2_dot_2_dot_1_flat__) + (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_dot_2_dot_2_dot_1_flat__) ()) + (UArray (UArray UComplex)) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str very_deep.2.2.1)) + (meta + ((type_ + (UArray + (UTuple + (UInt (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UComplex)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_2_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_dot_2_dot_2_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_2_dot_2_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_dot_2_dot_2_dot_2_flat__) ()) + (UArray (UArray UMatrix)) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str very_deep.2.2.2)) + (meta + ((type_ + (UArray + (UTuple + (UInt (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))))))) + (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_2_dot_2_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_dot_2_dot_2_dot_2_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_1_temp__) + (decl_type (Sized SInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) + (decl_id very_deep_dot_2_temp__) + (decl_type + (Sized + (SArray + (STuple + (SReal + (SArray + (STuple + (SComplex + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment ((LVariable very_deep_dot_1_temp__) ()) UInt + ((pattern + (Indexed + ((pattern (Var very_deep_dot_1_flat__)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var very_deep_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable very_deep_dot_1_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var very_deep_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_1_temp__) + (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) + (decl_id very_deep_dot_2_dot_2_temp__) + (decl_type + (Sized + (SArray + (STuple + (SComplex + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment ((LVariable very_deep_dot_2_dot_1_temp__) ()) + UReal + ((pattern + (Indexed + ((pattern (Var very_deep_dot_2_dot_1_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var very_deep_dot_2_dot_1_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LVariable very_deep_dot_2_dot_1_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var very_deep_dot_2_dot_1_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype DataOnly) + (decl_id very_deep_dot_2_dot_2_dot_1_temp__) + (decl_type (Sized SComplex)) (initialize true) + (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) + (decl_id very_deep_dot_2_dot_2_dot_2_temp__) + (decl_type + (Sized + (SMatrix AoS + ((pattern (Lit Int 6)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 5)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable very_deep_dot_2_dot_2_dot_1_temp__) + ()) + UComplex + ((pattern + (Indexed + ((pattern + (Var very_deep_dot_2_dot_2_dot_1_flat__)) + (meta + ((type_ (UArray UComplex)) + (loc ) (adlevel DataOnly)))) + ((Single + ((pattern + (Var + very_deep_dot_2_dot_2_dot_1_flat__pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UComplex) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LVariable + very_deep_dot_2_dot_2_dot_1_flat__pos__) + ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern + (Var + very_deep_dot_2_dot_2_dot_1_flat__pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id + very_deep_dot_2_dot_2_dot_2_temp___flat__) + (decl_type (Unsized (UArray UReal))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment + ((LVariable + very_deep_dot_2_dot_2_dot_2_temp___flat__) + ()) + (UArray UReal) + ((pattern + (Indexed + ((pattern + (Var + very_deep_dot_2_dot_2_dot_2_flat__)) + (meta + ((type_ (UArray UMatrix)) + (loc ) (adlevel DataOnly)))) + ((Between + ((pattern + (Var + very_deep_dot_2_dot_2_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern + (FunApp + (StanLib Minus__ FnPlain AoS) + (((pattern + (FunApp + (StanLib Plus__ FnPlain AoS) + (((pattern + (Var + very_deep_dot_2_dot_2_dot_2_flat__pos__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))) + ((pattern + (FunApp + (StanLib Times__ FnPlain + AoS) + (((pattern (Lit Int 6)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ (UArray UMatrix)) + (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym4__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 7)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym5__) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 6)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable + very_deep_dot_2_dot_2_dot_2_temp__) + ((Single + ((pattern (Var sym5__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))) + (Single + ((pattern (Var sym4__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))))) + UMatrix + ((pattern + (Indexed + ((pattern + (Var + very_deep_dot_2_dot_2_dot_2_temp___flat__)) + (meta + ((type_ + (UArray UReal)) + (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UReal) + (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LVariable pos__) ()) UInt + ((pattern + (FunApp + (StanLib Plus__ FnPlain + AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable + very_deep_dot_2_dot_2_dot_2_flat__pos__) + ()) + UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern + (Var + very_deep_dot_2_dot_2_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern + (FunApp (StanLib Times__ FnPlain AoS) + (((pattern (Lit Int 6)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta + ((type_ UInt) + (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable very_deep_dot_2_dot_2_temp__) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (UArray (UTuple (UComplex UMatrix))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern + (Var very_deep_dot_2_dot_2_dot_1_temp__)) + (meta + ((type_ UComplex) (loc ) + (adlevel DataOnly)))) + ((pattern + (Var very_deep_dot_2_dot_2_dot_2_temp__)) + (meta + ((type_ UMatrix) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UTuple (UComplex UMatrix))) + (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable very_deep_dot_2_temp__) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray + (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var very_deep_dot_2_dot_1_temp__)) + (meta + ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var very_deep_dot_2_dot_2_temp__)) + (meta + ((type_ (UArray (UTuple (UComplex UMatrix)))) + (loc ) + (adlevel (TupleAD (DataOnly DataOnly))))))))) + (meta + ((type_ + (UTuple (UReal (UArray (UTuple (UComplex UMatrix)))))) + (loc ) + (adlevel + (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable very_deep) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray + (UTuple + (UInt (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var very_deep_dot_1_temp__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var very_deep_dot_2_temp__)) + (meta + ((type_ + (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))) + (loc ) + (adlevel (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))))))))) + (meta + ((type_ + (UTuple + (UInt + (UArray (UTuple (UReal (UArray (UTuple (UComplex UMatrix))))))))) + (loc ) + (adlevel + (TupleAD + (DataOnly (TupleAD (DataOnly (TupleAD (DataOnly DataOnly)))))))))))) + (meta ))))) + (meta ))))) + (meta ))))) (meta )))) (log_prob (((pattern @@ -253,6 +2188,28 @@ SReal)))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable basic_p) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) (decl_id tuple_tuple_p) @@ -267,6 +2224,41 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 1) ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 2) ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) (decl_id arr_tuple_p) @@ -284,6 +2276,76 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UComplex + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + (UArray UReal) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype @@ -306,6 +2368,78 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) + (UArray UReal) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + (UArray UReal) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype @@ -328,6 +2462,121 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + 2) + ()) + 1) + ()) + UComplex + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + 2) + ()) + 2) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) (decl_id arr_tuple_arr_tuple_p) @@ -347,6 +2596,95 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype @@ -375,6 +2713,153 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UComplex + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) + (mem_pattern AoS))) + ())) + (meta + ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 6)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) (meta )))) (reverse_mode_log_prob (((pattern @@ -388,6 +2873,28 @@ SReal)))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable basic_p) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) (decl_id tuple_tuple_p) @@ -402,6 +2909,41 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 1) ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 2) ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) (decl_id arr_tuple_p) @@ -419,6 +2961,76 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UComplex + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + (UArray UReal) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype @@ -441,6 +3053,78 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) + (UArray UReal) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + (UArray UReal) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype @@ -463,6 +3147,121 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + 2) + ()) + 1) + ()) + UComplex + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + 2) + ()) + 2) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) (decl_id arr_tuple_arr_tuple_p) @@ -482,6 +3281,95 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype @@ -510,6 +3398,153 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UComplex + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) + (mem_pattern AoS))) + ())) + (meta + ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 6)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) (meta )))) (generate_quantities (((pattern @@ -523,6 +3558,28 @@ SReal)))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable basic_p) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) (decl_id tuple_tuple_p) @@ -537,6 +3594,41 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 1) ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LTupleProjection ((LVariable tuple_tuple_p) ()) 2) ()) 2) ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly DataOnly))) (decl_id arr_tuple_p) (decl_type @@ -553,6 +3645,76 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UComplex + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + (UArray UReal) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly (TupleAD (DataOnly DataOnly))))) (decl_id tuple_arr_tuple_p) @@ -573,6 +3735,78 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) + (UArray UReal) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 3) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + (UArray UReal) + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype @@ -593,6 +3827,121 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + 2) + ()) + 1) + ()) + UComplex + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + 2) + ()) + 2) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) (decl_id arr_tuple_arr_tuple_p) @@ -612,6 +3961,95 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable arr_tuple_arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable arr_tuple_arr_tuple_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype @@ -640,6 +4078,153 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UComplex + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) + (mem_pattern AoS))) + ())) + (meta + ((type_ UComplex) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LTupleProjection + ((LVariable very_deep_p) + ((Single + ((pattern (Var sym1__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 6)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 7)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta + ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -6679,6 +10264,115 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) SInt)))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable complicated) ()) 1) ()) + (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str complicated.1)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LTupleProjection ((LVariable complicated) ()) 2) ()) 1) ()) + UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str complicated.2.1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_2_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable complicated_dot_2_dot_2_flat__) ()) + (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str complicated.2.2)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection ((LVariable complicated) ()) 2) ()) 2) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var complicated_dot_2_dot_2_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection ((LTupleProjection ((LVariable complicated) ()) 2) ()) 3) ()) + (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str complicated.2.3)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable complicated) ()) 3) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str complicated.3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )))) (log_prob (((pattern @@ -7881,6 +11575,50 @@ (decl_id y) (decl_type (Sized (STuple (SInt (STuple (SReal SInt)))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable y) ()) 1) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str y.1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LTupleProjection ((LVariable y) ()) 2) ()) 1) ()) + UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str y.2.1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LTupleProjection ((LVariable y) ()) 2) ()) 2) ()) + UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str y.2.2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -7964,8 +11702,94 @@ (SInt SReal (SVector AoS ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable x) ()) 1) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str x.1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable x) ()) 2) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str x.2)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id x_dot_3_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable x_dot_3_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str x.3)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection ((LVariable x) ()) 3) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var x_dot_3_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) (meta )) ((pattern (NRFunApp @@ -8040,6 +11864,249 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id z_dot_1_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable z_dot_1_flat__) ()) UReal + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str z.1)) + (meta + ((type_ (UArray (UArray (UTuple (UReal UVector))))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id z_dot_1_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable z_dot_1_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype AutoDiffable) (decl_id z_dot_2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable z_dot_2_flat__) ()) UVector + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str z.2)) + (meta + ((type_ (UArray (UArray (UTuple (UReal UVector))))) (loc ) + (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id z_dot_2_flat__pos__) + (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable z_dot_2_flat__pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id z_dot_1_temp__) (decl_type (Sized SReal)) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id z_dot_2_temp__) + (decl_type + (Sized + (SVector AoS + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment ((LVariable z_dot_1_temp__) ()) UReal + ((pattern + (Indexed + ((pattern (Var z_dot_1_flat__)) + (meta + ((type_ (UArray (UArray UReal))) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var z_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable z_dot_1_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var z_dot_1_flat__pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) + (decl_id z_dot_2_temp___flat__) + (decl_type (Unsized (UArray UReal))) (initialize true) + (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable z_dot_2_temp___flat__) ()) + (UArray UReal) + ((pattern + (Indexed + ((pattern (Var z_dot_2_flat__)) + (meta + ((type_ (UArray (UArray UVector))) + (loc ) (adlevel DataOnly)))) + ((Between + ((pattern (Var z_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern + (FunApp (StanLib Minus__ FnPlain AoS) + (((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var z_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta + ((type_ (UArray (UArray UVector))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym3__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable z_dot_2_temp__) + ((Single + ((pattern (Var sym3__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var z_dot_2_temp___flat__)) + (meta + ((type_ (UArray UReal)) (loc ) + (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))))))) + (meta + ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta )) + ((pattern + (Assignment ((LVariable z_dot_2_flat__pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var z_dot_2_flat__pos__)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta )) + ((pattern + (Assignment + ((LVariable z) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (UArray (UArray (UTuple (UReal UVector)))) + ((pattern + (FunApp (CompilerInternal FnMakeTuple) + (((pattern (Var z_dot_1_temp__)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var z_dot_2_temp__)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UTuple (UReal UVector))) (loc ) + (adlevel (TupleAD (DataOnly DataOnly)))))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (For (loopvar sym1__) (lower @@ -8280,6 +12347,34 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps2) (decl_type @@ -8295,6 +12390,79 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable ps2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LVariable ps2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id t) (decl_type (Sized SReal)) (initialize true) @@ -8350,12 +12518,157 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable complicated) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var complicated_brack_dot2_1dim__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable complicated) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable complicated) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable complicated) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) (meta )))) (reverse_mode_log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps2) (decl_type @@ -8371,6 +12684,79 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable ps2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LVariable ps2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id t) (decl_type (Sized SReal)) (initialize true) @@ -8426,12 +12812,157 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable complicated) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var complicated_brack_dot2_1dim__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable complicated) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable complicated) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable complicated) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) (meta )))) (generate_quantities (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps2) (decl_type @@ -8447,6 +12978,79 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable ps2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LVariable ps2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id t) (decl_type (Sized SReal)) (initialize true) @@ -8501,6 +13105,123 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LVariable complicated) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var complicated_brack_dot2_1dim__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable complicated) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 1) + ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable complicated) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ()) + UVector + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Simplex) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment + ((LTupleProjection + ((LTupleProjection + ((LVariable complicated) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + 3) + ()) + UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain CholeskyCov) + (dims + (((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -10886,6 +15607,34 @@ ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id d) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable d) ()) 1) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d.1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable d) ()) 2) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d.2)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )))) (log_prob (((pattern @@ -11315,6 +16064,38 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ds) ()) 1) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str ds.1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ds) ()) 2) ()) 1) ()) + (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str ds.2.1)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ds) ()) 2) ()) 2) ()) + (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str ds.2.2)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -11364,6 +16145,34 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Block (((pattern @@ -11465,6 +16274,34 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Block (((pattern @@ -11566,6 +16403,34 @@ (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -11987,6 +16852,24 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) (decl_id ps2) @@ -12002,12 +16885,65 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ps2) ()) 2) ()) 1) ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ps2) ()) 2) ()) 2) ()) + UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) (meta )))) (reverse_mode_log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable (TupleAD (AutoDiffable AutoDiffable))))) (decl_id ps2) @@ -12023,12 +16959,65 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ps2) ()) 2) ()) 1) ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ps2) ()) 2) ()) 2) ()) + UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) (meta )))) (generate_quantities (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) (decl_id ps2) @@ -12045,6 +17034,41 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ps2) ()) 2) ()) 1) ()) + UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LTupleProjection ((LVariable ps2) ()) 2) ()) 2) ()) + UMatrix + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) + (dims + (((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 10)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (mem_pattern AoS))) + ())) + (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -12564,17 +17588,86 @@ (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) (meta )))) (reverse_mode_log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) (meta )))) (generate_quantities (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable ps) ()) 2) ()) UReal + ((pattern + (FunApp + (CompilerInternal + (FnReadParam + (constrain + (Lower + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (dims ()) (mem_pattern AoS))) + ())) + (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) + (meta )) ((pattern (NRFunApp (CompilerInternal @@ -12830,6 +17923,64 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id V_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable V_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str V)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable V) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var V_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id d) (decl_type @@ -12843,6 +17994,22 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable d) ()) 1) ()) (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d.1)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable d) ()) 2) ()) (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d.2)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id arrs) (decl_type @@ -14512,6 +19679,80 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id m1_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable m1_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str m1)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable m1) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UMatrix + ((pattern + (Indexed + ((pattern (Var m1_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str m2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) @@ -14533,6 +19774,80 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id m2_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable m2_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str m2)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable m2) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UMatrix + ((pattern + (Indexed + ((pattern (Var m2_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str a1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) @@ -14961,6 +20276,81 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id x_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable x_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str x)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar sym2__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable x) + ((Single + ((pattern (Var sym2__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UMatrix + ((pattern + (Indexed + ((pattern (Var x_flat__)) + (meta + ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id y) (decl_type @@ -16153,6 +21543,28 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable data_m) ()) 1) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str data_m.1)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LTupleProjection ((LVariable data_m) ()) 2) ()) (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str data_m.2)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sum1) (decl_type (Sized SReal)) (initialize true) (assignment ()))) @@ -17081,6 +22493,63 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (initialize true) (assignment ()))) (meta )) + ((pattern + (Block + (((pattern + (Decl (decl_adtype AutoDiffable) (decl_id x_flat__) + (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable x_flat__) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str x)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar sym1__) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (Assignment + ((LVariable x) + ((Single + ((pattern (Var sym1__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + UVector + ((pattern + (Indexed + ((pattern (Var x_flat__)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment ((LVariable pos__) ()) UInt + ((pattern + (FunApp (StanLib Plus__ FnPlain AoS) + (((pattern (Var pos__)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ))))) + (meta ))))) + (meta ))))) + (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) (((pattern (Lit Str y)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) From 6b98c92b1412e70efcda2dc3f3c9dcf957051568 Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Thu, 18 Jul 2024 18:00:26 -0400 Subject: [PATCH 07/17] update --- src/stan_math_backend/Transform_Mir.ml | 12 +- test/integration/good/code-gen/cl.expected | 12 + .../code-gen/complex_numbers/cpp.expected | 26 + test/integration/good/code-gen/cpp.expected | 148 ++++++ .../good/code-gen/expressions/cpp.expected | 8 + test/integration/good/code-gen/lir.expected | 46 ++ .../good/code-gen/ode/cpp.expected | 14 + .../good/code-gen/opencl/cpp.expected | 16 + .../good/code-gen/profiling/cpp.expected | 4 + .../profiling/transformed_mir.expected | 44 +- .../good/code-gen/transformed_mir.expected | 232 +++++---- .../good/compiler-optimizations/cpp.expected | 162 +++++++ .../compiler-optimizations/cppO0.expected | 162 +++++++ .../compiler-optimizations/cppO1.expected | 162 +++++++ .../mem_patterns/cpp.expected | 34 ++ .../mem_patterns/transformed_mir.expected | 452 ++++++++++-------- test/integration/good/tuples/cpp.expected | 22 + .../good/tuples/transformed_mir.expected | 248 +++++----- 18 files changed, 1355 insertions(+), 449 deletions(-) diff --git a/src/stan_math_backend/Transform_Mir.ml b/src/stan_math_backend/Transform_Mir.ml index 9937d2b0f..1ebb0dfd7 100644 --- a/src/stan_math_backend/Transform_Mir.ml +++ b/src/stan_math_backend/Transform_Mir.ml @@ -775,7 +775,17 @@ let add_reads vars mkread stmts = let loc, out = Map.find_exn var_names decl_id in let param_reader = mkread (Stmt.Helpers.lvariable decl_id, loc, out) in match param_reader with - | [Stmt.Fixed.{pattern= Stmt.Fixed.Pattern.Assignment (_, _, e); _}] -> + | [ Stmt.Fixed. + { pattern= + Stmt.Fixed.Pattern.Assignment + ( _ + , _ + , (Expr.Fixed. + { pattern= + Expr.Fixed.Pattern.FunApp + (CompilerInternal (Internal_fun.FnReadParam _), _) + ; _ } as e) ) + ; _ } ] -> [ { stmt with pattern= Stmt.Fixed.Pattern.Decl diff --git a/test/integration/good/code-gen/cl.expected b/test/integration/good/code-gen/cl.expected index b4b1c5487..bc1bb9cde 100644 --- a/test/integration/good/code-gen/cl.expected +++ b/test/integration/good/code-gen/cl.expected @@ -283,12 +283,16 @@ class optimize_glm_model final : public model_base_crtp { std::vector{}); k = std::numeric_limits::min(); current_statement__ = 176; + k = context__.vals_i("k")[(1 - 1)]; + current_statement__ = 176; stan::math::check_greater_or_equal(function__, "k", k, 1); current_statement__ = 177; context__.validate_dims("data initialization", "n", "int", std::vector{}); n = std::numeric_limits::min(); current_statement__ = 177; + n = context__.vals_i("n")[(1 - 1)]; + current_statement__ = 177; stan::math::check_greater_or_equal(function__, "n", n, 0); current_statement__ = 178; stan::math::validate_non_negative_index("X_d", "n", n); @@ -389,20 +393,28 @@ class optimize_glm_model final : public model_base_crtp { context__.validate_dims("data initialization", "y_vi_d", "int", std::vector{static_cast(n)}); y_vi_d = std::vector(n, std::numeric_limits::min()); + current_statement__ = 189; + y_vi_d = context__.vals_i("y_vi_d"); current_statement__ = 190; stan::math::validate_non_negative_index("y2_vi_d", "n", n); current_statement__ = 191; context__.validate_dims("data initialization", "y2_vi_d", "int", std::vector{static_cast(n)}); y2_vi_d = std::vector(n, std::numeric_limits::min()); + current_statement__ = 191; + y2_vi_d = context__.vals_i("y2_vi_d"); current_statement__ = 192; context__.validate_dims("data initialization", "y_s_d", "int", std::vector{}); y_s_d = std::numeric_limits::min(); + current_statement__ = 192; + y_s_d = context__.vals_i("y_s_d")[(1 - 1)]; current_statement__ = 193; context__.validate_dims("data initialization", "y_r_d", "double", std::vector{}); y_r_d = std::numeric_limits::quiet_NaN(); + current_statement__ = 193; + y_r_d = context__.vals_r("y_r_d")[(1 - 1)]; current_statement__ = 194; k_td = std::numeric_limits::min(); current_statement__ = 195; diff --git a/test/integration/good/code-gen/complex_numbers/cpp.expected b/test/integration/good/code-gen/complex_numbers/cpp.expected index 7b2d2f0f2..beeffd404 100644 --- a/test/integration/good/code-gen/complex_numbers/cpp.expected +++ b/test/integration/good/code-gen/complex_numbers/cpp.expected @@ -173,6 +173,8 @@ class basic_op_param_model final : public model_base_crtp context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); + current_statement__ = 125; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 126; stan::math::validate_non_negative_index("cmat", "N", N); current_statement__ = 127; @@ -2543,6 +2545,8 @@ class basic_operations_model final : public model_base_crtp{}); N = std::numeric_limits::min(); + current_statement__ = 116; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 117; stan::math::validate_non_negative_index("cmat", "N", N); current_statement__ = 118; @@ -2623,6 +2627,8 @@ class basic_operations_model final : public model_base_crtp{static_cast(2)}); z = std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()); + current_statement__ = 124; + z = context__.vals_c("z")[(1 - 1)]; current_statement__ = 125; stan::math::validate_non_negative_index("mat", "N", N); current_statement__ = 126; @@ -2691,6 +2697,8 @@ class basic_operations_model final : public model_base_crtp{}); r = std::numeric_limits::quiet_NaN(); + current_statement__ = 132; + r = context__.vals_r("r")[(1 - 1)]; current_statement__ = 133; stan::math::validate_non_negative_index("gq_c_matrix", "N", N); current_statement__ = 134; @@ -3761,6 +3769,8 @@ class basic_ops_mix_model final : public model_base_crtp { context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); + current_statement__ = 146; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 147; stan::math::validate_non_negative_index("cmat", "N", N); current_statement__ = 148; @@ -3841,6 +3851,8 @@ class basic_ops_mix_model final : public model_base_crtp { std::vector{static_cast(2)}); z = std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()); + current_statement__ = 154; + z = context__.vals_c("z")[(1 - 1)]; current_statement__ = 155; stan::math::validate_non_negative_index("mat", "N", N); current_statement__ = 156; @@ -3909,6 +3921,8 @@ class basic_ops_mix_model final : public model_base_crtp { context__.validate_dims("data initialization", "r", "double", std::vector{}); r = std::numeric_limits::quiet_NaN(); + current_statement__ = 162; + r = context__.vals_r("r")[(1 - 1)]; current_statement__ = 163; stan::math::validate_non_negative_index("cvmat", "N", N); current_statement__ = 164; @@ -6430,11 +6444,15 @@ class complex_data_model final : public model_base_crtp { context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); + current_statement__ = 1; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 2; context__.validate_dims("data initialization", "z", "double", std::vector{static_cast(2)}); z = std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()); + current_statement__ = 2; + z = context__.vals_c("z")[(1 - 1)]; current_statement__ = 3; stan::math::validate_non_negative_index("z1", "N", N); current_statement__ = 4; @@ -6514,6 +6532,8 @@ class complex_data_model final : public model_base_crtp { context__.validate_dims("data initialization", "M", "int", std::vector{}); M = std::numeric_limits::min(); + current_statement__ = 10; + M = context__.vals_i("M")[(1 - 1)]; current_statement__ = 11; stan::math::validate_non_negative_index("z4", "M", M); current_statement__ = 12; @@ -7775,15 +7795,21 @@ class complex_scalar_model final : public model_base_crtp context__.validate_dims("data initialization", "d_i", "int", std::vector{}); d_i = std::numeric_limits::min(); + current_statement__ = 345; + d_i = context__.vals_i("d_i")[(1 - 1)]; current_statement__ = 346; context__.validate_dims("data initialization", "d_r", "double", std::vector{}); d_r = std::numeric_limits::quiet_NaN(); + current_statement__ = 346; + d_r = context__.vals_r("d_r")[(1 - 1)]; current_statement__ = 347; context__.validate_dims("data initialization", "d_complex", "double", std::vector{static_cast(2)}); d_complex = std::complex(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()); + current_statement__ = 347; + d_complex = context__.vals_c("d_complex")[(1 - 1)]; current_statement__ = 348; context__.validate_dims("data initialization", "d_complex_array", "double", diff --git a/test/integration/good/code-gen/cpp.expected b/test/integration/good/code-gen/cpp.expected index 234bd626b..e3072947d 100644 --- a/test/integration/good/code-gen/cpp.expected +++ b/test/integration/good/code-gen/cpp.expected @@ -52,6 +52,8 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> std::vector{}); J = std::numeric_limits::min(); current_statement__ = 9; + J = context__.vals_i("J")[(1 - 1)]; + current_statement__ = 9; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 10; stan::math::validate_non_negative_index("y", "J", J); @@ -59,6 +61,8 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> context__.validate_dims("data initialization", "y", "double", std::vector{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); + current_statement__ = 11; + y = context__.vals_r("y"); current_statement__ = 12; stan::math::validate_non_negative_index("sigma", "J", J); current_statement__ = 13; @@ -67,6 +71,8 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> sigma = std::vector(J, std::numeric_limits::quiet_NaN()); current_statement__ = 13; + sigma = context__.vals_r("sigma"); + current_statement__ = 13; stan::math::check_greater_or_equal(function__, "sigma", sigma, 0); current_statement__ = 14; stan::math::validate_non_negative_index("theta_tilde", "J", J); @@ -542,6 +548,8 @@ class _8start_with_number_model final : public model_base_crtp<_8start_with_numb context__.validate_dims("data initialization", "good_model", "int", std::vector{}); good_model = std::numeric_limits::min(); + current_statement__ = 2; + good_model = context__.vals_i("good_model")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -2348,50 +2356,74 @@ class cpp_reserved_words_model final : public model_base_crtp{}); _stan_class = std::numeric_limits::quiet_NaN(); + current_statement__ = 64; + _stan_class = context__.vals_r("class")[(1 - 1)]; current_statement__ = 65; context__.validate_dims("data initialization", "compl", "double", std::vector{}); _stan_compl = std::numeric_limits::quiet_NaN(); + current_statement__ = 65; + _stan_compl = context__.vals_r("compl")[(1 - 1)]; current_statement__ = 66; context__.validate_dims("data initialization", "const", "double", std::vector{}); _stan_const = std::numeric_limits::quiet_NaN(); + current_statement__ = 66; + _stan_const = context__.vals_r("const")[(1 - 1)]; current_statement__ = 67; context__.validate_dims("data initialization", "constexpr", "double", std::vector{}); _stan_constexpr = std::numeric_limits::quiet_NaN(); + current_statement__ = 67; + _stan_constexpr = context__.vals_r("constexpr")[(1 - 1)]; current_statement__ = 68; context__.validate_dims("data initialization", "const_cast", "double", std::vector{}); _stan_const_cast = std::numeric_limits::quiet_NaN(); + current_statement__ = 68; + _stan_const_cast = context__.vals_r("const_cast")[(1 - 1)]; current_statement__ = 69; context__.validate_dims("data initialization", "decltype", "double", std::vector{}); _stan_decltype = std::numeric_limits::quiet_NaN(); + current_statement__ = 69; + _stan_decltype = context__.vals_r("decltype")[(1 - 1)]; current_statement__ = 70; context__.validate_dims("data initialization", "default", "double", std::vector{}); _stan_default = std::numeric_limits::quiet_NaN(); + current_statement__ = 70; + _stan_default = context__.vals_r("default")[(1 - 1)]; current_statement__ = 71; context__.validate_dims("data initialization", "delete", "double", std::vector{}); _stan_delete = std::numeric_limits::quiet_NaN(); + current_statement__ = 71; + _stan_delete = context__.vals_r("delete")[(1 - 1)]; current_statement__ = 72; context__.validate_dims("data initialization", "do", "double", std::vector{}); _stan_do = std::numeric_limits::quiet_NaN(); + current_statement__ = 72; + _stan_do = context__.vals_r("do")[(1 - 1)]; current_statement__ = 73; context__.validate_dims("data initialization", "double", "double", std::vector{}); _stan_double = std::numeric_limits::quiet_NaN(); + current_statement__ = 73; + _stan_double = context__.vals_r("double")[(1 - 1)]; current_statement__ = 74; context__.validate_dims("data initialization", "dynamic_cast", "double", std::vector{}); _stan_dynamic_cast = std::numeric_limits::quiet_NaN(); + current_statement__ = 74; + _stan_dynamic_cast = context__.vals_r("dynamic_cast")[(1 - 1)]; current_statement__ = 75; context__.validate_dims("data initialization", "enum", "double", std::vector{}); _stan_enum = std::numeric_limits::quiet_NaN(); + current_statement__ = 75; + _stan_enum = context__.vals_r("enum")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -3401,6 +3433,8 @@ class data_only_functions_model final : public model_base_crtp{}); N = std::numeric_limits::min(); + current_statement__ = 8; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 9; stan::math::validate_non_negative_index("d", "N", N); current_statement__ = 10; @@ -4609,6 +4643,8 @@ class eight_schools_ncp_model final : public model_base_crtp{}); J = std::numeric_limits::min(); current_statement__ = 9; + J = context__.vals_i("J")[(1 - 1)]; + current_statement__ = 9; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 10; stan::math::validate_non_negative_index("y", "J", J); @@ -4616,6 +4652,8 @@ class eight_schools_ncp_model final : public model_base_crtp{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); + current_statement__ = 11; + y = context__.vals_r("y"); current_statement__ = 12; stan::math::validate_non_negative_index("sigma", "J", J); current_statement__ = 13; @@ -4624,6 +4662,8 @@ class eight_schools_ncp_model final : public model_base_crtp(J, std::numeric_limits::quiet_NaN()); current_statement__ = 13; + sigma = context__.vals_r("sigma"); + current_statement__ = 13; stan::math::check_greater_or_equal(function__, "sigma", sigma, 0); current_statement__ = 14; stan::math::validate_non_negative_index("theta_tilde", "J", J); @@ -5612,10 +5652,14 @@ class jacobian_pe_model final : public model_base_crtp { context__.validate_dims("data initialization", "ub", "double", std::vector{}); ub = std::numeric_limits::quiet_NaN(); + current_statement__ = 8; + ub = context__.vals_r("ub")[(1 - 1)]; current_statement__ = 9; context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); + current_statement__ = 9; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 10; stan::math::validate_non_negative_index("b_vec_raw", "N", N); current_statement__ = 11; @@ -10598,18 +10642,24 @@ class mother_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 190; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 190; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 191; context__.validate_dims("data initialization", "M", "int", std::vector{}); M = std::numeric_limits::min(); current_statement__ = 191; + M = context__.vals_i("M")[(1 - 1)]; + current_statement__ = 191; stan::math::check_greater_or_equal(function__, "M", M, 0); current_statement__ = 192; context__.validate_dims("data initialization", "K", "int", std::vector{}); K = std::numeric_limits::min(); current_statement__ = 192; + K = context__.vals_i("K")[(1 - 1)]; + current_statement__ = 192; stan::math::check_greater_or_equal(function__, "K", K, 0); current_statement__ = 192; stan::math::check_less_or_equal(function__, "K", K, (N * M)); @@ -10620,6 +10670,8 @@ class mother_model final : public model_base_crtp { std::vector{static_cast(N)}); d_int_1d_ar = std::vector(N, std::numeric_limits::min()); current_statement__ = 194; + d_int_1d_ar = context__.vals_i("d_int_1d_ar"); + current_statement__ = 194; stan::math::check_less_or_equal(function__, "d_int_1d_ar", d_int_1d_ar, N); current_statement__ = 195; @@ -10661,6 +10713,8 @@ class mother_model final : public model_base_crtp { std::vector{}); J = std::numeric_limits::quiet_NaN(); current_statement__ = 199; + J = context__.vals_r("J")[(1 - 1)]; + current_statement__ = 199; stan::math::check_greater_or_equal(function__, "J", J, -(2.0)); current_statement__ = 199; stan::math::check_less_or_equal(function__, "J", J, 2.0); @@ -10671,6 +10725,8 @@ class mother_model final : public model_base_crtp { "double", std::vector{static_cast(N)}); d_real_1d_ar = std::vector(N, std::numeric_limits::quiet_NaN()); + current_statement__ = 201; + d_real_1d_ar = context__.vals_r("d_real_1d_ar"); current_statement__ = 202; stan::math::validate_non_negative_index("d_real_3d_ar", "N", N); current_statement__ = 203; @@ -11079,12 +11135,16 @@ class mother_model final : public model_base_crtp { context__.validate_dims("data initialization", "d_int", "int", std::vector{}); d_int = std::numeric_limits::min(); + current_statement__ = 241; + d_int = context__.vals_i("d_int")[(1 - 1)]; current_statement__ = 242; stan::math::validate_non_negative_index("d_int_array", "d_int", d_int); current_statement__ = 243; context__.validate_dims("data initialization", "d_int_array", "int", std::vector{static_cast(d_int)}); d_int_array = std::vector(d_int, std::numeric_limits::min()); + current_statement__ = 243; + d_int_array = context__.vals_i("d_int_array"); current_statement__ = 244; stan::math::validate_non_negative_index("d_int_array_2d", "d_int", d_int); @@ -11142,6 +11202,8 @@ class mother_model final : public model_base_crtp { context__.validate_dims("data initialization", "d_real", "double", std::vector{}); d_real = std::numeric_limits::quiet_NaN(); + current_statement__ = 248; + d_real = context__.vals_r("d_real")[(1 - 1)]; current_statement__ = 249; stan::math::validate_non_negative_index("d_real_array", "d_int", d_int); current_statement__ = 250; @@ -11149,6 +11211,8 @@ class mother_model final : public model_base_crtp { "double", std::vector{static_cast(d_int)}); d_real_array = std::vector(d_int, std::numeric_limits::quiet_NaN()); + current_statement__ = 250; + d_real_array = context__.vals_r("d_real_array"); current_statement__ = 251; stan::math::validate_non_negative_index("d_real_array_2d", "d_int", d_int); @@ -17225,43 +17289,61 @@ class motherHOF_model final : public model_base_crtp { std::vector{}); T = std::numeric_limits::min(); current_statement__ = 123; + T = context__.vals_i("T")[(1 - 1)]; + current_statement__ = 123; stan::math::check_greater_or_equal(function__, "T", T, 1); current_statement__ = 124; context__.validate_dims("data initialization", "y0_d", "double", std::vector{static_cast(2)}); y0_d = std::vector(2, std::numeric_limits::quiet_NaN()); + current_statement__ = 124; + y0_d = context__.vals_r("y0_d"); current_statement__ = 125; context__.validate_dims("data initialization", "t0", "double", std::vector{}); t0 = std::numeric_limits::quiet_NaN(); + current_statement__ = 125; + t0 = context__.vals_r("t0")[(1 - 1)]; current_statement__ = 126; stan::math::validate_non_negative_index("ts", "T", T); current_statement__ = 127; context__.validate_dims("data initialization", "ts", "double", std::vector{static_cast(T)}); ts = std::vector(T, std::numeric_limits::quiet_NaN()); + current_statement__ = 127; + ts = context__.vals_r("ts"); current_statement__ = 128; context__.validate_dims("data initialization", "theta_d", "double", std::vector{static_cast(1)}); theta_d = std::vector(1, std::numeric_limits::quiet_NaN()); + current_statement__ = 128; + theta_d = context__.vals_r("theta_d"); current_statement__ = 129; context__.validate_dims("data initialization", "x", "double", std::vector{static_cast(0)}); x = std::vector(0, std::numeric_limits::quiet_NaN()); + current_statement__ = 129; + x = context__.vals_r("x"); current_statement__ = 130; context__.validate_dims("data initialization", "x_int", "int", std::vector{static_cast(0)}); x_int = std::vector(0, std::numeric_limits::min()); + current_statement__ = 130; + x_int = context__.vals_i("x_int"); current_statement__ = 131; context__.validate_dims("data initialization", "x_d_r", "double", std::vector{static_cast(0)}); x_d_r = std::vector(0, std::numeric_limits::quiet_NaN()); + current_statement__ = 131; + x_d_r = context__.vals_r("x_d_r"); current_statement__ = 132; context__.validate_dims("data initialization", "x_d_i", "int", std::vector{static_cast(0)}); x_d_i = std::vector(0, std::numeric_limits::min()); + current_statement__ = 132; + x_d_i = context__.vals_i("x_d_i"); current_statement__ = 133; context__.validate_dims("data initialization", "shared_params_d", "double", std::vector{static_cast(3)}); @@ -19801,20 +19883,28 @@ class new_integrate_interface_model final : public model_base_crtp{}); N = std::numeric_limits::min(); + current_statement__ = 601; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 602; context__.validate_dims("data initialization", "id", "int", std::vector{}); id = std::numeric_limits::min(); + current_statement__ = 602; + id = context__.vals_i("id")[(1 - 1)]; current_statement__ = 603; context__.validate_dims("data initialization", "rd", "double", std::vector{}); rd = std::numeric_limits::quiet_NaN(); + current_statement__ = 603; + rd = context__.vals_r("rd")[(1 - 1)]; current_statement__ = 604; stan::math::validate_non_negative_index("rad", "N", N); current_statement__ = 605; context__.validate_dims("data initialization", "rad", "double", std::vector{static_cast(N)}); rad = std::vector(N, std::numeric_limits::quiet_NaN()); + current_statement__ = 605; + rad = context__.vals_r("rad"); current_statement__ = 606; stan::math::validate_non_negative_index("vd", "N", N); current_statement__ = 607; @@ -25370,6 +25460,8 @@ class old_integrate_interface_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 18; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 18; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 19; stan::math::validate_non_negative_index("ts", "N", N); @@ -25377,11 +25469,15 @@ class old_integrate_interface_model final : public model_base_crtp{static_cast(N)}); ts = std::vector(N, std::numeric_limits::quiet_NaN()); + current_statement__ = 20; + ts = context__.vals_r("ts"); current_statement__ = 21; context__.validate_dims("data initialization", "y_init", "double", std::vector{static_cast(2)}); y_init = std::vector(2, std::numeric_limits::quiet_NaN()); + current_statement__ = 21; + y_init = context__.vals_r("y_init"); current_statement__ = 22; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 23; @@ -26278,12 +26374,16 @@ class optimize_glm_model final : public model_base_crtp { std::vector{}); k = std::numeric_limits::min(); current_statement__ = 176; + k = context__.vals_i("k")[(1 - 1)]; + current_statement__ = 176; stan::math::check_greater_or_equal(function__, "k", k, 1); current_statement__ = 177; context__.validate_dims("data initialization", "n", "int", std::vector{}); n = std::numeric_limits::min(); current_statement__ = 177; + n = context__.vals_i("n")[(1 - 1)]; + current_statement__ = 177; stan::math::check_greater_or_equal(function__, "n", n, 0); current_statement__ = 178; stan::math::validate_non_negative_index("X_d", "n", n); @@ -26384,20 +26484,28 @@ class optimize_glm_model final : public model_base_crtp { context__.validate_dims("data initialization", "y_vi_d", "int", std::vector{static_cast(n)}); y_vi_d = std::vector(n, std::numeric_limits::min()); + current_statement__ = 189; + y_vi_d = context__.vals_i("y_vi_d"); current_statement__ = 190; stan::math::validate_non_negative_index("y2_vi_d", "n", n); current_statement__ = 191; context__.validate_dims("data initialization", "y2_vi_d", "int", std::vector{static_cast(n)}); y2_vi_d = std::vector(n, std::numeric_limits::min()); + current_statement__ = 191; + y2_vi_d = context__.vals_i("y2_vi_d"); current_statement__ = 192; context__.validate_dims("data initialization", "y_s_d", "int", std::vector{}); y_s_d = std::numeric_limits::min(); + current_statement__ = 192; + y_s_d = context__.vals_i("y_s_d")[(1 - 1)]; current_statement__ = 193; context__.validate_dims("data initialization", "y_r_d", "double", std::vector{}); y_r_d = std::numeric_limits::quiet_NaN(); + current_statement__ = 193; + y_r_d = context__.vals_r("y_r_d")[(1 - 1)]; current_statement__ = 194; k_td = std::numeric_limits::min(); current_statement__ = 195; @@ -28951,10 +29059,14 @@ class param_constraint_model final : public model_base_crtp{}); nt = std::numeric_limits::min(); + current_statement__ = 3; + nt = context__.vals_i("nt")[(1 - 1)]; current_statement__ = 4; context__.validate_dims("data initialization", "NS", "int", std::vector{}); NS = std::numeric_limits::min(); + current_statement__ = 4; + NS = context__.vals_i("NS")[(1 - 1)]; current_statement__ = 5; stan::math::validate_non_negative_index("L_Omega", "nt", nt); current_statement__ = 6; @@ -30579,10 +30691,14 @@ class recursive_slicing_model final : public model_base_crtp{}); N = std::numeric_limits::min(); + current_statement__ = 4; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 5; context__.validate_dims("data initialization", "times", "int", std::vector{}); times = std::numeric_limits::min(); + current_statement__ = 5; + times = context__.vals_i("times")[(1 - 1)]; current_statement__ = 6; stan::math::validate_non_negative_index("gamma", "times", times); current_statement__ = 7; @@ -37190,12 +37306,16 @@ class reduce_sum_m3_model final : public model_base_crtp { context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); + current_statement__ = 67; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 68; stan::math::validate_non_negative_index("y1d", "N", N); current_statement__ = 69; context__.validate_dims("data initialization", "y1d", "double", std::vector{static_cast(N)}); y1d = std::vector(N, std::numeric_limits::quiet_NaN()); + current_statement__ = 69; + y1d = context__.vals_r("y1d"); current_statement__ = 70; stan::math::validate_non_negative_index("y2d", "N", N); current_statement__ = 71; @@ -37400,6 +37520,8 @@ class reduce_sum_m3_model final : public model_base_crtp { context__.validate_dims("data initialization", "y9d", "double", std::vector{}); y9d = std::numeric_limits::quiet_NaN(); + current_statement__ = 96; + y9d = context__.vals_r("y9d")[(1 - 1)]; current_statement__ = 97; stan::math::validate_non_negative_index("y10d", "N", N); current_statement__ = 98; @@ -37469,12 +37591,16 @@ class reduce_sum_m3_model final : public model_base_crtp { context__.validate_dims("data initialization", "y13d", "int", std::vector{}); y13d = std::numeric_limits::min(); + current_statement__ = 104; + y13d = context__.vals_i("y13d")[(1 - 1)]; current_statement__ = 105; stan::math::validate_non_negative_index("y14d", "N", N); current_statement__ = 106; context__.validate_dims("data initialization", "y14d", "int", std::vector{static_cast(N)}); y14d = std::vector(N, std::numeric_limits::min()); + current_statement__ = 106; + y14d = context__.vals_i("y14d"); current_statement__ = 107; stan::math::validate_non_negative_index("y15d", "N", N); current_statement__ = 108; @@ -42226,6 +42352,8 @@ class tilde_block_model final : public model_base_crtp { context__.validate_dims("data initialization", "t", "int", std::vector{}); t = std::numeric_limits::min(); + current_statement__ = 7; + t = context__.vals_i("t")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -42749,18 +42877,24 @@ class transform_model final : public model_base_crtp { std::vector{}); n = std::numeric_limits::min(); current_statement__ = 37; + n = context__.vals_i("n")[(1 - 1)]; + current_statement__ = 37; stan::math::check_greater_or_equal(function__, "n", n, 1); current_statement__ = 38; context__.validate_dims("data initialization", "m", "int", std::vector{}); m = std::numeric_limits::min(); current_statement__ = 38; + m = context__.vals_i("m")[(1 - 1)]; + current_statement__ = 38; stan::math::check_greater_or_equal(function__, "m", m, 1); current_statement__ = 39; context__.validate_dims("data initialization", "k", "int", std::vector{}); k = std::numeric_limits::min(); current_statement__ = 39; + k = context__.vals_i("k")[(1 - 1)]; + current_statement__ = 39; stan::math::check_greater_or_equal(function__, "k", k, 1); current_statement__ = 40; stan::math::validate_non_negative_index("ds", "n", n); @@ -45693,10 +45827,14 @@ class truncate_model final : public model_base_crtp { context__.validate_dims("data initialization", "n", "int", std::vector{}); n = std::numeric_limits::min(); + current_statement__ = 19; + n = context__.vals_i("n")[(1 - 1)]; current_statement__ = 20; context__.validate_dims("data initialization", "x", "double", std::vector{}); x = std::numeric_limits::quiet_NaN(); + current_statement__ = 20; + x = context__.vals_r("x")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -46991,6 +47129,8 @@ class variable_named_context_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 4; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 4; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 5; stan::math::validate_non_negative_index("context", "N", N); @@ -47482,16 +47622,22 @@ class vector_truncate_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 87; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 87; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 88; context__.validate_dims("data initialization", "L", "double", std::vector{}); L = std::numeric_limits::quiet_NaN(); + current_statement__ = 88; + L = context__.vals_r("L")[(1 - 1)]; current_statement__ = 89; context__.validate_dims("data initialization", "U", "double", std::vector{}); U = std::numeric_limits::quiet_NaN(); current_statement__ = 89; + U = context__.vals_r("U")[(1 - 1)]; + current_statement__ = 89; stan::math::check_greater_or_equal(function__, "U", U, L); current_statement__ = 90; stan::math::validate_non_negative_index("y", "N", N); @@ -47500,6 +47646,8 @@ class vector_truncate_model final : public model_base_crtp{static_cast(N)}); y = std::vector(N, std::numeric_limits::quiet_NaN()); current_statement__ = 91; + y = context__.vals_r("y"); + current_statement__ = 91; stan::math::check_greater_or_equal(function__, "y", y, L); current_statement__ = 91; stan::math::check_less_or_equal(function__, "y", y, U); diff --git a/test/integration/good/code-gen/expressions/cpp.expected b/test/integration/good/code-gen/expressions/cpp.expected index 29bf0eb56..f1fc09eaf 100644 --- a/test/integration/good/code-gen/expressions/cpp.expected +++ b/test/integration/good/code-gen/expressions/cpp.expected @@ -54,10 +54,14 @@ class operators_model final : public model_base_crtp { context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); + current_statement__ = 12; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 13; context__.validate_dims("data initialization", "r", "double", std::vector{}); r = std::numeric_limits::quiet_NaN(); + current_statement__ = 13; + r = context__.vals_r("r")[(1 - 1)]; current_statement__ = 14; stan::math::validate_non_negative_index("v", "N", N); current_statement__ = 15; @@ -789,6 +793,8 @@ class simple_function_model final : public model_base_crtp{}); N = std::numeric_limits::min(); + current_statement__ = 1; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 2; stan::math::validate_non_negative_index("m", "N", N); current_statement__ = 3; @@ -1131,6 +1137,8 @@ class ternary_if_model final : public model_base_crtp { context__.validate_dims("data initialization", "y", "double", std::vector{}); y = std::numeric_limits::quiet_NaN(); + current_statement__ = 10; + y = context__.vals_r("y")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } diff --git a/test/integration/good/code-gen/lir.expected b/test/integration/good/code-gen/lir.expected index 74c0758b8..53a0f6fb0 100644 --- a/test/integration/good/code-gen/lir.expected +++ b/test/integration/good/code-gen/lir.expected @@ -16208,6 +16208,11 @@ (InitializerExpr (StdVector (TypeLiteral size_t)) ())))) (Expression (Assign (Var N) (FunCall std::numeric_limits::min () ()))) (Expression (Assign (Var current_statement__) (Literal 190))) + (Expression + (Assign (Var N) + (Index (MethodCall (Var context__) vals_i () ((Literal "\"N\""))) + (Parens (BinOp (Literal 1) Subtract (Literal 1)))))) + (Expression (Assign (Var current_statement__) (Literal 190))) (Expression (FunCall stan::math::check_greater_or_equal () ((Var function__) (Literal "\"N\"") (Var N) (Literal 0)))) @@ -16218,6 +16223,11 @@ (InitializerExpr (StdVector (TypeLiteral size_t)) ())))) (Expression (Assign (Var M) (FunCall std::numeric_limits::min () ()))) (Expression (Assign (Var current_statement__) (Literal 191))) + (Expression + (Assign (Var M) + (Index (MethodCall (Var context__) vals_i () ((Literal "\"M\""))) + (Parens (BinOp (Literal 1) Subtract (Literal 1)))))) + (Expression (Assign (Var current_statement__) (Literal 191))) (Expression (FunCall stan::math::check_greater_or_equal () ((Var function__) (Literal "\"M\"") (Var M) (Literal 0)))) @@ -16228,6 +16238,11 @@ (InitializerExpr (StdVector (TypeLiteral size_t)) ())))) (Expression (Assign (Var K) (FunCall std::numeric_limits::min () ()))) (Expression (Assign (Var current_statement__) (Literal 192))) + (Expression + (Assign (Var K) + (Index (MethodCall (Var context__) vals_i () ((Literal "\"K\""))) + (Parens (BinOp (Literal 1) Subtract (Literal 1)))))) + (Expression (Assign (Var current_statement__) (Literal 192))) (Expression (FunCall stan::math::check_greater_or_equal () ((Var function__) (Literal "\"K\"") (Var K) (Literal 0)))) @@ -16252,6 +16267,10 @@ (Constructor (StdVector Int) ((Var N) (FunCall std::numeric_limits::min () ()))))) (Expression (Assign (Var current_statement__) (Literal 194))) + (Expression + (Assign (Var d_int_1d_ar) + (MethodCall (Var context__) vals_i () ((Literal "\"d_int_1d_ar\""))))) + (Expression (Assign (Var current_statement__) (Literal 194))) (Expression (FunCall stan::math::check_less_or_equal () ((Var function__) (Literal "\"d_int_1d_ar\"") (Var d_int_1d_ar) (Var N)))) @@ -16332,6 +16351,11 @@ (Expression (Assign (Var J) (FunCall std::numeric_limits::quiet_NaN () ()))) (Expression (Assign (Var current_statement__) (Literal 199))) + (Expression + (Assign (Var J) + (Index (MethodCall (Var context__) vals_r () ((Literal "\"J\""))) + (Parens (BinOp (Literal 1) Subtract (Literal 1)))))) + (Expression (Assign (Var current_statement__) (Literal 199))) (Expression (FunCall stan::math::check_greater_or_equal () ((Var function__) (Literal "\"J\"") (Var J) (PMinus (Literal 2.0))))) @@ -16354,6 +16378,10 @@ (Assign (Var d_real_1d_ar) (Constructor (StdVector Double) ((Var N) (FunCall std::numeric_limits::quiet_NaN () ()))))) + (Expression (Assign (Var current_statement__) (Literal 201))) + (Expression + (Assign (Var d_real_1d_ar) + (MethodCall (Var context__) vals_r () ((Literal "\"d_real_1d_ar\""))))) (Expression (Assign (Var current_statement__) (Literal 202))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17187,6 +17215,11 @@ (Literal "\"int\"") (InitializerExpr (StdVector (TypeLiteral size_t)) ())))) (Expression (Assign (Var d_int) (FunCall std::numeric_limits::min () ()))) + (Expression (Assign (Var current_statement__) (Literal 241))) + (Expression + (Assign (Var d_int) + (Index (MethodCall (Var context__) vals_i () ((Literal "\"d_int\""))) + (Parens (BinOp (Literal 1) Subtract (Literal 1)))))) (Expression (Assign (Var current_statement__) (Literal 242))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17202,6 +17235,10 @@ (Assign (Var d_int_array) (Constructor (StdVector Int) ((Var d_int) (FunCall std::numeric_limits::min () ()))))) + (Expression (Assign (Var current_statement__) (Literal 243))) + (Expression + (Assign (Var d_int_array) + (MethodCall (Var context__) vals_i () ((Literal "\"d_int_array\""))))) (Expression (Assign (Var current_statement__) (Literal 244))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17313,6 +17350,11 @@ (InitializerExpr (StdVector (TypeLiteral size_t)) ())))) (Expression (Assign (Var d_real) (FunCall std::numeric_limits::quiet_NaN () ()))) + (Expression (Assign (Var current_statement__) (Literal 248))) + (Expression + (Assign (Var d_real) + (Index (MethodCall (Var context__) vals_r () ((Literal "\"d_real\""))) + (Parens (BinOp (Literal 1) Subtract (Literal 1)))))) (Expression (Assign (Var current_statement__) (Literal 249))) (Expression (FunCall stan::math::validate_non_negative_index () @@ -17328,6 +17370,10 @@ (Assign (Var d_real_array) (Constructor (StdVector Double) ((Var d_int) (FunCall std::numeric_limits::quiet_NaN () ()))))) + (Expression (Assign (Var current_statement__) (Literal 250))) + (Expression + (Assign (Var d_real_array) + (MethodCall (Var context__) vals_r () ((Literal "\"d_real_array\""))))) (Expression (Assign (Var current_statement__) (Literal 251))) (Expression (FunCall stan::math::validate_non_negative_index () diff --git a/test/integration/good/code-gen/ode/cpp.expected b/test/integration/good/code-gen/ode/cpp.expected index ecb14f96d..ddb0b2750 100644 --- a/test/integration/good/code-gen/ode/cpp.expected +++ b/test/integration/good/code-gen/ode/cpp.expected @@ -242,14 +242,20 @@ class ode_adjoint_test_model_model final : public model_base_crtp{}); N = std::numeric_limits::min(); + current_statement__ = 10; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 11; context__.validate_dims("data initialization", "M", "int", std::vector{}); M = std::numeric_limits::min(); + current_statement__ = 11; + M = context__.vals_i("M")[(1 - 1)]; current_statement__ = 12; context__.validate_dims("data initialization", "i", "int", std::vector{}); i = std::numeric_limits::min(); + current_statement__ = 12; + i = context__.vals_i("i")[(1 - 1)]; current_statement__ = 13; rel_tol_f = std::numeric_limits::quiet_NaN(); current_statement__ = 14; @@ -1123,6 +1129,8 @@ class overloaded_ode_model final : public model_base_crtp std::vector{}); N_t = std::numeric_limits::min(); current_statement__ = 27; + N_t = context__.vals_i("N_t")[(1 - 1)]; + current_statement__ = 27; stan::math::check_greater_or_equal(function__, "N_t", N_t, 0); current_statement__ = 28; stan::math::validate_non_negative_index("t", "N_t", N_t); @@ -1130,6 +1138,8 @@ class overloaded_ode_model final : public model_base_crtp context__.validate_dims("data initialization", "t", "double", std::vector{static_cast(N_t)}); t = std::vector(N_t, std::numeric_limits::quiet_NaN()); + current_statement__ = 29; + t = context__.vals_r("t"); current_statement__ = 30; context__.validate_dims("data initialization", "y0", "double", std::vector{static_cast(4)}); @@ -1153,12 +1163,16 @@ class overloaded_ode_model final : public model_base_crtp context__.validate_dims("data initialization", "stoi", "int", std::vector{static_cast(N_t)}); stoi = std::vector(N_t, std::numeric_limits::min()); + current_statement__ = 32; + stoi = context__.vals_i("stoi"); current_statement__ = 33; stan::math::validate_non_negative_index("B", "N_t", N_t); current_statement__ = 34; context__.validate_dims("data initialization", "B", "double", std::vector{static_cast(N_t)}); B = std::vector(N_t, std::numeric_limits::quiet_NaN()); + current_statement__ = 34; + B = context__.vals_r("B"); current_statement__ = 35; t0 = std::numeric_limits::quiet_NaN(); current_statement__ = 35; diff --git a/test/integration/good/code-gen/opencl/cpp.expected b/test/integration/good/code-gen/opencl/cpp.expected index 7c26459d9..2a6e0c81f 100644 --- a/test/integration/good/code-gen/opencl/cpp.expected +++ b/test/integration/good/code-gen/opencl/cpp.expected @@ -817,16 +817,22 @@ class distributions_model final : public model_base_crtp { context__.validate_dims("data initialization", "d_int", "int", std::vector{}); d_int = std::numeric_limits::min(); + current_statement__ = 756; + d_int = context__.vals_i("d_int")[(1 - 1)]; current_statement__ = 757; stan::math::validate_non_negative_index("d_int_array", "d_int", d_int); current_statement__ = 758; context__.validate_dims("data initialization", "d_int_array", "int", std::vector{static_cast(d_int)}); d_int_array = std::vector(d_int, std::numeric_limits::min()); + current_statement__ = 758; + d_int_array = context__.vals_i("d_int_array"); current_statement__ = 759; context__.validate_dims("data initialization", "d_real", "double", std::vector{}); d_real = std::numeric_limits::quiet_NaN(); + current_statement__ = 759; + d_real = context__.vals_r("d_real")[(1 - 1)]; current_statement__ = 760; stan::math::validate_non_negative_index("d_real_array", "d_int", d_int); current_statement__ = 761; @@ -834,6 +840,8 @@ class distributions_model final : public model_base_crtp { "double", std::vector{static_cast(d_int)}); d_real_array = std::vector(d_int, std::numeric_limits::quiet_NaN()); + current_statement__ = 761; + d_real_array = context__.vals_r("d_real_array"); current_statement__ = 762; stan::math::validate_non_negative_index("d_vector", "d_int", d_int); current_statement__ = 763; @@ -10476,16 +10484,22 @@ class restricted_model final : public model_base_crtp { context__.validate_dims("data initialization", "d_int", "int", std::vector{}); d_int = std::numeric_limits::min(); + current_statement__ = 25; + d_int = context__.vals_i("d_int")[(1 - 1)]; current_statement__ = 26; stan::math::validate_non_negative_index("d_int_array", "d_int", d_int); current_statement__ = 27; context__.validate_dims("data initialization", "d_int_array", "int", std::vector{static_cast(d_int)}); d_int_array = std::vector(d_int, std::numeric_limits::min()); + current_statement__ = 27; + d_int_array = context__.vals_i("d_int_array"); current_statement__ = 28; context__.validate_dims("data initialization", "d_real", "double", std::vector{}); d_real = std::numeric_limits::quiet_NaN(); + current_statement__ = 28; + d_real = context__.vals_r("d_real")[(1 - 1)]; current_statement__ = 29; stan::math::validate_non_negative_index("d_real_array", "d_int", d_int); current_statement__ = 30; @@ -10493,6 +10507,8 @@ class restricted_model final : public model_base_crtp { "double", std::vector{static_cast(d_int)}); d_real_array = std::vector(d_int, std::numeric_limits::quiet_NaN()); + current_statement__ = 30; + d_real_array = context__.vals_r("d_real_array"); current_statement__ = 31; stan::math::validate_non_negative_index("d_vector", "d_int", d_int); current_statement__ = 32; diff --git a/test/integration/good/code-gen/profiling/cpp.expected b/test/integration/good/code-gen/profiling/cpp.expected index 10c98fc33..eb08a15fd 100644 --- a/test/integration/good/code-gen/profiling/cpp.expected +++ b/test/integration/good/code-gen/profiling/cpp.expected @@ -69,6 +69,8 @@ class simple_function_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 21; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 21; stan::math::check_greater_or_equal(function__, "N", N, 1); current_statement__ = 22; stan::math::validate_non_negative_index("x", "N", N); @@ -76,6 +78,8 @@ class simple_function_model final : public model_base_crtp{static_cast(N)}); x = std::vector(N, std::numeric_limits::quiet_NaN()); + current_statement__ = 23; + x = context__.vals_r("x"); current_statement__ = 24; stan::math::validate_non_negative_index("y", "N", N); current_statement__ = 25; diff --git a/test/integration/good/code-gen/profiling/transformed_mir.expected b/test/integration/good/code-gen/profiling/transformed_mir.expected index ac6ae247a..74fcfec9c 100644 --- a/test/integration/good/code-gen/profiling/transformed_mir.expected +++ b/test/integration/good/code-gen/profiling/transformed_mir.expected @@ -32,19 +32,21 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable N) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -69,13 +71,15 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str x)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable x) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str x)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) diff --git a/test/integration/good/code-gen/transformed_mir.expected b/test/integration/good/code-gen/transformed_mir.expected index faa264833..4a2ca57cf 100644 --- a/test/integration/good/code-gen/transformed_mir.expected +++ b/test/integration/good/code-gen/transformed_mir.expected @@ -2769,19 +2769,21 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable N) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -2796,19 +2798,21 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable M) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -2823,19 +2827,21 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str K)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable K) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -2880,13 +2886,15 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_int_1d_ar)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_int_1d_ar) ()) (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_int_1d_ar)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -3051,19 +3059,21 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id J) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str J)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable J) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str J)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -3112,13 +3122,15 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_real_1d_ar)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_real_1d_ar) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_real_1d_ar)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4790,19 +4802,21 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_int) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_int)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_int) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4818,13 +4832,15 @@ (Sized (SArray SInt ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_int_array)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_int_array) ()) (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_int_array)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -5044,19 +5060,21 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_real) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_real)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_real) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -5072,13 +5090,15 @@ (Sized (SArray SReal ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str d_real_array)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable d_real_array) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str d_real_array)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) diff --git a/test/integration/good/compiler-optimizations/cpp.expected b/test/integration/good/compiler-optimizations/cpp.expected index 8d3e54f96..71cd8f401 100644 --- a/test/integration/good/compiler-optimizations/cpp.expected +++ b/test/integration/good/compiler-optimizations/cpp.expected @@ -2084,6 +2084,8 @@ class ad_level_failing_model final : public model_base_crtp{}); N_t = std::numeric_limits::min(); current_statement__ = 16; + N_t = context__.vals_i("N_t")[(1 - 1)]; + current_statement__ = 16; stan::math::check_greater_or_equal(function__, "N_t", N_t, 0); current_statement__ = 17; stan::math::validate_non_negative_index("t", "N_t", N_t); @@ -2091,16 +2093,22 @@ class ad_level_failing_model final : public model_base_crtp{static_cast(N_t)}); t = std::vector(N_t, std::numeric_limits::quiet_NaN()); + current_statement__ = 18; + t = context__.vals_r("t"); current_statement__ = 19; context__.validate_dims("data initialization", "y0", "double", std::vector{static_cast(4)}); y0 = std::vector(4, std::numeric_limits::quiet_NaN()); + current_statement__ = 19; + y0 = context__.vals_r("y0"); current_statement__ = 20; stan::math::validate_non_negative_index("stoi_hat", "N_t", N_t); current_statement__ = 21; context__.validate_dims("data initialization", "stoi_hat", "int", std::vector{static_cast(N_t)}); stoi_hat = std::vector(N_t, std::numeric_limits::min()); + current_statement__ = 21; + stoi_hat = context__.vals_i("stoi_hat"); current_statement__ = 22; stan::math::validate_non_negative_index("B_hat", "N_t", N_t); current_statement__ = 23; @@ -2108,6 +2116,8 @@ class ad_level_failing_model final : public model_base_crtp{static_cast(N_t)}); B_hat = std::vector(N_t, std::numeric_limits::quiet_NaN()); + current_statement__ = 23; + B_hat = context__.vals_r("B_hat"); current_statement__ = 24; t0 = std::numeric_limits::quiet_NaN(); current_statement__ = 24; @@ -4500,6 +4510,8 @@ class copy_prop_profile_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 13; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 13; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 14; stan::math::validate_non_negative_index("X", "N", N); @@ -5318,12 +5330,16 @@ class copy_fail_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 33; + nind = context__.vals_i("nind")[(1 - 1)]; + current_statement__ = 33; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 34; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 34; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 34; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 35; @@ -5383,6 +5399,8 @@ class copy_fail_model final : public model_base_crtp { std::vector{}); max_age = std::numeric_limits::min(); current_statement__ = 38; + max_age = context__.vals_i("max_age")[(1 - 1)]; + current_statement__ = 38; stan::math::check_greater_or_equal(function__, "max_age", max_age, 1); current_statement__ = 39; stan::math::validate_non_negative_index("x", "nind", nind); @@ -7121,30 +7139,40 @@ class dce_fail_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 39; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 39; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 40; context__.validate_dims("data initialization", "n_age", "int", std::vector{}); n_age = std::numeric_limits::min(); current_statement__ = 40; + n_age = context__.vals_i("n_age")[(1 - 1)]; + current_statement__ = 40; stan::math::check_greater_or_equal(function__, "n_age", n_age, 0); current_statement__ = 41; context__.validate_dims("data initialization", "n_edu", "int", std::vector{}); n_edu = std::numeric_limits::min(); current_statement__ = 41; + n_edu = context__.vals_i("n_edu")[(1 - 1)]; + current_statement__ = 41; stan::math::check_greater_or_equal(function__, "n_edu", n_edu, 0); current_statement__ = 42; context__.validate_dims("data initialization", "n_region", "int", std::vector{}); n_region = std::numeric_limits::min(); current_statement__ = 42; + n_region = context__.vals_i("n_region")[(1 - 1)]; + current_statement__ = 42; stan::math::check_greater_or_equal(function__, "n_region", n_region, 0); current_statement__ = 43; context__.validate_dims("data initialization", "n_state", "int", std::vector{}); n_state = std::numeric_limits::min(); current_statement__ = 43; + n_state = context__.vals_i("n_state")[(1 - 1)]; + current_statement__ = 43; stan::math::check_greater_or_equal(function__, "n_state", n_state, 0); current_statement__ = 44; stan::math::validate_non_negative_index("female", "N", N); @@ -7153,6 +7181,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); female = std::vector(N, std::numeric_limits::min()); current_statement__ = 45; + female = context__.vals_i("female"); + current_statement__ = 45; stan::math::check_greater_or_equal(function__, "female", female, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "female", female, 1); @@ -7163,6 +7193,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); black = std::vector(N, std::numeric_limits::min()); current_statement__ = 47; + black = context__.vals_i("black"); + current_statement__ = 47; stan::math::check_greater_or_equal(function__, "black", black, 0); current_statement__ = 47; stan::math::check_less_or_equal(function__, "black", black, 1); @@ -7173,6 +7205,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); age = std::vector(N, std::numeric_limits::min()); current_statement__ = 49; + age = context__.vals_i("age"); + current_statement__ = 49; stan::math::check_greater_or_equal(function__, "age", age, 0); current_statement__ = 49; stan::math::check_less_or_equal(function__, "age", age, n_age); @@ -7183,6 +7217,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 51; + edu = context__.vals_i("edu"); + current_statement__ = 51; stan::math::check_greater_or_equal(function__, "edu", edu, 0); current_statement__ = 51; stan::math::check_less_or_equal(function__, "edu", edu, n_edu); @@ -7193,6 +7229,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(n_state)}); region = std::vector(n_state, std::numeric_limits::min()); current_statement__ = 53; + region = context__.vals_i("region"); + current_statement__ = 53; stan::math::check_greater_or_equal(function__, "region", region, 0); current_statement__ = 53; stan::math::check_less_or_equal(function__, "region", region, n_state); @@ -7203,6 +7241,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); state = std::vector(N, std::numeric_limits::min()); current_statement__ = 55; + state = context__.vals_i("state"); + current_statement__ = 55; stan::math::check_greater_or_equal(function__, "state", state, 0); current_statement__ = 55; stan::math::check_less_or_equal(function__, "state", state, n_state); @@ -7213,6 +7253,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 57; + y = context__.vals_i("y"); + current_statement__ = 57; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 57; stan::math::check_less_or_equal(function__, "y", y, 1); @@ -8497,6 +8539,8 @@ class expr_prop_experiment_model final : public model_base_crtp{}); j = std::numeric_limits::min(); + current_statement__ = 1; + j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 3; @@ -8836,6 +8880,8 @@ class expr_prop_experiment2_model final : public model_base_crtp{}); j = std::numeric_limits::min(); + current_statement__ = 1; + j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 2; @@ -9183,6 +9229,8 @@ class expr_prop_fail_model final : public model_base_crtp std::vector{}); N = std::numeric_limits::min(); current_statement__ = 9; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 9; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 10; stan::math::validate_non_negative_index("y", "N", N); @@ -9762,6 +9810,8 @@ class expr_prop_fail2_model final : public model_base_crtp{}); J = std::numeric_limits::min(); current_statement__ = 6; + J = context__.vals_i("J")[(1 - 1)]; + current_statement__ = 6; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 7; stan::math::validate_non_negative_index("y", "J", J); @@ -9769,6 +9819,8 @@ class expr_prop_fail2_model final : public model_base_crtp{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); + current_statement__ = 8; + y = context__.vals_r("y"); current_statement__ = 9; stan::math::validate_non_negative_index("sigma", "J", J); current_statement__ = 10; @@ -9777,6 +9829,8 @@ class expr_prop_fail2_model final : public model_base_crtp(J, std::numeric_limits::quiet_NaN()); current_statement__ = 10; + sigma = context__.vals_r("sigma"); + current_statement__ = 10; stan::math::check_greater_or_equal(function__, "sigma", sigma, 0); current_statement__ = 11; stan::math::validate_non_negative_index("theta", "J", J); @@ -10268,18 +10322,24 @@ class expr_prop_fail3_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 22; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 22; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 23; context__.validate_dims("data initialization", "n_age", "int", std::vector{}); n_age = std::numeric_limits::min(); current_statement__ = 23; + n_age = context__.vals_i("n_age")[(1 - 1)]; + current_statement__ = 23; stan::math::check_greater_or_equal(function__, "n_age", n_age, 0); current_statement__ = 24; context__.validate_dims("data initialization", "n_age_edu", "int", std::vector{}); n_age_edu = std::numeric_limits::min(); current_statement__ = 24; + n_age_edu = context__.vals_i("n_age_edu")[(1 - 1)]; + current_statement__ = 24; stan::math::check_greater_or_equal(function__, "n_age_edu", n_age_edu, 0); current_statement__ = 25; @@ -10287,12 +10347,16 @@ class expr_prop_fail3_model final : public model_base_crtp{}); n_edu = std::numeric_limits::min(); current_statement__ = 25; + n_edu = context__.vals_i("n_edu")[(1 - 1)]; + current_statement__ = 25; stan::math::check_greater_or_equal(function__, "n_edu", n_edu, 0); current_statement__ = 26; context__.validate_dims("data initialization", "n_region_full", "int", std::vector{}); n_region_full = std::numeric_limits::min(); current_statement__ = 26; + n_region_full = context__.vals_i("n_region_full")[(1 - 1)]; + current_statement__ = 26; stan::math::check_greater_or_equal(function__, "n_region_full", n_region_full, 0); current_statement__ = 27; @@ -10300,6 +10364,8 @@ class expr_prop_fail3_model final : public model_base_crtp{}); n_state = std::numeric_limits::min(); current_statement__ = 27; + n_state = context__.vals_i("n_state")[(1 - 1)]; + current_statement__ = 27; stan::math::check_greater_or_equal(function__, "n_state", n_state, 0); current_statement__ = 28; stan::math::validate_non_negative_index("age", "N", N); @@ -10308,6 +10374,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); age = std::vector(N, std::numeric_limits::min()); current_statement__ = 29; + age = context__.vals_i("age"); + current_statement__ = 29; stan::math::check_greater_or_equal(function__, "age", age, 0); current_statement__ = 29; stan::math::check_less_or_equal(function__, "age", age, n_age); @@ -10318,6 +10386,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); age_edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 31; + age_edu = context__.vals_i("age_edu"); + current_statement__ = 31; stan::math::check_greater_or_equal(function__, "age_edu", age_edu, 0); current_statement__ = 31; stan::math::check_less_or_equal(function__, "age_edu", age_edu, @@ -10361,6 +10431,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 35; + edu = context__.vals_i("edu"); + current_statement__ = 35; stan::math::check_greater_or_equal(function__, "edu", edu, 0); current_statement__ = 35; stan::math::check_less_or_equal(function__, "edu", edu, n_edu); @@ -10402,6 +10474,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); region_full = std::vector(N, std::numeric_limits::min()); current_statement__ = 39; + region_full = context__.vals_i("region_full"); + current_statement__ = 39; stan::math::check_greater_or_equal(function__, "region_full", region_full, 0); current_statement__ = 39; @@ -10414,6 +10488,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); state = std::vector(N, std::numeric_limits::min()); current_statement__ = 41; + state = context__.vals_i("state"); + current_statement__ = 41; stan::math::check_greater_or_equal(function__, "state", state, 0); current_statement__ = 41; stan::math::check_less_or_equal(function__, "state", state, n_state); @@ -10452,6 +10528,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 45; + y = context__.vals_i("y"); + current_statement__ = 45; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "y", y, 1); @@ -11662,12 +11740,16 @@ class expr_prop_fail4_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 27; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 27; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 28; context__.validate_dims("data initialization", "N_edges", "int", std::vector{}); N_edges = std::numeric_limits::min(); current_statement__ = 28; + N_edges = context__.vals_i("N_edges")[(1 - 1)]; + current_statement__ = 28; stan::math::check_greater_or_equal(function__, "N_edges", N_edges, 0); current_statement__ = 29; stan::math::validate_non_negative_index("node1", "N_edges", N_edges); @@ -11676,6 +11758,8 @@ class expr_prop_fail4_model final : public model_base_crtp{static_cast(N_edges)}); node1 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 30; + node1 = context__.vals_i("node1"); + current_statement__ = 30; stan::math::check_greater_or_equal(function__, "node1", node1, 1); current_statement__ = 30; stan::math::check_less_or_equal(function__, "node1", node1, N); @@ -11686,6 +11770,8 @@ class expr_prop_fail4_model final : public model_base_crtp{static_cast(N_edges)}); node2 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 32; + node2 = context__.vals_i("node2"); + current_statement__ = 32; stan::math::check_greater_or_equal(function__, "node2", node2, 1); current_statement__ = 32; stan::math::check_less_or_equal(function__, "node2", node2, N); @@ -12756,12 +12842,16 @@ class expr_prop_fail5_model final : public model_base_crtp{}); nind = std::numeric_limits::min(); current_statement__ = 38; + nind = context__.vals_i("nind")[(1 - 1)]; + current_statement__ = 38; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 39; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 39; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 39; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 40; @@ -15449,12 +15539,16 @@ class expr_prop_fail6_model final : public model_base_crtp{}); M = std::numeric_limits::min(); current_statement__ = 111; + M = context__.vals_i("M")[(1 - 1)]; + current_statement__ = 111; stan::math::check_greater_or_equal(function__, "M", M, 0); current_statement__ = 112; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 112; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 112; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 0); current_statement__ = 113; @@ -18655,18 +18749,24 @@ class expr_prop_fail7_model final : public model_base_crtp{}); K = std::numeric_limits::min(); current_statement__ = 20; + K = context__.vals_i("K")[(1 - 1)]; + current_statement__ = 20; stan::math::check_greater_or_equal(function__, "K", K, 2); current_statement__ = 21; context__.validate_dims("data initialization", "I", "int", std::vector{}); I = std::numeric_limits::min(); current_statement__ = 21; + I = context__.vals_i("I")[(1 - 1)]; + current_statement__ = 21; stan::math::check_greater_or_equal(function__, "I", I, 1); current_statement__ = 22; context__.validate_dims("data initialization", "J", "int", std::vector{}); J = std::numeric_limits::min(); current_statement__ = 22; + J = context__.vals_i("J")[(1 - 1)]; + current_statement__ = 22; stan::math::check_greater_or_equal(function__, "J", J, 1); current_statement__ = 23; stan::math::validate_non_negative_index("y", "I", I); @@ -19861,12 +19961,16 @@ class expr_prop_fail8_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 12; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 12; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 13; context__.validate_dims("data initialization", "N_edges", "int", std::vector{}); N_edges = std::numeric_limits::min(); current_statement__ = 13; + N_edges = context__.vals_i("N_edges")[(1 - 1)]; + current_statement__ = 13; stan::math::check_greater_or_equal(function__, "N_edges", N_edges, 0); current_statement__ = 14; stan::math::validate_non_negative_index("node1", "N_edges", N_edges); @@ -19875,6 +19979,8 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N_edges)}); node1 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 15; + node1 = context__.vals_i("node1"); + current_statement__ = 15; stan::math::check_greater_or_equal(function__, "node1", node1, 1); current_statement__ = 15; stan::math::check_less_or_equal(function__, "node1", node1, N); @@ -19885,6 +19991,8 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N_edges)}); node2 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 17; + node2 = context__.vals_i("node2"); + current_statement__ = 17; stan::math::check_greater_or_equal(function__, "node2", node2, 1); current_statement__ = 17; stan::math::check_less_or_equal(function__, "node2", node2, N); @@ -19895,6 +20003,8 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 19; + y = context__.vals_i("y"); + current_statement__ = 19; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 20; stan::math::validate_non_negative_index("x", "N", N); @@ -20872,12 +20982,16 @@ class fails_test_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 33; + nind = context__.vals_i("nind")[(1 - 1)]; + current_statement__ = 33; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 34; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 34; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 34; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 35; @@ -20937,6 +21051,8 @@ class fails_test_model final : public model_base_crtp { std::vector{}); max_age = std::numeric_limits::min(); current_statement__ = 38; + max_age = context__.vals_i("max_age")[(1 - 1)]; + current_statement__ = 38; stan::math::check_greater_or_equal(function__, "max_age", max_age, 1); current_statement__ = 39; stan::math::validate_non_negative_index("x", "nind", nind); @@ -23167,6 +23283,8 @@ class function_in_function_loops_model final : public model_base_crtp{}); N = std::numeric_limits::min(); + current_statement__ = 12; + N = context__.vals_i("N")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -25781,6 +25899,8 @@ class inliner_same_names_model final : public model_base_crtp{}); N = std::numeric_limits::min(); + current_statement__ = 6; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 7; stan::math::validate_non_negative_index("R", "N", N); current_statement__ = 8; @@ -27248,12 +27368,16 @@ class inlining_fail2_model final : public model_base_crtp std::vector{}); M = std::numeric_limits::min(); current_statement__ = 109; + M = context__.vals_i("M")[(1 - 1)]; + current_statement__ = 109; stan::math::check_greater_or_equal(function__, "M", M, 0); current_statement__ = 110; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 110; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 110; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 0); current_statement__ = 111; @@ -30346,6 +30470,8 @@ class lcm_experiment_model final : public model_base_crtp context__.validate_dims("data initialization", "j", "int", std::vector{}); j = std::numeric_limits::min(); + current_statement__ = 1; + j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); lcm_sym4__ = 1; @@ -31056,6 +31182,8 @@ class lcm_fails_model final : public model_base_crtp { std::vector{}); J = std::numeric_limits::min(); current_statement__ = 3; + J = context__.vals_i("J")[(1 - 1)]; + current_statement__ = 3; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 4; stan::math::validate_non_negative_index("y", "J", J); @@ -31063,6 +31191,8 @@ class lcm_fails_model final : public model_base_crtp { context__.validate_dims("data initialization", "y", "double", std::vector{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); + current_statement__ = 5; + y = context__.vals_r("y"); current_statement__ = 6; stan::math::validate_non_negative_index("theta", "J", J); } catch (const std::exception& e) { @@ -31757,12 +31887,16 @@ class lcm_fails2_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 33; + nind = context__.vals_i("nind")[(1 - 1)]; + current_statement__ = 33; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 34; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 34; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 34; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 35; @@ -33417,6 +33551,8 @@ class lupdf_inlining_model final : public model_base_crtp context__.validate_dims("data initialization", "n", "int", std::vector{}); n = std::numeric_limits::min(); + current_statement__ = 6; + n = context__.vals_i("n")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -33936,12 +34072,16 @@ class off_dce_model final : public model_base_crtp { std::vector{}); R = std::numeric_limits::min(); current_statement__ = 31; + R = context__.vals_i("R")[(1 - 1)]; + current_statement__ = 31; stan::math::check_greater_or_equal(function__, "R", R, 1); current_statement__ = 32; context__.validate_dims("data initialization", "T", "int", std::vector{}); T = std::numeric_limits::min(); current_statement__ = 32; + T = context__.vals_i("T")[(1 - 1)]; + current_statement__ = 32; stan::math::check_greater_or_equal(function__, "T", T, 1); current_statement__ = 33; stan::math::validate_non_negative_index("y", "R", R); @@ -34887,12 +35027,16 @@ class off_small_model final : public model_base_crtp { std::vector{}); J = std::numeric_limits::min(); current_statement__ = 20; + J = context__.vals_i("J")[(1 - 1)]; + current_statement__ = 20; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 21; context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); current_statement__ = 21; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 21; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 22; stan::math::validate_non_negative_index("person", "N", N); @@ -34901,6 +35045,8 @@ class off_small_model final : public model_base_crtp { std::vector{static_cast(N)}); person = std::vector(N, std::numeric_limits::min()); current_statement__ = 23; + person = context__.vals_i("person"); + current_statement__ = 23; stan::math::check_greater_or_equal(function__, "person", person, 1); current_statement__ = 23; stan::math::check_less_or_equal(function__, "person", person, J); @@ -38735,12 +38881,16 @@ class partial_eval_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 16; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 16; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 17; context__.validate_dims("data initialization", "n_pair", "int", std::vector{}); n_pair = std::numeric_limits::min(); current_statement__ = 17; + n_pair = context__.vals_i("n_pair")[(1 - 1)]; + current_statement__ = 17; stan::math::check_greater_or_equal(function__, "n_pair", n_pair, 0); current_statement__ = 18; stan::math::validate_non_negative_index("pair", "N", N); @@ -38749,6 +38899,8 @@ class partial_eval_model final : public model_base_crtp { std::vector{static_cast(N)}); pair = std::vector(N, std::numeric_limits::min()); current_statement__ = 19; + pair = context__.vals_i("pair"); + current_statement__ = 19; stan::math::check_greater_or_equal(function__, "pair", pair, 1); current_statement__ = 19; stan::math::check_less_or_equal(function__, "pair", pair, n_pair); @@ -40786,10 +40938,14 @@ class partial_eval_multiply_model final : public model_base_crtp{static_cast(10)}); idx = std::vector(10, std::numeric_limits::min()); + current_statement__ = 9; + idx = context__.vals_i("idx"); current_statement__ = 10; context__.validate_dims("data initialization", "idy", "int", std::vector{static_cast(10)}); idy = std::vector(10, std::numeric_limits::min()); + current_statement__ = 10; + idy = context__.vals_i("idy"); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -42852,6 +43008,8 @@ class stalled1_failure_model final : public model_base_crtp{}); I = std::numeric_limits::min(); current_statement__ = 17; + I = context__.vals_i("I")[(1 - 1)]; + current_statement__ = 17; stan::math::check_greater_or_equal(function__, "I", I, 0); current_statement__ = 18; stan::math::validate_non_negative_index("n", "I", I); @@ -42860,6 +43018,8 @@ class stalled1_failure_model final : public model_base_crtp{static_cast(I)}); n = std::vector(I, std::numeric_limits::min()); current_statement__ = 19; + n = context__.vals_i("n"); + current_statement__ = 19; stan::math::check_greater_or_equal(function__, "n", n, 0); current_statement__ = 20; stan::math::validate_non_negative_index("N", "I", I); @@ -42868,6 +43028,8 @@ class stalled1_failure_model final : public model_base_crtp{static_cast(I)}); N = std::vector(I, std::numeric_limits::min()); current_statement__ = 21; + N = context__.vals_i("N"); + current_statement__ = 21; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 22; stan::math::validate_non_negative_index("x1", "I", I); diff --git a/test/integration/good/compiler-optimizations/cppO0.expected b/test/integration/good/compiler-optimizations/cppO0.expected index 2ad9a7b0a..f2a03f0b1 100644 --- a/test/integration/good/compiler-optimizations/cppO0.expected +++ b/test/integration/good/compiler-optimizations/cppO0.expected @@ -859,6 +859,8 @@ class ad_level_failing_model final : public model_base_crtp{}); N_t = std::numeric_limits::min(); current_statement__ = 17; + N_t = context__.vals_i("N_t")[(1 - 1)]; + current_statement__ = 17; stan::math::check_greater_or_equal(function__, "N_t", N_t, 0); current_statement__ = 18; stan::math::validate_non_negative_index("t", "N_t", N_t); @@ -866,16 +868,22 @@ class ad_level_failing_model final : public model_base_crtp{static_cast(N_t)}); t = std::vector(N_t, std::numeric_limits::quiet_NaN()); + current_statement__ = 19; + t = context__.vals_r("t"); current_statement__ = 20; context__.validate_dims("data initialization", "y0", "double", std::vector{static_cast(4)}); y0 = std::vector(4, std::numeric_limits::quiet_NaN()); + current_statement__ = 20; + y0 = context__.vals_r("y0"); current_statement__ = 21; stan::math::validate_non_negative_index("stoi_hat", "N_t", N_t); current_statement__ = 22; context__.validate_dims("data initialization", "stoi_hat", "int", std::vector{static_cast(N_t)}); stoi_hat = std::vector(N_t, std::numeric_limits::min()); + current_statement__ = 22; + stoi_hat = context__.vals_i("stoi_hat"); current_statement__ = 23; stan::math::validate_non_negative_index("B_hat", "N_t", N_t); current_statement__ = 24; @@ -883,6 +891,8 @@ class ad_level_failing_model final : public model_base_crtp{static_cast(N_t)}); B_hat = std::vector(N_t, std::numeric_limits::quiet_NaN()); + current_statement__ = 24; + B_hat = context__.vals_r("B_hat"); current_statement__ = 25; t0 = std::numeric_limits::quiet_NaN(); current_statement__ = 25; @@ -1979,6 +1989,8 @@ class copy_prop_profile_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 16; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 16; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 17; stan::math::validate_non_negative_index("X", "N", N); @@ -2666,12 +2678,16 @@ class copy_fail_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 26; + nind = context__.vals_i("nind")[(1 - 1)]; + current_statement__ = 26; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 27; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 27; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 27; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 28; @@ -2707,6 +2723,8 @@ class copy_fail_model final : public model_base_crtp { std::vector{}); max_age = std::numeric_limits::min(); current_statement__ = 31; + max_age = context__.vals_i("max_age")[(1 - 1)]; + current_statement__ = 31; stan::math::check_greater_or_equal(function__, "max_age", max_age, 1); current_statement__ = 32; stan::math::validate_non_negative_index("x", "nind", nind); @@ -3560,30 +3578,40 @@ class dce_fail_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 39; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 39; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 40; context__.validate_dims("data initialization", "n_age", "int", std::vector{}); n_age = std::numeric_limits::min(); current_statement__ = 40; + n_age = context__.vals_i("n_age")[(1 - 1)]; + current_statement__ = 40; stan::math::check_greater_or_equal(function__, "n_age", n_age, 0); current_statement__ = 41; context__.validate_dims("data initialization", "n_edu", "int", std::vector{}); n_edu = std::numeric_limits::min(); current_statement__ = 41; + n_edu = context__.vals_i("n_edu")[(1 - 1)]; + current_statement__ = 41; stan::math::check_greater_or_equal(function__, "n_edu", n_edu, 0); current_statement__ = 42; context__.validate_dims("data initialization", "n_region", "int", std::vector{}); n_region = std::numeric_limits::min(); current_statement__ = 42; + n_region = context__.vals_i("n_region")[(1 - 1)]; + current_statement__ = 42; stan::math::check_greater_or_equal(function__, "n_region", n_region, 0); current_statement__ = 43; context__.validate_dims("data initialization", "n_state", "int", std::vector{}); n_state = std::numeric_limits::min(); current_statement__ = 43; + n_state = context__.vals_i("n_state")[(1 - 1)]; + current_statement__ = 43; stan::math::check_greater_or_equal(function__, "n_state", n_state, 0); current_statement__ = 44; stan::math::validate_non_negative_index("female", "N", N); @@ -3592,6 +3620,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); female = std::vector(N, std::numeric_limits::min()); current_statement__ = 45; + female = context__.vals_i("female"); + current_statement__ = 45; stan::math::check_greater_or_equal(function__, "female", female, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "female", female, 1); @@ -3602,6 +3632,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); black = std::vector(N, std::numeric_limits::min()); current_statement__ = 47; + black = context__.vals_i("black"); + current_statement__ = 47; stan::math::check_greater_or_equal(function__, "black", black, 0); current_statement__ = 47; stan::math::check_less_or_equal(function__, "black", black, 1); @@ -3612,6 +3644,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); age = std::vector(N, std::numeric_limits::min()); current_statement__ = 49; + age = context__.vals_i("age"); + current_statement__ = 49; stan::math::check_greater_or_equal(function__, "age", age, 0); current_statement__ = 49; stan::math::check_less_or_equal(function__, "age", age, n_age); @@ -3622,6 +3656,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 51; + edu = context__.vals_i("edu"); + current_statement__ = 51; stan::math::check_greater_or_equal(function__, "edu", edu, 0); current_statement__ = 51; stan::math::check_less_or_equal(function__, "edu", edu, n_edu); @@ -3632,6 +3668,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(n_state)}); region = std::vector(n_state, std::numeric_limits::min()); current_statement__ = 53; + region = context__.vals_i("region"); + current_statement__ = 53; stan::math::check_greater_or_equal(function__, "region", region, 0); current_statement__ = 53; stan::math::check_less_or_equal(function__, "region", region, n_state); @@ -3642,6 +3680,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); state = std::vector(N, std::numeric_limits::min()); current_statement__ = 55; + state = context__.vals_i("state"); + current_statement__ = 55; stan::math::check_greater_or_equal(function__, "state", state, 0); current_statement__ = 55; stan::math::check_less_or_equal(function__, "state", state, n_state); @@ -3652,6 +3692,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 57; + y = context__.vals_i("y"); + current_statement__ = 57; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 57; stan::math::check_less_or_equal(function__, "y", y, 1); @@ -4664,6 +4706,8 @@ class expr_prop_experiment_model final : public model_base_crtp{}); j = std::numeric_limits::min(); + current_statement__ = 1; + j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 3; @@ -5000,6 +5044,8 @@ class expr_prop_experiment2_model final : public model_base_crtp{}); j = std::numeric_limits::min(); + current_statement__ = 1; + j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 2; @@ -5341,6 +5387,8 @@ class expr_prop_fail_model final : public model_base_crtp std::vector{}); N = std::numeric_limits::min(); current_statement__ = 9; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 9; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 10; stan::math::validate_non_negative_index("y", "N", N); @@ -5855,6 +5903,8 @@ class expr_prop_fail2_model final : public model_base_crtp{}); J = std::numeric_limits::min(); current_statement__ = 6; + J = context__.vals_i("J")[(1 - 1)]; + current_statement__ = 6; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 7; stan::math::validate_non_negative_index("y", "J", J); @@ -5862,6 +5912,8 @@ class expr_prop_fail2_model final : public model_base_crtp{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); + current_statement__ = 8; + y = context__.vals_r("y"); current_statement__ = 9; stan::math::validate_non_negative_index("sigma", "J", J); current_statement__ = 10; @@ -5870,6 +5922,8 @@ class expr_prop_fail2_model final : public model_base_crtp(J, std::numeric_limits::quiet_NaN()); current_statement__ = 10; + sigma = context__.vals_r("sigma"); + current_statement__ = 10; stan::math::check_greater_or_equal(function__, "sigma", sigma, 0); current_statement__ = 11; stan::math::validate_non_negative_index("theta", "J", J); @@ -6348,18 +6402,24 @@ class expr_prop_fail3_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 22; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 22; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 23; context__.validate_dims("data initialization", "n_age", "int", std::vector{}); n_age = std::numeric_limits::min(); current_statement__ = 23; + n_age = context__.vals_i("n_age")[(1 - 1)]; + current_statement__ = 23; stan::math::check_greater_or_equal(function__, "n_age", n_age, 0); current_statement__ = 24; context__.validate_dims("data initialization", "n_age_edu", "int", std::vector{}); n_age_edu = std::numeric_limits::min(); current_statement__ = 24; + n_age_edu = context__.vals_i("n_age_edu")[(1 - 1)]; + current_statement__ = 24; stan::math::check_greater_or_equal(function__, "n_age_edu", n_age_edu, 0); current_statement__ = 25; @@ -6367,12 +6427,16 @@ class expr_prop_fail3_model final : public model_base_crtp{}); n_edu = std::numeric_limits::min(); current_statement__ = 25; + n_edu = context__.vals_i("n_edu")[(1 - 1)]; + current_statement__ = 25; stan::math::check_greater_or_equal(function__, "n_edu", n_edu, 0); current_statement__ = 26; context__.validate_dims("data initialization", "n_region_full", "int", std::vector{}); n_region_full = std::numeric_limits::min(); current_statement__ = 26; + n_region_full = context__.vals_i("n_region_full")[(1 - 1)]; + current_statement__ = 26; stan::math::check_greater_or_equal(function__, "n_region_full", n_region_full, 0); current_statement__ = 27; @@ -6380,6 +6444,8 @@ class expr_prop_fail3_model final : public model_base_crtp{}); n_state = std::numeric_limits::min(); current_statement__ = 27; + n_state = context__.vals_i("n_state")[(1 - 1)]; + current_statement__ = 27; stan::math::check_greater_or_equal(function__, "n_state", n_state, 0); current_statement__ = 28; stan::math::validate_non_negative_index("age", "N", N); @@ -6388,6 +6454,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); age = std::vector(N, std::numeric_limits::min()); current_statement__ = 29; + age = context__.vals_i("age"); + current_statement__ = 29; stan::math::check_greater_or_equal(function__, "age", age, 0); current_statement__ = 29; stan::math::check_less_or_equal(function__, "age", age, n_age); @@ -6398,6 +6466,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); age_edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 31; + age_edu = context__.vals_i("age_edu"); + current_statement__ = 31; stan::math::check_greater_or_equal(function__, "age_edu", age_edu, 0); current_statement__ = 31; stan::math::check_less_or_equal(function__, "age_edu", age_edu, @@ -6433,6 +6503,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 35; + edu = context__.vals_i("edu"); + current_statement__ = 35; stan::math::check_greater_or_equal(function__, "edu", edu, 0); current_statement__ = 35; stan::math::check_less_or_equal(function__, "edu", edu, n_edu); @@ -6467,6 +6539,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); region_full = std::vector(N, std::numeric_limits::min()); current_statement__ = 39; + region_full = context__.vals_i("region_full"); + current_statement__ = 39; stan::math::check_greater_or_equal(function__, "region_full", region_full, 0); current_statement__ = 39; @@ -6479,6 +6553,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); state = std::vector(N, std::numeric_limits::min()); current_statement__ = 41; + state = context__.vals_i("state"); + current_statement__ = 41; stan::math::check_greater_or_equal(function__, "state", state, 0); current_statement__ = 41; stan::math::check_less_or_equal(function__, "state", state, n_state); @@ -6509,6 +6585,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 45; + y = context__.vals_i("y"); + current_statement__ = 45; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "y", y, 1); @@ -7443,12 +7521,16 @@ class expr_prop_fail4_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 30; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 30; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 31; context__.validate_dims("data initialization", "N_edges", "int", std::vector{}); N_edges = std::numeric_limits::min(); current_statement__ = 31; + N_edges = context__.vals_i("N_edges")[(1 - 1)]; + current_statement__ = 31; stan::math::check_greater_or_equal(function__, "N_edges", N_edges, 0); current_statement__ = 32; stan::math::validate_non_negative_index("node1", "N_edges", N_edges); @@ -7457,6 +7539,8 @@ class expr_prop_fail4_model final : public model_base_crtp{static_cast(N_edges)}); node1 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 33; + node1 = context__.vals_i("node1"); + current_statement__ = 33; stan::math::check_greater_or_equal(function__, "node1", node1, 1); current_statement__ = 33; stan::math::check_less_or_equal(function__, "node1", node1, N); @@ -7467,6 +7551,8 @@ class expr_prop_fail4_model final : public model_base_crtp{static_cast(N_edges)}); node2 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 35; + node2 = context__.vals_i("node2"); + current_statement__ = 35; stan::math::check_greater_or_equal(function__, "node2", node2, 1); current_statement__ = 35; stan::math::check_less_or_equal(function__, "node2", node2, N); @@ -8374,12 +8460,16 @@ class expr_prop_fail5_model final : public model_base_crtp{}); nind = std::numeric_limits::min(); current_statement__ = 33; + nind = context__.vals_i("nind")[(1 - 1)]; + current_statement__ = 33; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 34; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 34; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 34; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 35; @@ -9814,12 +9904,16 @@ class expr_prop_fail6_model final : public model_base_crtp{}); M = std::numeric_limits::min(); current_statement__ = 68; + M = context__.vals_i("M")[(1 - 1)]; + current_statement__ = 68; stan::math::check_greater_or_equal(function__, "M", M, 0); current_statement__ = 69; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 69; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 69; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 0); current_statement__ = 70; @@ -10977,18 +11071,24 @@ class expr_prop_fail7_model final : public model_base_crtp{}); K = std::numeric_limits::min(); current_statement__ = 22; + K = context__.vals_i("K")[(1 - 1)]; + current_statement__ = 22; stan::math::check_greater_or_equal(function__, "K", K, 2); current_statement__ = 23; context__.validate_dims("data initialization", "I", "int", std::vector{}); I = std::numeric_limits::min(); current_statement__ = 23; + I = context__.vals_i("I")[(1 - 1)]; + current_statement__ = 23; stan::math::check_greater_or_equal(function__, "I", I, 1); current_statement__ = 24; context__.validate_dims("data initialization", "J", "int", std::vector{}); J = std::numeric_limits::min(); current_statement__ = 24; + J = context__.vals_i("J")[(1 - 1)]; + current_statement__ = 24; stan::math::check_greater_or_equal(function__, "J", J, 1); current_statement__ = 25; stan::math::validate_non_negative_index("y", "I", I); @@ -11712,12 +11812,16 @@ class expr_prop_fail8_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 12; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 12; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 13; context__.validate_dims("data initialization", "N_edges", "int", std::vector{}); N_edges = std::numeric_limits::min(); current_statement__ = 13; + N_edges = context__.vals_i("N_edges")[(1 - 1)]; + current_statement__ = 13; stan::math::check_greater_or_equal(function__, "N_edges", N_edges, 0); current_statement__ = 14; stan::math::validate_non_negative_index("node1", "N_edges", N_edges); @@ -11726,6 +11830,8 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N_edges)}); node1 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 15; + node1 = context__.vals_i("node1"); + current_statement__ = 15; stan::math::check_greater_or_equal(function__, "node1", node1, 1); current_statement__ = 15; stan::math::check_less_or_equal(function__, "node1", node1, N); @@ -11736,6 +11842,8 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N_edges)}); node2 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 17; + node2 = context__.vals_i("node2"); + current_statement__ = 17; stan::math::check_greater_or_equal(function__, "node2", node2, 1); current_statement__ = 17; stan::math::check_less_or_equal(function__, "node2", node2, N); @@ -11746,6 +11854,8 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 19; + y = context__.vals_i("y"); + current_statement__ = 19; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 20; stan::math::validate_non_negative_index("x", "N", N); @@ -12575,12 +12685,16 @@ class fails_test_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 26; + nind = context__.vals_i("nind")[(1 - 1)]; + current_statement__ = 26; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 27; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 27; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 27; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 28; @@ -12616,6 +12730,8 @@ class fails_test_model final : public model_base_crtp { std::vector{}); max_age = std::numeric_limits::min(); current_statement__ = 31; + max_age = context__.vals_i("max_age")[(1 - 1)]; + current_statement__ = 31; stan::math::check_greater_or_equal(function__, "max_age", max_age, 1); current_statement__ = 32; stan::math::validate_non_negative_index("x", "nind", nind); @@ -13884,6 +14000,8 @@ class function_in_function_loops_model final : public model_base_crtp{}); N = std::numeric_limits::min(); + current_statement__ = 5; + N = context__.vals_i("N")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -16079,6 +16197,8 @@ class inliner_same_names_model final : public model_base_crtp{}); N = std::numeric_limits::min(); + current_statement__ = 4; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 5; stan::math::validate_non_negative_index("R", "N", N); current_statement__ = 6; @@ -17091,12 +17211,16 @@ class inlining_fail2_model final : public model_base_crtp std::vector{}); M = std::numeric_limits::min(); current_statement__ = 60; + M = context__.vals_i("M")[(1 - 1)]; + current_statement__ = 60; stan::math::check_greater_or_equal(function__, "M", M, 0); current_statement__ = 61; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 61; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 61; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 0); current_statement__ = 62; @@ -18093,6 +18217,8 @@ class lcm_experiment_model final : public model_base_crtp context__.validate_dims("data initialization", "j", "int", std::vector{}); j = std::numeric_limits::min(); + current_statement__ = 1; + j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 2; @@ -18802,6 +18928,8 @@ class lcm_fails_model final : public model_base_crtp { std::vector{}); J = std::numeric_limits::min(); current_statement__ = 3; + J = context__.vals_i("J")[(1 - 1)]; + current_statement__ = 3; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 4; stan::math::validate_non_negative_index("y", "J", J); @@ -18809,6 +18937,8 @@ class lcm_fails_model final : public model_base_crtp { context__.validate_dims("data initialization", "y", "double", std::vector{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); + current_statement__ = 5; + y = context__.vals_r("y"); current_statement__ = 6; stan::math::validate_non_negative_index("theta", "J", J); } catch (const std::exception& e) { @@ -19393,12 +19523,16 @@ class lcm_fails2_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 26; + nind = context__.vals_i("nind")[(1 - 1)]; + current_statement__ = 26; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 27; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 27; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 27; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 28; @@ -20224,6 +20358,8 @@ class lupdf_inlining_model final : public model_base_crtp context__.validate_dims("data initialization", "n", "int", std::vector{}); n = std::numeric_limits::min(); + current_statement__ = 7; + n = context__.vals_i("n")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -20687,12 +20823,16 @@ class off_dce_model final : public model_base_crtp { std::vector{}); R = std::numeric_limits::min(); current_statement__ = 34; + R = context__.vals_i("R")[(1 - 1)]; + current_statement__ = 34; stan::math::check_greater_or_equal(function__, "R", R, 1); current_statement__ = 35; context__.validate_dims("data initialization", "T", "int", std::vector{}); T = std::numeric_limits::min(); current_statement__ = 35; + T = context__.vals_i("T")[(1 - 1)]; + current_statement__ = 35; stan::math::check_greater_or_equal(function__, "T", T, 1); current_statement__ = 36; stan::math::validate_non_negative_index("y", "R", R); @@ -21449,12 +21589,16 @@ class off_small_model final : public model_base_crtp { std::vector{}); J = std::numeric_limits::min(); current_statement__ = 22; + J = context__.vals_i("J")[(1 - 1)]; + current_statement__ = 22; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 23; context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); current_statement__ = 23; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 23; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 24; stan::math::validate_non_negative_index("person", "N", N); @@ -21463,6 +21607,8 @@ class off_small_model final : public model_base_crtp { std::vector{static_cast(N)}); person = std::vector(N, std::numeric_limits::min()); current_statement__ = 25; + person = context__.vals_i("person"); + current_statement__ = 25; stan::math::check_greater_or_equal(function__, "person", person, 1); current_statement__ = 25; stan::math::check_less_or_equal(function__, "person", person, J); @@ -24625,12 +24771,16 @@ class partial_eval_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 17; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 17; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 18; context__.validate_dims("data initialization", "n_pair", "int", std::vector{}); n_pair = std::numeric_limits::min(); current_statement__ = 18; + n_pair = context__.vals_i("n_pair")[(1 - 1)]; + current_statement__ = 18; stan::math::check_greater_or_equal(function__, "n_pair", n_pair, 0); current_statement__ = 19; stan::math::validate_non_negative_index("pair", "N", N); @@ -24639,6 +24789,8 @@ class partial_eval_model final : public model_base_crtp { std::vector{static_cast(N)}); pair = std::vector(N, std::numeric_limits::min()); current_statement__ = 20; + pair = context__.vals_i("pair"); + current_statement__ = 20; stan::math::check_greater_or_equal(function__, "pair", pair, 1); current_statement__ = 20; stan::math::check_less_or_equal(function__, "pair", pair, n_pair); @@ -25358,10 +25510,14 @@ class partial_eval_multiply_model final : public model_base_crtp{static_cast(10)}); idx = std::vector(10, std::numeric_limits::min()); + current_statement__ = 9; + idx = context__.vals_i("idx"); current_statement__ = 10; context__.validate_dims("data initialization", "idy", "int", std::vector{static_cast(10)}); idy = std::vector(10, std::numeric_limits::min()); + current_statement__ = 10; + idy = context__.vals_i("idy"); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -26226,6 +26382,8 @@ class stalled1_failure_model final : public model_base_crtp{}); I = std::numeric_limits::min(); current_statement__ = 18; + I = context__.vals_i("I")[(1 - 1)]; + current_statement__ = 18; stan::math::check_greater_or_equal(function__, "I", I, 0); current_statement__ = 19; stan::math::validate_non_negative_index("n", "I", I); @@ -26234,6 +26392,8 @@ class stalled1_failure_model final : public model_base_crtp{static_cast(I)}); n = std::vector(I, std::numeric_limits::min()); current_statement__ = 20; + n = context__.vals_i("n"); + current_statement__ = 20; stan::math::check_greater_or_equal(function__, "n", n, 0); current_statement__ = 21; stan::math::validate_non_negative_index("N", "I", I); @@ -26242,6 +26402,8 @@ class stalled1_failure_model final : public model_base_crtp{static_cast(I)}); N = std::vector(I, std::numeric_limits::min()); current_statement__ = 22; + N = context__.vals_i("N"); + current_statement__ = 22; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 23; stan::math::validate_non_negative_index("x1", "I", I); diff --git a/test/integration/good/compiler-optimizations/cppO1.expected b/test/integration/good/compiler-optimizations/cppO1.expected index 4ec28a87b..a8c558048 100644 --- a/test/integration/good/compiler-optimizations/cppO1.expected +++ b/test/integration/good/compiler-optimizations/cppO1.expected @@ -844,6 +844,8 @@ class ad_level_failing_model final : public model_base_crtp{}); N_t = std::numeric_limits::min(); current_statement__ = 17; + N_t = context__.vals_i("N_t")[(1 - 1)]; + current_statement__ = 17; stan::math::check_greater_or_equal(function__, "N_t", N_t, 0); current_statement__ = 18; stan::math::validate_non_negative_index("t", "N_t", N_t); @@ -851,16 +853,22 @@ class ad_level_failing_model final : public model_base_crtp{static_cast(N_t)}); t = std::vector(N_t, std::numeric_limits::quiet_NaN()); + current_statement__ = 19; + t = context__.vals_r("t"); current_statement__ = 20; context__.validate_dims("data initialization", "y0", "double", std::vector{static_cast(4)}); y0 = std::vector(4, std::numeric_limits::quiet_NaN()); + current_statement__ = 20; + y0 = context__.vals_r("y0"); current_statement__ = 21; stan::math::validate_non_negative_index("stoi_hat", "N_t", N_t); current_statement__ = 22; context__.validate_dims("data initialization", "stoi_hat", "int", std::vector{static_cast(N_t)}); stoi_hat = std::vector(N_t, std::numeric_limits::min()); + current_statement__ = 22; + stoi_hat = context__.vals_i("stoi_hat"); current_statement__ = 23; stan::math::validate_non_negative_index("B_hat", "N_t", N_t); current_statement__ = 24; @@ -868,6 +876,8 @@ class ad_level_failing_model final : public model_base_crtp{static_cast(N_t)}); B_hat = std::vector(N_t, std::numeric_limits::quiet_NaN()); + current_statement__ = 24; + B_hat = context__.vals_r("B_hat"); current_statement__ = 25; t0 = std::numeric_limits::quiet_NaN(); current_statement__ = 25; @@ -1959,6 +1969,8 @@ class copy_prop_profile_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 16; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 16; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 17; stan::math::validate_non_negative_index("X", "N", N); @@ -2640,12 +2652,16 @@ class copy_fail_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 37; + nind = context__.vals_i("nind")[(1 - 1)]; + current_statement__ = 37; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 38; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 38; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 38; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 39; @@ -2681,6 +2697,8 @@ class copy_fail_model final : public model_base_crtp { std::vector{}); max_age = std::numeric_limits::min(); current_statement__ = 42; + max_age = context__.vals_i("max_age")[(1 - 1)]; + current_statement__ = 42; stan::math::check_greater_or_equal(function__, "max_age", max_age, 1); current_statement__ = 43; stan::math::validate_non_negative_index("x", "nind", nind); @@ -3708,30 +3726,40 @@ class dce_fail_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 39; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 39; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 40; context__.validate_dims("data initialization", "n_age", "int", std::vector{}); n_age = std::numeric_limits::min(); current_statement__ = 40; + n_age = context__.vals_i("n_age")[(1 - 1)]; + current_statement__ = 40; stan::math::check_greater_or_equal(function__, "n_age", n_age, 0); current_statement__ = 41; context__.validate_dims("data initialization", "n_edu", "int", std::vector{}); n_edu = std::numeric_limits::min(); current_statement__ = 41; + n_edu = context__.vals_i("n_edu")[(1 - 1)]; + current_statement__ = 41; stan::math::check_greater_or_equal(function__, "n_edu", n_edu, 0); current_statement__ = 42; context__.validate_dims("data initialization", "n_region", "int", std::vector{}); n_region = std::numeric_limits::min(); current_statement__ = 42; + n_region = context__.vals_i("n_region")[(1 - 1)]; + current_statement__ = 42; stan::math::check_greater_or_equal(function__, "n_region", n_region, 0); current_statement__ = 43; context__.validate_dims("data initialization", "n_state", "int", std::vector{}); n_state = std::numeric_limits::min(); current_statement__ = 43; + n_state = context__.vals_i("n_state")[(1 - 1)]; + current_statement__ = 43; stan::math::check_greater_or_equal(function__, "n_state", n_state, 0); current_statement__ = 44; stan::math::validate_non_negative_index("female", "N", N); @@ -3740,6 +3768,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); female = std::vector(N, std::numeric_limits::min()); current_statement__ = 45; + female = context__.vals_i("female"); + current_statement__ = 45; stan::math::check_greater_or_equal(function__, "female", female, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "female", female, 1); @@ -3750,6 +3780,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); black = std::vector(N, std::numeric_limits::min()); current_statement__ = 47; + black = context__.vals_i("black"); + current_statement__ = 47; stan::math::check_greater_or_equal(function__, "black", black, 0); current_statement__ = 47; stan::math::check_less_or_equal(function__, "black", black, 1); @@ -3760,6 +3792,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); age = std::vector(N, std::numeric_limits::min()); current_statement__ = 49; + age = context__.vals_i("age"); + current_statement__ = 49; stan::math::check_greater_or_equal(function__, "age", age, 0); current_statement__ = 49; stan::math::check_less_or_equal(function__, "age", age, n_age); @@ -3770,6 +3804,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 51; + edu = context__.vals_i("edu"); + current_statement__ = 51; stan::math::check_greater_or_equal(function__, "edu", edu, 0); current_statement__ = 51; stan::math::check_less_or_equal(function__, "edu", edu, n_edu); @@ -3780,6 +3816,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(n_state)}); region = std::vector(n_state, std::numeric_limits::min()); current_statement__ = 53; + region = context__.vals_i("region"); + current_statement__ = 53; stan::math::check_greater_or_equal(function__, "region", region, 0); current_statement__ = 53; stan::math::check_less_or_equal(function__, "region", region, n_state); @@ -3790,6 +3828,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); state = std::vector(N, std::numeric_limits::min()); current_statement__ = 55; + state = context__.vals_i("state"); + current_statement__ = 55; stan::math::check_greater_or_equal(function__, "state", state, 0); current_statement__ = 55; stan::math::check_less_or_equal(function__, "state", state, n_state); @@ -3800,6 +3840,8 @@ class dce_fail_model final : public model_base_crtp { std::vector{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 57; + y = context__.vals_i("y"); + current_statement__ = 57; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 57; stan::math::check_less_or_equal(function__, "y", y, 1); @@ -4814,6 +4856,8 @@ class expr_prop_experiment_model final : public model_base_crtp{}); j = std::numeric_limits::min(); + current_statement__ = 1; + j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 3; @@ -5150,6 +5194,8 @@ class expr_prop_experiment2_model final : public model_base_crtp{}); j = std::numeric_limits::min(); + current_statement__ = 1; + j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 2; @@ -5491,6 +5537,8 @@ class expr_prop_fail_model final : public model_base_crtp std::vector{}); N = std::numeric_limits::min(); current_statement__ = 9; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 9; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 10; stan::math::validate_non_negative_index("y", "N", N); @@ -6003,6 +6051,8 @@ class expr_prop_fail2_model final : public model_base_crtp{}); J = std::numeric_limits::min(); current_statement__ = 6; + J = context__.vals_i("J")[(1 - 1)]; + current_statement__ = 6; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 7; stan::math::validate_non_negative_index("y", "J", J); @@ -6010,6 +6060,8 @@ class expr_prop_fail2_model final : public model_base_crtp{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); + current_statement__ = 8; + y = context__.vals_r("y"); current_statement__ = 9; stan::math::validate_non_negative_index("sigma", "J", J); current_statement__ = 10; @@ -6018,6 +6070,8 @@ class expr_prop_fail2_model final : public model_base_crtp(J, std::numeric_limits::quiet_NaN()); current_statement__ = 10; + sigma = context__.vals_r("sigma"); + current_statement__ = 10; stan::math::check_greater_or_equal(function__, "sigma", sigma, 0); current_statement__ = 11; stan::math::validate_non_negative_index("theta", "J", J); @@ -6495,18 +6549,24 @@ class expr_prop_fail3_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 22; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 22; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 23; context__.validate_dims("data initialization", "n_age", "int", std::vector{}); n_age = std::numeric_limits::min(); current_statement__ = 23; + n_age = context__.vals_i("n_age")[(1 - 1)]; + current_statement__ = 23; stan::math::check_greater_or_equal(function__, "n_age", n_age, 0); current_statement__ = 24; context__.validate_dims("data initialization", "n_age_edu", "int", std::vector{}); n_age_edu = std::numeric_limits::min(); current_statement__ = 24; + n_age_edu = context__.vals_i("n_age_edu")[(1 - 1)]; + current_statement__ = 24; stan::math::check_greater_or_equal(function__, "n_age_edu", n_age_edu, 0); current_statement__ = 25; @@ -6514,12 +6574,16 @@ class expr_prop_fail3_model final : public model_base_crtp{}); n_edu = std::numeric_limits::min(); current_statement__ = 25; + n_edu = context__.vals_i("n_edu")[(1 - 1)]; + current_statement__ = 25; stan::math::check_greater_or_equal(function__, "n_edu", n_edu, 0); current_statement__ = 26; context__.validate_dims("data initialization", "n_region_full", "int", std::vector{}); n_region_full = std::numeric_limits::min(); current_statement__ = 26; + n_region_full = context__.vals_i("n_region_full")[(1 - 1)]; + current_statement__ = 26; stan::math::check_greater_or_equal(function__, "n_region_full", n_region_full, 0); current_statement__ = 27; @@ -6527,6 +6591,8 @@ class expr_prop_fail3_model final : public model_base_crtp{}); n_state = std::numeric_limits::min(); current_statement__ = 27; + n_state = context__.vals_i("n_state")[(1 - 1)]; + current_statement__ = 27; stan::math::check_greater_or_equal(function__, "n_state", n_state, 0); current_statement__ = 28; stan::math::validate_non_negative_index("age", "N", N); @@ -6535,6 +6601,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); age = std::vector(N, std::numeric_limits::min()); current_statement__ = 29; + age = context__.vals_i("age"); + current_statement__ = 29; stan::math::check_greater_or_equal(function__, "age", age, 0); current_statement__ = 29; stan::math::check_less_or_equal(function__, "age", age, n_age); @@ -6545,6 +6613,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); age_edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 31; + age_edu = context__.vals_i("age_edu"); + current_statement__ = 31; stan::math::check_greater_or_equal(function__, "age_edu", age_edu, 0); current_statement__ = 31; stan::math::check_less_or_equal(function__, "age_edu", age_edu, @@ -6580,6 +6650,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); edu = std::vector(N, std::numeric_limits::min()); current_statement__ = 35; + edu = context__.vals_i("edu"); + current_statement__ = 35; stan::math::check_greater_or_equal(function__, "edu", edu, 0); current_statement__ = 35; stan::math::check_less_or_equal(function__, "edu", edu, n_edu); @@ -6614,6 +6686,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); region_full = std::vector(N, std::numeric_limits::min()); current_statement__ = 39; + region_full = context__.vals_i("region_full"); + current_statement__ = 39; stan::math::check_greater_or_equal(function__, "region_full", region_full, 0); current_statement__ = 39; @@ -6626,6 +6700,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); state = std::vector(N, std::numeric_limits::min()); current_statement__ = 41; + state = context__.vals_i("state"); + current_statement__ = 41; stan::math::check_greater_or_equal(function__, "state", state, 0); current_statement__ = 41; stan::math::check_less_or_equal(function__, "state", state, n_state); @@ -6656,6 +6732,8 @@ class expr_prop_fail3_model final : public model_base_crtp{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 45; + y = context__.vals_i("y"); + current_statement__ = 45; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 45; stan::math::check_less_or_equal(function__, "y", y, 1); @@ -7615,12 +7693,16 @@ class expr_prop_fail4_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 30; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 30; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 31; context__.validate_dims("data initialization", "N_edges", "int", std::vector{}); N_edges = std::numeric_limits::min(); current_statement__ = 31; + N_edges = context__.vals_i("N_edges")[(1 - 1)]; + current_statement__ = 31; stan::math::check_greater_or_equal(function__, "N_edges", N_edges, 0); current_statement__ = 32; stan::math::validate_non_negative_index("node1", "N_edges", N_edges); @@ -7629,6 +7711,8 @@ class expr_prop_fail4_model final : public model_base_crtp{static_cast(N_edges)}); node1 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 33; + node1 = context__.vals_i("node1"); + current_statement__ = 33; stan::math::check_greater_or_equal(function__, "node1", node1, 1); current_statement__ = 33; stan::math::check_less_or_equal(function__, "node1", node1, N); @@ -7639,6 +7723,8 @@ class expr_prop_fail4_model final : public model_base_crtp{static_cast(N_edges)}); node2 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 35; + node2 = context__.vals_i("node2"); + current_statement__ = 35; stan::math::check_greater_or_equal(function__, "node2", node2, 1); current_statement__ = 35; stan::math::check_less_or_equal(function__, "node2", node2, N); @@ -8543,12 +8629,16 @@ class expr_prop_fail5_model final : public model_base_crtp{}); nind = std::numeric_limits::min(); current_statement__ = 46; + nind = context__.vals_i("nind")[(1 - 1)]; + current_statement__ = 46; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 47; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 47; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 47; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 48; @@ -10159,12 +10249,16 @@ class expr_prop_fail6_model final : public model_base_crtp{}); M = std::numeric_limits::min(); current_statement__ = 119; + M = context__.vals_i("M")[(1 - 1)]; + current_statement__ = 119; stan::math::check_greater_or_equal(function__, "M", M, 0); current_statement__ = 120; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 120; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 120; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 0); current_statement__ = 121; @@ -12025,18 +12119,24 @@ class expr_prop_fail7_model final : public model_base_crtp{}); K = std::numeric_limits::min(); current_statement__ = 22; + K = context__.vals_i("K")[(1 - 1)]; + current_statement__ = 22; stan::math::check_greater_or_equal(function__, "K", K, 2); current_statement__ = 23; context__.validate_dims("data initialization", "I", "int", std::vector{}); I = std::numeric_limits::min(); current_statement__ = 23; + I = context__.vals_i("I")[(1 - 1)]; + current_statement__ = 23; stan::math::check_greater_or_equal(function__, "I", I, 1); current_statement__ = 24; context__.validate_dims("data initialization", "J", "int", std::vector{}); J = std::numeric_limits::min(); current_statement__ = 24; + J = context__.vals_i("J")[(1 - 1)]; + current_statement__ = 24; stan::math::check_greater_or_equal(function__, "J", J, 1); current_statement__ = 25; stan::math::validate_non_negative_index("y", "I", I); @@ -12755,12 +12855,16 @@ class expr_prop_fail8_model final : public model_base_crtp{}); N = std::numeric_limits::min(); current_statement__ = 12; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 12; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 13; context__.validate_dims("data initialization", "N_edges", "int", std::vector{}); N_edges = std::numeric_limits::min(); current_statement__ = 13; + N_edges = context__.vals_i("N_edges")[(1 - 1)]; + current_statement__ = 13; stan::math::check_greater_or_equal(function__, "N_edges", N_edges, 0); current_statement__ = 14; stan::math::validate_non_negative_index("node1", "N_edges", N_edges); @@ -12769,6 +12873,8 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N_edges)}); node1 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 15; + node1 = context__.vals_i("node1"); + current_statement__ = 15; stan::math::check_greater_or_equal(function__, "node1", node1, 1); current_statement__ = 15; stan::math::check_less_or_equal(function__, "node1", node1, N); @@ -12779,6 +12885,8 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N_edges)}); node2 = std::vector(N_edges, std::numeric_limits::min()); current_statement__ = 17; + node2 = context__.vals_i("node2"); + current_statement__ = 17; stan::math::check_greater_or_equal(function__, "node2", node2, 1); current_statement__ = 17; stan::math::check_less_or_equal(function__, "node2", node2, N); @@ -12789,6 +12897,8 @@ class expr_prop_fail8_model final : public model_base_crtp{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); current_statement__ = 19; + y = context__.vals_i("y"); + current_statement__ = 19; stan::math::check_greater_or_equal(function__, "y", y, 0); current_statement__ = 20; stan::math::validate_non_negative_index("x", "N", N); @@ -13618,12 +13728,16 @@ class fails_test_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 37; + nind = context__.vals_i("nind")[(1 - 1)]; + current_statement__ = 37; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 38; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 38; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 38; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 39; @@ -13659,6 +13773,8 @@ class fails_test_model final : public model_base_crtp { std::vector{}); max_age = std::numeric_limits::min(); current_statement__ = 42; + max_age = context__.vals_i("max_age")[(1 - 1)]; + current_statement__ = 42; stan::math::check_greater_or_equal(function__, "max_age", max_age, 1); current_statement__ = 43; stan::math::validate_non_negative_index("x", "nind", nind); @@ -15112,6 +15228,8 @@ class function_in_function_loops_model final : public model_base_crtp{}); N = std::numeric_limits::min(); + current_statement__ = 12; + N = context__.vals_i("N")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -17423,6 +17541,8 @@ class inliner_same_names_model final : public model_base_crtp{}); N = std::numeric_limits::min(); + current_statement__ = 6; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 7; stan::math::validate_non_negative_index("R", "N", N); current_statement__ = 8; @@ -18471,12 +18591,16 @@ class inlining_fail2_model final : public model_base_crtp std::vector{}); M = std::numeric_limits::min(); current_statement__ = 119; + M = context__.vals_i("M")[(1 - 1)]; + current_statement__ = 119; stan::math::check_greater_or_equal(function__, "M", M, 0); current_statement__ = 120; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 120; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 120; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 0); current_statement__ = 121; @@ -20215,6 +20339,8 @@ class lcm_experiment_model final : public model_base_crtp context__.validate_dims("data initialization", "j", "int", std::vector{}); j = std::numeric_limits::min(); + current_statement__ = 1; + j = context__.vals_i("j")[(1 - 1)]; current_statement__ = 2; z = std::numeric_limits::quiet_NaN(); current_statement__ = 2; @@ -20922,6 +21048,8 @@ class lcm_fails_model final : public model_base_crtp { std::vector{}); J = std::numeric_limits::min(); current_statement__ = 3; + J = context__.vals_i("J")[(1 - 1)]; + current_statement__ = 3; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 4; stan::math::validate_non_negative_index("y", "J", J); @@ -20929,6 +21057,8 @@ class lcm_fails_model final : public model_base_crtp { context__.validate_dims("data initialization", "y", "double", std::vector{static_cast(J)}); y = std::vector(J, std::numeric_limits::quiet_NaN()); + current_statement__ = 5; + y = context__.vals_r("y"); current_statement__ = 6; stan::math::validate_non_negative_index("theta", "J", J); } catch (const std::exception& e) { @@ -21512,12 +21642,16 @@ class lcm_fails2_model final : public model_base_crtp { std::vector{}); nind = std::numeric_limits::min(); current_statement__ = 37; + nind = context__.vals_i("nind")[(1 - 1)]; + current_statement__ = 37; stan::math::check_greater_or_equal(function__, "nind", nind, 0); current_statement__ = 38; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); current_statement__ = 38; + n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; + current_statement__ = 38; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 2); current_statement__ = 39; @@ -22517,6 +22651,8 @@ class lupdf_inlining_model final : public model_base_crtp context__.validate_dims("data initialization", "n", "int", std::vector{}); n = std::numeric_limits::min(); + current_statement__ = 8; + n = context__.vals_i("n")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -23045,12 +23181,16 @@ class off_dce_model final : public model_base_crtp { std::vector{}); R = std::numeric_limits::min(); current_statement__ = 34; + R = context__.vals_i("R")[(1 - 1)]; + current_statement__ = 34; stan::math::check_greater_or_equal(function__, "R", R, 1); current_statement__ = 35; context__.validate_dims("data initialization", "T", "int", std::vector{}); T = std::numeric_limits::min(); current_statement__ = 35; + T = context__.vals_i("T")[(1 - 1)]; + current_statement__ = 35; stan::math::check_greater_or_equal(function__, "T", T, 1); current_statement__ = 36; stan::math::validate_non_negative_index("y", "R", R); @@ -23799,12 +23939,16 @@ class off_small_model final : public model_base_crtp { std::vector{}); J = std::numeric_limits::min(); current_statement__ = 22; + J = context__.vals_i("J")[(1 - 1)]; + current_statement__ = 22; stan::math::check_greater_or_equal(function__, "J", J, 0); current_statement__ = 23; context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); current_statement__ = 23; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 23; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 24; stan::math::validate_non_negative_index("person", "N", N); @@ -23813,6 +23957,8 @@ class off_small_model final : public model_base_crtp { std::vector{static_cast(N)}); person = std::vector(N, std::numeric_limits::min()); current_statement__ = 25; + person = context__.vals_i("person"); + current_statement__ = 25; stan::math::check_greater_or_equal(function__, "person", person, 1); current_statement__ = 25; stan::math::check_less_or_equal(function__, "person", person, J); @@ -26999,12 +27145,16 @@ class partial_eval_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 17; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 17; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 18; context__.validate_dims("data initialization", "n_pair", "int", std::vector{}); n_pair = std::numeric_limits::min(); current_statement__ = 18; + n_pair = context__.vals_i("n_pair")[(1 - 1)]; + current_statement__ = 18; stan::math::check_greater_or_equal(function__, "n_pair", n_pair, 0); current_statement__ = 19; stan::math::validate_non_negative_index("pair", "N", N); @@ -27013,6 +27163,8 @@ class partial_eval_model final : public model_base_crtp { std::vector{static_cast(N)}); pair = std::vector(N, std::numeric_limits::min()); current_statement__ = 20; + pair = context__.vals_i("pair"); + current_statement__ = 20; stan::math::check_greater_or_equal(function__, "pair", pair, 1); current_statement__ = 20; stan::math::check_less_or_equal(function__, "pair", pair, n_pair); @@ -27737,10 +27889,14 @@ class partial_eval_multiply_model final : public model_base_crtp{static_cast(10)}); idx = std::vector(10, std::numeric_limits::min()); + current_statement__ = 9; + idx = context__.vals_i("idx"); current_statement__ = 10; context__.validate_dims("data initialization", "idy", "int", std::vector{static_cast(10)}); idy = std::vector(10, std::numeric_limits::min()); + current_statement__ = 10; + idy = context__.vals_i("idy"); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -28587,6 +28743,8 @@ class stalled1_failure_model final : public model_base_crtp{}); I = std::numeric_limits::min(); current_statement__ = 18; + I = context__.vals_i("I")[(1 - 1)]; + current_statement__ = 18; stan::math::check_greater_or_equal(function__, "I", I, 0); current_statement__ = 19; stan::math::validate_non_negative_index("n", "I", I); @@ -28595,6 +28753,8 @@ class stalled1_failure_model final : public model_base_crtp{static_cast(I)}); n = std::vector(I, std::numeric_limits::min()); current_statement__ = 20; + n = context__.vals_i("n"); + current_statement__ = 20; stan::math::check_greater_or_equal(function__, "n", n, 0); current_statement__ = 21; stan::math::validate_non_negative_index("N", "I", I); @@ -28603,6 +28763,8 @@ class stalled1_failure_model final : public model_base_crtp{static_cast(I)}); N = std::vector(I, std::numeric_limits::min()); current_statement__ = 22; + N = context__.vals_i("N"); + current_statement__ = 22; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 23; stan::math::validate_non_negative_index("x1", "I", I); diff --git a/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected b/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected index 80c6c61c4..36aa10ee5 100644 --- a/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected +++ b/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected @@ -81,6 +81,8 @@ class ad_scalar_data_matrix_model final : public model_base_crtp{}); N = std::numeric_limits::min(); + current_statement__ = 35; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 36; stan::math::validate_non_negative_index("X_data", "N", N); current_statement__ = 37; @@ -1334,12 +1336,16 @@ class constraints_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 51; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 51; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 52; context__.validate_dims("data initialization", "K", "int", std::vector{}); K = std::numeric_limits::min(); current_statement__ = 52; + K = context__.vals_i("K")[(1 - 1)]; + current_statement__ = 52; stan::math::check_greater_or_equal(function__, "K", K, 1); current_statement__ = 53; stan::math::validate_non_negative_index("diff_low_mid", "N", N); @@ -1433,6 +1439,8 @@ class constraints_model final : public model_base_crtp { std::vector{}); phi_prior_a = std::numeric_limits::quiet_NaN(); current_statement__ = 62; + phi_prior_a = context__.vals_r("phi_prior_a")[(1 - 1)]; + current_statement__ = 62; stan::math::check_greater_or_equal(function__, "phi_prior_a", phi_prior_a, 0); current_statement__ = 63; @@ -1440,17 +1448,23 @@ class constraints_model final : public model_base_crtp { std::vector{}); phi_prior_b = std::numeric_limits::quiet_NaN(); current_statement__ = 63; + phi_prior_b = context__.vals_r("phi_prior_b")[(1 - 1)]; + current_statement__ = 63; stan::math::check_greater_or_equal(function__, "phi_prior_b", phi_prior_b, 0); current_statement__ = 64; context__.validate_dims("data initialization", "mu_prior_mu", "double", std::vector{}); mu_prior_mu = std::numeric_limits::quiet_NaN(); + current_statement__ = 64; + mu_prior_mu = context__.vals_r("mu_prior_mu")[(1 - 1)]; current_statement__ = 65; context__.validate_dims("data initialization", "mu_prior_sigma", "double", std::vector{}); mu_prior_sigma = std::numeric_limits::quiet_NaN(); current_statement__ = 65; + mu_prior_sigma = context__.vals_r("mu_prior_sigma")[(1 - 1)]; + current_statement__ = 65; stan::math::check_greater_or_equal(function__, "mu_prior_sigma", mu_prior_sigma, 0); current_statement__ = 66; @@ -1458,6 +1472,8 @@ class constraints_model final : public model_base_crtp { "double", std::vector{}); sigma_prior_shape = std::numeric_limits::quiet_NaN(); current_statement__ = 66; + sigma_prior_shape = context__.vals_r("sigma_prior_shape")[(1 - 1)]; + current_statement__ = 66; stan::math::check_greater_or_equal(function__, "sigma_prior_shape", sigma_prior_shape, 0); current_statement__ = 67; @@ -1465,6 +1481,8 @@ class constraints_model final : public model_base_crtp { "double", std::vector{}); sigma_prior_rate = std::numeric_limits::quiet_NaN(); current_statement__ = 67; + sigma_prior_rate = context__.vals_r("sigma_prior_rate")[(1 - 1)]; + current_statement__ = 67; stan::math::check_greater_or_equal(function__, "sigma_prior_rate", sigma_prior_rate, 0); current_statement__ = 68; @@ -4129,10 +4147,14 @@ class indexing_model final : public model_base_crtp { context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); + current_statement__ = 69; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 70; context__.validate_dims("data initialization", "M", "int", std::vector{}); M = std::numeric_limits::min(); + current_statement__ = 70; + M = context__.vals_i("M")[(1 - 1)]; current_statement__ = 71; stan::math::validate_non_negative_index("dat_x", "N", N); current_statement__ = 72; @@ -4183,6 +4205,8 @@ class indexing_model final : public model_base_crtp { context__.validate_dims("data initialization", "idx_tester", "int", std::vector{static_cast(N)}); idx_tester = std::vector(N, std::numeric_limits::min()); + current_statement__ = 77; + idx_tester = context__.vals_i("idx_tester"); current_statement__ = 78; stan::math::validate_non_negative_index("p_soa_vec_v", "M", M); current_statement__ = 79; @@ -6280,16 +6304,22 @@ class indexing2_model final : public model_base_crtp { context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); + current_statement__ = 13; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 14; context__.validate_dims("data initialization", "M", "int", std::vector{}); M = std::numeric_limits::min(); + current_statement__ = 14; + M = context__.vals_i("M")[(1 - 1)]; current_statement__ = 15; stan::math::validate_non_negative_index("Idx", "N", N); current_statement__ = 16; context__.validate_dims("data initialization", "Idx", "int", std::vector{static_cast(N)}); Idx = std::vector(N, std::numeric_limits::min()); + current_statement__ = 16; + Idx = context__.vals_i("Idx"); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -6833,6 +6863,8 @@ class reductions_allowed_model final : public model_base_crtp{}); data_r = std::numeric_limits::quiet_NaN(); + current_statement__ = 7; + data_r = context__.vals_r("data_r")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -8682,6 +8714,8 @@ class tp_reused_model final : public model_base_crtp { context__.validate_dims("data initialization", "data_r", "double", std::vector{}); data_r = std::numeric_limits::quiet_NaN(); + current_statement__ = 5; + data_r = context__.vals_r("data_r")[(1 - 1)]; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } diff --git a/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected b/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected index a1d308340..940a0bbe3 100644 --- a/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected +++ b/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected @@ -46,19 +46,21 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable N) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -2140,19 +2142,21 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable N) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -2167,19 +2171,21 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str K)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable K) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -2507,19 +2513,21 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi_prior_a) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str phi_prior_a)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable phi_prior_a) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str phi_prior_a)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -2536,19 +2544,21 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi_prior_b) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str phi_prior_b)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable phi_prior_b) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str phi_prior_b)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -2565,35 +2575,39 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id mu_prior_mu) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str mu_prior_mu)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable mu_prior_mu) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str mu_prior_mu)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id mu_prior_sigma) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str mu_prior_sigma)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable mu_prior_sigma) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str mu_prior_sigma)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -2610,19 +2624,21 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma_prior_shape) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str sigma_prior_shape)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable sigma_prior_shape) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str sigma_prior_shape)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -2639,19 +2655,21 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma_prior_rate) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str sigma_prior_rate)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable sigma_prior_rate) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str sigma_prior_rate)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -10173,35 +10191,39 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable N) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable M) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -10384,13 +10406,15 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str idx_tester)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable idx_tester) ()) (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str idx_tester)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -16804,35 +16828,39 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable N) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable M) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -16846,13 +16874,15 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str Idx)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable Idx) ()) (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str Idx)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) (meta )))) (log_prob (((pattern @@ -17411,19 +17441,21 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id data_r) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str data_r)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable data_r) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str data_r)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )))) (log_prob (((pattern @@ -20177,19 +20209,21 @@ matrix[5, 10] tp_matrix_aos: AoS (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id data_r) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str data_r)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable data_r) ()) UReal + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str data_r)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )))) (log_prob (((pattern diff --git a/test/integration/good/tuples/cpp.expected b/test/integration/good/tuples/cpp.expected index 0b521ddc3..4dbb9a642 100644 --- a/test/integration/good/tuples/cpp.expected +++ b/test/integration/good/tuples/cpp.expected @@ -4153,12 +4153,16 @@ class qr_unpack_model final : public model_base_crtp { std::vector{}); N = std::numeric_limits::min(); current_statement__ = 11; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 11; stan::math::check_greater_or_equal(function__, "N", N, 1); current_statement__ = 12; context__.validate_dims("data initialization", "M", "int", std::vector{}); M = std::numeric_limits::min(); current_statement__ = 12; + M = context__.vals_i("M")[(1 - 1)]; + current_statement__ = 12; stan::math::check_greater_or_equal(function__, "M", M, 1); current_statement__ = 13; stan::math::validate_non_negative_index("A", "N", N); @@ -6041,6 +6045,8 @@ class tuple_constraints_params_model final : public model_base_crtp{}); indicator = std::numeric_limits::min(); current_statement__ = 5; + indicator = context__.vals_i("indicator")[(1 - 1)]; + current_statement__ = 5; stan::math::check_greater_or_equal(function__, "indicator", indicator, 0); current_statement__ = 5; @@ -12143,6 +12149,8 @@ class tuple_templating_model final : public model_base_crtp{}); N = std::numeric_limits::min(); + current_statement__ = 6; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 7; stan::math::validate_non_negative_index("m1", "N", N); current_statement__ = 8; @@ -12199,12 +12207,16 @@ class tuple_templating_model final : public model_base_crtp{static_cast(N)}); a1 = std::vector(N, std::numeric_limits::min()); + current_statement__ = 14; + a1 = context__.vals_i("a1"); current_statement__ = 15; stan::math::validate_non_negative_index("a2", "N", N); current_statement__ = 16; context__.validate_dims("data initialization", "a2", "double", std::vector{static_cast(N)}); a2 = std::vector(N, std::numeric_limits::quiet_NaN()); + current_statement__ = 16; + a2 = context__.vals_r("a2"); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); } @@ -12773,6 +12785,8 @@ class tuple_copying_model final : public model_base_crtp { context__.validate_dims("data initialization", "y", "double", std::vector{static_cast(10)}); y = std::vector(10, std::numeric_limits::quiet_NaN()); + current_statement__ = 13; + y = context__.vals_r("y"); current_statement__ = 14; data_tuple = std::tuple, std::vector>{Eigen::Matrix::Constant(2, @@ -13805,6 +13819,8 @@ class tuple_hof_model final : public model_base_crtp { context__.validate_dims("data initialization", "N", "int", std::vector{}); N = std::numeric_limits::min(); + current_statement__ = 3; + N = context__.vals_i("N")[(1 - 1)]; current_statement__ = 4; stan::math::validate_non_negative_index("data_y", "N", N); current_statement__ = 5; @@ -13812,6 +13828,8 @@ class tuple_hof_model final : public model_base_crtp { std::vector{static_cast(N)}); data_y = std::vector(N, std::numeric_limits::quiet_NaN()); + current_statement__ = 5; + data_y = context__.vals_r("data_y"); current_statement__ = 6; stan::math::validate_non_negative_index("data_m", "N", N); current_statement__ = 7; @@ -15732,6 +15750,8 @@ class unpack_promote_model final : public model_base_crtp std::vector{}); N = std::numeric_limits::min(); current_statement__ = 23; + N = context__.vals_i("N")[(1 - 1)]; + current_statement__ = 23; stan::math::check_greater_or_equal(function__, "N", N, 0); current_statement__ = 24; stan::math::validate_non_negative_index("x", "N", N); @@ -15758,6 +15778,8 @@ class unpack_promote_model final : public model_base_crtp context__.validate_dims("data initialization", "y", "int", std::vector{static_cast(N)}); y = std::vector(N, std::numeric_limits::min()); + current_statement__ = 27; + y = context__.vals_i("y"); current_statement__ = 28; stan::math::validate_non_negative_index("td", "N", N); current_statement__ = 29; diff --git a/test/integration/good/tuples/transformed_mir.expected b/test/integration/good/tuples/transformed_mir.expected index 7d669c40c..af6b5f9d5 100644 --- a/test/integration/good/tuples/transformed_mir.expected +++ b/test/integration/good/tuples/transformed_mir.expected @@ -10748,19 +10748,21 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable N) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -10775,19 +10777,21 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable M) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -12270,19 +12274,21 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id indicator) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str indicator)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable indicator) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str indicator)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -19644,19 +19650,21 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable N) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -19860,13 +19868,15 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str a1)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable a1) ()) (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str a1)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -19880,13 +19890,15 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str a2)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable a2) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str a2)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) (meta )))) (log_prob ()) (reverse_mode_log_prob ()) (generate_quantities @@ -20357,13 +20369,15 @@ (Sized (SArray SReal ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str y)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable y) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str y)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id data_tuple) @@ -21491,19 +21505,21 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable N) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -21518,13 +21534,15 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str data_y)) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable data_y) ()) (UArray UReal) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str data_y)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -22454,19 +22472,21 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) - (assignment - (((pattern - (Indexed - ((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) - ((Single - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable N) ()) UInt + ((pattern + (Indexed + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((Single + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp @@ -22562,13 +22582,15 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern - (FunApp (CompilerInternal FnReadData) - (((pattern (Lit Str y)) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))))) + (initialize true) (assignment ()))) + (meta )) + ((pattern + (Assignment ((LVariable y) ()) (UArray UInt) + ((pattern + (FunApp (CompilerInternal FnReadData) + (((pattern (Lit Str y)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) From a1b2cb8100eddfdd217accdadd4bf35ae95ec4f9 Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Fri, 19 Jul 2024 09:26:28 -0400 Subject: [PATCH 08/17] revert debug_data_generation_tests.ml --- test/unit/Debug_data_generation_tests.ml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/unit/Debug_data_generation_tests.ml b/test/unit/Debug_data_generation_tests.ml index d3ea01ad3..cc0a5d590 100644 --- a/test/unit/Debug_data_generation_tests.ml +++ b/test/unit/Debug_data_generation_tests.ml @@ -147,29 +147,29 @@ let%expect_test "whole program data generation check" = 0.43780890273186973 ], [ - 0.30070059205259525, 1.0, 0.45065011470838867, 0.40347551006498511, + 0.30070059205259525, 1.0, 0.45065011470838873, 0.40347551006498511, 0.7742535367378276 ], [ - 0.1780531358185751, 0.45065011470838867, 1.0000000000000002, - 0.47627710137758322, 0.69085242407984859 + 0.1780531358185751, 0.45065011470838873, 1.0000000000000002, + 0.47627710137758322, 0.69085242407984848 ], [ - 0.59291090874043639, 0.40347551006498511, 0.47627710137758322, - 0.99999999999999989, 0.72199384900826991 + 0.59291090874043639, 0.40347551006498511, 0.47627710137758322, 1.0, + 0.72199384900826991 ], [ - 0.43780890273186973, 0.7742535367378276, 0.69085242407984859, + 0.43780890273186973, 0.7742535367378276, 0.69085242407984848, 0.72199384900826991, 1.0 ] ], "e": [ [ - 3.5187841056791589, 3.0801270965354859, 2.6613103589944083, + 3.5187841056791589, 3.0801270965354863, 2.6613103589944083, 3.0708651420825221 ], [ - 3.0801270965354859, 4.1445739878716106, 1.7318254997563731, + 3.0801270965354863, 4.1445739878716106, 1.7318254997563731, 3.284008881887432 ], [ @@ -195,8 +195,8 @@ let%expect_test "whole program data generation check" = [ 0.8680809071847051, 0.49642274180518731, 0.0, 0.0 ], [ 0.84564151733440152, 0.45763410086289852, 0.27470248249292828, 0.0 ], [ - 0.79750208002871426, 0.46262393314442585, 0.38391964675632262, - 0.050746760156257162 + 0.797502080028714, 0.46262393314442579, 0.38391964675632256, + 0.050746760156257148 ] ], "h": [ From 2aaf5dd58536338d26805ffd7ced7071ff40618e Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Fri, 19 Jul 2024 11:20:53 -0400 Subject: [PATCH 09/17] remove assign and make initialize into a type --- src/analysis_and_optimization/Optimize.ml | 17 +- src/frontend/Ast_to_Mir.ml | 12 +- src/middle/Stmt.ml | 18 +- src/middle/Stmt.mli | 6 +- src/stan_math_backend/Lower_stmt.ml | 43 +- src/stan_math_backend/Transform_Mir.ml | 40 +- test/integration/good/code-gen/mir.expected | 487 +++-- .../profiling/transformed_mir.expected | 88 +- .../good/code-gen/transformed_mir.expected | 1063 +++++----- .../mem_patterns/transformed_mir.expected | 1866 ++++++++--------- .../good/tuples/transformed_mir.expected | 991 +++++---- test/unit/Ast_to_Mir_tests.ml | 12 +- test/unit/Dataflow_utils.ml | 2 +- test/unit/Optimize.ml | 12 +- 14 files changed, 2305 insertions(+), 2352 deletions(-) diff --git a/src/analysis_and_optimization/Optimize.ml b/src/analysis_and_optimization/Optimize.ml index 7fc45ce19..6c723f17b 100644 --- a/src/analysis_and_optimization/Optimize.ml +++ b/src/analysis_and_optimization/Optimize.ml @@ -84,14 +84,13 @@ let gen_inline_var (name : string) (id_var : string) = let replace_fresh_local_vars (fname : string) stmt = let f (m : (string, string) Core.Map.Poly.t) = function - | Stmt.Fixed.Pattern.Decl - {decl_adtype; decl_type; decl_id; initialize; assignment} -> + | Stmt.Fixed.Pattern.Decl {decl_adtype; decl_type; decl_id; initialize} -> let new_name = match Map.Poly.find m decl_id with | Some existing -> existing | None -> gen_inline_var fname decl_id in ( Stmt.Fixed.Pattern.Decl - {decl_adtype; decl_id= new_name; decl_type; initialize; assignment} + {decl_adtype; decl_id= new_name; decl_type; initialize} , Map.Poly.set m ~key:decl_id ~data:new_name ) | Stmt.Fixed.Pattern.For {loopvar; lower; upper; body} -> let new_name = @@ -202,8 +201,7 @@ let handle_early_returns (fname : string) opt_var stmt = { decl_adtype= DataOnly ; decl_id= returned ; decl_type= Sized SInt - ; initialize= true - ; assignment= None } + ; initialize= Default } ; meta= Location_span.empty } ; Stmt.Fixed. { pattern= @@ -296,8 +294,7 @@ let rec inline_function_expression propto adt fim (Expr.Fixed.{pattern; _} as e) (Type.to_unsized decl_type) ; decl_id= inline_return_name ; decl_type - ; initialize= false - ; assignment= None } ] + ; initialize= Uninit } ] (* We should minimize the code that's having its variables replaced to avoid conflict with the (two) new dummy variables introduced by inlining *) @@ -838,7 +835,8 @@ and unenforce_initialize (lst : Stmt.Located.t list) = | Some ([] | [Index.All] | [Index.All; Index.All]) -> { stmt with pattern= - Stmt.Fixed.Pattern.Decl {decl_pat with initialize= false} } + Stmt.Fixed.Pattern.Decl {decl_pat with initialize= Uninit} + } | None | Some _ -> stmt) | None -> stmt) | Block block_lst -> @@ -975,8 +973,7 @@ let lazy_code_motion ?(preserve_stability = false) (mir : Program.Typed.t) = { decl_adtype= Expr.Typed.adlevel_of key ; decl_id= data ; decl_type= Type.Unsized (Expr.Typed.type_of key) - ; initialize= true - ; assignment= None } + ; initialize= Default } ; meta= Location_span.empty } :: accum) in let lazy_code_motion_base i stmt = diff --git a/src/frontend/Ast_to_Mir.ml b/src/frontend/Ast_to_Mir.ml index 52598bf98..c3e894c66 100644 --- a/src/frontend/Ast_to_Mir.ml +++ b/src/frontend/Ast_to_Mir.ml @@ -459,8 +459,7 @@ let create_decl_with_assign decl_id declc decl_type initial_value transform let decl = Stmt. { Fixed.pattern= - Decl - {decl_adtype; decl_id; decl_type; initialize= true; assignment= None} + Decl {decl_adtype; decl_id; decl_type; initialize= Default} ; meta= smeta } in let rhs_assignment = Option.map @@ -585,8 +584,7 @@ let rec trans_stmt ud_dists (declc : decl_context) (ts : Ast.typed_statement) = { decl_adtype= Expr.Typed.adlevel_of iteratee' ; decl_id= loopvar.name ; decl_type= Unsized decl_type - ; initialize= true - ; assignment= None } } in + ; initialize= Default } } in let assignment var = Stmt.Fixed. { pattern= @@ -632,8 +630,7 @@ and trans_packed_assign loc trans_stmt lvals rhs assign_op = { decl_adtype= rhs.emeta.ad_level ; decl_id= sym ; decl_type= Unsized rhs_type - ; initialize= false - ; assignment= None } + ; initialize= Uninit } ; meta= rhs.emeta.loc } in let assign = { temp with @@ -747,8 +744,7 @@ let rec trans_sizedtype_decl declc tr name st = { decl_type= Sized SInt ; decl_id ; decl_adtype= DataOnly - ; initialize= true - ; assignment= None } + ; initialize= Default } ; meta= e.meta.loc } in let assign = { Stmt.Fixed.pattern= diff --git a/src/middle/Stmt.ml b/src/middle/Stmt.ml index ea5cd8686..be0a67e74 100644 --- a/src/middle/Stmt.ml +++ b/src/middle/Stmt.ml @@ -25,8 +25,7 @@ module Fixed = struct { decl_adtype: UnsizedType.autodifftype ; decl_id: string ; decl_type: 'a Type.t - ; initialize: bool - ; assignment: 'a option } + ; initialize: 'a decl_init } [@@deriving sexp, hash, map, fold, compare] and 'e lvalue = 'e lbase * 'e Index.t list @@ -35,6 +34,9 @@ module Fixed = struct and 'e lbase = LVariable of string | LTupleProjection of 'e lvalue * int [@@deriving sexp, hash, map, compare, fold] + and 'a decl_init = Uninit | Default | Assign of 'a + [@@deriving sexp, hash, map, fold, compare] + let rec pp_lvalue pp_e ppf (lbase, idcs) = match lbase with | LVariable v -> Fmt.pf ppf "%s%a" v (Index.pp_indices pp_e) idcs @@ -71,13 +73,12 @@ module Fixed = struct | Block stmts -> Fmt.pf ppf "{@;<1 2>@[%a@]@;}" Fmt.(list pp_s ~sep:cut) stmts | SList stmts -> Fmt.(list pp_s ~sep:cut |> vbox) ppf stmts - (*TODO(Steve): Need a new one for decl with assign*) - | Decl {decl_adtype; decl_id; decl_type; assignment; _} -> ( - match assignment with - | Some e -> + | Decl {decl_adtype; decl_id; decl_type; initialize} -> ( + match initialize with + | Assign e -> Fmt.pf ppf "@[%a%a@ %s = %a;@]" UnsizedType.pp_autodifftype decl_adtype (Type.pp pp_e) decl_type decl_id pp_e e - | None -> + | Uninit | Default -> Fmt.pf ppf "@[%a%a@ %s;@]" UnsizedType.pp_autodifftype decl_adtype (Type.pp pp_e) decl_type decl_id) @@ -150,8 +151,7 @@ module Helpers = struct { decl_adtype= Expr.Typed.adlevel_of e ; decl_id= sym ; decl_type= Unsized (Expr.Typed.type_of e) - ; initialize= true - ; assignment= None } + ; initialize= Default } ; meta= e.meta.loc } in let assign = { decl with diff --git a/src/middle/Stmt.mli b/src/middle/Stmt.mli index f847878fc..5a680895b 100644 --- a/src/middle/Stmt.mli +++ b/src/middle/Stmt.mli @@ -23,8 +23,7 @@ module Fixed : sig { decl_adtype: UnsizedType.autodifftype ; decl_id: string ; decl_type: 'a Type.t - ; initialize: bool - ; assignment: 'a option } + ; initialize: 'a decl_init } [@@deriving sexp, hash, compare] and 'e lvalue = 'e lbase * 'e Index.t list @@ -33,6 +32,9 @@ module Fixed : sig and 'e lbase = LVariable of string | LTupleProjection of 'e lvalue * int [@@deriving sexp, hash, map, compare, fold] + and 'a decl_init = Uninit | Default | Assign of 'a + [@@deriving sexp, hash, map, fold, compare] + include Pattern.S2 with type ('a, 'b) t := ('a, 'b) t end diff --git a/src/stan_math_backend/Lower_stmt.ml b/src/stan_math_backend/Lower_stmt.ml index 2380e87db..c91dca678 100644 --- a/src/stan_math_backend/Lower_stmt.ml +++ b/src/stan_math_backend/Lower_stmt.ml @@ -91,10 +91,12 @@ let rec initialize_value st adtype = (adtype : UnsizedType.autodifftype)] (*Initialize an object of a given size.*) -let lower_assign_sized st adtype initialize assignment = - match assignment with - | Some e -> Some (lower_expr e) - | None -> if initialize then Some (initialize_value st adtype) else None +let lower_assign_sized st adtype (initialize : 'a Stmt.Fixed.Pattern.decl_init) + = + match initialize with + | Assign e -> Some (lower_expr e) + | Default -> Some (initialize_value st adtype) + | Uninit -> None let lower_unsized_decl name ut adtype = let type_ = @@ -105,13 +107,14 @@ let lower_unsized_decl name ut adtype = | true, _ -> TypeLiteral "matrix_cl" in make_variable_defn ~type_ ~name () -let lower_possibly_opencl_decl name st adtype assignment = +let lower_possibly_opencl_decl name st adtype + (initialize : 'a Stmt.Fixed.Pattern.decl_init) = let ut = SizedType.to_unsized st in let mem_pattern = SizedType.get_mem_pattern st in match (Transform_Mir.is_opencl_var name, ut) with | _, UnsizedType.(UInt | UReal) | false, _ -> ( - match assignment with - | Some + match initialize with + | Assign Expr.Fixed. { pattern= FunApp (CompilerInternal (Internal_fun.FnReadParam _), _) ; _ } -> @@ -120,17 +123,16 @@ let lower_possibly_opencl_decl name st adtype assignment = | true, UArray UInt -> TypeLiteral "matrix_cl" | true, _ -> TypeLiteral "matrix_cl" -let lower_sized_decl name st adtype initialize assignment = - let type_ = lower_possibly_opencl_decl name st adtype assignment in +let lower_sized_decl name st adtype initialize = + let type_ = lower_possibly_opencl_decl name st adtype initialize in let init = - lower_assign_sized st adtype initialize assignment + lower_assign_sized st adtype initialize |> Option.value_map ~default:Uninitialized ~f:(fun i -> Assignment i) in make_variable_defn ~type_ ~name ~init () -let lower_decl vident pst adtype initialize assignment = +let lower_decl vident pst adtype initialize = match pst with - | Type.Sized st -> - VariableDefn (lower_sized_decl vident st adtype initialize assignment) + | Type.Sized st -> VariableDefn (lower_sized_decl vident st adtype initialize) | Unsized ut -> VariableDefn (lower_unsized_decl vident ut adtype) let lower_profile name body = @@ -329,8 +331,8 @@ let rec lower_statement Stmt.Fixed.{pattern; meta} : stmt list = | Return e -> [Return (Option.map ~f:lower_expr e)] | Block ls -> [Stmts.block (lower_statements ls)] | SList ls -> lower_statements ls - | Decl {decl_adtype; decl_id; decl_type; initialize; assignment} -> - [lower_decl decl_id decl_type decl_adtype initialize assignment] + | Decl {decl_adtype; decl_id; decl_type; initialize} -> + [lower_decl decl_id decl_type decl_adtype initialize] | Profile (name, ls) -> [lower_profile name (lower_statements ls)] and lower_statements = List.concat_map ~f:lower_statement @@ -342,9 +344,14 @@ module Testing = struct (Fmt.option Cpp.Printing.pp_expr) (lower_assign_sized (SArray (SArray (SMatrix (AoS, int 2, int 3), int 4), int 5)) - DataOnly false None) + DataOnly Stmt.Fixed.Pattern.Default) |> print_endline; - [%expect {| |}] + [%expect + {| + std::vector>>(5, + std::vector>(4, + Eigen::Matrix::Constant(2, 3, + std::numeric_limits::quiet_NaN()))) |}] let%expect_test "set size mat array" = let int = Expr.Helpers.int in @@ -352,7 +359,7 @@ module Testing = struct (Fmt.option Cpp.Printing.pp_expr) (lower_assign_sized (SArray (SArray (SMatrix (AoS, int 2, int 3), int 4), int 5)) - DataOnly true None) + DataOnly Stmt.Fixed.Pattern.Default) |> print_endline; [%expect {| diff --git a/src/stan_math_backend/Transform_Mir.ml b/src/stan_math_backend/Transform_Mir.ml index 1ebb0dfd7..7cbc98d44 100644 --- a/src/stan_math_backend/Transform_Mir.ml +++ b/src/stan_math_backend/Transform_Mir.ml @@ -322,8 +322,7 @@ let rec var_context_read_inside_tuple enclosing_tuple_name origin_type (SizedType.to_unsized t) ; decl_id= make_tuple_temp name ; decl_type= Sized t - ; initialize= true - ; assignment= None } + ; initialize= Default } |> swrap) tuple_component_names tuple_types in let loop = @@ -370,8 +369,7 @@ let rec var_context_read_inside_tuple enclosing_tuple_name origin_type { decl_adtype= AutoDiffable ; decl_id= decl_id_flat ; decl_type= Unsized flat_type - ; initialize= true - ; assignment= None } + ; initialize= Default } |> swrap , Assignment (Stmt.Helpers.lvariable decl_id_flat, flat_type, origin) |> swrap @@ -475,8 +473,7 @@ let rec var_context_read { decl_adtype= AutoDiffable ; decl_id= variable_name ; decl_type= Unsized array_type - ; initialize= true - ; assignment= None } + ; initialize= Default } |> swrap_noloc ; Assignment ( Stmt.Helpers.lvariable variable_name @@ -487,8 +484,7 @@ let rec var_context_read { decl_adtype= DataOnly ; decl_id= variable_name ^ "pos__" ; decl_type= Unsized UInt - ; initialize= true - ; assignment= None } + ; initialize= Default } |> swrap_noloc ; Stmt.Fixed.Pattern.Assignment ( Stmt.Helpers.lvariable (variable_name ^ "pos__") @@ -516,8 +512,7 @@ let rec var_context_read (SizedType.to_unsized t) ; decl_id= make_tuple_temp name ; decl_type= Sized t - ; initialize= true - ; assignment= None } + ; initialize= Default } |> swrap_noloc) tuple_component_names tuple_types in let loop = @@ -564,8 +559,7 @@ let rec var_context_read { decl_adtype= AutoDiffable ; decl_id= decl_id_flat ; decl_type= Unsized flat_type - ; initialize= false - ; assignment= None } + ; initialize= Uninit } |> swrap , Assignment ( Stmt.Helpers.lvariable decl_id_flat @@ -770,8 +764,8 @@ let add_reads vars mkread stmts = let var_names = String.Map.of_alist_exn vars in let add_read_to_decl (Stmt.Fixed.{pattern; _} as stmt) = match pattern with - | Decl {decl_id; decl_adtype; decl_type; initialize; _} - when Map.mem var_names decl_id -> ( + | Decl {decl_id; decl_adtype; decl_type; _} when Map.mem var_names decl_id + -> ( let loc, out = Map.find_exn var_names decl_id in let param_reader = mkread (Stmt.Helpers.lvariable decl_id, loc, out) in match param_reader with @@ -789,11 +783,7 @@ let add_reads vars mkread stmts = [ { stmt with pattern= Stmt.Fixed.Pattern.Decl - { decl_id - ; decl_adtype - ; decl_type - ; initialize - ; assignment= Some e } } ] + {decl_id; decl_adtype; decl_type; initialize= Assign e} } ] | _ -> stmt :: param_reader) | _ -> [stmt] in List.concat_map ~f:add_read_to_decl stmts @@ -900,8 +890,7 @@ let var_context_unconstrain_transform (decl_id, smeta, outvar) = (SizedType.to_unsized st) ; decl_id ; decl_type= Type.Sized st - ; initialize= true - ; assignment= None } + ; initialize= Default } ; meta= smeta } :: var_context_read (Stmt.Helpers.lvariable decl_id, smeta, st) @ param_serializer_write ~unconstrain:true (decl_id, outvar) @@ -917,8 +906,7 @@ let array_unconstrain_transform (decl_id, smeta, outvar) = (SizedType.to_unsized outvar.Program.out_constrained_st) ; decl_id ; decl_type= Type.Sized outvar.Program.out_constrained_st - ; initialize= true - ; assignment= None } + ; initialize= Default } ; meta= smeta } in let rec read (lval, st) = match st with @@ -1058,8 +1046,7 @@ let trans_prog (p : Program.Typed.t) = { decl_adtype= DataOnly ; decl_id= pos ; decl_type= Sized SInt - ; initialize= true - ; assignment= None } + ; initialize= Default } ; Assignment (Stmt.Helpers.lvariable pos, UInt, Expr.Helpers.loop_bottom) ] |> List.map ~f:(fun pattern -> Stmt.Fixed.{pattern; meta= Location_span.empty}) in @@ -1176,8 +1163,7 @@ let trans_prog (p : Program.Typed.t) = { decl_adtype= DataOnly ; decl_id= vident ; decl_type= Type.Unsized type_of_input_var - ; initialize= true - ; assignment= None } + ; initialize= Default } ; meta= Location_span.empty } ; { pattern= Assignment diff --git a/test/integration/good/code-gen/mir.expected b/test/integration/good/code-gen/mir.expected index c4d384ca1..f1ae85ae2 100644 --- a/test/integration/good/code-gen/mir.expected +++ b/test/integration/good/code-gen/mir.expected @@ -56,7 +56,7 @@ (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -334,7 +334,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id b) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable b) ()) UInt @@ -412,11 +412,11 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -438,8 +438,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized (UArray UInt))) (initialize true) - (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) (UArray UInt) @@ -486,8 +485,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized (UArray UInt))) (initialize true) - (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) (UArray UInt) @@ -534,8 +532,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized (UArray UInt))) (initialize true) - (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) (UArray UInt) @@ -574,7 +571,7 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id vv) (decl_type (Unsized UInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable vv) ()) UInt @@ -622,7 +619,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id vs) @@ -633,7 +630,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -679,7 +676,7 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) (decl_type (Unsized UReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -766,7 +763,7 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) (decl_type (Unsized UReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -813,7 +810,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id vs) @@ -822,7 +819,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -842,8 +839,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true) - (assignment ()))) + (decl_type (Unsized UReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -893,8 +889,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true) - (assignment ()))) + (decl_type (Unsized UReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -931,7 +926,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id vs) @@ -940,7 +935,7 @@ (SRowVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -961,8 +956,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true) - (assignment ()))) + (decl_type (Unsized UReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -1013,8 +1007,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true) - (assignment ()))) + (decl_type (Unsized UReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -1051,7 +1044,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id b) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable b) ()) UInt @@ -1062,7 +1055,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id c) - (decl_type (Sized SInt)) (initialize true) (assignment ()))) + (decl_type (Sized SInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable c) ()) UInt @@ -1092,11 +1085,11 @@ (SArray SInt ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id y) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -1116,8 +1109,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized UInt)) (initialize true) - (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UInt @@ -1213,11 +1205,11 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id abs_diff) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id avg_scale) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable abs_diff) ()) UReal @@ -1443,7 +1435,7 @@ (((pattern (Var mat)) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable o) ()) UMatrix @@ -1736,11 +1728,11 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id a) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id b) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id c) @@ -1752,7 +1744,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 20)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ar_mat) @@ -1769,7 +1761,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 60)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -2204,7 +2196,7 @@ (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable l) ()) UVector @@ -2235,7 +2227,7 @@ (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable l) ()) UVector @@ -2349,7 +2341,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -2426,7 +2418,7 @@ (SVector AoS ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -2741,8 +2733,8 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (prepare_data (((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -2756,8 +2748,8 @@ (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -2771,8 +2763,8 @@ (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -2817,7 +2809,7 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -2863,7 +2855,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -2880,8 +2872,8 @@ (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id J) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id J) (decl_type (Sized SReal)) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -2930,7 +2922,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -2963,7 +2955,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -2978,7 +2970,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3002,7 +2994,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3044,7 +3036,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3059,7 +3051,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3083,7 +3075,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3125,7 +3117,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_ar_mat) @@ -3140,7 +3132,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -3181,7 +3173,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -3214,7 +3206,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -3265,7 +3257,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -3284,7 +3276,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -3302,7 +3294,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -3329,7 +3321,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -3342,7 +3334,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_int) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3358,7 +3350,7 @@ (Sized (SArray SInt ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3376,7 +3368,7 @@ (SArray SInt ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3397,11 +3389,11 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_real) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3417,7 +3409,7 @@ (Sized (SArray SReal ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3435,7 +3427,7 @@ (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3456,7 +3448,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3481,7 +3473,7 @@ (SMatrix AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3516,7 +3508,7 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3555,7 +3547,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3597,7 +3589,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3613,7 +3605,7 @@ (Sized (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3639,7 +3631,7 @@ (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3668,7 +3660,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3700,7 +3692,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3716,7 +3708,7 @@ (Sized (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3742,7 +3734,7 @@ (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3771,7 +3763,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3803,11 +3795,11 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_int) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3822,7 +3814,7 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3837,7 +3829,7 @@ (Sized (SArray SInt ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable td_1dk) ()) (UArray UInt) @@ -3849,7 +3841,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_a) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable td_a) ()) UInt @@ -3857,7 +3849,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_b) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable td_b) ()) UReal @@ -3873,7 +3865,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_c) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable td_c) ()) UReal @@ -3895,7 +3887,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3910,7 +3902,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3934,7 +3926,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -3976,7 +3968,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_cfcov_54) @@ -3985,7 +3977,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_cfcov_33) @@ -3994,7 +3986,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x) @@ -4002,7 +3994,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id y) @@ -4010,7 +4002,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id dat) @@ -4018,7 +4010,7 @@ (Sized (SArray SReal ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id dat_int) @@ -4026,7 +4018,7 @@ (Sized (SArray SInt ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x_r) @@ -4036,7 +4028,7 @@ (SArray SReal ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x_i) @@ -4046,7 +4038,7 @@ (SArray SInt ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable td_int) ()) UInt @@ -4304,7 +4296,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable l_mat) ()) UMatrix @@ -4385,7 +4377,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id z) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id blocked_tdata_vs) @@ -4394,7 +4386,7 @@ (SRowVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -4414,7 +4406,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) (decl_type (Unsized UReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -4446,7 +4438,7 @@ (SArray SInt ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable indices) ()) (UArray UInt) @@ -4466,7 +4458,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id sym1__) - (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UArray UInt) @@ -4499,8 +4491,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id i) - (decl_type (Unsized UInt)) (initialize true) - (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable i) ()) UInt @@ -4586,7 +4577,7 @@ (SArray SInt ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -4609,7 +4600,7 @@ (Sized (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable x_mul_ind) ()) (UArray UReal) @@ -4631,7 +4622,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id transformed_data_real) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4647,7 +4638,7 @@ (Sized (SArray SReal ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4665,7 +4656,7 @@ (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4686,7 +4677,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4711,7 +4702,7 @@ (SMatrix AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4746,7 +4737,7 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4785,7 +4776,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4827,7 +4818,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4843,7 +4834,7 @@ (Sized (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4869,7 +4860,7 @@ (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4898,7 +4889,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4930,7 +4921,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4946,7 +4937,7 @@ (Sized (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -4972,7 +4963,7 @@ (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -5001,7 +4992,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -5033,7 +5024,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable transformed_data_real) ()) UReal @@ -6804,15 +6795,15 @@ (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id offset_multiplier) @@ -6820,7 +6811,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id no_offset_multiplier) @@ -6828,7 +6819,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id offset_no_multiplier) @@ -6836,7 +6827,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real_1d_ar) @@ -6844,7 +6835,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real_3d_ar) @@ -6856,7 +6847,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_vec) @@ -6864,7 +6855,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_vec) @@ -6874,7 +6865,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_vec) @@ -6888,7 +6879,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_row_vec) @@ -6896,7 +6887,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_row_vec) @@ -6906,7 +6897,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_row_vec) @@ -6920,7 +6911,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_mat) @@ -6929,7 +6920,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_ar_mat) @@ -6944,7 +6935,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_simplex) @@ -6952,7 +6943,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_simplex) @@ -6962,7 +6953,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_simplex) @@ -6976,7 +6967,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_54) @@ -6985,7 +6976,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_33) @@ -6994,7 +6985,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_33_ar) @@ -7005,7 +6996,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id x_p) @@ -7013,7 +7004,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id y_p) @@ -7021,7 +7012,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_1d_ar) @@ -7029,7 +7020,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_3d_ar) @@ -7041,7 +7032,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_vec) @@ -7049,7 +7040,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_vec) @@ -7059,7 +7050,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_vec) @@ -7073,7 +7064,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_row_vec) @@ -7081,7 +7072,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_row_vec) @@ -7091,7 +7082,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_row_vec) @@ -7105,7 +7096,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_mat) @@ -7114,7 +7105,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_ar_mat) @@ -7129,7 +7120,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_simplex) @@ -7137,7 +7128,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_simplex) @@ -7147,7 +7138,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_simplex) @@ -7161,7 +7152,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_54) @@ -7170,7 +7161,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_33) @@ -7179,7 +7170,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_33_ar) @@ -7190,7 +7181,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta_p) @@ -7198,11 +7189,11 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_real_1d_ar) ()) (UArray UReal) @@ -7763,7 +7754,7 @@ (SVector AoS ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tmp2) @@ -7775,11 +7766,11 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id r1) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable r1) ()) UReal @@ -7791,7 +7782,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id r2) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable r2) ()) UReal @@ -8556,15 +8547,15 @@ (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id offset_multiplier) @@ -8572,7 +8563,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id no_offset_multiplier) @@ -8580,7 +8571,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id offset_no_multiplier) @@ -8588,7 +8579,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_real_1d_ar) @@ -8596,7 +8587,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_real_3d_ar) @@ -8608,7 +8599,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_vec) @@ -8616,7 +8607,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_1d_vec) @@ -8626,7 +8617,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_3d_vec) @@ -8640,7 +8631,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_row_vec) @@ -8648,7 +8639,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_1d_row_vec) @@ -8658,7 +8649,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_3d_row_vec) @@ -8672,7 +8663,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_mat) @@ -8681,7 +8672,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_ar_mat) @@ -8696,7 +8687,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_simplex) @@ -8704,7 +8695,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_1d_simplex) @@ -8714,7 +8705,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_3d_simplex) @@ -8728,7 +8719,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_cfcov_54) @@ -8737,7 +8728,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_cfcov_33) @@ -8746,7 +8737,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_cfcov_33_ar) @@ -8757,7 +8748,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x_p) @@ -8765,7 +8756,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id y_p) @@ -8773,7 +8764,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_1d_ar) @@ -8781,7 +8772,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_3d_ar) @@ -8793,7 +8784,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_vec) @@ -8801,7 +8792,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_1d_vec) @@ -8811,7 +8802,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_3d_vec) @@ -8825,7 +8816,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_row_vec) @@ -8833,7 +8824,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_1d_row_vec) @@ -8843,7 +8834,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_3d_row_vec) @@ -8857,7 +8848,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_mat) @@ -8866,7 +8857,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_ar_mat) @@ -8881,7 +8872,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_simplex) @@ -8889,7 +8880,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_1d_simplex) @@ -8899,7 +8890,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_3d_simplex) @@ -8913,7 +8904,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_cfcov_54) @@ -8922,7 +8913,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_cfcov_33) @@ -8931,7 +8922,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_cfcov_33_ar) @@ -8942,7 +8933,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id theta_p) @@ -8950,11 +8941,11 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (IfElse @@ -9527,7 +9518,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_r1) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable gq_r1) ()) UReal @@ -9539,7 +9530,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_r2) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable gq_r2) ()) UReal @@ -9554,7 +9545,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_real_3d_ar) @@ -9566,7 +9557,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_vec) @@ -9574,7 +9565,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_1d_vec) @@ -9584,7 +9575,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_3d_vec) @@ -9598,7 +9589,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_row_vec) @@ -9606,7 +9597,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_1d_row_vec) @@ -9616,7 +9607,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_3d_row_vec) @@ -9630,7 +9621,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_ar_mat) @@ -9645,7 +9636,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_simplex) @@ -9653,7 +9644,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_1d_simplex) @@ -9663,7 +9654,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_3d_simplex) @@ -9677,7 +9668,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_cfcov_54) @@ -9686,7 +9677,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_cfcov_33) @@ -9695,7 +9686,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_cfcov_33_ar) @@ -9706,7 +9697,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id indices) @@ -9714,7 +9705,7 @@ (Sized (SArray SInt ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable indices) ()) (UArray UInt) @@ -9734,7 +9725,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res1) @@ -9745,7 +9736,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res2) @@ -9756,7 +9747,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res3) @@ -9767,7 +9758,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res11) @@ -9778,7 +9769,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res21) @@ -9789,7 +9780,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res31) @@ -9800,7 +9791,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res4) @@ -9810,7 +9801,7 @@ (SRowVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res5) @@ -9820,7 +9811,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable gq_real_1d_ar) ()) (UArray UReal) diff --git a/test/integration/good/code-gen/profiling/transformed_mir.expected b/test/integration/good/code-gen/profiling/transformed_mir.expected index 74fcfec9c..31ba87f72 100644 --- a/test/integration/good/code-gen/profiling/transformed_mir.expected +++ b/test/integration/good/code-gen/profiling/transformed_mir.expected @@ -24,15 +24,15 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -71,7 +71,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable x) ()) (UArray UReal) @@ -93,13 +93,13 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id y_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable y_flat__) ()) (UArray UReal) @@ -154,7 +154,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sum_y) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Profile "\"sum\"" @@ -170,9 +170,9 @@ (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id rho) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -186,9 +186,9 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -202,9 +202,9 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -241,7 +241,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -266,7 +266,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Profile "\"cov_exp_quad\"" @@ -401,9 +401,9 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id rho) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -417,9 +417,9 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -433,9 +433,9 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -472,7 +472,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -497,7 +497,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Profile "\"cov_exp_quad\"" @@ -632,9 +632,9 @@ (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id rho) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -648,9 +648,9 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -664,9 +664,9 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -728,7 +728,7 @@ (transform_inits (((pattern (Decl (decl_adtype AutoDiffable) (decl_id rho) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable rho) ()) UReal @@ -758,7 +758,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -788,7 +788,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -819,7 +819,7 @@ (unconstrain_array (((pattern (Decl (decl_adtype AutoDiffable) (decl_id rho) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable rho) ()) UReal @@ -840,7 +840,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -861,7 +861,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal diff --git a/test/integration/good/code-gen/transformed_mir.expected b/test/integration/good/code-gen/transformed_mir.expected index 4a2ca57cf..a079d169b 100644 --- a/test/integration/good/code-gen/transformed_mir.expected +++ b/test/integration/good/code-gen/transformed_mir.expected @@ -59,7 +59,7 @@ (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -337,7 +337,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id b) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable b) ()) UInt @@ -425,11 +425,11 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -451,8 +451,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized (UArray UInt))) (initialize true) - (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) (UArray UInt) @@ -499,8 +498,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized (UArray UInt))) (initialize true) - (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) (UArray UInt) @@ -547,8 +545,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized (UArray UInt))) (initialize true) - (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) (UArray UInt) @@ -587,7 +584,7 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id vv) (decl_type (Unsized UInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable vv) ()) UInt @@ -635,7 +632,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id vs) @@ -646,7 +643,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -692,7 +689,7 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) (decl_type (Unsized UReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -779,7 +776,7 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) (decl_type (Unsized UReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -826,7 +823,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id vs) @@ -835,7 +832,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -855,8 +852,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true) - (assignment ()))) + (decl_type (Unsized UReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -906,8 +902,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true) - (assignment ()))) + (decl_type (Unsized UReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -944,7 +939,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id vs) @@ -953,7 +948,7 @@ (SRowVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -974,8 +969,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true) - (assignment ()))) + (decl_type (Unsized UReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -1026,8 +1020,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id v) - (decl_type (Unsized UReal)) (initialize true) - (assignment ()))) + (decl_type (Unsized UReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -1064,7 +1057,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id b) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable b) ()) UInt @@ -1075,7 +1068,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id c) - (decl_type (Sized SInt)) (initialize true) (assignment ()))) + (decl_type (Sized SInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable c) ()) UInt @@ -1105,11 +1098,11 @@ (SArray SInt ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id y) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -1129,8 +1122,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) - (decl_type (Unsized UInt)) (initialize true) - (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UInt @@ -1226,11 +1218,11 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id abs_diff) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id avg_scale) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable abs_diff) ()) UReal @@ -1462,7 +1454,7 @@ (((pattern (Var mat)) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable))))))) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable o) ()) UMatrix @@ -1755,11 +1747,11 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id a) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id b) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id c) @@ -1771,7 +1763,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 20)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ar_mat) @@ -1788,7 +1780,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 60)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -2223,7 +2215,7 @@ (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable l) ()) UVector @@ -2254,7 +2246,7 @@ (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable l) ()) UVector @@ -2368,7 +2360,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -2445,7 +2437,7 @@ (SVector AoS ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -2761,15 +2753,15 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -2797,8 +2789,8 @@ (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable M) ()) UInt @@ -2826,8 +2818,8 @@ (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable K) ()) UInt @@ -2886,7 +2878,7 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable d_int_1d_ar) ()) (UArray UInt) @@ -2940,13 +2932,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_int_3d_ar_flat__) - (decl_type (Unsized (UArray UInt))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_int_3d_ar_flat__) ()) (UArray UInt) @@ -3058,8 +3050,8 @@ (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id J) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id J) (decl_type (Sized SReal)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable J) ()) UReal @@ -3122,7 +3114,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable d_real_1d_ar) ()) (UArray UReal) @@ -3163,13 +3155,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_real_3d_ar_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_real_3d_ar_flat__) ()) (UArray UReal) @@ -3279,13 +3271,13 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_vec_flat__) ()) (UArray UReal) @@ -3360,13 +3352,13 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_1d_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_1d_vec_flat__) ()) (UArray UReal) @@ -3476,13 +3468,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_3d_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_3d_vec_flat__) ()) (UArray UReal) @@ -3620,13 +3612,13 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_row_vec_flat__) ()) (UArray UReal) @@ -3701,13 +3693,13 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_1d_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_1d_row_vec_flat__) ()) (UArray UReal) @@ -3817,13 +3809,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_3d_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_3d_row_vec_flat__) ()) (UArray UReal) @@ -3961,13 +3953,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_ar_mat_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_ar_mat_flat__) ()) (UArray UReal) @@ -4131,13 +4123,13 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_simplex_flat__) ()) (UArray UReal) @@ -4221,13 +4213,13 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_1d_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_1d_simplex_flat__) ()) (UArray UReal) @@ -4346,13 +4338,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_3d_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_3d_simplex_flat__) ()) (UArray UReal) @@ -4494,13 +4486,13 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_cfcov_54_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_cfcov_54_flat__) ()) (UArray UReal) @@ -4587,13 +4579,13 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_cfcov_33_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_cfcov_33_flat__) ()) (UArray UReal) @@ -4689,13 +4681,13 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_cfcov_33_ar_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_cfcov_33_ar_flat__) ()) (UArray UReal) @@ -4802,7 +4794,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_int) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable d_int) ()) UInt @@ -4832,7 +4824,7 @@ (Sized (SArray SInt ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable d_int_array) ()) (UArray UInt) @@ -4858,13 +4850,13 @@ (SArray SInt ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_int_array_2d_flat__) - (decl_type (Unsized (UArray UInt))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_int_array_2d_flat__) ()) (UArray UInt) @@ -4954,13 +4946,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_int_array_3d_flat__) - (decl_type (Unsized (UArray UInt))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_int_array_3d_flat__) ()) (UArray UInt) @@ -5060,7 +5052,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id d_real) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable d_real) ()) UReal @@ -5090,7 +5082,7 @@ (Sized (SArray SReal ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable d_real_array) ()) (UArray UReal) @@ -5116,13 +5108,13 @@ (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_real_array_2d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_real_array_2d_flat__) ()) (UArray UReal) @@ -5212,13 +5204,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_real_array_3d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_real_array_3d_flat__) ()) (UArray UReal) @@ -5339,13 +5331,13 @@ (SMatrix AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_matrix_flat__) ()) (UArray UReal) @@ -5449,13 +5441,13 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_array_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_matrix_array_flat__) ()) (UArray UReal) @@ -5588,13 +5580,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_array_2d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_matrix_array_2d_flat__) ()) (UArray UReal) @@ -5759,13 +5751,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_matrix_array_3d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_matrix_array_3d_flat__) ()) (UArray UReal) @@ -5937,13 +5929,13 @@ (Sized (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_vector_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_vector_flat__) ()) (UArray UReal) @@ -6021,13 +6013,13 @@ (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_vector_array_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_vector_array_flat__) ()) (UArray UReal) @@ -6125,13 +6117,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_vector_array_2d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_vector_array_2d_flat__) ()) (UArray UReal) @@ -6258,13 +6250,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_vector_array_3d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_vector_array_3d_flat__) ()) (UArray UReal) @@ -6404,13 +6396,13 @@ (Sized (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_row_vector_flat__) ()) (UArray UReal) @@ -6488,13 +6480,13 @@ (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_array_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_row_vector_array_flat__) ()) (UArray UReal) @@ -6592,13 +6584,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_array_2d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_row_vector_array_2d_flat__) ()) (UArray UReal) @@ -6725,13 +6717,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id d_row_vector_array_3d_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable d_row_vector_array_3d_flat__) ()) (UArray UReal) @@ -6860,7 +6852,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_int) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -6875,7 +6867,7 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -6890,7 +6882,7 @@ (Sized (SArray SInt ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable td_1dk) ()) (UArray UInt) @@ -6902,7 +6894,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_a) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable td_a) ()) UInt @@ -6910,7 +6902,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_b) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable td_b) ()) UReal @@ -6926,7 +6918,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_c) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable td_c) ()) UReal @@ -6948,7 +6940,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -6963,7 +6955,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -6987,7 +6979,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7029,7 +7021,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_cfcov_54) @@ -7038,7 +7030,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id td_cfcov_33) @@ -7047,7 +7039,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x) @@ -7055,7 +7047,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id y) @@ -7063,7 +7055,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id dat) @@ -7071,7 +7063,7 @@ (Sized (SArray SReal ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id dat_int) @@ -7079,7 +7071,7 @@ (Sized (SArray SInt ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x_r) @@ -7089,7 +7081,7 @@ (SArray SReal ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id x_i) @@ -7099,7 +7091,7 @@ (SArray SInt ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable td_int) ()) UInt @@ -7357,7 +7349,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable l_mat) ()) UMatrix @@ -7438,7 +7430,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id z) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id blocked_tdata_vs) @@ -7447,7 +7439,7 @@ (SRowVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -7467,7 +7459,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id v) (decl_type (Unsized UReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable v) ()) UReal @@ -7499,7 +7491,7 @@ (SArray SInt ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable indices) ()) (UArray UInt) @@ -7519,7 +7511,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id sym1__) - (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UArray UInt) @@ -7552,8 +7544,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id i) - (decl_type (Unsized UInt)) (initialize true) - (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable i) ()) UInt @@ -7639,7 +7630,7 @@ (SArray SInt ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -7662,7 +7653,7 @@ (Sized (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable x_mul_ind) ()) (UArray UReal) @@ -7684,7 +7675,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id transformed_data_real) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7700,7 +7691,7 @@ (Sized (SArray SReal ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7718,7 +7709,7 @@ (SArray SReal ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7739,7 +7730,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7764,7 +7755,7 @@ (SMatrix AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7799,7 +7790,7 @@ ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7838,7 +7829,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7880,7 +7871,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7896,7 +7887,7 @@ (Sized (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7922,7 +7913,7 @@ (SVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7951,7 +7942,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7983,7 +7974,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -7999,7 +7990,7 @@ (Sized (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -8025,7 +8016,7 @@ (SRowVector AoS ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -8054,7 +8045,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -8086,7 +8077,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable transformed_data_real) ()) UReal @@ -9857,9 +9848,9 @@ (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -9868,9 +9859,9 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -9884,9 +9875,9 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -9904,9 +9895,9 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -9929,9 +9920,9 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -9952,9 +9943,9 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -9975,9 +9966,9 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -10002,9 +9993,9 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -10031,9 +10022,9 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -10056,9 +10047,9 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10083,9 +10074,9 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10110,9 +10101,9 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10131,9 +10122,9 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10158,9 +10149,9 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10186,9 +10177,9 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10214,9 +10205,9 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -10245,9 +10236,9 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Simplex) @@ -10266,9 +10257,9 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Simplex) @@ -10293,9 +10284,9 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Simplex) @@ -10321,9 +10312,9 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCov) @@ -10343,9 +10334,9 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCov) @@ -10367,9 +10358,9 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCov) @@ -10390,9 +10381,9 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10409,9 +10400,9 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10428,7 +10419,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_3d_ar) @@ -10440,7 +10431,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_vec) @@ -10448,7 +10439,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_vec) @@ -10458,7 +10449,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_vec) @@ -10472,7 +10463,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_row_vec) @@ -10480,7 +10471,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_row_vec) @@ -10490,7 +10481,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_row_vec) @@ -10504,7 +10495,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_mat) @@ -10513,7 +10504,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_ar_mat) @@ -10528,7 +10519,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_simplex) @@ -10536,7 +10527,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_simplex) @@ -10546,7 +10537,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_simplex) @@ -10560,7 +10551,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_54) @@ -10569,7 +10560,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_33) @@ -10578,7 +10569,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_33_ar) @@ -10589,7 +10580,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta_p) @@ -10597,11 +10588,11 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_real_1d_ar) ()) (UArray UReal) @@ -11162,7 +11153,7 @@ (SVector AoS ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tmp2) @@ -11174,11 +11165,11 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id r1) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable r1) ()) UReal @@ -11190,7 +11181,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id r2) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable r2) ()) UReal @@ -11954,9 +11945,9 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -11965,9 +11956,9 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -11981,9 +11972,9 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -12001,9 +11992,9 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -12026,9 +12017,9 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -12049,9 +12040,9 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -12072,9 +12063,9 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -12099,9 +12090,9 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -12128,9 +12119,9 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -12153,9 +12144,9 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12180,9 +12171,9 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12207,9 +12198,9 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12228,9 +12219,9 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12255,9 +12246,9 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12283,9 +12274,9 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12311,9 +12302,9 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -12342,9 +12333,9 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Simplex) @@ -12363,9 +12354,9 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Simplex) @@ -12390,9 +12381,9 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Simplex) @@ -12418,9 +12409,9 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCov) @@ -12440,9 +12431,9 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCov) @@ -12464,9 +12455,9 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCov) @@ -12487,9 +12478,9 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12506,9 +12497,9 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12525,7 +12516,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_3d_ar) @@ -12537,7 +12528,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_vec) @@ -12545,7 +12536,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_vec) @@ -12555,7 +12546,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_vec) @@ -12569,7 +12560,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_row_vec) @@ -12577,7 +12568,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_row_vec) @@ -12587,7 +12578,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_row_vec) @@ -12601,7 +12592,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_mat) @@ -12610,7 +12601,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_ar_mat) @@ -12625,7 +12616,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_simplex) @@ -12633,7 +12624,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_1d_simplex) @@ -12643,7 +12634,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_3d_simplex) @@ -12657,7 +12648,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_54) @@ -12666,7 +12657,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_33) @@ -12675,7 +12666,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_cfcov_33_ar) @@ -12686,7 +12677,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta_p) @@ -12694,11 +12685,11 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_real_1d_ar) ()) (UArray UReal) @@ -13259,7 +13250,7 @@ (SVector AoS ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tmp2) @@ -13271,11 +13262,11 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id r1) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable r1) ()) UReal @@ -13287,7 +13278,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id r2) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable r2) ()) UReal @@ -14051,9 +14042,9 @@ (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -14062,9 +14053,9 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -14078,9 +14069,9 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -14098,9 +14089,9 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -14123,9 +14114,9 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -14146,9 +14137,9 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -14169,9 +14160,9 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -14196,9 +14187,9 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -14225,9 +14216,9 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -14250,9 +14241,9 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -14277,9 +14268,9 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -14304,9 +14295,9 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -14325,9 +14316,9 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -14352,9 +14343,9 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -14380,9 +14371,9 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -14408,9 +14399,9 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -14439,9 +14430,9 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Simplex) @@ -14460,9 +14451,9 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Simplex) @@ -14487,9 +14478,9 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Simplex) @@ -14515,9 +14506,9 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCov) @@ -14537,9 +14528,9 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCov) @@ -14561,9 +14552,9 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCov) @@ -14584,9 +14575,9 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -14603,9 +14594,9 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -14622,7 +14613,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_3d_ar) @@ -14634,7 +14625,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_vec) @@ -14642,7 +14633,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_1d_vec) @@ -14652,7 +14643,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_3d_vec) @@ -14666,7 +14657,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_row_vec) @@ -14674,7 +14665,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_1d_row_vec) @@ -14684,7 +14675,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_3d_row_vec) @@ -14698,7 +14689,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_mat) @@ -14707,7 +14698,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_ar_mat) @@ -14722,7 +14713,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_simplex) @@ -14730,7 +14721,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_1d_simplex) @@ -14740,7 +14731,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_3d_simplex) @@ -14754,7 +14745,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_cfcov_54) @@ -14763,7 +14754,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_cfcov_33) @@ -14772,7 +14763,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_cfcov_33_ar) @@ -14783,7 +14774,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id theta_p) @@ -14791,11 +14782,11 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -16850,7 +16841,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_r1) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable gq_r1) ()) UReal @@ -16862,7 +16853,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_r2) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable gq_r2) ()) UReal @@ -16877,7 +16868,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_real_3d_ar) @@ -16889,7 +16880,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_vec) @@ -16897,7 +16888,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_1d_vec) @@ -16907,7 +16898,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_3d_vec) @@ -16921,7 +16912,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_row_vec) @@ -16929,7 +16920,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_1d_row_vec) @@ -16939,7 +16930,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_3d_row_vec) @@ -16953,7 +16944,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_ar_mat) @@ -16968,7 +16959,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_simplex) @@ -16976,7 +16967,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_1d_simplex) @@ -16986,7 +16977,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_3d_simplex) @@ -17000,7 +16991,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_cfcov_54) @@ -17009,7 +17000,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_cfcov_33) @@ -17018,7 +17009,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id gq_cfcov_33_ar) @@ -17029,7 +17020,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id indices) @@ -17037,7 +17028,7 @@ (Sized (SArray SInt ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable indices) ()) (UArray UInt) @@ -17057,7 +17048,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res1) @@ -17068,7 +17059,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res2) @@ -17079,7 +17070,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res3) @@ -17090,7 +17081,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res11) @@ -17101,7 +17092,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res21) @@ -17112,7 +17103,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res31) @@ -17123,7 +17114,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res4) @@ -17133,7 +17124,7 @@ (SRowVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id idx_res5) @@ -17143,7 +17134,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable gq_real_1d_ar) ()) (UArray UReal) @@ -19195,7 +19186,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -19203,7 +19194,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_real) ()) UReal @@ -19230,7 +19221,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_upper) ()) UReal @@ -19261,7 +19252,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_lower) ()) UReal @@ -19296,7 +19287,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable offset_multiplier) ()) (UArray UReal) @@ -19327,7 +19318,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable no_offset_multiplier) ()) (UArray UReal) @@ -19356,7 +19347,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable offset_no_multiplier) ()) (UArray UReal) @@ -19385,7 +19376,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_real_1d_ar) ()) (UArray UReal) @@ -19418,13 +19409,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real_3d_ar_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_real_3d_ar_flat__) ()) (UArray UReal) @@ -19541,13 +19532,13 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_vec_flat__) ()) (UArray UReal) @@ -19621,13 +19612,13 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_1d_vec_flat__) ()) (UArray UReal) @@ -19718,13 +19709,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_3d_vec_flat__) ()) (UArray UReal) @@ -19865,13 +19856,13 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_row_vec_flat__) ()) (UArray UReal) @@ -19941,13 +19932,13 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_1d_row_vec_flat__) ()) (UArray UReal) @@ -20038,13 +20029,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_row_vec_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_3d_row_vec_flat__) ()) (UArray UReal) @@ -20187,13 +20178,13 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_mat_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_mat_flat__) ()) (UArray UReal) @@ -20286,13 +20277,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_ar_mat_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_ar_mat_flat__) ()) (UArray UReal) @@ -20438,13 +20429,13 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_simplex_flat__) ()) (UArray UReal) @@ -20514,13 +20505,13 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_1d_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_1d_simplex_flat__) ()) (UArray UReal) @@ -20611,13 +20602,13 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_3d_simplex_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_3d_simplex_flat__) ()) (UArray UReal) @@ -20759,13 +20750,13 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_54_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_54_flat__) ()) (UArray UReal) @@ -20852,13 +20843,13 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_33_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_33_flat__) ()) (UArray UReal) @@ -20947,13 +20938,13 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_cfcov_33_ar_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_33_ar_flat__) ()) (UArray UReal) @@ -21064,13 +21055,13 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x_p_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable x_p_flat__) ()) (UArray UReal) @@ -21138,13 +21129,13 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id y_p_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable y_p_flat__) ()) (UArray UReal) @@ -21209,7 +21200,7 @@ (unconstrain_array (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_real) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_real) ()) UReal @@ -21227,7 +21218,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_upper) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_upper) ()) UReal @@ -21249,7 +21240,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_lower) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_lower) ()) UReal @@ -21275,7 +21266,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable offset_multiplier) ()) (UArray UReal) @@ -21305,7 +21296,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable no_offset_multiplier) ()) (UArray UReal) @@ -21333,7 +21324,7 @@ (Sized (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable offset_no_multiplier) ()) (UArray UReal) @@ -21361,7 +21352,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_real_1d_ar) ()) (UArray UReal) @@ -21393,7 +21384,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -21469,7 +21460,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_vec) ()) UVector @@ -21499,7 +21490,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -21558,7 +21549,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -21655,7 +21646,7 @@ (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_row_vec) ()) URowVector @@ -21681,7 +21672,7 @@ (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -21740,7 +21731,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -21839,7 +21830,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_mat) ()) UMatrix @@ -21871,7 +21862,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -21974,7 +21965,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_simplex) ()) UVector @@ -22000,7 +21991,7 @@ (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -22059,7 +22050,7 @@ ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -22157,7 +22148,7 @@ (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_54) ()) UMatrix @@ -22183,7 +22174,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_cfcov_33) ()) UMatrix @@ -22211,7 +22202,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -22283,7 +22274,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable x_p) ()) UVector @@ -22306,7 +22297,7 @@ (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable y_p) ()) UVector diff --git a/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected b/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected index 940a0bbe3..59f6d7ff0 100644 --- a/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected +++ b/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected @@ -38,15 +38,15 @@ matrix[2, 2] aos_mat_from_vecs: AoS (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -83,13 +83,13 @@ matrix[2, 2] aos_mat_from_vecs: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id X_data_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable X_data_flat__) ()) (UArray UReal) @@ -172,13 +172,13 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id y_data_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable y_data_flat__) ()) (UArray UReal) @@ -240,9 +240,9 @@ matrix[2, 2] aos_mat_from_vecs: AoS (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -251,9 +251,9 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -266,9 +266,9 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -295,7 +295,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable soa_simple) ()) UVector @@ -331,7 +331,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable aos_deep) ()) UVector @@ -378,7 +378,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable soa_dual_rep) ()) UVector @@ -417,7 +417,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable soa_data_rep) ()) UVector @@ -457,7 +457,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable soa_mix) ()) UVector @@ -491,7 +491,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable aos_from_data) ()) UVector @@ -553,7 +553,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable soa_mat_rep) ()) UMatrix @@ -613,7 +613,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable soa_mat_rep_vec) ()) UMatrix @@ -668,7 +668,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable aos_mat_rep) ()) UMatrix @@ -702,7 +702,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable aos_mat_from_vecs) ()) UMatrix @@ -814,9 +814,9 @@ matrix[2, 2] aos_mat_from_vecs: AoS (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -825,9 +825,9 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -840,9 +840,9 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -869,7 +869,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable soa_simple) ()) UVector @@ -905,7 +905,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable aos_deep) ()) UVector @@ -952,7 +952,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable soa_dual_rep) ()) UVector @@ -991,7 +991,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable soa_data_rep) ()) UVector @@ -1031,7 +1031,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable soa_mix) ()) UVector @@ -1065,7 +1065,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable aos_from_data) ()) UVector @@ -1127,7 +1127,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable soa_mat_rep) ()) UMatrix @@ -1187,7 +1187,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable soa_mat_rep_vec) ()) UMatrix @@ -1242,7 +1242,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable aos_mat_rep) ()) UMatrix @@ -1276,7 +1276,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable aos_mat_from_vecs) ()) UMatrix @@ -1388,9 +1388,9 @@ matrix[2, 2] aos_mat_from_vecs: AoS (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -1399,9 +1399,9 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -1414,9 +1414,9 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -1478,7 +1478,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -1486,7 +1486,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -1512,7 +1512,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -1542,13 +1542,13 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id beta_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable beta_flat__) ()) (UArray UReal) @@ -1613,7 +1613,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (unconstrain_array (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -1630,7 +1630,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -1651,7 +1651,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable beta) ()) UVector @@ -1711,9 +1711,9 @@ matrix[10, 10] A_p: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -1733,7 +1733,7 @@ matrix[10, 10] A_p: AoS (SComplexMatrix ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable A_complex_tp) ()) UComplexMatrix @@ -1752,9 +1752,9 @@ matrix[10, 10] A_p: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -1774,7 +1774,7 @@ matrix[10, 10] A_p: AoS (SComplexMatrix ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable A_complex_tp) ()) UComplexMatrix @@ -1793,9 +1793,9 @@ matrix[10, 10] A_p: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -1815,7 +1815,7 @@ matrix[10, 10] A_p: AoS (SComplexMatrix ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -1878,7 +1878,7 @@ matrix[10, 10] A_p: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -1891,13 +1891,13 @@ matrix[10, 10] A_p: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id A_p_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable A_p_flat__) ()) (UArray UReal) @@ -1984,7 +1984,7 @@ matrix[10, 10] A_p: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable A_p) ()) UMatrix @@ -2134,15 +2134,15 @@ vector[Nr] h_sigma: SoA (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -2170,8 +2170,8 @@ vector[Nr] h_sigma: SoA (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id K) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable K) ()) UInt @@ -2211,13 +2211,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id diff_low_mid_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable diff_low_mid_flat__) ()) (UArray UReal) @@ -2283,13 +2283,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id diff_high_mid_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable diff_high_mid_flat__) ()) (UArray UReal) @@ -2355,13 +2355,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id mid_price_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable mid_price_flat__) ()) (UArray UReal) @@ -2435,13 +2435,13 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id X_all_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable X_all_flat__) ()) (UArray UReal) @@ -2513,7 +2513,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi_prior_a) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable phi_prior_a) ()) UReal @@ -2544,7 +2544,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi_prior_b) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable phi_prior_b) ()) UReal @@ -2575,7 +2575,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id mu_prior_mu) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable mu_prior_mu) ()) UReal @@ -2593,7 +2593,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id mu_prior_sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable mu_prior_sigma) ()) UReal @@ -2624,7 +2624,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma_prior_shape) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sigma_prior_shape) ()) UReal @@ -2655,7 +2655,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma_prior_rate) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sigma_prior_rate) ()) UReal @@ -2685,8 +2685,8 @@ vector[Nr] h_sigma: SoA (((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id Nr) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id Nr) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable Nr) ()) UInt @@ -2897,9 +2897,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -2948,9 +2948,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -2967,9 +2967,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -2986,9 +2986,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -3001,9 +3001,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ma) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -3012,9 +3012,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi_beta) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -3030,9 +3030,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma2) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -3046,9 +3046,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id Intercept) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -3061,9 +3061,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -3080,9 +3080,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -3099,9 +3099,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -3114,9 +3114,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -3137,9 +3137,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -3188,9 +3188,9 @@ vector[Nr] h_sigma: SoA (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -3251,9 +3251,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -3302,9 +3302,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Ordered) @@ -3321,9 +3321,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain UnitVector) @@ -3340,9 +3340,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain PositiveOrdered) @@ -3360,9 +3360,9 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Correlation) @@ -3380,9 +3380,9 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Covariance) @@ -3400,9 +3400,9 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCov) @@ -3422,9 +3422,9 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCorr) @@ -3437,7 +3437,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable phi) ()) UReal @@ -3456,7 +3456,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -3472,7 +3472,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable prices) ()) UVector @@ -3490,7 +3490,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable prices_diff) ()) UVector @@ -3529,7 +3529,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable mu) ()) UVector @@ -3552,7 +3552,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable err) ()) UVector @@ -3697,7 +3697,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id h_i_sigma) @@ -3705,7 +3705,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -3825,7 +3825,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable h_sigma) ()) UVector @@ -4092,9 +4092,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -4143,9 +4143,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -4162,9 +4162,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -4181,9 +4181,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -4196,9 +4196,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ma) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -4207,9 +4207,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi_beta) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -4225,9 +4225,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma2) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -4241,9 +4241,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id Intercept) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -4256,9 +4256,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -4275,9 +4275,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -4294,9 +4294,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -4309,9 +4309,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -4332,9 +4332,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -4383,9 +4383,9 @@ vector[Nr] h_sigma: SoA (Sized (SRowVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -4446,9 +4446,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -4497,9 +4497,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Ordered) @@ -4516,9 +4516,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain UnitVector) @@ -4535,9 +4535,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain PositiveOrdered) @@ -4555,9 +4555,9 @@ vector[Nr] h_sigma: SoA (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Correlation) @@ -4575,9 +4575,9 @@ vector[Nr] h_sigma: SoA (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Covariance) @@ -4595,9 +4595,9 @@ vector[Nr] h_sigma: SoA (SMatrix SoA ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCov) @@ -4617,9 +4617,9 @@ vector[Nr] h_sigma: SoA (SMatrix SoA ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCorr) @@ -4632,7 +4632,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable phi) ()) UReal @@ -4651,7 +4651,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sigma) ()) UReal @@ -4667,7 +4667,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable prices) ()) UVector @@ -4685,7 +4685,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable prices_diff) ()) UVector @@ -4724,7 +4724,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable mu) ()) UVector @@ -4747,7 +4747,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable err) ()) UVector @@ -4892,7 +4892,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id h_i_sigma) @@ -4900,7 +4900,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -5020,7 +5020,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector SoA ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable h_sigma) ()) UVector @@ -5287,9 +5287,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -5338,9 +5338,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -5357,9 +5357,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -5376,9 +5376,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -5391,9 +5391,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id ma) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -5402,9 +5402,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi_beta) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -5420,9 +5420,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma2) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -5436,9 +5436,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id Intercept) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -5451,9 +5451,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -5470,9 +5470,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -5489,9 +5489,9 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id theta) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -5504,9 +5504,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -5527,9 +5527,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -5578,9 +5578,9 @@ vector[Nr] h_sigma: SoA (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -5641,9 +5641,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -5692,9 +5692,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Ordered) @@ -5711,9 +5711,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain UnitVector) @@ -5730,9 +5730,9 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain PositiveOrdered) @@ -5750,9 +5750,9 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Correlation) @@ -5770,9 +5770,9 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Covariance) @@ -5790,9 +5790,9 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCov) @@ -5812,9 +5812,9 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain CholeskyCorr) @@ -5827,11 +5827,11 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id phi) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sigma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id prices) @@ -5839,7 +5839,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id prices_diff) @@ -5847,7 +5847,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id mu) @@ -5855,7 +5855,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id err) @@ -5863,7 +5863,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id h_i_mean) @@ -5871,7 +5871,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id h_i_sigma) @@ -5879,7 +5879,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id h_sigma) @@ -5887,7 +5887,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -6616,7 +6616,7 @@ vector[Nr] h_sigma: SoA (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -6628,13 +6628,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id high_low_est_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable high_low_est_flat__) ()) (UArray UReal) @@ -6708,13 +6708,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id b_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable b_flat__) ()) (UArray UReal) @@ -6781,13 +6781,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id h_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable h_flat__) ()) (UArray UReal) @@ -6854,13 +6854,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id ar_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable ar_flat__) ()) (UArray UReal) @@ -6924,7 +6924,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable ma) ()) UReal @@ -6950,7 +6950,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi_beta) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable phi_beta) ()) UReal @@ -6983,7 +6983,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma2) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sigma2) ()) UReal @@ -7014,7 +7014,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id Intercept) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable Intercept) ()) UReal @@ -7045,13 +7045,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id mean_price_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable mean_price_flat__) ()) (UArray UReal) @@ -7119,13 +7119,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma_price_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sigma_price_flat__) ()) (UArray UReal) @@ -7193,7 +7193,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable theta) ()) UReal @@ -7223,13 +7223,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id upper_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable upper_test_flat__) ()) (UArray UReal) @@ -7301,13 +7301,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id lower_upper_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable lower_upper_test_flat__) ()) (UArray UReal) @@ -7381,13 +7381,13 @@ vector[Nr] h_sigma: SoA (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id row_vec_lower_upper_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable row_vec_lower_upper_test_flat__) ()) @@ -7468,13 +7468,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id offset_mult_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable offset_mult_test_flat__) ()) (UArray UReal) @@ -7548,13 +7548,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id ordered_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable ordered_test_flat__) ()) (UArray UReal) @@ -7622,13 +7622,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id unit_vec_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable unit_vec_test_flat__) ()) (UArray UReal) @@ -7696,13 +7696,13 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id pos_ordered_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable pos_ordered_test_flat__) ()) (UArray UReal) @@ -7771,13 +7771,13 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id corr_matrix_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable corr_matrix_test_flat__) ()) (UArray UReal) @@ -7863,13 +7863,13 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id cov_matrix_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable cov_matrix_test_flat__) ()) (UArray UReal) @@ -7955,13 +7955,13 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id chol_fac_cov_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable chol_fac_cov_test_flat__) ()) (UArray UReal) @@ -8047,13 +8047,13 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id chol_fac_corr_test_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable chol_fac_corr_test_flat__) ()) (UArray UReal) @@ -8139,7 +8139,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable high_low_est) ()) UVector @@ -8169,7 +8169,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable b) ()) UVector @@ -8192,7 +8192,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable h) ()) UVector @@ -8215,7 +8215,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable ar) ()) UVector @@ -8234,7 +8234,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ma) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable ma) ()) UReal @@ -8251,7 +8251,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id phi_beta) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable phi_beta) ()) UReal @@ -8275,7 +8275,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sigma2) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sigma2) ()) UReal @@ -8297,7 +8297,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id Intercept) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable Intercept) ()) UReal @@ -8319,7 +8319,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable mean_price) ()) UVector @@ -8343,7 +8343,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sigma_price) ()) UVector @@ -8367,7 +8367,7 @@ vector[Nr] h_sigma: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable theta) ()) UReal @@ -8388,7 +8388,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable upper_test) ()) UVector @@ -8416,7 +8416,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable lower_upper_test) ()) UVector @@ -8446,7 +8446,7 @@ vector[Nr] h_sigma: SoA (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable row_vec_lower_upper_test) ()) URowVector @@ -8482,7 +8482,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable offset_mult_test) ()) UVector @@ -8512,7 +8512,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable ordered_test) ()) UVector @@ -8536,7 +8536,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable unit_vec_test) ()) UVector @@ -8560,7 +8560,7 @@ vector[Nr] h_sigma: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos_ordered_test) ()) UVector @@ -8585,7 +8585,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable corr_matrix_test) ()) UMatrix @@ -8611,7 +8611,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable cov_matrix_test) ()) UMatrix @@ -8637,7 +8637,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable chol_fac_cov_test) ()) UMatrix @@ -8663,7 +8663,7 @@ vector[Nr] h_sigma: SoA (SMatrix AoS ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable chol_fac_corr_test) ()) UMatrix @@ -9187,9 +9187,9 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -9209,7 +9209,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_tp1) ()) UMatrix @@ -9226,7 +9226,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_tp2) ()) UMatrix @@ -9243,7 +9243,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_tp3) ()) UMatrix @@ -9260,7 +9260,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_tp4) ()) UMatrix @@ -9277,7 +9277,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_tp5) ()) UMatrix @@ -9294,7 +9294,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_tp6) ()) UMatrix @@ -9311,7 +9311,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_tp7) ()) UMatrix @@ -9379,9 +9379,9 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -9401,7 +9401,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_tp1) ()) UMatrix @@ -9418,7 +9418,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_tp2) ()) UMatrix @@ -9435,7 +9435,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_tp3) ()) UMatrix @@ -9452,7 +9452,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_tp4) ()) UMatrix @@ -9469,7 +9469,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_tp5) ()) UMatrix @@ -9486,7 +9486,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_tp6) ()) UMatrix @@ -9503,7 +9503,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_tp7) ()) UMatrix @@ -9571,9 +9571,9 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -9593,7 +9593,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id X_tp2) @@ -9602,7 +9602,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id X_tp3) @@ -9611,7 +9611,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id X_tp4) @@ -9620,7 +9620,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id X_tp5) @@ -9629,7 +9629,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id X_tp6) @@ -9638,7 +9638,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id X_tp7) @@ -9647,7 +9647,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -9861,7 +9861,7 @@ matrix[10, 10] X_tp7: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -9874,13 +9874,13 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id X_p_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable X_p_flat__) ()) (UArray UReal) @@ -9967,7 +9967,7 @@ matrix[10, 10] X_tp7: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable X_p) ()) UMatrix @@ -10183,15 +10183,15 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -10208,8 +10208,8 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable M) ()) UInt @@ -10246,13 +10246,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id dat_x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable dat_x_flat__) ()) (UArray UReal) @@ -10334,13 +10334,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id y_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable y_flat__) ()) (UArray UReal) @@ -10406,7 +10406,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable idx_tester) ()) (UArray UInt) @@ -10657,9 +10657,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -10672,9 +10672,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10692,9 +10692,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10715,9 +10715,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10737,9 +10737,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10758,9 +10758,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10778,9 +10778,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10799,9 +10799,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10818,9 +10818,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10837,9 +10837,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10857,9 +10857,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10878,9 +10878,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10897,9 +10897,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10916,9 +10916,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10935,9 +10935,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10955,9 +10955,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10977,9 +10977,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10999,9 +10999,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -11021,9 +11021,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -11043,9 +11043,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -11065,9 +11065,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -11082,7 +11082,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_aos) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_real_from_aos) ()) UReal @@ -11101,7 +11101,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_aos_vec_v) ()) UVector @@ -11117,7 +11117,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -11153,7 +11153,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_aos_fail_func_vec_v) ()) UVector @@ -11181,7 +11181,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -11214,7 +11214,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_soa_used_with_aos_in_excluded_fun) ()) UVector @@ -11459,7 +11459,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -11485,7 +11485,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -11854,7 +11854,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -11870,7 +11870,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar i) @@ -12033,9 +12033,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -12048,9 +12048,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12068,9 +12068,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12091,9 +12091,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12113,9 +12113,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12134,9 +12134,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12154,9 +12154,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12175,9 +12175,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SRowVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12194,9 +12194,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12213,9 +12213,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12233,9 +12233,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12254,9 +12254,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12273,9 +12273,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12292,9 +12292,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12311,9 +12311,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12331,9 +12331,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12353,9 +12353,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12375,9 +12375,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12397,9 +12397,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12419,9 +12419,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12441,9 +12441,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -12458,7 +12458,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_aos) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_real_from_aos) ()) UReal @@ -12477,7 +12477,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_aos_vec_v) ()) UVector @@ -12493,7 +12493,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -12529,7 +12529,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_aos_fail_func_vec_v) ()) UVector @@ -12557,7 +12557,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -12590,7 +12590,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_soa_used_with_aos_in_excluded_fun) ()) UVector @@ -12835,7 +12835,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -12861,7 +12861,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -13230,7 +13230,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -13246,7 +13246,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar i) @@ -13409,9 +13409,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -13424,9 +13424,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13444,9 +13444,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13467,9 +13467,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13489,9 +13489,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13510,9 +13510,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13530,9 +13530,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13551,9 +13551,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13570,9 +13570,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13589,9 +13589,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13609,9 +13609,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13630,9 +13630,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13649,9 +13649,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13668,9 +13668,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13687,9 +13687,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13707,9 +13707,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13729,9 +13729,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13751,9 +13751,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13773,9 +13773,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13795,9 +13795,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13817,9 +13817,9 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -13834,7 +13834,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_from_aos) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_aos_vec_v) @@ -13842,7 +13842,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_soa_single_idx_uninit) @@ -13850,7 +13850,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_aos_fail_func_vec_v) @@ -13858,7 +13858,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_aos_fail_assign_from_top_idx) @@ -13866,7 +13866,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -14252,7 +14252,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -14260,7 +14260,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -14290,13 +14290,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_vec_v_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_soa_vec_v_flat__) ()) (UArray UReal) @@ -14365,13 +14365,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_mat_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_soa_mat_flat__) ()) (UArray UReal) @@ -14458,13 +14458,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_arr_vec_v_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_soa_arr_vec_v_flat__) ()) (UArray UReal) @@ -14550,13 +14550,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_mat_uni_col_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_soa_mat_uni_col_idx_flat__) ()) (UArray UReal) @@ -14641,13 +14641,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_vec_uni_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_soa_vec_uni_idx_flat__) ()) (UArray UReal) @@ -14716,13 +14716,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_loop_mat_uni_col_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_soa_loop_mat_uni_col_idx_flat__) ()) @@ -14808,13 +14808,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_lhs_loop_mul_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_soa_lhs_loop_mul_flat__) ()) (UArray UReal) @@ -14882,13 +14882,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_rhs_loop_mul_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_soa_rhs_loop_mul_flat__) ()) (UArray UReal) @@ -14956,14 +14956,14 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_used_with_aos_in_excluded_fun_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_soa_used_with_aos_in_excluded_fun_flat__) ()) @@ -15033,14 +15033,14 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_soa_loop_mat_multi_uni_uni_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_soa_loop_mat_multi_uni_uni_idx_flat__) ()) @@ -15126,13 +15126,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_vec_v_assign_to_aos_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_aos_vec_v_assign_to_aos_flat__) ()) @@ -15201,13 +15201,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_vec_v_tp_fails_func_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_aos_vec_v_tp_fails_func_flat__) ()) @@ -15276,13 +15276,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_loop_vec_v_uni_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_vec_v_uni_idx_flat__) ()) @@ -15351,13 +15351,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_fail_assign_from_top_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_aos_fail_assign_from_top_idx_flat__) ()) @@ -15427,13 +15427,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_loop_mat_uni_uni_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_mat_uni_uni_idx_flat__) ()) @@ -15520,13 +15520,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_flat__) ()) (UArray UReal) @@ -15612,14 +15612,14 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_pass_func_outer_single_indexed1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed1_flat__) ()) @@ -15707,14 +15707,14 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_pass_func_outer_single_indexed2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed2_flat__) ()) @@ -15802,13 +15802,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_fail_uni_uni_idx1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx1_flat__) ()) @@ -15895,13 +15895,13 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_mat_fail_uni_uni_idx2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx2_flat__) ()) @@ -15984,7 +15984,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (unconstrain_array (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -16005,7 +16005,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_soa_vec_v) ()) UVector @@ -16030,7 +16030,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_soa_mat) ()) UMatrix @@ -16057,7 +16057,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -16111,7 +16111,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_soa_mat_uni_col_idx) ()) UMatrix @@ -16136,7 +16136,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_soa_vec_uni_idx) ()) UVector @@ -16161,7 +16161,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_soa_loop_mat_uni_col_idx) ()) UMatrix @@ -16186,7 +16186,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SRowVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_soa_lhs_loop_mul) ()) URowVector @@ -16210,7 +16210,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_soa_rhs_loop_mul) ()) UVector @@ -16234,7 +16234,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_soa_used_with_aos_in_excluded_fun) ()) UVector @@ -16259,7 +16259,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_soa_loop_mat_multi_uni_uni_idx) ()) UMatrix @@ -16284,7 +16284,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_aos_vec_v_assign_to_aos) ()) UVector @@ -16308,7 +16308,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_aos_vec_v_tp_fails_func) ()) UVector @@ -16332,7 +16332,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_vec_v_uni_idx) ()) UVector @@ -16356,7 +16356,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (Sized (SVector AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_aos_fail_assign_from_top_idx) ()) UVector @@ -16381,7 +16381,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_mat_uni_uni_idx) ()) UMatrix @@ -16407,7 +16407,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat) ()) UMatrix @@ -16433,7 +16433,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed1) ()) UMatrix @@ -16459,7 +16459,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_pass_func_outer_single_indexed2) ()) UMatrix @@ -16485,7 +16485,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx1) ()) UMatrix @@ -16511,7 +16511,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_aos_mat_fail_uni_uni_idx2) ()) UMatrix @@ -16827,8 +16827,8 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (prepare_data (((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -16845,8 +16845,8 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable M) ()) UInt @@ -16874,7 +16874,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable Idx) ()) (UArray UInt) @@ -16887,9 +16887,9 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -16902,9 +16902,9 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -16931,7 +16931,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_soa_multi_idx_assign_in_loop) ()) UVector @@ -16985,7 +16985,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar i) @@ -17022,9 +17022,9 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -17037,9 +17037,9 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -17066,7 +17066,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_soa_multi_idx_assign_in_loop) ()) UVector @@ -17120,7 +17120,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector SoA ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar i) @@ -17157,9 +17157,9 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (generate_quantities (((pattern (Decl (decl_adtype DataOnly) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -17172,9 +17172,9 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -17228,7 +17228,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -17236,7 +17236,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -17266,13 +17266,13 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id p_aos_loop_single_idx_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_single_idx_flat__) ()) (UArray UReal) @@ -17338,7 +17338,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (unconstrain_array (((pattern (Decl (decl_adtype AutoDiffable) (decl_id alpha) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) UReal @@ -17359,7 +17359,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA (Sized (SVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable p_aos_loop_single_idx) ()) UVector @@ -17441,7 +17441,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id data_r) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable data_r) ()) UReal @@ -17465,9 +17465,9 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -17487,9 +17487,9 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -17509,9 +17509,9 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -17526,7 +17526,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_soa) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_real_from_soa) ()) UReal @@ -17559,7 +17559,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_aos_from_mix) ()) UMatrix @@ -17596,7 +17596,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_from_udf_reduced_soa) ()) UMatrix @@ -17619,9 +17619,9 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix SoA ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -17641,9 +17641,9 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -17663,9 +17663,9 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -17680,7 +17680,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_soa) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_real_from_soa) ()) UReal @@ -17713,7 +17713,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_aos_from_mix) ()) UMatrix @@ -17750,7 +17750,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_from_udf_reduced_soa) ()) UMatrix @@ -17773,9 +17773,9 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -17795,9 +17795,9 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -17817,9 +17817,9 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -17834,7 +17834,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_from_soa) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_matrix_aos_from_mix) @@ -17843,7 +17843,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_matrix_from_udf_reduced_soa) @@ -17852,7 +17852,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -18008,7 +18008,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -18021,13 +18021,13 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id soa_x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable soa_x_flat__) ()) (UArray UReal) @@ -18114,13 +18114,13 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id aos_x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable aos_x_flat__) ()) (UArray UReal) @@ -18207,13 +18207,13 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id aos_y_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable aos_y_flat__) ()) (UArray UReal) @@ -18301,7 +18301,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable soa_x) ()) UMatrix @@ -18328,7 +18328,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable aos_x) ()) UMatrix @@ -18355,7 +18355,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable aos_y) ()) UMatrix @@ -18477,7 +18477,7 @@ matrix[10, 10] mul_two_aos: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Return @@ -18507,9 +18507,9 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -18529,9 +18529,9 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -18551,7 +18551,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable user_func_aos) ()) UMatrix @@ -18568,7 +18568,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable empty_user_func_aos) ()) UMatrix @@ -18582,7 +18582,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable inner_empty_user_func_aos) ()) UMatrix @@ -18601,7 +18601,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable int_aos_mul_aos) ()) UMatrix @@ -18627,7 +18627,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable mul_two_aos) ()) UMatrix @@ -18662,9 +18662,9 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix SoA ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -18684,9 +18684,9 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -18706,7 +18706,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable user_func_aos) ()) UMatrix @@ -18723,7 +18723,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable empty_user_func_aos) ()) UMatrix @@ -18737,7 +18737,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable inner_empty_user_func_aos) ()) UMatrix @@ -18756,7 +18756,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable int_aos_mul_aos) ()) UMatrix @@ -18782,7 +18782,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable mul_two_aos) ()) UMatrix @@ -18817,9 +18817,9 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -18839,9 +18839,9 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -18861,7 +18861,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id empty_user_func_aos) @@ -18870,7 +18870,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id inner_empty_user_func_aos) @@ -18879,7 +18879,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id int_aos_mul_aos) @@ -18888,7 +18888,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id mul_two_aos) @@ -18897,7 +18897,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -19062,7 +19062,7 @@ matrix[10, 10] mul_two_aos: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -19075,13 +19075,13 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id row_soa_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable row_soa_flat__) ()) (UArray UReal) @@ -19168,13 +19168,13 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id udf_input_aos_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable udf_input_aos_flat__) ()) (UArray UReal) @@ -19262,7 +19262,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable row_soa) ()) UMatrix @@ -19290,7 +19290,7 @@ matrix[10, 10] mul_two_aos: AoS (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable udf_input_aos) ()) UMatrix @@ -19440,9 +19440,9 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -19462,9 +19462,9 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -19479,7 +19479,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_soa) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_real_from_soa) ()) UReal @@ -19511,7 +19511,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SRowVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_row_vector_from_soa_loop) ()) URowVector @@ -19538,7 +19538,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_from_soa_loop) ()) UMatrix @@ -19569,9 +19569,9 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -19591,9 +19591,9 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix SoA ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -19608,7 +19608,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tp_real_from_soa) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_real_from_soa) ()) UReal @@ -19640,7 +19640,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SRowVector SoA ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_row_vector_from_soa_loop) ()) URowVector @@ -19667,7 +19667,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_from_soa_loop) ()) UMatrix @@ -19698,9 +19698,9 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -19720,9 +19720,9 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -19737,7 +19737,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tp_real_from_soa) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -19801,7 +19801,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SRowVector AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_row_vector_from_soa_loop) ()) URowVector @@ -19828,7 +19828,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_from_soa_loop) ()) UMatrix @@ -19881,7 +19881,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -19894,13 +19894,13 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id aos_p_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable aos_p_flat__) ()) (UArray UReal) @@ -19987,13 +19987,13 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id soa_p_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable soa_p_flat__) ()) (UArray UReal) @@ -20081,7 +20081,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable aos_p) ()) UMatrix @@ -20109,7 +20109,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (SMatrix AoS ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable soa_p) ()) UMatrix @@ -20209,7 +20209,7 @@ matrix[5, 10] tp_matrix_aos: AoS (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id data_r) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable data_r) ()) UReal @@ -20233,9 +20233,9 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -20255,9 +20255,9 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -20277,7 +20277,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_aos) ()) UMatrix @@ -20300,9 +20300,9 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -20322,9 +20322,9 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -20344,7 +20344,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tp_matrix_aos) ()) UMatrix @@ -20367,9 +20367,9 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -20389,9 +20389,9 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -20411,7 +20411,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -20488,7 +20488,7 @@ matrix[5, 10] tp_matrix_aos: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -20501,13 +20501,13 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id first_pass_soa_x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable first_pass_soa_x_flat__) ()) (UArray UReal) @@ -20594,13 +20594,13 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id aos_x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable aos_x_flat__) ()) (UArray UReal) @@ -20688,7 +20688,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable first_pass_soa_x) ()) UMatrix @@ -20715,7 +20715,7 @@ matrix[5, 10] tp_matrix_aos: AoS (SMatrix AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable aos_x) ()) UMatrix @@ -20845,7 +20845,7 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable xx) ()) 1) ()) (UArray UMatrix) @@ -20901,7 +20901,7 @@ matrix[1, 1] x: AoS (SMatrix AoS ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable x) ()) UMatrix @@ -20945,7 +20945,7 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable xx) ()) 1) ()) (UArray UMatrix) @@ -21001,7 +21001,7 @@ matrix[1, 1] x: AoS (SMatrix AoS ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable x) ()) UMatrix @@ -21044,7 +21044,7 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable xx) ()) 1) ()) (UArray UMatrix) @@ -21100,7 +21100,7 @@ matrix[1, 1] x: AoS (SMatrix AoS ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -21264,7 +21264,7 @@ matrix[1, 1] x: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -21294,13 +21294,13 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id xx_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable xx_dot_1_flat__) ()) (UArray UReal) @@ -21400,7 +21400,7 @@ matrix[1, 1] x: AoS (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id xx_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable xx_dot_2_flat__) ()) (UArray UReal) @@ -21475,7 +21475,7 @@ matrix[1, 1] x: AoS (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id xx_dot_3_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable xx_dot_3_flat__) ()) (UArray UReal) @@ -21616,7 +21616,7 @@ matrix[1, 1] x: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -21795,7 +21795,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -21808,13 +21808,13 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable x_flat__) ()) (UArray UReal) @@ -21893,9 +21893,9 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -21915,9 +21915,9 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -21947,7 +21947,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable temp) ()) (UTuple (UMatrix UMatrix)) @@ -21997,9 +21997,9 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -22019,9 +22019,9 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -22051,7 +22051,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable temp) ()) (UTuple (UMatrix UMatrix)) @@ -22101,9 +22101,9 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -22123,9 +22123,9 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -22180,7 +22180,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -22193,13 +22193,13 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id m1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable m1_flat__) ()) (UArray UReal) @@ -22285,13 +22285,13 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id m2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable m2_flat__) ()) (UArray UReal) @@ -22378,7 +22378,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable m1) ()) UMatrix @@ -22403,7 +22403,7 @@ tuple(matrix[2, 2], matrix[3, 3]) temp: AoS (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable m2) ()) UMatrix diff --git a/test/integration/good/tuples/transformed_mir.expected b/test/integration/good/tuples/transformed_mir.expected index af6b5f9d5..c793df12f 100644 --- a/test/integration/good/tuples/transformed_mir.expected +++ b/test/integration/good/tuples/transformed_mir.expected @@ -107,7 +107,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -122,7 +122,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable basic) ()) 1) ()) (UArray UReal) @@ -158,7 +158,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_tuple) ()) 1) ()) UInt @@ -194,7 +194,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id tuple_tuple_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable tuple_tuple_dot_2_dot_2_flat__) ()) @@ -264,13 +264,13 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_dot_1_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_dot_1_flat__) ()) UInt @@ -284,7 +284,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_dot_1_flat__pos__) ()) UInt @@ -292,7 +292,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_dot_2_flat__) ()) (UArray UReal) @@ -306,7 +306,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_dot_2_flat__pos__) ()) UInt @@ -314,7 +314,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_dot_3_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_dot_3_flat__) ()) UVector @@ -328,7 +328,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_3_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_dot_3_flat__pos__) ()) UInt @@ -336,7 +336,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_1_temp__) - (decl_type (Sized SInt)) (initialize true) (assignment ()))) + (decl_type (Sized SInt)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_2_temp__) @@ -345,7 +345,7 @@ (SArray SReal ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_dot_3_temp__) @@ -354,7 +354,7 @@ (SVector AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -430,8 +430,7 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_dot_3_temp___flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) - (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_dot_3_temp___flat__) ()) @@ -561,7 +560,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple) ()) 1) ()) @@ -590,7 +589,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_dot_3_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_1_flat__) ()) UReal @@ -604,7 +603,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_1_flat__pos__) ()) UInt @@ -612,7 +611,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_dot_3_dot_2_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_2_flat__) ()) @@ -627,7 +626,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_dot_3_dot_2_flat__pos__) ()) UInt @@ -635,7 +634,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_dot_3_dot_2_temp__) @@ -644,7 +643,7 @@ (SArray SInt ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -754,13 +753,13 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_1_flat__) ()) UReal @@ -775,7 +774,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_1_flat__pos__) ()) UInt @@ -783,7 +782,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_2_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_2_flat__) ()) UInt @@ -798,7 +797,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_2_flat__pos__) ()) UInt @@ -806,7 +805,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_3_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_1_flat__) ()) UReal @@ -821,7 +820,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_3_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_1_flat__pos__) ()) UInt @@ -830,7 +829,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_3_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_1_flat__) ()) UInt @@ -846,7 +845,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_1_flat__pos__) ()) UInt @@ -855,7 +854,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_3_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_2_flat__) ()) UVector @@ -871,7 +870,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_dot_3_dot_2_dot_2_flat__pos__) ()) UInt @@ -879,11 +878,11 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_dot_2_temp__) - (decl_type (Sized SInt)) (initialize true) (assignment ()))) + (decl_type (Sized SInt)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) @@ -897,7 +896,7 @@ (SVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -1021,8 +1020,7 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_dot_3_temp___dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) - (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment @@ -1171,13 +1169,13 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_dot_1_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_dot_1_flat__) ()) UInt @@ -1191,7 +1189,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_dot_1_flat__pos__) ()) UInt @@ -1200,7 +1198,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_1_flat__) ()) @@ -1216,7 +1214,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_1_flat__pos__) ()) UInt @@ -1225,7 +1223,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_2_flat__) ()) @@ -1241,7 +1239,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_dot_2_dot_2_flat__pos__) ()) UInt @@ -1249,7 +1247,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_dot_1_temp__) - (decl_type (Sized SInt)) (initialize true) (assignment ()))) + (decl_type (Sized SInt)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) @@ -1264,7 +1262,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -1303,7 +1301,7 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_dot_2_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) @@ -1313,7 +1311,7 @@ (SVector AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym2__) @@ -1364,8 +1362,8 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_dot_2_dot_2_temp___flat__) - (decl_type (Unsized (UArray UReal))) - (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -1567,13 +1565,13 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_1_flat__) - (decl_type (Unsized (UArray UInt))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UInt))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_1_flat__) ()) UInt @@ -1590,7 +1588,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_1_flat__pos__) ()) UInt @@ -1598,7 +1596,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_2_dot_1_flat__) ()) (UArray UReal) @@ -1615,7 +1613,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_2_dot_1_flat__pos__) ()) UInt @@ -1623,7 +1621,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_2_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UComplex))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_2_dot_2_dot_1_flat__) ()) @@ -1641,7 +1639,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_2_dot_2_dot_1_flat__pos__) ()) UInt @@ -1649,7 +1647,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_dot_2_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_2_dot_2_dot_2_flat__) ()) @@ -1667,7 +1665,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_dot_2_dot_2_dot_2_flat__pos__) ()) UInt @@ -1675,7 +1673,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_1_temp__) - (decl_type (Sized SInt)) (initialize true) (assignment ()))) + (decl_type (Sized SInt)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) @@ -1697,7 +1695,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -1735,7 +1733,7 @@ (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) @@ -1752,7 +1750,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym2__) @@ -1798,8 +1796,7 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_dot_2_dot_2_dot_1_temp__) - (decl_type (Sized SComplex)) (initialize true) - (assignment ()))) + (decl_type (Sized SComplex)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) @@ -1813,7 +1810,7 @@ ((pattern (Lit Int 7)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym3__) @@ -1880,7 +1877,7 @@ (decl_id very_deep_dot_2_dot_2_dot_2_temp___flat__) (decl_type (Unsized (UArray UReal))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -2186,7 +2183,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) @@ -2222,7 +2219,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal @@ -2274,7 +2271,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -2366,7 +2363,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) @@ -2460,7 +2457,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -2594,7 +2591,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -2712,7 +2709,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -2871,7 +2868,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) @@ -2907,7 +2904,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal @@ -2959,7 +2956,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -3051,7 +3048,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) @@ -3145,7 +3142,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -3279,7 +3276,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -3397,7 +3394,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -3556,7 +3553,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) @@ -3592,7 +3589,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal @@ -3643,7 +3640,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -3733,7 +3730,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) @@ -3825,7 +3822,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -3959,7 +3956,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -4076,7 +4073,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -5120,7 +5117,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -5135,7 +5132,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) @@ -5199,7 +5196,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal @@ -5235,7 +5232,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id tuple_tuple_p_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable tuple_tuple_p_dot_2_dot_2_flat__) ()) @@ -5359,13 +5356,13 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_p_dot_1_flat__) - (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UComplex))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_p_dot_1_flat__) ()) UComplex @@ -5379,7 +5376,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_p_dot_1_flat__pos__) ()) UInt @@ -5387,7 +5384,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_p_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_p_dot_2_flat__) ()) (UArray UReal) @@ -5401,7 +5398,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_p_dot_2_flat__pos__) ()) UInt @@ -5409,7 +5406,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_p_dot_3_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_p_dot_3_flat__) ()) UVector @@ -5423,7 +5420,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_3_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_p_dot_3_flat__pos__) ()) UInt @@ -5431,7 +5428,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_1_temp__) - (decl_type (Sized SComplex)) (initialize true) (assignment ()))) + (decl_type (Sized SComplex)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_2_temp__) @@ -5440,7 +5437,7 @@ (SArray SReal ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_p_dot_3_temp__) @@ -5449,7 +5446,7 @@ (SVector AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -5526,8 +5523,7 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_p_dot_3_temp___flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) - (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_p_dot_3_temp___flat__) ()) @@ -5739,7 +5735,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) @@ -5768,7 +5764,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_p_dot_3_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_1_flat__) ()) UReal @@ -5782,7 +5778,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_1_flat__pos__) ()) UInt @@ -5790,7 +5786,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id tuple_arr_tuple_p_dot_3_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_2_flat__) ()) @@ -5805,7 +5801,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable tuple_arr_tuple_p_dot_3_dot_2_flat__pos__) ()) UInt @@ -5813,7 +5809,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id tuple_arr_tuple_p_dot_3_dot_2_temp__) @@ -5822,7 +5818,7 @@ (SArray SReal ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -6042,13 +6038,13 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_1_flat__) ()) UReal @@ -6064,7 +6060,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_1_flat__pos__) ()) UInt @@ -6072,7 +6068,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_2_flat__) ()) UReal @@ -6088,7 +6084,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_2_flat__pos__) ()) UInt @@ -6096,7 +6092,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_3_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_1_flat__) ()) UReal @@ -6112,7 +6108,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_3_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_1_flat__pos__) ()) UInt @@ -6121,7 +6117,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UComplex))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__) ()) UComplex @@ -6138,7 +6134,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_1_flat__pos__) ()) @@ -6148,7 +6144,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__) ()) UVector @@ -6165,7 +6161,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_tuple_p_dot_3_dot_2_dot_2_flat__pos__) ()) @@ -6174,11 +6170,11 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_tuple_p_dot_2_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) @@ -6192,7 +6188,7 @@ (SVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -6317,8 +6313,7 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_tuple_p_dot_3_temp___dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) - (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment @@ -6657,13 +6652,13 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_p_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_1_flat__) ()) UReal @@ -6677,7 +6672,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_p_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_1_flat__pos__) ()) UInt @@ -6686,7 +6681,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_p_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_1_flat__) ()) @@ -6702,7 +6697,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_p_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_1_flat__pos__) ()) UInt @@ -6711,7 +6706,7 @@ ((pattern (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_p_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_2_flat__) ()) @@ -6727,7 +6722,7 @@ ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arr_tuple_arr_tuple_p_dot_2_dot_2_flat__pos__) ()) UInt @@ -6735,7 +6730,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_p_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) @@ -6750,7 +6745,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -6790,7 +6785,7 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id arr_tuple_arr_tuple_p_dot_2_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) @@ -6800,7 +6795,7 @@ (SVector AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym2__) @@ -6853,8 +6848,8 @@ (Decl (decl_adtype AutoDiffable) (decl_id arr_tuple_arr_tuple_p_dot_2_dot_2_temp___flat__) - (decl_type (Unsized (UArray UReal))) - (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -7192,13 +7187,13 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_1_flat__) ()) UReal @@ -7216,7 +7211,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_1_flat__pos__) ()) UInt @@ -7224,7 +7219,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_2_dot_1_flat__) ()) @@ -7243,7 +7238,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_2_dot_1_flat__pos__) ()) UInt @@ -7251,7 +7246,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_2_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UComplex))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UComplex))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_1_flat__) ()) @@ -7270,7 +7265,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_1_flat__pos__) ()) UInt @@ -7278,7 +7273,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id very_deep_p_dot_2_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_2_flat__) ()) @@ -7297,7 +7292,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable very_deep_p_dot_2_dot_2_dot_2_flat__pos__) ()) UInt @@ -7305,7 +7300,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) @@ -7327,7 +7322,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -7366,7 +7361,7 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_1_temp__) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) @@ -7383,7 +7378,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym2__) @@ -7429,8 +7424,7 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id very_deep_p_dot_2_dot_2_dot_1_temp__) - (decl_type (Sized SComplex)) (initialize true) - (assignment ()))) + (decl_type (Sized SComplex)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) @@ -7444,7 +7438,7 @@ ((pattern (Lit Int 7)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym3__) @@ -7512,7 +7506,7 @@ (decl_id very_deep_p_dot_2_dot_2_dot_2_temp___flat__) (decl_type (Unsized (UArray UReal))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -8106,7 +8100,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable basic_p) ()) 1) ()) (UArray UReal) @@ -8161,7 +8155,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_tuple_p) ()) 1) ()) UReal @@ -8252,7 +8246,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -8410,7 +8404,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable tuple_arr_tuple_p) ()) 1) ()) @@ -8592,7 +8586,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -8889,7 +8883,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -9126,7 +9120,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -9767,16 +9761,16 @@ ((functions_block ()) (input_vars ()) (prepare_data (((pattern - (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable x) ()) UInt ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id y) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id y) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable y) ()) UInt @@ -9791,8 +9785,7 @@ (Block (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) - (assignment ()))) + (decl_type (Unsized (UTuple (UInt UInt)))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) @@ -9838,8 +9831,7 @@ (Block (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) - (assignment ()))) + (decl_type (Unsized (UTuple (UInt UInt)))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) @@ -9883,8 +9875,7 @@ (Block (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) - (assignment ()))) + (decl_type (Unsized (UTuple (UInt UInt)))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) @@ -9923,8 +9914,7 @@ (Block (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UInt UInt)))) (initialize false) - (assignment ()))) + (decl_type (Unsized (UTuple (UInt UInt)))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UInt UInt)) @@ -9991,9 +9981,9 @@ (log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -10009,7 +9999,7 @@ (SArray (STuple (SReal SReal)) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable z) ()) (UArray (UTuple (UReal UReal))) @@ -10057,9 +10047,9 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -10075,7 +10065,7 @@ (SArray (STuple (SReal SReal)) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable z) ()) (UArray (UTuple (UReal UReal))) @@ -10122,10 +10112,10 @@ (meta )))) (generate_quantities (((pattern - (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SReal)) + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) @@ -10166,7 +10156,7 @@ (transform_inits (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable x) ()) UReal @@ -10193,7 +10183,7 @@ (unconstrain_array (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable x) ()) UReal @@ -10238,7 +10228,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -10263,7 +10253,7 @@ ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) SInt)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable complicated) ()) 1) ()) @@ -10294,7 +10284,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_2_dot_2_flat__) ()) @@ -10384,11 +10374,11 @@ (SArray SReal ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id y) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) @@ -10397,7 +10387,7 @@ (SVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id w) @@ -10406,11 +10396,11 @@ (SArray SReal ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id i) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block @@ -10424,7 +10414,7 @@ (decl_type (Unsized (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt)))) - (initialize false) (assignment ()))) + (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) @@ -10462,7 +10452,7 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) (decl_id sym2__) (decl_type (Unsized (UTuple (UReal UVector (UArray UReal))))) - (initialize false) (assignment ()))) + (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym2__) ()) @@ -10551,11 +10541,11 @@ (SArray SReal ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id y) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) @@ -10564,7 +10554,7 @@ (SVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id w) @@ -10573,11 +10563,11 @@ (SArray SReal ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id i) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block @@ -10591,7 +10581,7 @@ (decl_type (Unsized (UTuple ((UArray UReal) (UTuple (UReal UVector (UArray UReal))) UInt)))) - (initialize false) (assignment ()))) + (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) @@ -10629,7 +10619,7 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable AutoDiffable))) (decl_id sym2__) (decl_type (Unsized (UTuple (UReal UVector (UArray UReal))))) - (initialize false) (assignment ()))) + (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym2__) ()) @@ -10747,8 +10737,8 @@ SInt))) (prepare_data (((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -10776,8 +10766,8 @@ (((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id M) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable M) ()) UInt @@ -10824,9 +10814,9 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10864,7 +10854,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -10889,14 +10879,14 @@ (SMatrix AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id sym1__) (decl_type (Unsized (UTuple (UMatrix UMatrix)))) - (initialize false) (assignment ()))) + (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UMatrix UMatrix)) @@ -10959,9 +10949,9 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -10999,7 +10989,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -11024,14 +11014,14 @@ (SMatrix AoS ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id sym1__) (decl_type (Unsized (UTuple (UMatrix UMatrix)))) - (initialize false) (assignment ()))) + (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UMatrix UMatrix)) @@ -11094,9 +11084,9 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -11143,7 +11133,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -11156,13 +11146,13 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id A_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable A_flat__) ()) (UArray UReal) @@ -11248,7 +11238,7 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable A) ()) UMatrix @@ -11285,7 +11275,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -11293,7 +11283,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id x) - (decl_type (Sized (STuple (SReal SInt)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SInt)))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable x) ()) (UTuple (UReal UInt)) @@ -11349,7 +11339,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -11364,7 +11354,7 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable x) ()) (UTuple ((UArray UReal) UInt)) @@ -11431,7 +11421,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -11449,7 +11439,7 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable x) ()) (UTuple ((UArray (UArray UReal)) UInt)) @@ -11568,7 +11558,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -11577,7 +11567,7 @@ ((pattern (Decl (decl_adtype (TupleAD (DataOnly (TupleAD (DataOnly DataOnly))))) (decl_id y) (decl_type (Sized (STuple (SInt (STuple (SReal SInt)))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable y) ()) 1) ()) UInt @@ -11707,7 +11697,7 @@ (SVector AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable x) ()) 1) ()) UInt @@ -11741,7 +11731,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x_dot_3_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable x_dot_3_flat__) ()) (UArray UReal) @@ -11866,13 +11856,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable z_dot_1_flat__) ()) UReal @@ -11886,7 +11876,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id z_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable z_dot_1_flat__pos__) ()) UInt @@ -11894,7 +11884,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id z_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable z_dot_2_flat__) ()) UVector @@ -11908,7 +11898,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id z_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable z_dot_2_flat__pos__) ()) UInt @@ -11916,7 +11906,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id z_dot_1_temp__) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id z_dot_2_temp__) @@ -11925,7 +11915,7 @@ (SVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -11978,8 +11968,7 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id z_dot_2_temp___flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) - (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable z_dot_2_temp___flat__) ()) @@ -12274,7 +12263,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id indicator) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable indicator) ()) UInt @@ -12318,7 +12307,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id complicated_brack_dot2_1dim__) - (decl_type (Sized SInt)) (initialize true) (assignment ()))) + (decl_type (Sized SInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable complicated_brack_dot2_1dim__) ()) UInt @@ -12351,7 +12340,7 @@ (log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -12394,7 +12383,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -12471,9 +12460,9 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id t) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -12523,7 +12512,7 @@ ((pattern (Var complicated_brack_dot2_1dim__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -12645,7 +12634,7 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -12688,7 +12677,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -12765,9 +12754,9 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id t) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -12817,7 +12806,7 @@ ((pattern (Var complicated_brack_dot2_1dim__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -12939,7 +12928,7 @@ (generate_quantities (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -12982,7 +12971,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -13058,10 +13047,10 @@ (meta ))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id t) (decl_type (Sized SReal)) - (initialize true) - (assignment - (((pattern + (Decl (decl_adtype DataOnly) (decl_id t) (decl_type (Sized SReal)) + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam @@ -13109,7 +13098,7 @@ ((pattern (Var complicated_brack_dot2_1dim__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -13545,7 +13534,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -13553,7 +13542,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -13630,13 +13619,13 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id ps2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable ps2_dot_1_flat__) ()) UReal @@ -13650,7 +13639,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id ps2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable ps2_dot_1_flat__pos__) ()) UInt @@ -13658,7 +13647,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id ps2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable ps2_dot_2_flat__) ()) UVector @@ -13672,7 +13661,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id ps2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable ps2_dot_2_flat__pos__) ()) UInt @@ -13680,7 +13669,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id ps2_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id ps2_dot_2_temp__) @@ -13689,7 +13678,7 @@ (SVector AoS ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -13742,8 +13731,7 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id ps2_dot_2_temp___flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) - (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable ps2_dot_2_temp___flat__) ()) @@ -13957,7 +13945,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id t) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable t) ()) UReal @@ -14023,13 +14011,13 @@ ((pattern (Var complicated_brack_dot2_1dim__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_1_flat__) ()) UReal @@ -14044,7 +14032,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id complicated_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_1_flat__pos__) ()) UInt @@ -14052,7 +14040,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_2_dot_1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_2_dot_1_flat__) ()) @@ -14068,7 +14056,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id complicated_dot_2_dot_1_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_2_dot_1_flat__pos__) ()) UInt @@ -14076,7 +14064,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_2_dot_2_flat__) ()) @@ -14092,7 +14080,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id complicated_dot_2_dot_2_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_2_dot_2_flat__pos__) ()) UInt @@ -14100,7 +14088,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_2_dot_3_flat__) - (decl_type (Unsized (UArray UReal))) (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_2_dot_3_flat__) ()) @@ -14116,7 +14104,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id complicated_dot_2_dot_3_flat__pos__) - (decl_type (Unsized UInt)) (initialize true) (assignment ()))) + (decl_type (Unsized UInt)) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable complicated_dot_2_dot_3_flat__pos__) ()) UInt @@ -14124,7 +14112,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id complicated_dot_1_temp__) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly DataOnly))) @@ -14144,7 +14132,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Var complicated_brack_dot2_1dim__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -14183,7 +14171,7 @@ (((pattern (Decl (decl_adtype DataOnly) (decl_id complicated_dot_2_dot_1_temp__) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) @@ -14193,7 +14181,7 @@ (SVector AoS ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) @@ -14205,7 +14193,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym2__) @@ -14251,8 +14239,8 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_2_dot_2_temp___flat__) - (decl_type (Unsized (UArray UReal))) - (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -14381,8 +14369,8 @@ (((pattern (Decl (decl_adtype AutoDiffable) (decl_id complicated_dot_2_dot_3_temp___flat__) - (decl_type (Unsized (UArray UReal))) - (initialize true) (assignment ()))) + (decl_type (Unsized (UArray UReal))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -14787,7 +14775,7 @@ (unconstrain_array (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -14846,7 +14834,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -14989,7 +14977,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id t) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable t) ()) UReal @@ -15046,7 +15034,7 @@ ((pattern (Var complicated_brack_dot2_1dim__)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -15604,7 +15592,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -15612,7 +15600,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id d) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable d) ()) 1) ()) UReal @@ -15950,7 +15938,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -15963,7 +15951,7 @@ (SArray (STuple (SReal SReal)) ((pattern (Lit Int 100)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) @@ -15984,8 +15972,7 @@ (Block (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id t) - (decl_type (Unsized (UTuple (UReal UReal)))) (initialize true) - (assignment ()))) + (decl_type (Unsized (UTuple (UReal UReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable t) ()) (UTuple (UReal UReal)) @@ -16048,7 +16035,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -16068,7 +16055,7 @@ (SArray SInt ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ds) ()) 1) ()) UInt @@ -16149,7 +16136,7 @@ (log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -16278,7 +16265,7 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -16407,7 +16394,7 @@ (generate_quantities (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -16489,7 +16476,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -16497,7 +16484,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -16564,7 +16551,7 @@ (unconstrain_array (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -16628,7 +16615,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -16636,7 +16623,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id x) - (decl_type (Sized (STuple (SInt SInt)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SInt SInt)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable x) ()) 1) ()) UInt @@ -16674,7 +16661,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -16689,7 +16676,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -16731,7 +16718,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -16743,7 +16730,7 @@ (Sized (SArray (STuple (SInt SInt)) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -16789,7 +16776,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -16810,7 +16797,7 @@ ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment @@ -16856,7 +16843,7 @@ (log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -16890,7 +16877,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal @@ -16930,7 +16917,7 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -16964,7 +16951,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal @@ -17004,7 +16991,7 @@ (generate_quantities (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17038,7 +17025,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal @@ -17180,7 +17167,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -17188,7 +17175,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17258,7 +17245,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal @@ -17293,7 +17280,7 @@ (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id ps2_dot_2_dot_2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable ps2_dot_2_dot_2_flat__) ()) (UArray UReal) @@ -17421,7 +17408,7 @@ (unconstrain_array (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17473,7 +17460,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps2) ()) 1) ()) UReal @@ -17593,7 +17580,7 @@ (log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17621,7 +17608,7 @@ (reverse_mode_log_prob (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17649,7 +17636,7 @@ (generate_quantities (((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17726,7 +17713,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -17734,7 +17721,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17797,7 +17784,7 @@ (unconstrain_array (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id ps) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable ps) ()) 1) ()) UReal @@ -17915,7 +17902,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -17927,13 +17914,13 @@ (Sized (SVector AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id V_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable V_flat__) ()) (UArray UReal) @@ -17998,7 +17985,7 @@ (SArray SInt ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable d) ()) 1) ()) (UArray UInt) @@ -18027,7 +18014,7 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl @@ -18048,7 +18035,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id basic) @@ -18059,7 +18046,7 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SComplex)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable basic) ()) (UTuple ((UArray UReal) UComplex)) @@ -18099,7 +18086,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable CV) ()) (UTuple (UComplexVector UReal)) @@ -18130,7 +18117,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable V2) ()) (UTuple (UVector UInt)) @@ -18156,8 +18143,8 @@ (adlevel (TupleAD (DataOnly DataOnly)))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id t) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id t) (decl_type (Sized SReal)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable t) ()) UReal @@ -18187,7 +18174,7 @@ (SArray SComplex ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable d2) ()) (UTuple ((UArray UComplex) (UArray UComplex))) @@ -18211,7 +18198,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable V3) ()) (UTuple (UVector UReal)) @@ -18237,7 +18224,7 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arrs2) ()) (UArray (UTuple (UReal (UArray UComplex)))) @@ -18273,7 +18260,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable nested2) ()) @@ -18322,7 +18309,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable nested3) ()) @@ -18362,7 +18349,7 @@ (SArray SComplex ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable d2) ()) (UTuple ((UArray UComplex) (UArray UComplex))) @@ -18386,7 +18373,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable V3) ()) (UTuple (UVector UReal)) @@ -18412,7 +18399,7 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable arrs2) ()) (UArray (UTuple (UReal (UArray UComplex)))) @@ -18448,7 +18435,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable nested2) ()) @@ -18497,7 +18484,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable nested3) ()) @@ -18537,7 +18524,7 @@ (SArray SComplex ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id V3) @@ -18548,7 +18535,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id arrs2) @@ -18561,7 +18548,7 @@ ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl @@ -18582,7 +18569,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl @@ -18603,7 +18590,7 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SReal)))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (IfElse @@ -19180,8 +19167,8 @@ ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id y) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id y) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable y) ()) UInt @@ -19189,7 +19176,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id x) - (decl_type (Sized (STuple (SReal SReal)))) (initialize true) (assignment ()))) + (decl_type (Sized (STuple (SReal SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable x) ()) (UTuple (UReal UReal)) @@ -19212,8 +19199,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id z) - (decl_type (Sized (STuple (SComplex SReal)))) (initialize true) - (assignment ()))) + (decl_type (Sized (STuple (SComplex SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable z) ()) (UTuple (UComplex UReal)) @@ -19230,8 +19216,7 @@ (meta )) ((pattern (Decl (decl_adtype (TupleAD (DataOnly DataOnly))) (decl_id z2) - (decl_type (Sized (STuple (SComplex SReal)))) (initialize true) - (assignment ()))) + (decl_type (Sized (STuple (SComplex SReal)))) (initialize Default))) (meta )) ((pattern (Assignment ((LVariable z2) ()) (UTuple (UComplex UReal)) @@ -19642,15 +19627,15 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -19685,13 +19670,13 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id m1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable m1_flat__) ()) (UArray UReal) @@ -19780,13 +19765,13 @@ (SMatrix AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id m2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable m2_flat__) ()) (UArray UReal) @@ -19868,7 +19853,7 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable a1) ()) (UArray UInt) @@ -19890,7 +19875,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable a2) ()) (UArray UReal) @@ -19943,8 +19928,8 @@ (adlevel (TupleAD (DataOnly DataOnly))))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id s) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id s) (decl_type (Sized SReal)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable s) ()) UReal @@ -20273,7 +20258,7 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -20286,13 +20271,13 @@ (SMatrix AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable x_flat__) ()) (UArray UReal) @@ -20369,7 +20354,7 @@ (Sized (SArray SReal ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable y) ()) (UArray UReal) @@ -20392,7 +20377,7 @@ (SArray SReal ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )))) (log_prob (((pattern @@ -20402,9 +20387,9 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -20424,9 +20409,9 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -20456,7 +20441,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable temp) ()) (UTuple (UMatrix UMatrix)) @@ -20514,7 +20499,7 @@ (SArray SReal ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable temp2) ()) (UTuple (UMatrix UInt (UArray UReal))) @@ -20578,7 +20563,7 @@ (SArray SReal ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable temp3) ()) @@ -20659,9 +20644,9 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -20681,9 +20666,9 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -20713,7 +20698,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable temp) ()) (UTuple (UMatrix UMatrix)) @@ -20771,7 +20756,7 @@ (SArray SReal ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable temp2) ()) (UTuple (UMatrix UInt (UArray UReal))) @@ -20835,7 +20820,7 @@ (SArray SReal ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable temp3) ()) @@ -20916,9 +20901,9 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -20938,9 +20923,9 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -20995,7 +20980,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -21008,13 +20993,13 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id m1_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable m1_flat__) ()) (UArray UReal) @@ -21100,13 +21085,13 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id m2_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable m2_flat__) ()) (UArray UReal) @@ -21193,7 +21178,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable m1) ()) UMatrix @@ -21218,7 +21203,7 @@ (SMatrix AoS ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable m2) ()) UMatrix @@ -21294,16 +21279,16 @@ ((pattern (Block (((pattern (Return ())) (meta ))))) (meta )) ())) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable x) ()) UInt ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id y) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id y) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable y) ()) UInt @@ -21311,7 +21296,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id z) (decl_type (Sized SComplex)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id foo) @@ -21320,7 +21305,7 @@ (SMatrix AoS ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 4)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnPrint) @@ -21497,15 +21482,15 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -21534,7 +21519,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable data_y) ()) (UArray UReal) @@ -21559,7 +21544,7 @@ (SReal (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LTupleProjection ((LVariable data_m) ()) 1) ()) UReal @@ -21585,7 +21570,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sum1) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sum1) ()) UReal @@ -21622,9 +21607,9 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -21637,7 +21622,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sum2) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sum2) ()) UReal @@ -21667,9 +21652,9 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -21682,7 +21667,7 @@ (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id sum2) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable sum2) ()) UReal @@ -21712,9 +21697,9 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -21727,7 +21712,7 @@ (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id sum2) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -21807,7 +21792,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable param_y) ()) (UArray UReal) @@ -21833,7 +21818,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable param_y) ()) (UArray UReal) @@ -22250,7 +22235,7 @@ (SMatrix AoS ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable m) ()) UMatrix @@ -22274,7 +22259,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable t) ()) (UTuple (UReal UMatrix)) @@ -22304,7 +22289,7 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable s) ()) (UTuple (UReal UMatrix)) @@ -22464,15 +22449,15 @@ (prepare_data (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (Decl (decl_adtype DataOnly) (decl_id N) (decl_type (Sized SInt)) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable N) ()) UInt @@ -22511,13 +22496,13 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id x_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable x_flat__) ()) (UArray UReal) @@ -22582,7 +22567,7 @@ (Sized (SArray SInt ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable y) ()) (UArray UInt) @@ -22613,7 +22598,7 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable td) ()) (UTuple ((UArray UInt) UVector)) @@ -22647,9 +22632,9 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -22666,9 +22651,9 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -22695,7 +22680,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -22711,7 +22696,7 @@ (Sized (SArray SComplex ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -22727,7 +22712,7 @@ (Sized (SComplexVector ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block @@ -22735,7 +22720,7 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id sym1__) (decl_type (Unsized (UTuple ((UArray UReal) UComplexVector)))) - (initialize false) (assignment ()))) + (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple ((UArray UReal) UComplexVector)) @@ -22787,7 +22772,7 @@ (decl_id sym1__) (decl_type (Unsized (UTuple ((UArray UReal) (UArray UComplex) UComplexVector)))) - (initialize false) (assignment ()))) + (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) @@ -22866,7 +22851,7 @@ (decl_id sym1__) (decl_type (Unsized (UTuple ((UArray UReal) (UArray UComplex) UComplexVector)))) - (initialize false) (assignment ()))) + (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) @@ -22957,14 +22942,13 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UComplexVector UInt)))) (initialize false) - (assignment ()))) + (decl_type (Unsized (UTuple (UComplexVector UInt)))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UComplexVector UInt)) @@ -23020,9 +23004,9 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -23039,9 +23023,9 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -23068,7 +23052,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -23084,7 +23068,7 @@ (Sized (SArray SComplex ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp (CompilerInternal FnValidateSize) @@ -23100,7 +23084,7 @@ (Sized (SComplexVector ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block @@ -23108,7 +23092,7 @@ (Decl (decl_adtype (TupleAD (AutoDiffable AutoDiffable))) (decl_id sym1__) (decl_type (Unsized (UTuple ((UArray UReal) UComplexVector)))) - (initialize false) (assignment ()))) + (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple ((UArray UReal) UComplexVector)) @@ -23160,7 +23144,7 @@ (decl_id sym1__) (decl_type (Unsized (UTuple ((UArray UReal) (UArray UComplex) UComplexVector)))) - (initialize false) (assignment ()))) + (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) @@ -23239,7 +23223,7 @@ (decl_id sym1__) (decl_type (Unsized (UTuple ((UArray UReal) (UArray UComplex) UComplexVector)))) - (initialize false) (assignment ()))) + (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) @@ -23330,14 +23314,13 @@ ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) SInt)))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype (TupleAD (AutoDiffable DataOnly))) (decl_id sym1__) - (decl_type (Unsized (UTuple (UComplexVector UInt)))) (initialize false) - (assignment ()))) + (decl_type (Unsized (UTuple (UComplexVector UInt)))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable sym1__) ()) (UTuple (UComplexVector UInt)) @@ -23393,9 +23376,9 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -23412,9 +23395,9 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) - (assignment - (((pattern + (initialize + (Assign + ((pattern (FunApp (CompilerInternal (FnReadParam (constrain Identity) @@ -23469,7 +23452,7 @@ (transform_inits (((pattern (Decl (decl_adtype DataOnly) (decl_id pos__) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable pos__) ()) UInt @@ -23481,7 +23464,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) (UArray UReal) @@ -23506,13 +23489,13 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id theta_flat__) - (decl_type (Unsized (UArray UReal))) (initialize false) (assignment ()))) + (decl_type (Unsized (UArray UReal))) (initialize Uninit))) (meta )) ((pattern (Assignment ((LVariable theta_flat__) ()) (UArray UReal) @@ -23581,7 +23564,7 @@ (Sized (SArray SReal ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable alpha) ()) (UArray UReal) @@ -23605,7 +23588,7 @@ (Sized (SVector AoS ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Assignment ((LVariable theta) ()) UVector diff --git a/test/unit/Ast_to_Mir_tests.ml b/test/unit/Ast_to_Mir_tests.ml index 35f3a2a1e..51014e344 100644 --- a/test/unit/Ast_to_Mir_tests.ml +++ b/test/unit/Ast_to_Mir_tests.ml @@ -41,7 +41,7 @@ let%expect_test "Prefix-Op-Example" = (Block (((pattern (Decl (decl_adtype AutoDiffable) (decl_id i) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (IfElse @@ -81,7 +81,7 @@ let%expect_test "read data" = (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta ))) |}] let%expect_test "read param" = @@ -103,7 +103,7 @@ let%expect_test "read param" = (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta ))) |}] let%expect_test "gen quant" = @@ -148,7 +148,7 @@ let%expect_test "gen quant" = (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -178,7 +178,7 @@ let%expect_test "read data - constraint " = (SArray SReal ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (NRFunApp @@ -215,7 +215,7 @@ let%expect_test "read data - tuple" = (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) ((pattern (Lit Int 5)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (For (loopvar sym1__) diff --git a/test/unit/Dataflow_utils.ml b/test/unit/Dataflow_utils.ml index adce1eba6..76b58025b 100644 --- a/test/unit/Dataflow_utils.ml +++ b/test/unit/Dataflow_utils.ml @@ -180,7 +180,7 @@ let%expect_test "Statement label map example" = ((1 (Block (2))) (2 (Block (3 4 5))) (3 (Decl (decl_adtype AutoDiffable) (decl_id i) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (4 (Assignment ((LVariable i) ()) UInt ((pattern (Lit Int 0)) diff --git a/test/unit/Optimize.ml b/test/unit/Optimize.ml index 2df8ca189..e6f8252c7 100644 --- a/test/unit/Optimize.ml +++ b/test/unit/Optimize.ml @@ -336,7 +336,7 @@ let%expect_test "list collapsing" = (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id inline_g_return_sym2__) - (decl_type (Sized SReal)) (initialize false) (assignment ()))) + (decl_type (Sized SReal)) (initialize Uninit))) (meta )) ((pattern (Block @@ -3289,25 +3289,25 @@ let%expect_test "adlevel_optimization expressions" = {| (((pattern (Decl (decl_adtype AutoDiffable) (decl_id w) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Block (((pattern (Decl (decl_adtype DataOnly) (decl_id x) (decl_type (Sized SInt)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id y) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype AutoDiffable) (decl_id z) (decl_type (Sized SReal)) - (initialize true) (assignment ()))) + (initialize Default))) (meta )) ((pattern (Decl (decl_adtype DataOnly) (decl_id z_data) - (decl_type (Sized SReal)) (initialize true) (assignment ()))) + (decl_type (Sized SReal)) (initialize Default))) (meta )) ((pattern (IfElse From 14d90534ab7a44bd2b047676b68a3c2e4ec4f5af Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Fri, 19 Jul 2024 12:26:50 -0400 Subject: [PATCH 10/17] update optimizer --- .../Memory_patterns.ml | 31 ++++++++++++++++--- .../Monotone_framework.ml | 2 ++ src/analysis_and_optimization/Optimize.ml | 8 +++++ 3 files changed, 36 insertions(+), 5 deletions(-) diff --git a/src/analysis_and_optimization/Memory_patterns.ml b/src/analysis_and_optimization/Memory_patterns.ml index 694da9212..8516b56be 100644 --- a/src/analysis_and_optimization/Memory_patterns.ml +++ b/src/analysis_and_optimization/Memory_patterns.ml @@ -389,9 +389,16 @@ let rec query_initial_demotable_stmt (in_loop : bool) (acc : string Set.Poly.t) Set.Poly.union_list [ acc; query_expr acc predicate ; query_initial_demotable_stmt true acc body ] - | Decl {decl_type= Type.Sized st; decl_id; _} - when SizedType.is_complex_type st -> - Set.add acc decl_id + | Decl {decl_type= Type.Sized st; decl_id; initialize; _} -> + let complex_name = + match SizedType.is_complex_type st with + | true -> Set.Poly.singleton decl_id + | false -> Set.Poly.empty in + let init_names = + match initialize with + | Assign e -> query_expr acc e + | _ -> Set.Poly.empty in + Set.union acc (Set.union complex_name init_names) | Skip | Break | Continue | Decl _ -> acc (** Look through a statement to see whether the objects used in it need to be @@ -419,6 +426,13 @@ let query_demotable_stmt (aos_exits : string Set.Poly.t) match is_nonzero_subset ~set:aos_exits ~subset:all_rhs_eigen_names with | true -> Set.add all_rhs_eigen_names assign_name | false -> Set.Poly.empty) + | Decl {decl_id; initialize= Assign e; _} -> ( + let all_rhs_eigen_names = query_var_eigen_names e in + if Set.mem aos_exits decl_id then Set.add all_rhs_eigen_names decl_id + else + match is_nonzero_subset ~set:aos_exits ~subset:all_rhs_eigen_names with + | true -> Set.add all_rhs_eigen_names decl_id + | false -> Set.Poly.empty) (* All other statements do not need logic here*) | _ -> Set.Poly.empty @@ -543,12 +557,19 @@ let rec modify_stmt_pattern let mod_stmt stmt = modify_stmt stmt modifiable_set in match pattern with | Stmt.Fixed.Pattern.Decl - ({decl_id; decl_type= Type.Sized sized_type; _} as decl) -> + ({decl_id; decl_type= Type.Sized sized_type; initialize; _} as decl) -> if Set.mem modifiable_set decl_id then + let init_expr = + match initialize with + | Stmt.Fixed.Pattern.Assign e -> + Stmt.Fixed.Pattern.Assign (mod_expr false e) + | Default -> Default + | Uninit -> Uninit in Stmt.Fixed.Pattern.Decl { decl with decl_type= - Type.Sized (SizedType.modify_sizedtype_mem AoS sized_type) } + Type.Sized (SizedType.modify_sizedtype_mem AoS sized_type) + ; initialize= init_expr } else Decl { decl with diff --git a/src/analysis_and_optimization/Monotone_framework.ml b/src/analysis_and_optimization/Monotone_framework.ml index 54174fbe0..aec2f783a 100644 --- a/src/analysis_and_optimization/Monotone_framework.ml +++ b/src/analysis_and_optimization/Monotone_framework.ml @@ -73,6 +73,7 @@ let rec free_vars_stmt (s : (Expr.Typed.t, Stmt.Located.t) Stmt.Fixed.Pattern.t) [free_vars_expr e1; free_vars_expr e2; free_vars_stmt b.pattern] | Profile (_, l) | Block l | SList l -> Set.Poly.union_list (List.map ~f:(fun s -> free_vars_stmt s.pattern) l) + | Decl {initialize= Assign e; _} -> free_vars_expr e | Decl _ | Break | Continue | Return None | Skip -> Set.Poly.empty (** A variation on free_vars_stmt, where we do not recursively count free @@ -81,6 +82,7 @@ let top_free_vars_stmt (flowgraph_to_mir : (int, Stmt.Located.Non_recursive.t) Map.Poly.t) (s : (Expr.Typed.t, int) Stmt.Fixed.Pattern.t) = match s with + | Decl {initialize= Assign e; _} -> free_vars_expr e | Assignment _ | Return _ | TargetPE _ | JacobianPE _ | NRFunApp _ | Decl _ |Break | Continue | Skip -> free_vars_stmt diff --git a/src/analysis_and_optimization/Optimize.ml b/src/analysis_and_optimization/Optimize.ml index 6c723f17b..8c2bed7a9 100644 --- a/src/analysis_and_optimization/Optimize.ml +++ b/src/analysis_and_optimization/Optimize.ml @@ -464,6 +464,10 @@ let rec inline_function_statement propto adt fim Stmt.Fixed.{pattern; meta} = Block (List.map l ~f:(inline_function_statement propto adt fim)) | SList l -> SList (List.map l ~f:(inline_function_statement propto adt fim)) + | Decl {decl_adtype; decl_id; decl_type; initialize= Assign expr} -> + let d, s, e = inline_function_expression propto adt fim expr in + slist_concat_no_loc (d @ s) + (Decl {decl_adtype; decl_id; decl_type; initialize= Assign e}) | Decl r -> Decl r | Skip -> Skip | Break -> Break @@ -748,6 +752,9 @@ let dead_code_elimination (mir : Program.Typed.t) = (Middle.Stmt.Helpers.lhs_indices lhs) then stmt else Skip + | Decl {decl_id; initialize= Assign e; _} -> + if Set.mem live_variables_s decl_id || cannot_remove_expr e then stmt + else Skip (* NOTE: we never get rid of declarations as we might not be able to remove an assignment to a variable due to side effects. *) @@ -1004,6 +1011,7 @@ let lazy_code_motion ?(preserve_stability = false) (mir : Program.Typed.t) = let f stmt = match stmt with | Stmt.Fixed.Pattern.Assignment ((LVariable x, []), _, e') + |Decl {decl_id= x; initialize= Assign e'; _} when Map.mem m e' && Expr.Typed.equal {e' with pattern= Var x} (Map.find_exn m e') -> From 42e0c45d93dd63f822668e471fd987ed38e77f90 Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Fri, 19 Jul 2024 14:13:15 -0400 Subject: [PATCH 11/17] update mem_pattern to account for decl now having ReadParams inside of it --- .../Memory_patterns.ml | 39 ++++++- .../good/compiler-optimizations/cpp.expected | 49 ++++++--- .../compiler-optimizations/cppO1.expected | 48 +++++--- .../mem_patterns/cpp.expected | 103 ++++++++++++------ .../mem_patterns/transformed_mir.expected | 80 +++++++------- .../good/tuples/transformed_mir.expected | 8 +- 6 files changed, 214 insertions(+), 113 deletions(-) diff --git a/src/analysis_and_optimization/Memory_patterns.ml b/src/analysis_and_optimization/Memory_patterns.ml index 8516b56be..753f95a66 100644 --- a/src/analysis_and_optimization/Memory_patterns.ml +++ b/src/analysis_and_optimization/Memory_patterns.ml @@ -467,7 +467,7 @@ let rec modify_kind ?force_demotion:(force = false) (Fun_kind.StanLib (name, sfx, Mem_pattern.AoS), exprs') else ( Fun_kind.StanLib (name, sfx, SoA) - , List.map ~f:(modify_expr ~force_demotion:force modifiable_set) exprs + , List.map ~f:(modify_expr ~force_demotion:false modifiable_set) exprs ) | UserDefined _ as udf -> (udf, List.map ~f:(modify_expr ~force_demotion:force modifiable_set) exprs) @@ -556,6 +556,43 @@ let rec modify_stmt_pattern let mod_expr force = modify_expr ~force_demotion:force modifiable_set in let mod_stmt stmt = modify_stmt stmt modifiable_set in match pattern with + | Stmt.Fixed.Pattern.Decl + { decl_id + ; decl_adtype + ; decl_type= Type.Sized sized_type + ; initialize= + Assign + ({ pattern= FunApp (CompilerInternal (FnReadParam read_param), args) + ; _ } as assigner) } -> + let name = decl_id in + if Set.mem modifiable_set name then + Stmt.Fixed.Pattern.Decl + { decl_id + ; decl_adtype + ; decl_type= + Type.Sized (SizedType.modify_sizedtype_mem AoS sized_type) + ; initialize= + Assign + { assigner with + pattern= + FunApp + ( CompilerInternal + (FnReadParam {read_param with mem_pattern= AoS}) + , List.map ~f:(mod_expr true) args ) } } + else + Stmt.Fixed.Pattern.Decl + { decl_id + ; decl_adtype + ; decl_type= + Type.Sized (SizedType.modify_sizedtype_mem SoA sized_type) + ; initialize= + Assign + { assigner with + pattern= + FunApp + ( CompilerInternal + (FnReadParam {read_param with mem_pattern= SoA}) + , List.map ~f:(mod_expr false) args ) } } | Stmt.Fixed.Pattern.Decl ({decl_id; decl_type= Type.Sized sized_type; initialize; _} as decl) -> if Set.mem modifiable_set decl_id then diff --git a/test/integration/good/compiler-optimizations/cpp.expected b/test/integration/good/compiler-optimizations/cpp.expected index 71cd8f401..d3a52a206 100644 --- a/test/integration/good/compiler-optimizations/cpp.expected +++ b/test/integration/good/compiler-optimizations/cpp.expected @@ -783,7 +783,8 @@ class ad_level_deep_dependence_model final : public model_base_crtp lcm_sym13__; Eigen::Matrix lcm_sym12__; auto X_p = - in__.template read>(10, 10); + in__.template read< + stan::math::var_value>>(10, 10); stan::math::var_value> X_tp1; current_statement__ = 2; stan::model::assign(X_tp1, X_d, "assigning variable X_tp1"); @@ -3515,7 +3516,8 @@ class ad_levels_deep_model final : public model_base_crtp Eigen::Matrix lcm_sym9__; Eigen::Matrix lcm_sym8__; auto X_p = - in__.template read>(10, 10); + in__.template read< + stan::math::var_value>>(10, 10); stan::math::var_value> X_tp1 = stan::math::var_value>(Eigen::Matrix::Constant(10, 10, @@ -11945,7 +11947,8 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); auto phi_std_raw = - in__.template read>((N - 1)); + in__.template read< + stan::math::var_value>>((N - 1)); local_scalar_t__ sigma_phi = DUMMY_VAR__; lcm_sym22__ = stan::math::inv_sqrt(tau_phi); sigma_phi = lcm_sym22__; @@ -19137,7 +19140,8 @@ class expr_prop_fail7_model final : public model_base_crtp, jacobian__>(lp__, K); + stan::math::var_value>, + jacobian__>(lp__, K); auto theta = in__.template read_constrain_simplex< std::vector>>, @@ -20152,9 +20156,11 @@ class expr_prop_fail8_model final : public model_base_crtp(0, lp__); auto theta_std = - in__.template read>(N); + in__.template read< + stan::math::var_value>>(N); auto phi_std_raw = - in__.template read>(N); + in__.template read< + stan::math::var_value>>(N); local_scalar_t__ sigma_phi = DUMMY_VAR__; lcm_sym13__ = stan::math::inv_sqrt(tau_phi); sigma_phi = lcm_sym13__; @@ -24198,10 +24204,13 @@ class initialize_SoA_model final : public model_base_crtp double lcm_sym15__; double lcm_sym14__; double lcm_sym13__; - auto y = in__.template read>(3); + auto y = + in__.template read< + stan::math::var_value>>(3); auto arr_vec = in__.template read< - std::vector>>(3, 4); + std::vector>>>(3, + 4); stan::math::var_value> x = stan::math::var_value>(Eigen::Matrix::Constant(3, std::numeric_limits::quiet_NaN( @@ -24934,9 +24943,11 @@ class inline_functions_varmat_model final : public model_base_crtp>(5); + in__.template read< + stan::math::var_value>>(5); auto p_multi_ret_vec = - in__.template read>(5); + in__.template read< + stan::math::var_value>>(5); stan::math::var_value> tp_single_ret_vec = stan::math::var_value>(Eigen::Matrix::Constant(5, std::numeric_limits::quiet_NaN( @@ -36716,12 +36727,15 @@ class optimizations_model final : public model_base_crtp { auto theta = in__.template read(); auto phi = in__.template read(); auto x_matrix = - in__.template read>(3, 2); + in__.template read< + stan::math::var_value>>(3, 2); auto x_vector = - in__.template read>(2); + in__.template read< + stan::math::var_value>>(2); auto x_cov = in__.template read_constrain_cov_matrix< - Eigen::Matrix, jacobian__>(lp__, 2); + stan::math::var_value>, + jacobian__>(lp__, 2); { double x = std::numeric_limits::quiet_NaN(); { @@ -41046,9 +41060,11 @@ class partial_eval_multiply_model final : public model_base_crtp lcm_sym9__; double lcm_sym8__; auto m2 = - in__.template read>(10, 10); + in__.template read< + stan::math::var_value>>(10, 10); auto m3 = - in__.template read>(10, 10); + in__.template read< + stan::math::var_value>>(10, 10); { stan::math::var_value> m5 = Eigen::Matrix::Constant(10, 10, @@ -43275,7 +43291,8 @@ class stalled1_failure_model final : public model_base_crtp>>(I, 8); + std::vector>>>(I, + 8); local_scalar_t__ sigma = DUMMY_VAR__; lcm_sym13__ = (1 / stan::math::sqrt(tau)); sigma = lcm_sym13__; diff --git a/test/integration/good/compiler-optimizations/cppO1.expected b/test/integration/good/compiler-optimizations/cppO1.expected index a8c558048..59c8759cd 100644 --- a/test/integration/good/compiler-optimizations/cppO1.expected +++ b/test/integration/good/compiler-optimizations/cppO1.expected @@ -163,7 +163,8 @@ class ad_level_deep_dependence_model final : public model_base_crtp>(10, 10); + in__.template read< + stan::math::var_value>>(10, 10); stan::math::var_value> X_tp1; current_statement__ = 2; stan::model::assign(X_tp1, X_d, "assigning variable X_tp1"); @@ -1577,7 +1578,8 @@ class ad_levels_deep_model final : public model_base_crtp (void) function__; try { auto X_p = - in__.template read>(10, 10); + in__.template read< + stan::math::var_value>>(10, 10); stan::math::var_value> X_tp1; current_statement__ = 2; stan::model::assign(X_tp1, stan::math::exp(X_data), @@ -7881,7 +7883,7 @@ class expr_prop_fail4_model final : public model_base_crtp>(phi_std_raw_1dim__); + stan::math::var_value>>(phi_std_raw_1dim__); local_scalar_t__ sigma_phi; current_statement__ = 3; sigma_phi = stan::math::inv_sqrt(tau_phi); @@ -12343,7 +12345,8 @@ class expr_prop_fail7_model final : public model_base_crtp, jacobian__>(lp__, K); + stan::math::var_value>, + jacobian__>(lp__, K); auto theta = in__.template read_constrain_simplex< std::vector>>, @@ -13033,9 +13036,11 @@ class expr_prop_fail8_model final : public model_base_crtp(0, lp__); auto theta_std = - in__.template read>(N); + in__.template read< + stan::math::var_value>>(N); auto phi_std_raw = - in__.template read>(N); + in__.template read< + stan::math::var_value>>(N); local_scalar_t__ sigma_phi; current_statement__ = 7; sigma_phi = stan::math::inv_sqrt(tau_phi); @@ -16067,10 +16072,13 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - auto y = in__.template read>(3); + auto y = + in__.template read< + stan::math::var_value>>(3); auto arr_vec = in__.template read< - std::vector>>(3, 4); + std::vector>>>(3, + 4); stan::math::var_value> x; current_statement__ = 3; stan::model::assign(x, @@ -16644,9 +16652,11 @@ class inline_functions_varmat_model final : public model_base_crtp>(5); + in__.template read< + stan::math::var_value>>(5); auto p_multi_ret_vec = - in__.template read>(5); + in__.template read< + stan::math::var_value>>(5); stan::math::var_value> tp_single_ret_vec = stan::math::var_value>(Eigen::Matrix::Constant(5, std::numeric_limits::quiet_NaN( @@ -25266,12 +25276,15 @@ class optimizations_model final : public model_base_crtp { auto theta = in__.template read(); auto phi = in__.template read(); auto x_matrix = - in__.template read>(3, 2); + in__.template read< + stan::math::var_value>>(3, 2); auto x_vector = - in__.template read>(2); + in__.template read< + stan::math::var_value>>(2); auto x_cov = in__.template read_constrain_cov_matrix< - Eigen::Matrix, jacobian__>(lp__, 2); + stan::math::var_value>, + jacobian__>(lp__, 2); { local_scalar_t__ x = DUMMY_VAR__; { @@ -27990,9 +28003,11 @@ class partial_eval_multiply_model final : public model_base_crtp>(10, 10); + in__.template read< + stan::math::var_value>>(10, 10); auto m3 = - in__.template read>(10, 10); + in__.template read< + stan::math::var_value>>(10, 10); { stan::math::var_value> m5; current_statement__ = 3; @@ -28947,7 +28962,8 @@ class stalled1_failure_model final : public model_base_crtp>>(I, 8); + std::vector>>>(I, + 8); local_scalar_t__ sigma; current_statement__ = 8; sigma = (1 / stan::math::sqrt(tau)); diff --git a/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected b/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected index 36aa10ee5..ea7aabd04 100644 --- a/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected +++ b/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected @@ -327,7 +327,9 @@ class ad_scalar_data_matrix_model final : public model_base_crtp(); auto sigma = in__.template read(); - auto beta = in__.template read>(N); + auto beta = + in__.template read< + stan::math::var_value>>(N); { current_statement__ = 4; stan::math::validate_non_negative_index("soa_simple", "N", N); @@ -1837,17 +1839,23 @@ class constraints_model final : public model_base_crtp { try { auto high_low_est = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(diff_low_mid, - diff_high_mid, lp__, N); + stan::math::var_value>, + jacobian__>(diff_low_mid, diff_high_mid, lp__, N); current_statement__ = 1; stan::math::check_matching_dims("constraint", "high_low_est", high_low_est, "lower", diff_low_mid); current_statement__ = 1; stan::math::check_matching_dims("constraint", "high_low_est", high_low_est, "upper", diff_high_mid); - auto b = in__.template read>(K); - auto h = in__.template read>(Nr); - auto ar = in__.template read>(2); + auto b = + in__.template read< + stan::math::var_value>>(K); + auto h = + in__.template read< + stan::math::var_value>>(Nr); + auto ar = + in__.template read< + stan::math::var_value>>(2); auto ma = in__.template read(); auto phi_beta = in__.template read_constrain_lub(0, 1, @@ -1857,18 +1865,21 @@ class constraints_model final : public model_base_crtp { lp__); auto Intercept = in__.template read(); auto mean_price = - in__.template read>(N); + in__.template read< + stan::math::var_value>>(N); auto sigma_price = - in__.template read_constrain_lb, - jacobian__>(0.0, lp__, N); + in__.template read_constrain_lb< + stan::math::var_value>, jacobian__>(0.0, + lp__, N); auto theta = in__.template read(); auto upper_test = - in__.template read_constrain_ub, - jacobian__>(ma, lp__, N); + in__.template read_constrain_ub< + stan::math::var_value>, jacobian__>(ma, + lp__, N); auto lower_upper_test = in__.template read_constrain_lub< - Eigen::Matrix, jacobian__>(sigma_price, - upper_test, lp__, N); + stan::math::var_value>, + jacobian__>(sigma_price, upper_test, lp__, N); current_statement__ = 13; stan::math::check_matching_dims("constraint", "lower_upper_test", lower_upper_test, "lower", sigma_price); @@ -1877,7 +1888,7 @@ class constraints_model final : public model_base_crtp { lower_upper_test, "upper", upper_test); auto row_vec_lower_upper_test = in__.template read_constrain_lub< - Eigen::Matrix, + stan::math::var_value>, jacobian__>(stan::math::transpose(sigma_price), stan::math::transpose(upper_test), lp__, N); current_statement__ = 14; @@ -1890,8 +1901,8 @@ class constraints_model final : public model_base_crtp { stan::math::transpose(upper_test)); auto offset_mult_test = in__.template read_constrain_offset_multiplier< - Eigen::Matrix, jacobian__>(mean_price, - sigma_price, lp__, N); + stan::math::var_value>, + jacobian__>(mean_price, sigma_price, lp__, N); current_statement__ = 15; stan::math::check_matching_dims("constraint", "offset_mult_test", offset_mult_test, "offset", mean_price); @@ -1900,25 +1911,32 @@ class constraints_model final : public model_base_crtp { offset_mult_test, "multiplier", sigma_price); auto ordered_test = in__.template read_constrain_ordered< - Eigen::Matrix, jacobian__>(lp__, N); + stan::math::var_value>, + jacobian__>(lp__, N); auto unit_vec_test = in__.template read_constrain_unit_vector< - Eigen::Matrix, jacobian__>(lp__, N); + stan::math::var_value>, + jacobian__>(lp__, N); auto pos_ordered_test = in__.template read_constrain_positive_ordered< - Eigen::Matrix, jacobian__>(lp__, N); + stan::math::var_value>, + jacobian__>(lp__, N); auto corr_matrix_test = in__.template read_constrain_corr_matrix< - Eigen::Matrix, jacobian__>(lp__, N); + stan::math::var_value>, + jacobian__>(lp__, N); auto cov_matrix_test = in__.template read_constrain_cov_matrix< - Eigen::Matrix, jacobian__>(lp__, N); + stan::math::var_value>, + jacobian__>(lp__, N); auto chol_fac_cov_test = in__.template read_constrain_cholesky_factor_cov< - Eigen::Matrix, jacobian__>(lp__, K, K); + stan::math::var_value>, + jacobian__>(lp__, K, K); auto chol_fac_corr_test = in__.template read_constrain_cholesky_factor_corr< - Eigen::Matrix, jacobian__>(lp__, K); + stan::math::var_value>, + jacobian__>(lp__, K); local_scalar_t__ phi = DUMMY_VAR__; current_statement__ = 23; phi = stan::math::fma(phi_beta, 2.0, -(1.0)); @@ -4679,26 +4697,36 @@ class indexing_model final : public model_base_crtp { try { auto alpha = in__.template read(); auto p_soa_vec_v = - in__.template read>(M); + in__.template read< + stan::math::var_value>>(M); auto p_soa_mat = - in__.template read>(N, M); + in__.template read< + stan::math::var_value>>(N, M); auto p_soa_arr_vec_v = in__.template read< - std::vector>>(10, N); + std::vector>>>(10, + N); auto p_soa_mat_uni_col_idx = - in__.template read>(N, M); + in__.template read< + stan::math::var_value>>(N, M); auto p_soa_vec_uni_idx = - in__.template read>(N); + in__.template read< + stan::math::var_value>>(N); auto p_soa_loop_mat_uni_col_idx = - in__.template read>(N, M); + in__.template read< + stan::math::var_value>>(N, M); auto p_soa_lhs_loop_mul = - in__.template read>(N); + in__.template read< + stan::math::var_value>>(N); auto p_soa_rhs_loop_mul = - in__.template read>(N); + in__.template read< + stan::math::var_value>>(N); auto p_soa_used_with_aos_in_excluded_fun = - in__.template read>(N); + in__.template read< + stan::math::var_value>>(N); auto p_soa_loop_mat_multi_uni_uni_idx = - in__.template read>(N, M); + in__.template read< + stan::math::var_value>>(N, M); auto p_aos_vec_v_assign_to_aos = in__.template read>(M); auto p_aos_vec_v_tp_fails_func = @@ -6959,7 +6987,8 @@ class reductions_allowed_model final : public model_base_crtp>(5, 10); + in__.template read< + stan::math::var_value>>(5, 10); auto aos_x = in__.template read>(5, 10); auto aos_y = @@ -7610,7 +7639,8 @@ class return_types_and_udfs_demotes_model final : public model_base_crtp>(10, 10); + in__.template read< + stan::math::var_value>>(10, 10); auto udf_input_aos = in__.template read>(10, 10); Eigen::Matrix user_func_aos = @@ -8220,7 +8250,8 @@ class single_indexing_model final : public model_base_crtp>(10, 10); auto soa_p = - in__.template read>(10, 10); + in__.template read< + stan::math::var_value>>(10, 10); local_scalar_t__ tp_real_from_soa = DUMMY_VAR__; current_statement__ = 3; tp_real_from_soa = stan::model::rvalue(soa_p, "soa_p", diff --git a/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected b/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected index 59f6d7ff0..8bd7e7d2f 100644 --- a/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected +++ b/test/integration/good/compiler-optimizations/mem_patterns/transformed_mir.expected @@ -819,7 +819,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS ((pattern (FunApp (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) ())) (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -830,7 +830,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS ((pattern (FunApp (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) ())) (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -849,7 +849,7 @@ matrix[2, 2] aos_mat_from_vecs: AoS (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4107,7 +4107,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4152,7 +4152,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4171,7 +4171,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var Nr)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4190,7 +4190,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4201,7 +4201,7 @@ vector[Nr] h_sigma: SoA ((pattern (FunApp (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) ())) (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4219,7 +4219,7 @@ vector[Nr] h_sigma: SoA (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 1)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) + (dims ()) (mem_pattern SoA))) ())) (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4235,7 +4235,7 @@ vector[Nr] h_sigma: SoA (Lower ((pattern (Lit Int 0)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (dims ()) (mem_pattern AoS))) + (dims ()) (mem_pattern SoA))) ())) (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4246,7 +4246,7 @@ vector[Nr] h_sigma: SoA ((pattern (FunApp (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) ())) (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4265,7 +4265,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4288,7 +4288,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4299,7 +4299,7 @@ vector[Nr] h_sigma: SoA ((pattern (FunApp (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) ())) (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4322,7 +4322,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4347,7 +4347,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4404,7 +4404,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4461,7 +4461,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4506,7 +4506,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4525,7 +4525,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4544,7 +4544,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4564,7 +4564,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4584,7 +4584,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4606,7 +4606,7 @@ vector[Nr] h_sigma: SoA (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -4626,7 +4626,7 @@ vector[Nr] h_sigma: SoA (dims (((pattern (Var K)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -12038,7 +12038,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS ((pattern (FunApp (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) ())) (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -12057,7 +12057,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (dims (((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -12079,7 +12079,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -12102,7 +12102,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ (UArray UVector)) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -12124,7 +12124,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -12143,7 +12143,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -12165,7 +12165,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -12184,7 +12184,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ URowVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -12203,7 +12203,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -12222,7 +12222,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UVector) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -12244,7 +12244,7 @@ vector[N] tp_aos_loop_vec_v_multi_uni_idx: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Var M)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -17027,7 +17027,7 @@ vector[N] tp_soa_single_idx_in_upfrom_idx: SoA ((pattern (FunApp (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) ())) (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -17630,7 +17630,7 @@ matrix[5, 10] tp_matrix_from_udf_reduced_soa: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -18673,7 +18673,7 @@ matrix[10, 10] mul_two_aos: AoS (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -19602,7 +19602,7 @@ matrix[10, 10] tp_matrix_from_soa_loop: SoA (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) ((pattern (Lit Int 10)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ UMatrix) (loc ) (adlevel AutoDiffable)))))))) (meta )) diff --git a/test/integration/good/tuples/transformed_mir.expected b/test/integration/good/tuples/transformed_mir.expected index c793df12f..804da4cd4 100644 --- a/test/integration/good/tuples/transformed_mir.expected +++ b/test/integration/good/tuples/transformed_mir.expected @@ -10052,7 +10052,7 @@ ((pattern (FunApp (CompilerInternal - (FnReadParam (constrain Identity) (dims ()) (mem_pattern AoS))) + (FnReadParam (constrain Identity) (dims ()) (mem_pattern SoA))) ())) (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -12778,7 +12778,7 @@ (adlevel (TupleAD (AutoDiffable AutoDiffable)))))) 2)) (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))) - (dims ()) (mem_pattern AoS))) + (dims ()) (mem_pattern SoA))) ())) (meta ((type_ UReal) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -21661,7 +21661,7 @@ (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) @@ -23013,7 +23013,7 @@ (dims (((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (mem_pattern AoS))) + (mem_pattern SoA))) ())) (meta ((type_ (UArray UReal)) (loc ) (adlevel AutoDiffable)))))))) (meta )) From f10b7a905825ebf2133e07336abe8a9764bd01f2 Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Tue, 23 Jul 2024 12:47:32 -0400 Subject: [PATCH 12/17] Fix monotone framework expression detection --- .../Monotone_framework.ml | 8 +- .../good/compiler-optimizations/cpp.expected | 1677 +++++++++-------- 2 files changed, 848 insertions(+), 837 deletions(-) diff --git a/src/analysis_and_optimization/Monotone_framework.ml b/src/analysis_and_optimization/Monotone_framework.ml index aec2f783a..ffb4b8f0c 100644 --- a/src/analysis_and_optimization/Monotone_framework.ml +++ b/src/analysis_and_optimization/Monotone_framework.ml @@ -624,7 +624,9 @@ let used_expressions_expr e = Expr.Typed.Set.singleton e let rec used_expressions_stmt_help f (s : (Expr.Typed.t, Stmt.Located.t) Stmt.Fixed.Pattern.t) = match s with - | TargetPE e | JacobianPE e | Return (Some e) -> f e + | TargetPE e | JacobianPE e | Return (Some e) | Decl {initialize= Assign e; _} + -> + f e | Assignment (l, _, e) -> Set.union (f e) (used_expressions_lval f l) | IfElse (e, b1, Some b2) -> Expr.Typed.Set.union_list @@ -658,7 +660,9 @@ let used_expressions_stmt = used_expressions_stmt_help used_expressions_expr let top_used_expressions_stmt_help f (s : (Expr.Typed.t, int) Stmt.Fixed.Pattern.t) = match s with - | TargetPE e | JacobianPE e | Return (Some e) -> f e + | TargetPE e | JacobianPE e | Return (Some e) | Decl {initialize= Assign e; _} + -> + f e | Assignment (l, _, e) -> Set.union (f e) (used_expressions_lval f l) | While (e, _) | IfElse (e, _, _) -> f e | NRFunApp (k, l) -> diff --git a/test/integration/good/compiler-optimizations/cpp.expected b/test/integration/good/compiler-optimizations/cpp.expected index d3a52a206..13e856f06 100644 --- a/test/integration/good/compiler-optimizations/cpp.expected +++ b/test/integration/good/compiler-optimizations/cpp.expected @@ -11699,12 +11699,12 @@ static constexpr std::array locations_array__ = " (in 'expr-prop-fail4.stan', line 35, column 8 to column 9)"}; class expr_prop_fail4_model final : public model_base_crtp { private: - double lcm_sym34__; - double lcm_sym33__; - Eigen::Matrix lcm_sym32___data__; - int lcm_sym31__; - int lcm_sym30__; - int lcm_sym29__; + double lcm_sym37__; + double lcm_sym36__; + Eigen::Matrix lcm_sym35___data__; + int lcm_sym34__; + int lcm_sym33__; + int lcm_sym32__; int N; int N_edges; std::vector node1; @@ -11712,7 +11712,7 @@ class expr_prop_fail4_model final : public model_base_crtp E_data__; Eigen::Matrix log_E_data__; int phi_std_raw_1dim__; - Eigen::Map> lcm_sym32__{nullptr, 0}; + Eigen::Map> lcm_sym35__{nullptr, 0}; Eigen::Map> E{nullptr, 0}; Eigen::Map> log_E{nullptr, 0}; public: @@ -11817,11 +11817,11 @@ class expr_prop_fail4_model final : public model_base_crtp::min(); - lcm_sym30__ = (N - 1); - phi_std_raw_1dim__ = lcm_sym30__; + lcm_sym33__ = (N - 1); + phi_std_raw_1dim__ = lcm_sym33__; current_statement__ = 37; stan::math::validate_non_negative_index("phi_std_raw", "N - 1", - lcm_sym30__); + lcm_sym33__); current_statement__ = 38; stan::math::validate_non_negative_index("phi", "N", N); current_statement__ = 39; @@ -11868,35 +11868,36 @@ class expr_prop_fail4_model final : public model_base_crtp lcm_sym27__; double lcm_sym26__; - Eigen::Matrix lcm_sym25__; - double lcm_sym24__; - int lcm_sym23__; + int lcm_sym31__; auto tau_phi = in__.template read_constrain_lb(0, lp__); + lcm_sym31__ = (N - 1); auto phi_std_raw = - in__.template read>((N - 1)); + in__.template read>(lcm_sym31__); local_scalar_t__ sigma_phi = DUMMY_VAR__; - lcm_sym28__ = stan::math::inv_sqrt(tau_phi); - sigma_phi = lcm_sym28__; + lcm_sym30__ = stan::math::inv_sqrt(tau_phi); + sigma_phi = lcm_sym30__; Eigen::Matrix phi = Eigen::Matrix::Constant(N, DUMMY_VAR__); current_statement__ = 13; stan::model::assign(phi, phi_std_raw, "assigning variable phi", - stan::model::index_min_max(1, (N - 1))); + stan::model::index_min_max(1, lcm_sym31__)); current_statement__ = 14; stan::model::assign(phi, -(stan::math::sum(phi_std_raw)), "assigning variable phi", stan::model::index_uni(N)); current_statement__ = 15; stan::model::assign(phi, - stan::math::multiply(stan::model::deep_copy(phi), lcm_sym28__), + stan::math::multiply(stan::model::deep_copy(phi), lcm_sym30__), "assigning variable phi"); current_statement__ = 3; stan::math::check_greater_or_equal(function__, "sigma_phi", - lcm_sym28__, 0); + lcm_sym30__, 0); { current_statement__ = 25; lp_accum__.add((-0.5 * @@ -11937,38 +11938,39 @@ class expr_prop_fail4_model final : public model_base_crtp lcm_sym19__; - double lcm_sym18__; - int lcm_sym17__; + Eigen::Matrix lcm_sym20__; + double lcm_sym19__; + int lcm_sym24__; auto tau_phi = in__.template read_constrain_lb(0, lp__); + lcm_sym24__ = (N - 1); auto phi_std_raw = in__.template read< - stan::math::var_value>>((N - 1)); + stan::math::var_value>>(lcm_sym24__); local_scalar_t__ sigma_phi = DUMMY_VAR__; - lcm_sym22__ = stan::math::inv_sqrt(tau_phi); - sigma_phi = lcm_sym22__; + lcm_sym23__ = stan::math::inv_sqrt(tau_phi); + sigma_phi = lcm_sym23__; stan::math::var_value> phi = stan::math::var_value>(Eigen::Matrix::Constant(N, std::numeric_limits::quiet_NaN( ))); current_statement__ = 13; stan::model::assign(phi, phi_std_raw, "assigning variable phi", - stan::model::index_min_max(1, (N - 1))); + stan::model::index_min_max(1, lcm_sym24__)); current_statement__ = 14; stan::model::assign(phi, -(stan::math::sum(phi_std_raw)), "assigning variable phi", stan::model::index_uni(N)); current_statement__ = 15; stan::model::assign(phi, - stan::math::multiply(stan::model::deep_copy(phi), lcm_sym22__), + stan::math::multiply(stan::model::deep_copy(phi), lcm_sym23__), "assigning variable phi"); current_statement__ = 3; stan::math::check_greater_or_equal(function__, "sigma_phi", - lcm_sym22__, 0); + lcm_sym23__, 0); { current_statement__ = 25; lp_accum__.add((-0.5 * @@ -12029,13 +12031,14 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); + lcm_sym17__ = (N - 1); auto phi_std_raw = - in__.template read>((N - 1)); + in__.template read>(lcm_sym17__); double sigma_phi = std::numeric_limits::quiet_NaN(); Eigen::Matrix phi = Eigen::Matrix::Constant(N, @@ -12051,7 +12054,7 @@ class expr_prop_fail4_model final : public model_base_crtp locations_array__ = +static constexpr std::array locations_array__ = {" (found before start of program)", " (in 'inlining-fail2.stan', line 175, column 2 to column 34)", " (in 'inlining-fail2.stan', line 176, column 2 to column 32)", @@ -26312,6 +26315,7 @@ static constexpr std::array locations_array__ = " (in 'inlining-fail2.stan', line 214, column 2 to column 30)", " (in 'inlining-fail2.stan', line 191, column 6 to column 58)", " (in 'inlining-fail2.stan', line 190, column 4 to line 191, column 58)", + " (in 'inlining-fail2.stan', line 189, column 2 to line 191, column 58)", " (in 'inlining-fail2.stan', line 49, column 4 to column 24)", " (in 'inlining-fail2.stan', line 50, column 4 to column 30)", " (in 'inlining-fail2.stan', line 51, column 11 to column 16)", @@ -26507,20 +26511,20 @@ int first_capture(const T0__& y_i, std::ostream* pstream__) { { lcm_sym55__ = stan::math::size(y_i); if (stan::math::logical_gte(lcm_sym55__, 1)) { - current_statement__ = 62; + current_statement__ = 63; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(1))) { - current_statement__ = 61; + current_statement__ = 62; return 1; } for (int k = 2; k <= lcm_sym55__; ++k) { - current_statement__ = 62; + current_statement__ = 63; if (stan::model::rvalue(y_i, "y_i", stan::model::index_uni(k))) { - current_statement__ = 61; + current_statement__ = 62; return k; } } } - current_statement__ = 135; + current_statement__ = 136; return 0; } } catch (const std::exception& e) { @@ -26554,22 +26558,22 @@ int last_capture(const T0__& y_i, std::ostream* pstream__) { if (stan::math::logical_gte(lcm_sym61__, 0)) { int k = std::numeric_limits::min(); lcm_sym60__ = (stan::math::size(y_i) - 0); - current_statement__ = 138; + current_statement__ = 139; if (y_i[(lcm_sym60__ - 1)]) { - current_statement__ = 137; + current_statement__ = 138; return lcm_sym60__; } for (int k_rev = 1; k_rev <= lcm_sym61__; ++k_rev) { int k = std::numeric_limits::min(); lcm_sym59__ = (stan::math::size(y_i) - k_rev); - current_statement__ = 138; + current_statement__ = 139; if (y_i[(lcm_sym59__ - 1)]) { - current_statement__ = 137; + current_statement__ = 138; return lcm_sym59__; } } } - current_statement__ = 140; + current_statement__ = 141; return 0; } } catch (const std::exception& e) { @@ -26618,17 +26622,17 @@ prob_uncaptured(const T0__& p_arg__, const T1__& phi_arg__, std::ostream* int n_occasions = std::numeric_limits::min(); lcm_sym70__ = stan::math::cols(p); n_occasions = lcm_sym70__; - current_statement__ = 20; - stan::math::validate_non_negative_index("chi", "n_ind", lcm_sym75__); current_statement__ = 21; + stan::math::validate_non_negative_index("chi", "n_ind", lcm_sym75__); + current_statement__ = 22; stan::math::validate_non_negative_index("chi", "n_occasions", lcm_sym70__); Eigen::Matrix chi = Eigen::Matrix::Constant(lcm_sym75__, lcm_sym70__, DUMMY_VAR__); - current_statement__ = 30; + current_statement__ = 31; if (stan::math::logical_gte(lcm_sym75__, 1)) { - current_statement__ = 23; + current_statement__ = 24; stan::model::assign(chi, 1.0, "assigning variable chi", stan::model::index_uni(1), stan::model::index_uni(lcm_sym70__)); lcm_sym67__ = (lcm_sym70__ - 1); @@ -26637,7 +26641,7 @@ prob_uncaptured(const T0__& p_arg__, const T1__& phi_arg__, std::ostream* int t_curr = std::numeric_limits::min(); int t_next = std::numeric_limits::min(); lcm_sym69__ = (lcm_sym67__ + 1); - current_statement__ = 26; + current_statement__ = 27; stan::model::assign(chi, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), @@ -26655,7 +26659,7 @@ prob_uncaptured(const T0__& p_arg__, const T1__& phi_arg__, std::ostream* lcm_sym66__ = (lcm_sym70__ - t); int t_next = std::numeric_limits::min(); lcm_sym68__ = (lcm_sym66__ + 1); - current_statement__ = 26; + current_statement__ = 27; stan::model::assign(chi, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), @@ -26671,15 +26675,15 @@ prob_uncaptured(const T0__& p_arg__, const T1__& phi_arg__, std::ostream* } } for (int i = 2; i <= lcm_sym75__; ++i) { - current_statement__ = 23; + current_statement__ = 24; stan::model::assign(chi, 1.0, "assigning variable chi", stan::model::index_uni(i), stan::model::index_uni(lcm_sym70__)); - current_statement__ = 28; + current_statement__ = 29; if (lcm_sym64__) { int t_curr = std::numeric_limits::min(); int t_next = std::numeric_limits::min(); lcm_sym69__ = (lcm_sym67__ + 1); - current_statement__ = 26; + current_statement__ = 27; stan::model::assign(chi, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(i), @@ -26697,7 +26701,7 @@ prob_uncaptured(const T0__& p_arg__, const T1__& phi_arg__, std::ostream* lcm_sym66__ = (lcm_sym70__ - t); int t_next = std::numeric_limits::min(); lcm_sym68__ = (lcm_sym66__ + 1); - current_statement__ = 26; + current_statement__ = 27; stan::model::assign(chi, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(i), @@ -26714,7 +26718,7 @@ prob_uncaptured(const T0__& p_arg__, const T1__& phi_arg__, std::ostream* } } } - current_statement__ = 31; + current_statement__ = 32; return chi; } } catch (const std::exception& e) { @@ -26821,7 +26825,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, lcm_sym125__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", stan::model::index_uni(2)); n_occasions = lcm_sym125__; - current_statement__ = 80; + current_statement__ = 81; stan::math::validate_non_negative_index("qgamma", "n_occasions", lcm_sym125__); Eigen::Matrix qgamma = @@ -26829,9 +26833,9 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, std::numeric_limits::quiet_NaN()); stan::model::assign(lcm_sym84__, stan::math::subtract(1.0, gamma), "assigning variable lcm_sym84__"); - current_statement__ = 107; + current_statement__ = 108; if (stan::math::logical_gte(lcm_sym124__, 1)) { - current_statement__ = 82; + current_statement__ = 83; stan::math::validate_non_negative_index("qp", "n_occasions", lcm_sym125__); Eigen::Matrix qp = @@ -26845,9 +26849,9 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, lcm_sym121__ = stan::model::rvalue(first, "first", stan::model::index_uni(1)); if (lcm_sym121__) { - current_statement__ = 100; + current_statement__ = 101; if (stan::math::logical_eq(lcm_sym121__, 1)) { - current_statement__ = 98; + current_statement__ = 99; lp_accum__.add(stan::math::bernoulli_lpmf(1, (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)) * @@ -26855,7 +26859,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(1), stan::model::index_uni(1))))); } else { - current_statement__ = 91; + current_statement__ = 92; stan::math::validate_non_negative_index("lp", "first[i]", lcm_sym121__); Eigen::Matrix lp = @@ -26878,9 +26882,9 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::rvalue(p, "p", stan::model::index_uni(1), stan::model::index_uni(lcm_sym121__)))), "assigning variable lp", stan::model::index_uni(1)); - current_statement__ = 94; + current_statement__ = 95; if (stan::math::logical_gte(lcm_sym88__, 2)) { - current_statement__ = 93; + current_statement__ = 94; stan::model::assign(lp, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -26903,7 +26907,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(lcm_sym121__)))), "assigning variable lp", stan::model::index_uni(2)); for (int t = 3; t <= lcm_sym88__; ++t) { - current_statement__ = 93; + current_statement__ = 94; stan::model::assign(lp, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -26927,7 +26931,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, "assigning variable lp", stan::model::index_uni(t)); } } - current_statement__ = 95; + current_statement__ = 96; stan::model::assign(lp, ((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -26939,13 +26943,13 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::rvalue(p, "p", stan::model::index_uni(1), stan::model::index_uni(lcm_sym121__)))), "assigning variable lp", stan::model::index_uni(lcm_sym121__)); - current_statement__ = 96; + current_statement__ = 97; lp_accum__.add(stan::math::log_sum_exp(lp)); } lcm_sym123__ = stan::model::rvalue(last, "last", stan::model::index_uni(1)); if (stan::math::logical_gte(lcm_sym123__, (lcm_sym121__ + 1))) { - current_statement__ = 101; + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(1), @@ -26960,12 +26964,12 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(1), stan::model::index_uni((lcm_sym121__ + 1))))); for (int t = lcm_sym104__; t <= lcm_sym123__; ++t) { - current_statement__ = 101; + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(1), stan::model::index_uni((t - 1))))); - current_statement__ = 102; + current_statement__ = 103; lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni(1), @@ -26975,7 +26979,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(t)))); } } - current_statement__ = 104; + current_statement__ = 105; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(chi, "chi", stan::model::index_uni(1), @@ -26987,7 +26991,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, Eigen::Matrix lp = Eigen::Matrix::Constant(lcm_sym105__, DUMMY_VAR__); - current_statement__ = 85; + current_statement__ = 86; stan::model::assign(lp, ((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) @@ -26999,9 +27003,9 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::rvalue(chi, "chi", stan::model::index_uni(1), stan::model::index_uni(1)))), "assigning variable lp", stan::model::index_uni(1)); - current_statement__ = 87; + current_statement__ = 88; if (stan::math::logical_gte(lcm_sym125__, 2)) { - current_statement__ = 86; + current_statement__ = 87; stan::model::assign(lp, (((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27018,7 +27022,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(2)))), "assigning variable lp", stan::model::index_uni(2)); for (int t = 3; t <= lcm_sym125__; ++t) { - current_statement__ = 86; + current_statement__ = 87; stan::model::assign(lp, (((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27036,16 +27040,16 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(t)); } } - current_statement__ = 88; + current_statement__ = 89; stan::model::assign(lp, stan::math::bernoulli_lpmf(1, stan::math::prod(lcm_sym84__)), "assigning variable lp", stan::model::index_uni(lcm_sym105__)); - current_statement__ = 89; + current_statement__ = 90; lp_accum__.add(stan::math::log_sum_exp(lp)); } for (int i = 2; i <= lcm_sym124__; ++i) { - current_statement__ = 82; + current_statement__ = 83; stan::math::validate_non_negative_index("qp", "n_occasions", lcm_sym125__); Eigen::Matrix qp = @@ -27059,9 +27063,9 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, lcm_sym120__ = stan::model::rvalue(first, "first", stan::model::index_uni(i)); if (lcm_sym120__) { - current_statement__ = 100; + current_statement__ = 101; if (stan::math::logical_eq(lcm_sym120__, 1)) { - current_statement__ = 98; + current_statement__ = 99; lp_accum__.add(stan::math::bernoulli_lpmf(1, (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)) * @@ -27069,7 +27073,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(i), stan::model::index_uni(1))))); } else { - current_statement__ = 91; + current_statement__ = 92; stan::math::validate_non_negative_index("lp", "first[i]", lcm_sym120__); Eigen::Matrix lp = @@ -27093,9 +27097,9 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::rvalue(p, "p", stan::model::index_uni(i), stan::model::index_uni(lcm_sym120__)))), "assigning variable lp", stan::model::index_uni(1)); - current_statement__ = 94; + current_statement__ = 95; if (stan::math::logical_gte(lcm_sym87__, 2)) { - current_statement__ = 93; + current_statement__ = 94; stan::model::assign(lp, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27118,7 +27122,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(lcm_sym120__)))), "assigning variable lp", stan::model::index_uni(2)); for (int t = 3; t <= lcm_sym87__; ++t) { - current_statement__ = 93; + current_statement__ = 94; stan::model::assign(lp, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27142,7 +27146,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, "assigning variable lp", stan::model::index_uni(t)); } } - current_statement__ = 95; + current_statement__ = 96; stan::model::assign(lp, ((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27154,13 +27158,13 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::rvalue(p, "p", stan::model::index_uni(i), stan::model::index_uni(lcm_sym120__)))), "assigning variable lp", stan::model::index_uni(lcm_sym120__)); - current_statement__ = 96; + current_statement__ = 97; lp_accum__.add(stan::math::log_sum_exp(lp)); } lcm_sym122__ = stan::model::rvalue(last, "last", stan::model::index_uni(i)); if (stan::math::logical_gte(lcm_sym122__, (lcm_sym120__ + 1))) { - current_statement__ = 101; + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(i), @@ -27175,12 +27179,12 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(i), stan::model::index_uni((lcm_sym120__ + 1))))); for (int t = lcm_sym103__; t <= lcm_sym122__; ++t) { - current_statement__ = 101; + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(i), stan::model::index_uni((t - 1))))); - current_statement__ = 102; + current_statement__ = 103; lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni(i), @@ -27190,7 +27194,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(t)))); } } - current_statement__ = 104; + current_statement__ = 105; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(chi, "chi", stan::model::index_uni(i), @@ -27202,7 +27206,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, Eigen::Matrix lp = Eigen::Matrix::Constant(lcm_sym105__, DUMMY_VAR__); - current_statement__ = 85; + current_statement__ = 86; stan::model::assign(lp, ((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", @@ -27214,9 +27218,9 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::rvalue(chi, "chi", stan::model::index_uni(i), stan::model::index_uni(1)))), "assigning variable lp", stan::model::index_uni(1)); - current_statement__ = 87; + current_statement__ = 88; if (stan::math::logical_gte(lcm_sym125__, 2)) { - current_statement__ = 86; + current_statement__ = 87; stan::model::assign(lp, (((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27233,7 +27237,7 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, stan::model::index_uni(2)))), "assigning variable lp", stan::model::index_uni(2)); for (int t = 3; t <= lcm_sym125__; ++t) { - current_statement__ = 86; + current_statement__ = 87; stan::model::assign(lp, (((stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -27251,12 +27255,12 @@ jolly_seber_lp(const T0__& y, const T1__& first, const T2__& last, "assigning variable lp", stan::model::index_uni(t)); } } - current_statement__ = 88; + current_statement__ = 89; stan::model::assign(lp, stan::math::bernoulli_lpmf(1, stan::math::prod(lcm_sym84__)), "assigning variable lp", stan::model::index_uni(lcm_sym105__)); - current_statement__ = 89; + current_statement__ = 90; lp_accum__.add(stan::math::log_sum_exp(lp)); } } @@ -27296,37 +27300,37 @@ seq_cprob(const T0__& gamma_arg__, std::ostream* pstream__) { int N = std::numeric_limits::min(); lcm_sym132__ = stan::math::rows(gamma); N = lcm_sym132__; - current_statement__ = 44; + current_statement__ = 45; stan::math::validate_non_negative_index("log_cprob", "N", lcm_sym132__); Eigen::Matrix log_cprob = Eigen::Matrix::Constant(lcm_sym132__, DUMMY_VAR__); local_scalar_t__ log_residual_prob = DUMMY_VAR__; - current_statement__ = 50; + current_statement__ = 51; if (stan::math::logical_gte(lcm_sym132__, 1)) { - current_statement__ = 48; + current_statement__ = 49; stan::model::assign(log_cprob, (stan::math::log( stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + 0), "assigning variable log_cprob", stan::model::index_uni(1)); - current_statement__ = 47; + current_statement__ = 48; log_residual_prob = (0 + stan::math::log1m( stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)))); for (int n = 2; n <= lcm_sym132__; ++n) { - current_statement__ = 48; + current_statement__ = 49; stan::model::assign(log_cprob, (stan::math::log( stan::model::rvalue(gamma, "gamma", stan::model::index_uni(n))) + log_residual_prob), "assigning variable log_cprob", stan::model::index_uni(n)); - current_statement__ = 47; + current_statement__ = 48; log_residual_prob = (log_residual_prob + stan::math::log1m( stan::model::rvalue(gamma, "gamma", stan::model::index_uni(n)))); } } - current_statement__ = 51; + current_statement__ = 52; return stan::math::exp(log_cprob); } } catch (const std::exception& e) { @@ -27335,6 +27339,9 @@ seq_cprob(const T0__& gamma_arg__, std::ostream* pstream__) { } class inlining_fail2_model final : public model_base_crtp { private: + int lcm_sym357__; + int lcm_sym356__; + int lcm_sym355__; int lcm_sym354__; int lcm_sym353__; int lcm_sym352__; @@ -27342,9 +27349,6 @@ class inlining_fail2_model final : public model_base_crtp int lcm_sym350__; int lcm_sym349__; int lcm_sym348__; - int lcm_sym347__; - int lcm_sym346__; - int lcm_sym345__; int M; int n_occasions; std::vector> y; @@ -27374,28 +27378,28 @@ class inlining_fail2_model final : public model_base_crtp try { int pos__; pos__ = 1; - current_statement__ = 109; + current_statement__ = 110; context__.validate_dims("data initialization", "M", "int", std::vector{}); M = std::numeric_limits::min(); - current_statement__ = 109; + current_statement__ = 110; M = context__.vals_i("M")[(1 - 1)]; - current_statement__ = 109; - stan::math::check_greater_or_equal(function__, "M", M, 0); current_statement__ = 110; + stan::math::check_greater_or_equal(function__, "M", M, 0); + current_statement__ = 111; context__.validate_dims("data initialization", "n_occasions", "int", std::vector{}); n_occasions = std::numeric_limits::min(); - current_statement__ = 110; + current_statement__ = 111; n_occasions = context__.vals_i("n_occasions")[(1 - 1)]; - current_statement__ = 110; + current_statement__ = 111; stan::math::check_greater_or_equal(function__, "n_occasions", n_occasions, 0); - current_statement__ = 111; - stan::math::validate_non_negative_index("y", "M", M); current_statement__ = 112; - stan::math::validate_non_negative_index("y", "n_occasions", n_occasions); + stan::math::validate_non_negative_index("y", "M", M); current_statement__ = 113; + stan::math::validate_non_negative_index("y", "n_occasions", n_occasions); + current_statement__ = 114; context__.validate_dims("data initialization", "y", "int", std::vector{static_cast(M), static_cast(n_occasions)}); @@ -27403,12 +27407,12 @@ class inlining_fail2_model final : public model_base_crtp std::vector(n_occasions, std::numeric_limits::min())); { std::vector y_flat__; - current_statement__ = 113; + current_statement__ = 114; y_flat__ = context__.vals_i("y"); pos__ = 1; if (stan::math::logical_gte(n_occasions, 1)) { - lcm_sym345__ = stan::math::logical_gte(M, 1); - if (lcm_sym345__) { + lcm_sym348__ = stan::math::logical_gte(M, 1); + if (lcm_sym348__) { stan::model::assign(y, stan::model::rvalue(y_flat__, "y_flat__", stan::model::index_uni(1)), "assigning variable y", @@ -27422,7 +27426,7 @@ class inlining_fail2_model final : public model_base_crtp } } for (int sym1__ = 2; sym1__ <= n_occasions; ++sym1__) { - if (lcm_sym345__) { + if (lcm_sym348__) { stan::model::assign(y, y_flat__[(pos__ - 1)], "assigning variable y", stan::model::index_uni(1), stan::model::index_uni(sym1__)); @@ -27436,30 +27440,30 @@ class inlining_fail2_model final : public model_base_crtp } } } else { - lcm_sym345__ = stan::math::logical_gte(M, 1); + lcm_sym348__ = stan::math::logical_gte(M, 1); } } - current_statement__ = 113; + current_statement__ = 114; stan::math::check_greater_or_equal(function__, "y", y, 0); - current_statement__ = 113; - stan::math::check_less_or_equal(function__, "y", y, 1); current_statement__ = 114; - stan::math::validate_non_negative_index("first", "M", M); + stan::math::check_less_or_equal(function__, "y", y, 1); current_statement__ = 115; - first = std::vector(M, std::numeric_limits::min()); + stan::math::validate_non_negative_index("first", "M", M); current_statement__ = 116; - stan::math::validate_non_negative_index("last", "M", M); + first = std::vector(M, std::numeric_limits::min()); current_statement__ = 117; + stan::math::validate_non_negative_index("last", "M", M); + current_statement__ = 118; last = std::vector(M, std::numeric_limits::min()); - current_statement__ = 119; - if (lcm_sym345__) { - current_statement__ = 118; + current_statement__ = 120; + if (lcm_sym348__) { + current_statement__ = 119; stan::model::assign(first, first_capture( stan::model::rvalue(y, "y", stan::model::index_uni(1)), pstream__), "assigning variable first", stan::model::index_uni(1)); for (int i = 2; i <= M; ++i) { - current_statement__ = 118; + current_statement__ = 119; stan::model::assign(first, first_capture( stan::model::rvalue(y, "y", stan::model::index_uni(i)), @@ -27467,15 +27471,15 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(i)); } } - current_statement__ = 121; - if (lcm_sym345__) { - current_statement__ = 120; + current_statement__ = 122; + if (lcm_sym348__) { + current_statement__ = 121; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(1)), pstream__), "assigning variable last", stan::model::index_uni(1)); for (int i = 2; i <= M; ++i) { - current_statement__ = 120; + current_statement__ = 121; stan::model::assign(last, last_capture( stan::model::rvalue(y, "y", stan::model::index_uni(i)), @@ -27483,51 +27487,51 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(i)); } } - current_statement__ = 115; + current_statement__ = 116; stan::math::check_greater_or_equal(function__, "first", first, 0); - current_statement__ = 115; + current_statement__ = 116; stan::math::check_less_or_equal(function__, "first", first, n_occasions); - current_statement__ = 117; + current_statement__ = 118; stan::math::check_greater_or_equal(function__, "last", last, 0); - current_statement__ = 117; + current_statement__ = 118; stan::math::check_less_or_equal(function__, "last", last, n_occasions); - current_statement__ = 122; + current_statement__ = 123; stan::math::validate_non_negative_index("gamma", "n_occasions", n_occasions); - current_statement__ = 123; + current_statement__ = 124; epsilon_1dim__ = std::numeric_limits::min(); - lcm_sym347__ = (n_occasions - 1); - epsilon_1dim__ = lcm_sym347__; - current_statement__ = 123; - stan::math::validate_non_negative_index("epsilon", "n_occasions - 1", - lcm_sym347__); + lcm_sym350__ = (n_occasions - 1); + epsilon_1dim__ = lcm_sym350__; current_statement__ = 124; - stan::math::validate_non_negative_index("phi", "M", M); + stan::math::validate_non_negative_index("epsilon", "n_occasions - 1", + lcm_sym350__); current_statement__ = 125; + stan::math::validate_non_negative_index("phi", "M", M); + current_statement__ = 126; phi_2dim__ = std::numeric_limits::min(); - current_statement__ = 125; - phi_2dim__ = lcm_sym347__; - current_statement__ = 125; - stan::math::validate_non_negative_index("phi", "n_occasions - 1", - lcm_sym347__); current_statement__ = 126; - stan::math::validate_non_negative_index("p", "M", M); + phi_2dim__ = lcm_sym350__; + current_statement__ = 126; + stan::math::validate_non_negative_index("phi", "n_occasions - 1", + lcm_sym350__); current_statement__ = 127; - stan::math::validate_non_negative_index("p", "n_occasions", n_occasions); + stan::math::validate_non_negative_index("p", "M", M); current_statement__ = 128; - stan::math::validate_non_negative_index("chi", "M", M); + stan::math::validate_non_negative_index("p", "n_occasions", n_occasions); current_statement__ = 129; + stan::math::validate_non_negative_index("chi", "M", M); + current_statement__ = 130; stan::math::validate_non_negative_index("chi", "n_occasions", n_occasions); - current_statement__ = 130; - stan::math::validate_non_negative_index("b", "n_occasions", n_occasions); current_statement__ = 131; - stan::math::validate_non_negative_index("N", "n_occasions", n_occasions); + stan::math::validate_non_negative_index("b", "n_occasions", n_occasions); current_statement__ = 132; - stan::math::validate_non_negative_index("B", "n_occasions", n_occasions); + stan::math::validate_non_negative_index("N", "n_occasions", n_occasions); current_statement__ = 133; - stan::math::validate_non_negative_index("z", "M", M); + stan::math::validate_non_negative_index("B", "n_occasions", n_occasions); current_statement__ = 134; + stan::math::validate_non_negative_index("z", "M", M); + current_statement__ = 135; stan::math::validate_non_negative_index("z", "n_occasions", n_occasions); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -27565,23 +27569,25 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + int lcm_sym347__; + int lcm_sym346__; + int lcm_sym345__; int lcm_sym344__; int lcm_sym343__; int lcm_sym342__; - int lcm_sym341__; int lcm_sym340__; - int lcm_sym339__; - int lcm_sym338__; - Eigen::Matrix lcm_sym337__; - double lcm_sym336__; - double lcm_sym335__; - local_scalar_t__ lcm_sym334__; - local_scalar_t__ lcm_sym333__; + Eigen::Matrix lcm_sym339__; + double lcm_sym338__; + double lcm_sym337__; + local_scalar_t__ lcm_sym336__; + local_scalar_t__ lcm_sym335__; + double lcm_sym334__; + double lcm_sym333__; double lcm_sym332__; double lcm_sym331__; - double lcm_sym330__; + int lcm_sym330__; double lcm_sym329__; - int lcm_sym328__; + double lcm_sym328__; double lcm_sym327__; double lcm_sym326__; double lcm_sym325__; @@ -27593,11 +27599,11 @@ class inlining_fail2_model final : public model_base_crtp double lcm_sym319__; double lcm_sym318__; double lcm_sym317__; - double lcm_sym316__; - double lcm_sym315__; + int lcm_sym316__; + int lcm_sym315__; int lcm_sym314__; - int lcm_sym313__; - int lcm_sym312__; + double lcm_sym313__; + double lcm_sym312__; double lcm_sym311__; double lcm_sym310__; double lcm_sym309__; @@ -27610,17 +27616,17 @@ class inlining_fail2_model final : public model_base_crtp double lcm_sym302__; double lcm_sym301__; double lcm_sym300__; - double lcm_sym299__; - double lcm_sym298__; + int lcm_sym299__; + int lcm_sym298__; int lcm_sym297__; int lcm_sym296__; int lcm_sym295__; int lcm_sym294__; - int lcm_sym293__; - int lcm_sym292__; + Eigen::Matrix lcm_sym293__; + Eigen::Matrix lcm_sym292__; Eigen::Matrix lcm_sym291__; - Eigen::Matrix lcm_sym290__; - Eigen::Matrix lcm_sym289__; + int lcm_sym341__; + int lcm_sym289__; int lcm_sym288__; int lcm_sym287__; int lcm_sym286__; @@ -27632,8 +27638,6 @@ class inlining_fail2_model final : public model_base_crtp int lcm_sym280__; int lcm_sym279__; int lcm_sym278__; - int lcm_sym277__; - int lcm_sym276__; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); @@ -27644,14 +27648,15 @@ class inlining_fail2_model final : public model_base_crtp in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); + lcm_sym341__ = (n_occasions - 1); auto epsilon = - in__.template read>((n_occasions - - 1)); + in__.template read< + Eigen::Matrix>(lcm_sym341__); auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = - Eigen::Matrix::Constant(M, (n_occasions - 1), + Eigen::Matrix::Constant(M, lcm_sym341__, DUMMY_VAR__); Eigen::Matrix p = Eigen::Matrix::Constant(M, n_occasions, @@ -27659,186 +27664,186 @@ class inlining_fail2_model final : public model_base_crtp Eigen::Matrix chi = Eigen::Matrix::Constant(M, n_occasions, DUMMY_VAR__); - lcm_sym288__ = (n_occasions - 1); - if (stan::math::logical_gte(lcm_sym288__, 1)) { - lcm_sym278__ = stan::math::logical_gte(M, 1); - if (lcm_sym278__) { - lcm_sym334__ = stan::math::inv_logit((stan::math::logit(mean_phi) + + current_statement__ = 18; + if (stan::math::logical_gte(lcm_sym341__, 1)) { + lcm_sym280__ = stan::math::logical_gte(M, 1); + if (lcm_sym280__) { + lcm_sym336__ = stan::math::inv_logit((stan::math::logit(mean_phi) + stan::model::rvalue(epsilon, "epsilon", stan::model::index_uni(1)))); - stan::model::assign(phi, lcm_sym334__, "assigning variable phi", + stan::model::assign(phi, lcm_sym336__, "assigning variable phi", stan::model::index_uni(1), stan::model::index_uni(1)); for (int i = 2; i <= M; ++i) { current_statement__ = 16; - stan::model::assign(phi, lcm_sym334__, "assigning variable phi", + stan::model::assign(phi, lcm_sym336__, "assigning variable phi", stan::model::index_uni(i), stan::model::index_uni(1)); } } - for (int t = 2; t <= lcm_sym288__; ++t) { + for (int t = 2; t <= lcm_sym341__; ++t) { current_statement__ = 17; - if (lcm_sym278__) { - lcm_sym333__ = stan::math::inv_logit((stan::math::logit(mean_phi) + if (lcm_sym280__) { + lcm_sym335__ = stan::math::inv_logit((stan::math::logit(mean_phi) + stan::model::rvalue(epsilon, "epsilon", stan::model::index_uni(t)))); - stan::model::assign(phi, lcm_sym333__, "assigning variable phi", + stan::model::assign(phi, lcm_sym335__, "assigning variable phi", stan::model::index_uni(1), stan::model::index_uni(t)); for (int i = 2; i <= M; ++i) { current_statement__ = 16; - stan::model::assign(phi, lcm_sym333__, + stan::model::assign(phi, lcm_sym335__, "assigning variable phi", stan::model::index_uni(i), stan::model::index_uni(t)); } } } } - stan::model::assign(lcm_sym337__, + stan::model::assign(lcm_sym339__, stan::math::rep_matrix(mean_p, M, n_occasions), - "assigning variable lcm_sym337__"); - stan::model::assign(p, lcm_sym337__, "assigning variable p"); + "assigning variable lcm_sym339__"); + stan::model::assign(p, lcm_sym339__, "assigning variable p"); Eigen::Matrix inline_prob_uncaptured_return_sym37__; { int inline_prob_uncaptured_n_ind_sym38__ = std::numeric_limits::min(); - lcm_sym338__ = stan::math::rows(lcm_sym337__); + lcm_sym340__ = stan::math::rows(lcm_sym339__); int inline_prob_uncaptured_n_occasions_sym39__ = std::numeric_limits::min(); - lcm_sym328__ = stan::math::cols(lcm_sym337__); - current_statement__ = 20; - stan::math::validate_non_negative_index("chi", "n_ind", lcm_sym338__); + lcm_sym330__ = stan::math::cols(lcm_sym339__); current_statement__ = 21; + stan::math::validate_non_negative_index("chi", "n_ind", lcm_sym340__); + current_statement__ = 22; stan::math::validate_non_negative_index("chi", "n_occasions", - lcm_sym328__); + lcm_sym330__); Eigen::Matrix inline_prob_uncaptured_chi_sym40__ = - Eigen::Matrix::Constant(lcm_sym338__, - lcm_sym328__, DUMMY_VAR__); - current_statement__ = 30; - if (stan::math::logical_gte(lcm_sym338__, 1)) { - current_statement__ = 23; + Eigen::Matrix::Constant(lcm_sym340__, + lcm_sym330__, DUMMY_VAR__); + current_statement__ = 31; + if (stan::math::logical_gte(lcm_sym340__, 1)) { + current_statement__ = 24; stan::model::assign(inline_prob_uncaptured_chi_sym40__, 1.0, "assigning variable inline_prob_uncaptured_chi_sym40__", - stan::model::index_uni(1), stan::model::index_uni(lcm_sym328__)); - lcm_sym293__ = (lcm_sym328__ - 1); - lcm_sym280__ = stan::math::logical_gte(lcm_sym293__, 1); - if (lcm_sym280__) { + stan::model::index_uni(1), stan::model::index_uni(lcm_sym330__)); + lcm_sym295__ = (lcm_sym330__ - 1); + lcm_sym282__ = stan::math::logical_gte(lcm_sym295__, 1); + if (lcm_sym282__) { int inline_prob_uncaptured_t_curr_sym41__ = std::numeric_limits::min(); int inline_prob_uncaptured_t_next_sym42__ = std::numeric_limits::min(); - lcm_sym297__ = (lcm_sym293__ + 1); - current_statement__ = 26; + lcm_sym299__ = (lcm_sym295__ + 1); + current_statement__ = 27; stan::model::assign(inline_prob_uncaptured_chi_sym40__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym293__)) * (1 - - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::index_uni(lcm_sym295__)) * (1 - + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym297__)))), + stan::model::index_uni(lcm_sym299__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym40__, "inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym297__)), (1 - + stan::model::index_uni(lcm_sym299__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym293__)))), + stan::model::index_uni(lcm_sym295__)))), "assigning variable inline_prob_uncaptured_chi_sym40__", - stan::model::index_uni(1), stan::model::index_uni(lcm_sym293__)); + stan::model::index_uni(1), stan::model::index_uni(lcm_sym295__)); for (int inline_prob_uncaptured_t_sym43__ = 2; inline_prob_uncaptured_t_sym43__ - <= lcm_sym293__; ++inline_prob_uncaptured_t_sym43__) { + <= lcm_sym295__; ++inline_prob_uncaptured_t_sym43__) { int inline_prob_uncaptured_t_curr_sym41__ = std::numeric_limits::min(); - lcm_sym292__ = (lcm_sym328__ - + lcm_sym294__ = (lcm_sym330__ - inline_prob_uncaptured_t_sym43__); int inline_prob_uncaptured_t_next_sym42__ = std::numeric_limits::min(); - lcm_sym296__ = (lcm_sym292__ + 1); - current_statement__ = 26; + lcm_sym298__ = (lcm_sym294__ + 1); + current_statement__ = 27; stan::model::assign(inline_prob_uncaptured_chi_sym40__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym292__)) * (1 - - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::index_uni(lcm_sym294__)) * (1 - + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym296__)))), + stan::model::index_uni(lcm_sym298__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym40__, "inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym296__)), (1 - + stan::model::index_uni(lcm_sym298__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym292__)))), + stan::model::index_uni(lcm_sym294__)))), "assigning variable inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym292__)); + stan::model::index_uni(lcm_sym294__)); } } for (int inline_prob_uncaptured_i_sym44__ = 2; inline_prob_uncaptured_i_sym44__ - <= lcm_sym338__; ++inline_prob_uncaptured_i_sym44__) { - current_statement__ = 23; + <= lcm_sym340__; ++inline_prob_uncaptured_i_sym44__) { + current_statement__ = 24; stan::model::assign(inline_prob_uncaptured_chi_sym40__, 1.0, "assigning variable inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym328__)); - current_statement__ = 28; - if (lcm_sym280__) { + stan::model::index_uni(lcm_sym330__)); + current_statement__ = 29; + if (lcm_sym282__) { int inline_prob_uncaptured_t_curr_sym41__ = std::numeric_limits::min(); int inline_prob_uncaptured_t_next_sym42__ = std::numeric_limits::min(); - lcm_sym297__ = (lcm_sym293__ + 1); - current_statement__ = 26; + lcm_sym299__ = (lcm_sym295__ + 1); + current_statement__ = 27; stan::model::assign(inline_prob_uncaptured_chi_sym40__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym293__)) * (1 - - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::index_uni(lcm_sym295__)) * (1 - + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym297__)))), + stan::model::index_uni(lcm_sym299__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym40__, "inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym297__)), (1 - + stan::model::index_uni(lcm_sym299__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym293__)))), + stan::model::index_uni(lcm_sym295__)))), "assigning variable inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym293__)); + stan::model::index_uni(lcm_sym295__)); for (int inline_prob_uncaptured_t_sym43__ = 2; inline_prob_uncaptured_t_sym43__ - <= lcm_sym293__; ++inline_prob_uncaptured_t_sym43__) { + <= lcm_sym295__; ++inline_prob_uncaptured_t_sym43__) { int inline_prob_uncaptured_t_curr_sym41__ = std::numeric_limits::min(); - lcm_sym292__ = (lcm_sym328__ - + lcm_sym294__ = (lcm_sym330__ - inline_prob_uncaptured_t_sym43__); int inline_prob_uncaptured_t_next_sym42__ = std::numeric_limits::min(); - lcm_sym296__ = (lcm_sym292__ + 1); - current_statement__ = 26; + lcm_sym298__ = (lcm_sym294__ + 1); + current_statement__ = 27; stan::model::assign(inline_prob_uncaptured_chi_sym40__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym292__)) * (1 - - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::index_uni(lcm_sym294__)) * (1 - + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym296__)))), + stan::model::index_uni(lcm_sym298__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym40__, "inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym296__)), (1 - + stan::model::index_uni(lcm_sym298__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym292__)))), + stan::model::index_uni(lcm_sym294__)))), "assigning variable inline_prob_uncaptured_chi_sym40__", stan::model::index_uni(inline_prob_uncaptured_i_sym44__), - stan::model::index_uni(lcm_sym292__)); + stan::model::index_uni(lcm_sym294__)); } } } } - current_statement__ = 31; + current_statement__ = 32; stan::model::assign(inline_prob_uncaptured_return_sym37__, inline_prob_uncaptured_chi_sym40__, "assigning variable inline_prob_uncaptured_return_sym37__"); @@ -27850,9 +27855,9 @@ class inlining_fail2_model final : public model_base_crtp current_statement__ = 6; stan::math::check_less_or_equal(function__, "phi", phi, 1); current_statement__ = 7; - stan::math::check_greater_or_equal(function__, "p", lcm_sym337__, 0); + stan::math::check_greater_or_equal(function__, "p", lcm_sym339__, 0); current_statement__ = 7; - stan::math::check_less_or_equal(function__, "p", lcm_sym337__, 1); + stan::math::check_less_or_equal(function__, "p", lcm_sym339__, 1); current_statement__ = 8; stan::math::check_greater_or_equal(function__, "chi", inline_prob_uncaptured_return_sym37__, 0); @@ -27860,216 +27865,216 @@ class inlining_fail2_model final : public model_base_crtp stan::math::check_less_or_equal(function__, "chi", inline_prob_uncaptured_return_sym37__, 1); { - current_statement__ = 77; + current_statement__ = 78; lp_accum__.add(stan::math::normal_lpdf(epsilon, 0, sigma)); { int inline_jolly_seber_lp_n_ind_sym46__ = std::numeric_limits::min(); - lcm_sym343__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", + lcm_sym346__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", stan::model::index_uni(1)); int inline_jolly_seber_lp_n_occasions_sym47__ = std::numeric_limits::min(); - lcm_sym344__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", + lcm_sym347__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", stan::model::index_uni(2)); - current_statement__ = 80; + current_statement__ = 81; stan::math::validate_non_negative_index("qgamma", "n_occasions", - lcm_sym344__); + lcm_sym347__); Eigen::Matrix inline_jolly_seber_lp_qgamma_sym48__ = - Eigen::Matrix::Constant(lcm_sym344__, + Eigen::Matrix::Constant(lcm_sym347__, std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym289__, stan::math::subtract(1.0, gamma), - "assigning variable lcm_sym289__"); - current_statement__ = 107; - if (stan::math::logical_gte(lcm_sym343__, 1)) { - current_statement__ = 82; + stan::model::assign(lcm_sym291__, stan::math::subtract(1.0, gamma), + "assigning variable lcm_sym291__"); + current_statement__ = 108; + if (stan::math::logical_gte(lcm_sym346__, 1)) { + current_statement__ = 83; stan::math::validate_non_negative_index("qp", "n_occasions", - lcm_sym344__); + lcm_sym347__); Eigen::Matrix inline_jolly_seber_lp_qp_sym49__ = - Eigen::Matrix::Constant(lcm_sym344__, + Eigen::Matrix::Constant(lcm_sym347__, std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym291__, + stan::model::assign(lcm_sym293__, stan::math::subtract(1.0, stan::math::transpose( - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni(1)))), - "assigning variable lcm_sym291__"); - lcm_sym340__ = stan::model::rvalue(first, "first", + "assigning variable lcm_sym293__"); + lcm_sym343__ = stan::model::rvalue(first, "first", stan::model::index_uni(1)); - if (lcm_sym340__) { - current_statement__ = 100; - if (stan::math::logical_eq(lcm_sym340__, 1)) { - current_statement__ = 98; + if (lcm_sym343__) { + current_statement__ = 101; + if (stan::math::logical_eq(lcm_sym343__, 1)) { + current_statement__ = 99; lp_accum__.add(stan::math::bernoulli_lpmf(1, (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)) * - stan::model::rvalue(lcm_sym337__, - "lcm_sym337__", stan::model::index_uni(1), + stan::model::rvalue(lcm_sym339__, + "lcm_sym339__", stan::model::index_uni(1), stan::model::index_uni(1))))); } else { - current_statement__ = 91; + current_statement__ = 92; stan::math::validate_non_negative_index("lp", "first[i]", - lcm_sym340__); + lcm_sym343__); Eigen::Matrix inline_jolly_seber_lp_lp_sym50__ = - Eigen::Matrix::Constant(lcm_sym340__, + Eigen::Matrix::Constant(lcm_sym343__, DUMMY_VAR__); - lcm_sym295__ = (lcm_sym340__ - 1); + lcm_sym297__ = (lcm_sym343__ - 1); stan::model::assign(inline_jolly_seber_lp_lp_sym50__, (((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym291__, "lcm_sym291__", - stan::model::index_min_max(1, lcm_sym295__))))) + + stan::model::rvalue(lcm_sym293__, "lcm_sym293__", + stan::model::index_min_max(1, lcm_sym297__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_min_max(1, lcm_sym295__))))) + + stan::model::index_min_max(1, lcm_sym297__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym340__)))), + stan::model::index_uni(lcm_sym343__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(1)); - current_statement__ = 94; - if (stan::math::logical_gte(lcm_sym295__, 2)) { - current_statement__ = 93; + current_statement__ = 95; + if (stan::math::logical_gte(lcm_sym297__, 2)) { + current_statement__ = 94; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym289__, "lcm_sym289__", + stan::model::rvalue(lcm_sym291__, "lcm_sym291__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym291__, "lcm_sym291__", - stan::model::index_min_max(2, lcm_sym295__))))) + + stan::model::rvalue(lcm_sym293__, "lcm_sym293__", + stan::model::index_min_max(2, lcm_sym297__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_min_max(2, lcm_sym295__))))) + + stan::model::index_min_max(2, lcm_sym297__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym340__)))), + stan::model::index_uni(lcm_sym343__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym51__ = 3; inline_jolly_seber_lp_t_sym51__ - <= lcm_sym295__; ++inline_jolly_seber_lp_t_sym51__) { - current_statement__ = 93; + <= lcm_sym297__; ++inline_jolly_seber_lp_t_sym51__) { + current_statement__ = 94; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym289__, - "lcm_sym289__", + stan::model::rvalue(lcm_sym291__, + "lcm_sym291__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym51__ - 1))))) + stan::math::bernoulli_lpmf(1, gamma[(inline_jolly_seber_lp_t_sym51__ - 1)])) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym291__, "lcm_sym291__", + stan::model::rvalue(lcm_sym293__, "lcm_sym293__", stan::model::index_min_max( - inline_jolly_seber_lp_t_sym51__, lcm_sym295__))))) + inline_jolly_seber_lp_t_sym51__, lcm_sym297__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni(1), stan::model::index_min_max( - inline_jolly_seber_lp_t_sym51__, lcm_sym295__))))) + inline_jolly_seber_lp_t_sym51__, lcm_sym297__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym340__)))), + stan::model::index_uni(lcm_sym343__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(inline_jolly_seber_lp_t_sym51__)); } } - current_statement__ = 95; + current_statement__ = 96; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym289__, "lcm_sym289__", - stan::model::index_min_max(1, lcm_sym295__)))) + - stan::math::bernoulli_lpmf(1, gamma[(lcm_sym340__ - + stan::model::rvalue(lcm_sym291__, "lcm_sym291__", + stan::model::index_min_max(1, lcm_sym297__)))) + + stan::math::bernoulli_lpmf(1, gamma[(lcm_sym343__ - 1)])) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym340__)))), + stan::model::index_uni(lcm_sym343__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", - stan::model::index_uni(lcm_sym340__)); - current_statement__ = 96; + stan::model::index_uni(lcm_sym343__)); + current_statement__ = 97; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym50__)); } - lcm_sym342__ = stan::model::rvalue(last, "last", + lcm_sym345__ = stan::model::rvalue(last, "last", stan::model::index_uni(1)); - if (stan::math::logical_gte(lcm_sym342__, (lcm_sym340__ + 1))) { - current_statement__ = 101; + if (stan::math::logical_gte(lcm_sym345__, (lcm_sym343__ + 1))) { + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(((lcm_sym340__ + 1) + stan::model::index_uni(((lcm_sym343__ + 1) - 1))))); - lcm_sym313__ = ((lcm_sym340__ + 1) + 1); + lcm_sym315__ = ((lcm_sym343__ + 1) + 1); lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni(1), - stan::model::index_uni((lcm_sym340__ + 1))), - stan::model::rvalue(lcm_sym337__, - "lcm_sym337__", stan::model::index_uni(1), - stan::model::index_uni((lcm_sym340__ + 1))))); - for (int inline_jolly_seber_lp_t_sym51__ = lcm_sym313__; inline_jolly_seber_lp_t_sym51__ - <= lcm_sym342__; ++inline_jolly_seber_lp_t_sym51__) { - current_statement__ = 101; + stan::model::index_uni((lcm_sym343__ + 1))), + stan::model::rvalue(lcm_sym339__, + "lcm_sym339__", stan::model::index_uni(1), + stan::model::index_uni((lcm_sym343__ + 1))))); + for (int inline_jolly_seber_lp_t_sym51__ = lcm_sym315__; inline_jolly_seber_lp_t_sym51__ + <= lcm_sym345__; ++inline_jolly_seber_lp_t_sym51__) { + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(1), stan::model::index_uni( (inline_jolly_seber_lp_t_sym51__ - 1))))); - current_statement__ = 102; + current_statement__ = 103; lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni(1), stan::model::index_uni( inline_jolly_seber_lp_t_sym51__)), - stan::model::rvalue(lcm_sym337__, - "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, + "lcm_sym339__", stan::model::index_uni(1), stan::model::index_uni( inline_jolly_seber_lp_t_sym51__)))); } } - current_statement__ = 104; + current_statement__ = 105; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue( inline_prob_uncaptured_return_sym37__, "inline_prob_uncaptured_return_sym37__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym342__)))); + stan::model::index_uni(lcm_sym345__)))); } else { - lcm_sym314__ = (lcm_sym344__ + 1); + lcm_sym316__ = (lcm_sym347__ + 1); stan::math::validate_non_negative_index("lp", - "n_occasions + 1", lcm_sym314__); + "n_occasions + 1", lcm_sym316__); Eigen::Matrix inline_jolly_seber_lp_lp_sym50__ = - Eigen::Matrix::Constant(lcm_sym314__, + Eigen::Matrix::Constant(lcm_sym316__, DUMMY_VAR__); - current_statement__ = 85; + current_statement__ = 86; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni(1), stan::model::index_uni(1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(inline_prob_uncaptured_return_sym37__, @@ -28077,19 +28082,19 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(1), stan::model::index_uni(1)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(1)); - current_statement__ = 87; - if (stan::math::logical_gte(lcm_sym344__, 2)) { - current_statement__ = 86; + current_statement__ = 88; + if (stan::math::logical_gte(lcm_sym347__, 2)) { + current_statement__ = 87; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym289__, "lcm_sym289__", + stan::model::rvalue(lcm_sym291__, "lcm_sym291__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni(1), stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(1, @@ -28100,18 +28105,18 @@ class inlining_fail2_model final : public model_base_crtp "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym51__ = 3; inline_jolly_seber_lp_t_sym51__ - <= lcm_sym344__; ++inline_jolly_seber_lp_t_sym51__) { - current_statement__ = 86; + <= lcm_sym347__; ++inline_jolly_seber_lp_t_sym51__) { + current_statement__ = 87; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym289__, "lcm_sym289__", + stan::model::rvalue(lcm_sym291__, "lcm_sym291__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym51__ - 1))))) + stan::math::bernoulli_lpmf(1, gamma[(inline_jolly_seber_lp_t_sym51__ - 1)])) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni(1), stan::model::index_uni( inline_jolly_seber_lp_t_sym51__)))) + @@ -28126,110 +28131,110 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(inline_jolly_seber_lp_t_sym51__)); } } - current_statement__ = 88; + current_statement__ = 89; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, stan::math::bernoulli_lpmf(1, - stan::math::prod(lcm_sym289__)), + stan::math::prod(lcm_sym291__)), "assigning variable inline_jolly_seber_lp_lp_sym50__", - stan::model::index_uni(lcm_sym314__)); - current_statement__ = 89; + stan::model::index_uni(lcm_sym316__)); + current_statement__ = 90; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym50__)); } for (int inline_jolly_seber_lp_i_sym52__ = 2; inline_jolly_seber_lp_i_sym52__ - <= lcm_sym343__; ++inline_jolly_seber_lp_i_sym52__) { - current_statement__ = 82; + <= lcm_sym346__; ++inline_jolly_seber_lp_i_sym52__) { + current_statement__ = 83; stan::math::validate_non_negative_index("qp", "n_occasions", - lcm_sym344__); + lcm_sym347__); Eigen::Matrix inline_jolly_seber_lp_qp_sym49__ = - Eigen::Matrix::Constant(lcm_sym344__, + Eigen::Matrix::Constant(lcm_sym347__, std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym290__, + stan::model::assign(lcm_sym292__, stan::math::subtract(1.0, stan::math::transpose( - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni(inline_jolly_seber_lp_i_sym52__)))), - "assigning variable lcm_sym290__"); - lcm_sym339__ = first[(inline_jolly_seber_lp_i_sym52__ - 1)]; - if (lcm_sym339__) { - current_statement__ = 100; - if (stan::math::logical_eq(lcm_sym339__, 1)) { - current_statement__ = 98; + "assigning variable lcm_sym292__"); + lcm_sym342__ = first[(inline_jolly_seber_lp_i_sym52__ - 1)]; + if (lcm_sym342__) { + current_statement__ = 101; + if (stan::math::logical_eq(lcm_sym342__, 1)) { + current_statement__ = 99; lp_accum__.add(stan::math::bernoulli_lpmf(1, (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)) * - stan::model::rvalue(lcm_sym337__, - "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, + "lcm_sym339__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), stan::model::index_uni(1))))); } else { - current_statement__ = 91; + current_statement__ = 92; stan::math::validate_non_negative_index("lp", "first[i]", - lcm_sym339__); + lcm_sym342__); Eigen::Matrix inline_jolly_seber_lp_lp_sym50__ = - Eigen::Matrix::Constant(lcm_sym339__, + Eigen::Matrix::Constant(lcm_sym342__, DUMMY_VAR__); - lcm_sym294__ = (lcm_sym339__ - 1); + lcm_sym296__ = (lcm_sym342__ - 1); stan::model::assign(inline_jolly_seber_lp_lp_sym50__, (((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym290__, "lcm_sym290__", - stan::model::index_min_max(1, lcm_sym294__))))) + + stan::model::rvalue(lcm_sym292__, "lcm_sym292__", + stan::model::index_min_max(1, lcm_sym296__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_min_max(1, lcm_sym294__))))) + + stan::model::index_min_max(1, lcm_sym296__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni(lcm_sym339__)))), + stan::model::index_uni(lcm_sym342__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(1)); - current_statement__ = 94; - if (stan::math::logical_gte(lcm_sym294__, 2)) { - current_statement__ = 93; + current_statement__ = 95; + if (stan::math::logical_gte(lcm_sym296__, 2)) { + current_statement__ = 94; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym289__, - "lcm_sym289__", + stan::model::rvalue(lcm_sym291__, + "lcm_sym291__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym290__, "lcm_sym290__", - stan::model::index_min_max(2, lcm_sym294__))))) + + stan::model::rvalue(lcm_sym292__, "lcm_sym292__", + stan::model::index_min_max(2, lcm_sym296__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_min_max(2, lcm_sym294__))))) + + stan::model::index_min_max(2, lcm_sym296__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni(lcm_sym339__)))), + stan::model::index_uni(lcm_sym342__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym51__ = 3; inline_jolly_seber_lp_t_sym51__ - <= lcm_sym294__; ++inline_jolly_seber_lp_t_sym51__) { - current_statement__ = 93; + <= lcm_sym296__; ++inline_jolly_seber_lp_t_sym51__) { + current_statement__ = 94; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym289__, - "lcm_sym289__", + stan::model::rvalue(lcm_sym291__, + "lcm_sym291__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym51__ - 1))))) + @@ -28237,9 +28242,9 @@ class inlining_fail2_model final : public model_base_crtp gamma[(inline_jolly_seber_lp_t_sym51__ - 1)])) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym290__, "lcm_sym290__", + stan::model::rvalue(lcm_sym292__, "lcm_sym292__", stan::model::index_min_max( - inline_jolly_seber_lp_t_sym51__, lcm_sym294__))))) + inline_jolly_seber_lp_t_sym51__, lcm_sym296__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -28247,62 +28252,62 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), stan::model::index_min_max( - inline_jolly_seber_lp_t_sym51__, lcm_sym294__))))) + inline_jolly_seber_lp_t_sym51__, lcm_sym296__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni(lcm_sym339__)))), + stan::model::index_uni(lcm_sym342__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni( inline_jolly_seber_lp_t_sym51__)); } } - current_statement__ = 95; + current_statement__ = 96; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym289__, "lcm_sym289__", - stan::model::index_min_max(1, lcm_sym294__)))) + - stan::math::bernoulli_lpmf(1, gamma[(lcm_sym339__ + stan::model::rvalue(lcm_sym291__, "lcm_sym291__", + stan::model::index_min_max(1, lcm_sym296__)))) + + stan::math::bernoulli_lpmf(1, gamma[(lcm_sym342__ - 1)])) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni(lcm_sym339__)))), + stan::model::index_uni(lcm_sym342__)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", - stan::model::index_uni(lcm_sym339__)); - current_statement__ = 96; + stan::model::index_uni(lcm_sym342__)); + current_statement__ = 97; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym50__)); } - lcm_sym341__ = last[(inline_jolly_seber_lp_i_sym52__ - 1)]; - if (stan::math::logical_gte(lcm_sym341__, (lcm_sym339__ + 1))) { - current_statement__ = 101; + lcm_sym344__ = last[(inline_jolly_seber_lp_i_sym52__ - 1)]; + if (stan::math::logical_gte(lcm_sym344__, (lcm_sym342__ + 1))) { + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni(((lcm_sym339__ + + stan::model::index_uni(((lcm_sym342__ + 1) - 1))))); - lcm_sym312__ = ((lcm_sym339__ + 1) + 1); + lcm_sym314__ = ((lcm_sym342__ + 1) + 1); lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni((lcm_sym339__ + + stan::model::index_uni((lcm_sym342__ + 1))), - stan::model::rvalue(lcm_sym337__, - "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, + "lcm_sym339__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni((lcm_sym339__ + + stan::model::index_uni((lcm_sym342__ + 1))))); - for (int inline_jolly_seber_lp_t_sym51__ = lcm_sym312__; inline_jolly_seber_lp_t_sym51__ - <= lcm_sym341__; ++inline_jolly_seber_lp_t_sym51__) { - current_statement__ = 101; + for (int inline_jolly_seber_lp_t_sym51__ = lcm_sym314__; inline_jolly_seber_lp_t_sym51__ + <= lcm_sym344__; ++inline_jolly_seber_lp_t_sym51__) { + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni( @@ -28310,42 +28315,42 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni( (inline_jolly_seber_lp_t_sym51__ - 1))))); - current_statement__ = 102; + current_statement__ = 103; lp_accum__.add(stan::math::bernoulli_lpmf( y[(inline_jolly_seber_lp_i_sym52__ - 1)][(inline_jolly_seber_lp_t_sym51__ - 1)], - stan::model::rvalue(lcm_sym337__, - "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, + "lcm_sym339__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), stan::model::index_uni( inline_jolly_seber_lp_t_sym51__)))); } } - current_statement__ = 104; + current_statement__ = 105; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue( inline_prob_uncaptured_return_sym37__, "inline_prob_uncaptured_return_sym37__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), - stan::model::index_uni(lcm_sym341__)))); + stan::model::index_uni(lcm_sym344__)))); } else { - lcm_sym314__ = (lcm_sym344__ + 1); + lcm_sym316__ = (lcm_sym347__ + 1); stan::math::validate_non_negative_index("lp", - "n_occasions + 1", lcm_sym314__); + "n_occasions + 1", lcm_sym316__); Eigen::Matrix inline_jolly_seber_lp_lp_sym50__ = - Eigen::Matrix::Constant(lcm_sym314__, + Eigen::Matrix::Constant(lcm_sym316__, DUMMY_VAR__); - current_statement__ = 85; + current_statement__ = 86; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, ((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni(inline_jolly_seber_lp_i_sym52__), stan::model::index_uni(1)))) + stan::math::bernoulli_lpmf(1, @@ -28356,19 +28361,19 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(1)))), "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(1)); - current_statement__ = 87; - if (stan::math::logical_gte(lcm_sym344__, 2)) { - current_statement__ = 86; + current_statement__ = 88; + if (stan::math::logical_gte(lcm_sym347__, 2)) { + current_statement__ = 87; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym289__, "lcm_sym289__", + stan::model::rvalue(lcm_sym291__, "lcm_sym291__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), stan::model::index_uni(2)))) + @@ -28382,19 +28387,19 @@ class inlining_fail2_model final : public model_base_crtp "assigning variable inline_jolly_seber_lp_lp_sym50__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym51__ = 3; inline_jolly_seber_lp_t_sym51__ - <= lcm_sym344__; ++inline_jolly_seber_lp_t_sym51__) { - current_statement__ = 86; + <= lcm_sym347__; ++inline_jolly_seber_lp_t_sym51__) { + current_statement__ = 87; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym289__, - "lcm_sym289__", + stan::model::rvalue(lcm_sym291__, + "lcm_sym291__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym51__ - 1))))) + stan::math::bernoulli_lpmf(1, gamma[(inline_jolly_seber_lp_t_sym51__ - 1)])) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym337__, "lcm_sym337__", + stan::model::rvalue(lcm_sym339__, "lcm_sym339__", stan::model::index_uni( inline_jolly_seber_lp_i_sym52__), stan::model::index_uni( @@ -28411,13 +28416,13 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(inline_jolly_seber_lp_t_sym51__)); } } - current_statement__ = 88; + current_statement__ = 89; stan::model::assign(inline_jolly_seber_lp_lp_sym50__, stan::math::bernoulli_lpmf(1, - stan::math::prod(lcm_sym289__)), + stan::math::prod(lcm_sym291__)), "assigning variable inline_jolly_seber_lp_lp_sym50__", - stan::model::index_uni(lcm_sym314__)); - current_statement__ = 89; + stan::model::index_uni(lcm_sym316__)); + current_statement__ = 90; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym50__)); } @@ -28455,23 +28460,24 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + int lcm_sym277__; + int lcm_sym276__; int lcm_sym275__; int lcm_sym274__; int lcm_sym273__; int lcm_sym272__; - int lcm_sym271__; int lcm_sym270__; - int lcm_sym269__; - Eigen::Matrix lcm_sym268__; + Eigen::Matrix lcm_sym269__; + double lcm_sym268__; double lcm_sym267__; - double lcm_sym266__; + local_scalar_t__ lcm_sym266__; local_scalar_t__ lcm_sym265__; - local_scalar_t__ lcm_sym264__; + double lcm_sym264__; double lcm_sym263__; double lcm_sym262__; double lcm_sym261__; - double lcm_sym260__; - int lcm_sym259__; + int lcm_sym260__; + double lcm_sym259__; double lcm_sym258__; double lcm_sym257__; double lcm_sym256__; @@ -28484,10 +28490,10 @@ class inlining_fail2_model final : public model_base_crtp double lcm_sym249__; double lcm_sym248__; double lcm_sym247__; - double lcm_sym246__; + int lcm_sym246__; int lcm_sym245__; int lcm_sym244__; - int lcm_sym243__; + double lcm_sym243__; double lcm_sym242__; double lcm_sym241__; double lcm_sym240__; @@ -28501,16 +28507,16 @@ class inlining_fail2_model final : public model_base_crtp double lcm_sym232__; double lcm_sym231__; double lcm_sym230__; - double lcm_sym229__; + int lcm_sym229__; int lcm_sym228__; int lcm_sym227__; int lcm_sym226__; int lcm_sym225__; int lcm_sym224__; - int lcm_sym223__; + Eigen::Matrix lcm_sym223__; Eigen::Matrix lcm_sym222__; Eigen::Matrix lcm_sym221__; - Eigen::Matrix lcm_sym220__; + int lcm_sym271__; int lcm_sym219__; int lcm_sym218__; int lcm_sym217__; @@ -28523,7 +28529,6 @@ class inlining_fail2_model final : public model_base_crtp int lcm_sym210__; int lcm_sym209__; int lcm_sym208__; - int lcm_sym207__; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); @@ -28534,14 +28539,15 @@ class inlining_fail2_model final : public model_base_crtp in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); + lcm_sym271__ = (n_occasions - 1); auto epsilon = - in__.template read>((n_occasions - - 1)); + in__.template read< + Eigen::Matrix>(lcm_sym271__); auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = - Eigen::Matrix::Constant(M, (n_occasions - 1), + Eigen::Matrix::Constant(M, lcm_sym271__, DUMMY_VAR__); Eigen::Matrix p = Eigen::Matrix::Constant(M, n_occasions, @@ -28549,186 +28555,186 @@ class inlining_fail2_model final : public model_base_crtp Eigen::Matrix chi = Eigen::Matrix::Constant(M, n_occasions, DUMMY_VAR__); - lcm_sym219__ = (n_occasions - 1); - if (stan::math::logical_gte(lcm_sym219__, 1)) { - lcm_sym209__ = stan::math::logical_gte(M, 1); - if (lcm_sym209__) { - lcm_sym265__ = stan::math::inv_logit((stan::math::logit(mean_phi) + + current_statement__ = 18; + if (stan::math::logical_gte(lcm_sym271__, 1)) { + lcm_sym210__ = stan::math::logical_gte(M, 1); + if (lcm_sym210__) { + lcm_sym266__ = stan::math::inv_logit((stan::math::logit(mean_phi) + stan::model::rvalue(epsilon, "epsilon", stan::model::index_uni(1)))); - stan::model::assign(phi, lcm_sym265__, "assigning variable phi", + stan::model::assign(phi, lcm_sym266__, "assigning variable phi", stan::model::index_uni(1), stan::model::index_uni(1)); for (int i = 2; i <= M; ++i) { current_statement__ = 16; - stan::model::assign(phi, lcm_sym265__, "assigning variable phi", + stan::model::assign(phi, lcm_sym266__, "assigning variable phi", stan::model::index_uni(i), stan::model::index_uni(1)); } } - for (int t = 2; t <= lcm_sym219__; ++t) { + for (int t = 2; t <= lcm_sym271__; ++t) { current_statement__ = 17; - if (lcm_sym209__) { - lcm_sym264__ = stan::math::inv_logit((stan::math::logit(mean_phi) + if (lcm_sym210__) { + lcm_sym265__ = stan::math::inv_logit((stan::math::logit(mean_phi) + stan::model::rvalue(epsilon, "epsilon", stan::model::index_uni(t)))); - stan::model::assign(phi, lcm_sym264__, "assigning variable phi", + stan::model::assign(phi, lcm_sym265__, "assigning variable phi", stan::model::index_uni(1), stan::model::index_uni(t)); for (int i = 2; i <= M; ++i) { current_statement__ = 16; - stan::model::assign(phi, lcm_sym264__, + stan::model::assign(phi, lcm_sym265__, "assigning variable phi", stan::model::index_uni(i), stan::model::index_uni(t)); } } } } - stan::model::assign(lcm_sym268__, + stan::model::assign(lcm_sym269__, stan::math::rep_matrix(mean_p, M, n_occasions), - "assigning variable lcm_sym268__"); - stan::model::assign(p, lcm_sym268__, "assigning variable p"); + "assigning variable lcm_sym269__"); + stan::model::assign(p, lcm_sym269__, "assigning variable p"); Eigen::Matrix inline_prob_uncaptured_return_sym20__; { int inline_prob_uncaptured_n_ind_sym21__ = std::numeric_limits::min(); - lcm_sym269__ = stan::math::rows(lcm_sym268__); + lcm_sym270__ = stan::math::rows(lcm_sym269__); int inline_prob_uncaptured_n_occasions_sym22__ = std::numeric_limits::min(); - lcm_sym259__ = stan::math::cols(lcm_sym268__); - current_statement__ = 20; - stan::math::validate_non_negative_index("chi", "n_ind", lcm_sym269__); + lcm_sym260__ = stan::math::cols(lcm_sym269__); current_statement__ = 21; + stan::math::validate_non_negative_index("chi", "n_ind", lcm_sym270__); + current_statement__ = 22; stan::math::validate_non_negative_index("chi", "n_occasions", - lcm_sym259__); + lcm_sym260__); Eigen::Matrix inline_prob_uncaptured_chi_sym23__ = - Eigen::Matrix::Constant(lcm_sym269__, - lcm_sym259__, DUMMY_VAR__); - current_statement__ = 30; - if (stan::math::logical_gte(lcm_sym269__, 1)) { - current_statement__ = 23; + Eigen::Matrix::Constant(lcm_sym270__, + lcm_sym260__, DUMMY_VAR__); + current_statement__ = 31; + if (stan::math::logical_gte(lcm_sym270__, 1)) { + current_statement__ = 24; stan::model::assign(inline_prob_uncaptured_chi_sym23__, 1.0, "assigning variable inline_prob_uncaptured_chi_sym23__", - stan::model::index_uni(1), stan::model::index_uni(lcm_sym259__)); - lcm_sym224__ = (lcm_sym259__ - 1); - lcm_sym211__ = stan::math::logical_gte(lcm_sym224__, 1); - if (lcm_sym211__) { + stan::model::index_uni(1), stan::model::index_uni(lcm_sym260__)); + lcm_sym225__ = (lcm_sym260__ - 1); + lcm_sym212__ = stan::math::logical_gte(lcm_sym225__, 1); + if (lcm_sym212__) { int inline_prob_uncaptured_t_curr_sym24__ = std::numeric_limits::min(); int inline_prob_uncaptured_t_next_sym25__ = std::numeric_limits::min(); - lcm_sym228__ = (lcm_sym224__ + 1); - current_statement__ = 26; + lcm_sym229__ = (lcm_sym225__ + 1); + current_statement__ = 27; stan::model::assign(inline_prob_uncaptured_chi_sym23__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym224__)) * (1 - - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::index_uni(lcm_sym225__)) * (1 - + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym228__)))), + stan::model::index_uni(lcm_sym229__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym23__, "inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym228__)), (1 - + stan::model::index_uni(lcm_sym229__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym224__)))), + stan::model::index_uni(lcm_sym225__)))), "assigning variable inline_prob_uncaptured_chi_sym23__", - stan::model::index_uni(1), stan::model::index_uni(lcm_sym224__)); + stan::model::index_uni(1), stan::model::index_uni(lcm_sym225__)); for (int inline_prob_uncaptured_t_sym26__ = 2; inline_prob_uncaptured_t_sym26__ - <= lcm_sym224__; ++inline_prob_uncaptured_t_sym26__) { + <= lcm_sym225__; ++inline_prob_uncaptured_t_sym26__) { int inline_prob_uncaptured_t_curr_sym24__ = std::numeric_limits::min(); - lcm_sym223__ = (lcm_sym259__ - + lcm_sym224__ = (lcm_sym260__ - inline_prob_uncaptured_t_sym26__); int inline_prob_uncaptured_t_next_sym25__ = std::numeric_limits::min(); - lcm_sym227__ = (lcm_sym223__ + 1); - current_statement__ = 26; + lcm_sym228__ = (lcm_sym224__ + 1); + current_statement__ = 27; stan::model::assign(inline_prob_uncaptured_chi_sym23__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym223__)) * (1 - - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::index_uni(lcm_sym224__)) * (1 - + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym227__)))), + stan::model::index_uni(lcm_sym228__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym23__, "inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym227__)), (1 - + stan::model::index_uni(lcm_sym228__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym223__)))), + stan::model::index_uni(lcm_sym224__)))), "assigning variable inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym223__)); + stan::model::index_uni(lcm_sym224__)); } } for (int inline_prob_uncaptured_i_sym27__ = 2; inline_prob_uncaptured_i_sym27__ - <= lcm_sym269__; ++inline_prob_uncaptured_i_sym27__) { - current_statement__ = 23; + <= lcm_sym270__; ++inline_prob_uncaptured_i_sym27__) { + current_statement__ = 24; stan::model::assign(inline_prob_uncaptured_chi_sym23__, 1.0, "assigning variable inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym259__)); - current_statement__ = 28; - if (lcm_sym211__) { + stan::model::index_uni(lcm_sym260__)); + current_statement__ = 29; + if (lcm_sym212__) { int inline_prob_uncaptured_t_curr_sym24__ = std::numeric_limits::min(); int inline_prob_uncaptured_t_next_sym25__ = std::numeric_limits::min(); - lcm_sym228__ = (lcm_sym224__ + 1); - current_statement__ = 26; + lcm_sym229__ = (lcm_sym225__ + 1); + current_statement__ = 27; stan::model::assign(inline_prob_uncaptured_chi_sym23__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym224__)) * (1 - - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::index_uni(lcm_sym225__)) * (1 - + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym228__)))), + stan::model::index_uni(lcm_sym229__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym23__, "inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym228__)), (1 - + stan::model::index_uni(lcm_sym229__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym224__)))), + stan::model::index_uni(lcm_sym225__)))), "assigning variable inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym224__)); + stan::model::index_uni(lcm_sym225__)); for (int inline_prob_uncaptured_t_sym26__ = 2; inline_prob_uncaptured_t_sym26__ - <= lcm_sym224__; ++inline_prob_uncaptured_t_sym26__) { + <= lcm_sym225__; ++inline_prob_uncaptured_t_sym26__) { int inline_prob_uncaptured_t_curr_sym24__ = std::numeric_limits::min(); - lcm_sym223__ = (lcm_sym259__ - + lcm_sym224__ = (lcm_sym260__ - inline_prob_uncaptured_t_sym26__); int inline_prob_uncaptured_t_next_sym25__ = std::numeric_limits::min(); - lcm_sym227__ = (lcm_sym223__ + 1); - current_statement__ = 26; + lcm_sym228__ = (lcm_sym224__ + 1); + current_statement__ = 27; stan::model::assign(inline_prob_uncaptured_chi_sym23__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym223__)) * (1 - - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::index_uni(lcm_sym224__)) * (1 - + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym227__)))), + stan::model::index_uni(lcm_sym228__)))), stan::model::rvalue(inline_prob_uncaptured_chi_sym23__, "inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym227__)), (1 - + stan::model::index_uni(lcm_sym228__)), (1 - stan::model::rvalue(phi, "phi", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym223__)))), + stan::model::index_uni(lcm_sym224__)))), "assigning variable inline_prob_uncaptured_chi_sym23__", stan::model::index_uni(inline_prob_uncaptured_i_sym27__), - stan::model::index_uni(lcm_sym223__)); + stan::model::index_uni(lcm_sym224__)); } } } } - current_statement__ = 31; + current_statement__ = 32; stan::model::assign(inline_prob_uncaptured_return_sym20__, inline_prob_uncaptured_chi_sym23__, "assigning variable inline_prob_uncaptured_return_sym20__"); @@ -28740,9 +28746,9 @@ class inlining_fail2_model final : public model_base_crtp current_statement__ = 6; stan::math::check_less_or_equal(function__, "phi", phi, 1); current_statement__ = 7; - stan::math::check_greater_or_equal(function__, "p", lcm_sym268__, 0); + stan::math::check_greater_or_equal(function__, "p", lcm_sym269__, 0); current_statement__ = 7; - stan::math::check_less_or_equal(function__, "p", lcm_sym268__, 1); + stan::math::check_less_or_equal(function__, "p", lcm_sym269__, 1); current_statement__ = 8; stan::math::check_greater_or_equal(function__, "chi", inline_prob_uncaptured_return_sym20__, 0); @@ -28750,218 +28756,218 @@ class inlining_fail2_model final : public model_base_crtp stan::math::check_less_or_equal(function__, "chi", inline_prob_uncaptured_return_sym20__, 1); { - current_statement__ = 77; + current_statement__ = 78; lp_accum__.add(stan::math::normal_lpdf(epsilon, 0, sigma)); { int inline_jolly_seber_lp_n_ind_sym29__ = std::numeric_limits::min(); - lcm_sym274__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", + lcm_sym276__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", stan::model::index_uni(1)); int inline_jolly_seber_lp_n_occasions_sym30__ = std::numeric_limits::min(); - lcm_sym275__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", + lcm_sym277__ = stan::model::rvalue(stan::math::dims(y), "dims(y)", stan::model::index_uni(2)); - current_statement__ = 80; + current_statement__ = 81; stan::math::validate_non_negative_index("qgamma", "n_occasions", - lcm_sym275__); + lcm_sym277__); stan::math::var_value> inline_jolly_seber_lp_qgamma_sym31__ = - Eigen::Matrix::Constant(lcm_sym275__, + Eigen::Matrix::Constant(lcm_sym277__, std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym220__, stan::math::subtract(1.0, gamma), - "assigning variable lcm_sym220__"); - current_statement__ = 107; - if (stan::math::logical_gte(lcm_sym274__, 1)) { - current_statement__ = 82; + stan::model::assign(lcm_sym221__, stan::math::subtract(1.0, gamma), + "assigning variable lcm_sym221__"); + current_statement__ = 108; + if (stan::math::logical_gte(lcm_sym276__, 1)) { + current_statement__ = 83; stan::math::validate_non_negative_index("qp", "n_occasions", - lcm_sym275__); + lcm_sym277__); stan::math::var_value> inline_jolly_seber_lp_qp_sym32__ = - Eigen::Matrix::Constant(lcm_sym275__, + Eigen::Matrix::Constant(lcm_sym277__, std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym222__, + stan::model::assign(lcm_sym223__, stan::math::subtract(1.0, stan::math::transpose( - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni(1)))), - "assigning variable lcm_sym222__"); - lcm_sym271__ = stan::model::rvalue(first, "first", + "assigning variable lcm_sym223__"); + lcm_sym273__ = stan::model::rvalue(first, "first", stan::model::index_uni(1)); - if (lcm_sym271__) { - current_statement__ = 100; - if (stan::math::logical_eq(lcm_sym271__, 1)) { - current_statement__ = 98; + if (lcm_sym273__) { + current_statement__ = 101; + if (stan::math::logical_eq(lcm_sym273__, 1)) { + current_statement__ = 99; lp_accum__.add(stan::math::bernoulli_lpmf(1, (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)) * - stan::model::rvalue(lcm_sym268__, - "lcm_sym268__", stan::model::index_uni(1), + stan::model::rvalue(lcm_sym269__, + "lcm_sym269__", stan::model::index_uni(1), stan::model::index_uni(1))))); } else { - current_statement__ = 91; + current_statement__ = 92; stan::math::validate_non_negative_index("lp", "first[i]", - lcm_sym271__); + lcm_sym273__); Eigen::Matrix inline_jolly_seber_lp_lp_sym33__ = - Eigen::Matrix::Constant(lcm_sym271__, + Eigen::Matrix::Constant(lcm_sym273__, DUMMY_VAR__); - lcm_sym226__ = (lcm_sym271__ - 1); + lcm_sym227__ = (lcm_sym273__ - 1); stan::model::assign(inline_jolly_seber_lp_lp_sym33__, (((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym222__, "lcm_sym222__", - stan::model::index_min_max(1, lcm_sym226__))))) + + stan::model::rvalue(lcm_sym223__, "lcm_sym223__", + stan::model::index_min_max(1, lcm_sym227__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_min_max(1, lcm_sym226__))))) + + stan::model::index_min_max(1, lcm_sym227__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym271__)))), + stan::model::index_uni(lcm_sym273__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(1)); - current_statement__ = 94; - if (stan::math::logical_gte(lcm_sym226__, 2)) { - current_statement__ = 93; + current_statement__ = 95; + if (stan::math::logical_gte(lcm_sym227__, 2)) { + current_statement__ = 94; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym220__, "lcm_sym220__", + stan::model::rvalue(lcm_sym221__, "lcm_sym221__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym222__, "lcm_sym222__", - stan::model::index_min_max(2, lcm_sym226__))))) + + stan::model::rvalue(lcm_sym223__, "lcm_sym223__", + stan::model::index_min_max(2, lcm_sym227__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_min_max(2, lcm_sym226__))))) + + stan::model::index_min_max(2, lcm_sym227__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym271__)))), + stan::model::index_uni(lcm_sym273__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym34__ = 3; inline_jolly_seber_lp_t_sym34__ - <= lcm_sym226__; ++inline_jolly_seber_lp_t_sym34__) { - current_statement__ = 93; + <= lcm_sym227__; ++inline_jolly_seber_lp_t_sym34__) { + current_statement__ = 94; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym220__, - "lcm_sym220__", + stan::model::rvalue(lcm_sym221__, + "lcm_sym221__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym34__ - 1))))) + stan::math::bernoulli_lpmf(1, gamma[(inline_jolly_seber_lp_t_sym34__ - 1)])) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym222__, "lcm_sym222__", + stan::model::rvalue(lcm_sym223__, "lcm_sym223__", stan::model::index_min_max( - inline_jolly_seber_lp_t_sym34__, lcm_sym226__))))) + inline_jolly_seber_lp_t_sym34__, lcm_sym227__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni(1), stan::model::index_min_max( - inline_jolly_seber_lp_t_sym34__, lcm_sym226__))))) + inline_jolly_seber_lp_t_sym34__, lcm_sym227__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym271__)))), + stan::model::index_uni(lcm_sym273__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(inline_jolly_seber_lp_t_sym34__)); } } - current_statement__ = 95; + current_statement__ = 96; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym220__, "lcm_sym220__", - stan::model::index_min_max(1, lcm_sym226__)))) + - stan::math::bernoulli_lpmf(1, gamma[(lcm_sym271__ - + stan::model::rvalue(lcm_sym221__, "lcm_sym221__", + stan::model::index_min_max(1, lcm_sym227__)))) + + stan::math::bernoulli_lpmf(1, gamma[(lcm_sym273__ - 1)])) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym271__)))), + stan::model::index_uni(lcm_sym273__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", - stan::model::index_uni(lcm_sym271__)); - current_statement__ = 96; + stan::model::index_uni(lcm_sym273__)); + current_statement__ = 97; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym33__)); } - lcm_sym273__ = stan::model::rvalue(last, "last", + lcm_sym275__ = stan::model::rvalue(last, "last", stan::model::index_uni(1)); - if (stan::math::logical_gte(lcm_sym273__, (lcm_sym271__ + 1))) { - current_statement__ = 101; + if (stan::math::logical_gte(lcm_sym275__, (lcm_sym273__ + 1))) { + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(((lcm_sym271__ + 1) + stan::model::index_uni(((lcm_sym273__ + 1) - 1))))); - lcm_sym244__ = ((lcm_sym271__ + 1) + 1); + lcm_sym245__ = ((lcm_sym273__ + 1) + 1); lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni(1), - stan::model::index_uni((lcm_sym271__ + 1))), - stan::model::rvalue(lcm_sym268__, - "lcm_sym268__", stan::model::index_uni(1), - stan::model::index_uni((lcm_sym271__ + 1))))); - for (int inline_jolly_seber_lp_t_sym34__ = lcm_sym244__; inline_jolly_seber_lp_t_sym34__ - <= lcm_sym273__; ++inline_jolly_seber_lp_t_sym34__) { - current_statement__ = 101; + stan::model::index_uni((lcm_sym273__ + 1))), + stan::model::rvalue(lcm_sym269__, + "lcm_sym269__", stan::model::index_uni(1), + stan::model::index_uni((lcm_sym273__ + 1))))); + for (int inline_jolly_seber_lp_t_sym34__ = lcm_sym245__; inline_jolly_seber_lp_t_sym34__ + <= lcm_sym275__; ++inline_jolly_seber_lp_t_sym34__) { + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni(1), stan::model::index_uni( (inline_jolly_seber_lp_t_sym34__ - 1))))); - current_statement__ = 102; + current_statement__ = 103; lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni(1), stan::model::index_uni( inline_jolly_seber_lp_t_sym34__)), - stan::model::rvalue(lcm_sym268__, - "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, + "lcm_sym269__", stan::model::index_uni(1), stan::model::index_uni( inline_jolly_seber_lp_t_sym34__)))); } } - current_statement__ = 104; + current_statement__ = 105; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue( inline_prob_uncaptured_return_sym20__, "inline_prob_uncaptured_return_sym20__", stan::model::index_uni(1), - stan::model::index_uni(lcm_sym273__)))); + stan::model::index_uni(lcm_sym275__)))); } else { - lcm_sym245__ = (lcm_sym275__ + 1); + lcm_sym246__ = (lcm_sym277__ + 1); stan::math::validate_non_negative_index("lp", - "n_occasions + 1", lcm_sym245__); + "n_occasions + 1", lcm_sym246__); Eigen::Matrix inline_jolly_seber_lp_lp_sym33__ = - Eigen::Matrix::Constant(lcm_sym245__, + Eigen::Matrix::Constant(lcm_sym246__, DUMMY_VAR__); - current_statement__ = 85; + current_statement__ = 86; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni(1), stan::model::index_uni(1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(inline_prob_uncaptured_return_sym20__, @@ -28969,19 +28975,19 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(1), stan::model::index_uni(1)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(1)); - current_statement__ = 87; - if (stan::math::logical_gte(lcm_sym275__, 2)) { - current_statement__ = 86; + current_statement__ = 88; + if (stan::math::logical_gte(lcm_sym277__, 2)) { + current_statement__ = 87; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym220__, "lcm_sym220__", + stan::model::rvalue(lcm_sym221__, "lcm_sym221__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni(1), stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(1, @@ -28992,18 +28998,18 @@ class inlining_fail2_model final : public model_base_crtp "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym34__ = 3; inline_jolly_seber_lp_t_sym34__ - <= lcm_sym275__; ++inline_jolly_seber_lp_t_sym34__) { - current_statement__ = 86; + <= lcm_sym277__; ++inline_jolly_seber_lp_t_sym34__) { + current_statement__ = 87; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym220__, "lcm_sym220__", + stan::model::rvalue(lcm_sym221__, "lcm_sym221__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym34__ - 1))))) + stan::math::bernoulli_lpmf(1, gamma[(inline_jolly_seber_lp_t_sym34__ - 1)])) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni(1), stan::model::index_uni( inline_jolly_seber_lp_t_sym34__)))) + @@ -29018,111 +29024,111 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(inline_jolly_seber_lp_t_sym34__)); } } - current_statement__ = 88; + current_statement__ = 89; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, stan::math::bernoulli_lpmf(1, - stan::math::prod(lcm_sym220__)), + stan::math::prod(lcm_sym221__)), "assigning variable inline_jolly_seber_lp_lp_sym33__", - stan::model::index_uni(lcm_sym245__)); - current_statement__ = 89; + stan::model::index_uni(lcm_sym246__)); + current_statement__ = 90; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym33__)); } for (int inline_jolly_seber_lp_i_sym35__ = 2; inline_jolly_seber_lp_i_sym35__ - <= lcm_sym274__; ++inline_jolly_seber_lp_i_sym35__) { - current_statement__ = 82; + <= lcm_sym276__; ++inline_jolly_seber_lp_i_sym35__) { + current_statement__ = 83; stan::math::validate_non_negative_index("qp", "n_occasions", - lcm_sym275__); + lcm_sym277__); stan::math::var_value> inline_jolly_seber_lp_qp_sym32__ = - Eigen::Matrix::Constant(lcm_sym275__, + Eigen::Matrix::Constant(lcm_sym277__, std::numeric_limits::quiet_NaN()); - stan::model::assign(lcm_sym221__, + stan::model::assign(lcm_sym222__, stan::math::subtract(1.0, stan::math::transpose( - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni(inline_jolly_seber_lp_i_sym35__)))), - "assigning variable lcm_sym221__"); - lcm_sym270__ = first[(inline_jolly_seber_lp_i_sym35__ - 1)]; - if (lcm_sym270__) { - current_statement__ = 100; - if (stan::math::logical_eq(lcm_sym270__, 1)) { - current_statement__ = 98; + "assigning variable lcm_sym222__"); + lcm_sym272__ = first[(inline_jolly_seber_lp_i_sym35__ - 1)]; + if (lcm_sym272__) { + current_statement__ = 101; + if (stan::math::logical_eq(lcm_sym272__, 1)) { + current_statement__ = 99; lp_accum__.add(stan::math::bernoulli_lpmf(1, (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)) * - stan::model::rvalue(lcm_sym268__, - "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, + "lcm_sym269__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), stan::model::index_uni(1))))); } else { - current_statement__ = 91; + current_statement__ = 92; stan::math::validate_non_negative_index("lp", "first[i]", - lcm_sym270__); + lcm_sym272__); Eigen::Matrix inline_jolly_seber_lp_lp_sym33__ = - Eigen::Matrix::Constant(lcm_sym270__, + Eigen::Matrix::Constant(lcm_sym272__, DUMMY_VAR__); - lcm_sym225__ = (lcm_sym270__ - 1); + lcm_sym226__ = (lcm_sym272__ - 1); stan::model::assign(inline_jolly_seber_lp_lp_sym33__, (((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym221__, "lcm_sym221__", - stan::model::index_min_max(1, lcm_sym225__))))) + + stan::model::rvalue(lcm_sym222__, "lcm_sym222__", + stan::model::index_min_max(1, lcm_sym226__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_min_max(1, lcm_sym225__))))) + + stan::model::index_min_max(1, lcm_sym226__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni(lcm_sym270__)))), + stan::model::index_uni(lcm_sym272__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(1)); - current_statement__ = 94; - if (stan::math::logical_gte(lcm_sym225__, 2)) { - current_statement__ = 93; + current_statement__ = 95; + if (stan::math::logical_gte(lcm_sym226__, 2)) { + current_statement__ = 94; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym220__, - "lcm_sym220__", + stan::model::rvalue(lcm_sym221__, + "lcm_sym221__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym221__, "lcm_sym221__", - stan::model::index_min_max(2, lcm_sym225__))))) + + stan::model::rvalue(lcm_sym222__, "lcm_sym222__", + stan::model::index_min_max(2, lcm_sym226__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_min_max(2, lcm_sym225__))))) + + stan::model::index_min_max(2, lcm_sym226__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni(lcm_sym270__)))), + stan::model::index_uni(lcm_sym272__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym34__ = 3; inline_jolly_seber_lp_t_sym34__ - <= lcm_sym225__; ++inline_jolly_seber_lp_t_sym34__) { - current_statement__ = 93; + <= lcm_sym226__; ++inline_jolly_seber_lp_t_sym34__) { + current_statement__ = 94; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym220__, - "lcm_sym220__", + stan::model::rvalue(lcm_sym221__, + "lcm_sym221__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym34__ - 1))))) + @@ -29130,9 +29136,9 @@ class inlining_fail2_model final : public model_base_crtp gamma[(inline_jolly_seber_lp_t_sym34__ - 1)])) + stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym221__, "lcm_sym221__", + stan::model::rvalue(lcm_sym222__, "lcm_sym222__", stan::model::index_min_max( - inline_jolly_seber_lp_t_sym34__, lcm_sym225__))))) + inline_jolly_seber_lp_t_sym34__, lcm_sym226__))))) + stan::math::bernoulli_lpmf(1, stan::math::prod( @@ -29140,62 +29146,62 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), stan::model::index_min_max( - inline_jolly_seber_lp_t_sym34__, lcm_sym225__))))) + inline_jolly_seber_lp_t_sym34__, lcm_sym226__))))) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni(lcm_sym270__)))), + stan::model::index_uni(lcm_sym272__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni( inline_jolly_seber_lp_t_sym34__)); } } - current_statement__ = 95; + current_statement__ = 96; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym220__, "lcm_sym220__", - stan::model::index_min_max(1, lcm_sym225__)))) + - stan::math::bernoulli_lpmf(1, gamma[(lcm_sym270__ + stan::model::rvalue(lcm_sym221__, "lcm_sym221__", + stan::model::index_min_max(1, lcm_sym226__)))) + + stan::math::bernoulli_lpmf(1, gamma[(lcm_sym272__ - 1)])) + stan::math::bernoulli_lpmf(1, - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni(lcm_sym270__)))), + stan::model::index_uni(lcm_sym272__)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", - stan::model::index_uni(lcm_sym270__)); - current_statement__ = 96; + stan::model::index_uni(lcm_sym272__)); + current_statement__ = 97; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym33__)); } - lcm_sym272__ = last[(inline_jolly_seber_lp_i_sym35__ - 1)]; - if (stan::math::logical_gte(lcm_sym272__, (lcm_sym270__ + 1))) { - current_statement__ = 101; + lcm_sym274__ = last[(inline_jolly_seber_lp_i_sym35__ - 1)]; + if (stan::math::logical_gte(lcm_sym274__, (lcm_sym272__ + 1))) { + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni(((lcm_sym270__ + + stan::model::index_uni(((lcm_sym272__ + 1) - 1))))); - lcm_sym243__ = ((lcm_sym270__ + 1) + 1); + lcm_sym244__ = ((lcm_sym272__ + 1) + 1); lp_accum__.add(stan::math::bernoulli_lpmf( stan::model::rvalue(y, "y", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni((lcm_sym270__ + + stan::model::index_uni((lcm_sym272__ + 1))), - stan::model::rvalue(lcm_sym268__, - "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, + "lcm_sym269__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni((lcm_sym270__ + + stan::model::index_uni((lcm_sym272__ + 1))))); - for (int inline_jolly_seber_lp_t_sym34__ = lcm_sym243__; inline_jolly_seber_lp_t_sym34__ - <= lcm_sym272__; ++inline_jolly_seber_lp_t_sym34__) { - current_statement__ = 101; + for (int inline_jolly_seber_lp_t_sym34__ = lcm_sym244__; inline_jolly_seber_lp_t_sym34__ + <= lcm_sym274__; ++inline_jolly_seber_lp_t_sym34__) { + current_statement__ = 102; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue(phi, "phi", stan::model::index_uni( @@ -29203,42 +29209,42 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni( (inline_jolly_seber_lp_t_sym34__ - 1))))); - current_statement__ = 102; + current_statement__ = 103; lp_accum__.add(stan::math::bernoulli_lpmf( y[(inline_jolly_seber_lp_i_sym35__ - 1)][(inline_jolly_seber_lp_t_sym34__ - 1)], - stan::model::rvalue(lcm_sym268__, - "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, + "lcm_sym269__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), stan::model::index_uni( inline_jolly_seber_lp_t_sym34__)))); } } - current_statement__ = 104; + current_statement__ = 105; lp_accum__.add(stan::math::bernoulli_lpmf(1, stan::model::rvalue( inline_prob_uncaptured_return_sym20__, "inline_prob_uncaptured_return_sym20__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), - stan::model::index_uni(lcm_sym272__)))); + stan::model::index_uni(lcm_sym274__)))); } else { - lcm_sym245__ = (lcm_sym275__ + 1); + lcm_sym246__ = (lcm_sym277__ + 1); stan::math::validate_non_negative_index("lp", - "n_occasions + 1", lcm_sym245__); + "n_occasions + 1", lcm_sym246__); Eigen::Matrix inline_jolly_seber_lp_lp_sym33__ = - Eigen::Matrix::Constant(lcm_sym245__, + Eigen::Matrix::Constant(lcm_sym246__, DUMMY_VAR__); - current_statement__ = 85; + current_statement__ = 86; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, ((stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni(inline_jolly_seber_lp_i_sym35__), stan::model::index_uni(1)))) + stan::math::bernoulli_lpmf(1, @@ -29249,19 +29255,19 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(1)))), "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(1)); - current_statement__ = 87; - if (stan::math::logical_gte(lcm_sym275__, 2)) { - current_statement__ = 86; + current_statement__ = 88; + if (stan::math::logical_gte(lcm_sym277__, 2)) { + current_statement__ = 87; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym220__, "lcm_sym220__", + stan::model::rvalue(lcm_sym221__, "lcm_sym221__", stan::model::index_min_max(1, 1)))) + stan::math::bernoulli_lpmf(1, stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)))) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), stan::model::index_uni(2)))) + @@ -29275,19 +29281,19 @@ class inlining_fail2_model final : public model_base_crtp "assigning variable inline_jolly_seber_lp_lp_sym33__", stan::model::index_uni(2)); for (int inline_jolly_seber_lp_t_sym34__ = 3; inline_jolly_seber_lp_t_sym34__ - <= lcm_sym275__; ++inline_jolly_seber_lp_t_sym34__) { - current_statement__ = 86; + <= lcm_sym277__; ++inline_jolly_seber_lp_t_sym34__) { + current_statement__ = 87; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, (((stan::math::bernoulli_lpmf(1, stan::math::prod( - stan::model::rvalue(lcm_sym220__, - "lcm_sym220__", + stan::model::rvalue(lcm_sym221__, + "lcm_sym221__", stan::model::index_min_max(1, (inline_jolly_seber_lp_t_sym34__ - 1))))) + stan::math::bernoulli_lpmf(1, gamma[(inline_jolly_seber_lp_t_sym34__ - 1)])) + stan::math::bernoulli_lpmf(0, - stan::model::rvalue(lcm_sym268__, "lcm_sym268__", + stan::model::rvalue(lcm_sym269__, "lcm_sym269__", stan::model::index_uni( inline_jolly_seber_lp_i_sym35__), stan::model::index_uni( @@ -29304,13 +29310,13 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(inline_jolly_seber_lp_t_sym34__)); } } - current_statement__ = 88; + current_statement__ = 89; stan::model::assign(inline_jolly_seber_lp_lp_sym33__, stan::math::bernoulli_lpmf(1, - stan::math::prod(lcm_sym220__)), + stan::math::prod(lcm_sym221__)), "assigning variable inline_jolly_seber_lp_lp_sym33__", - stan::model::index_uni(lcm_sym245__)); - current_statement__ = 89; + stan::model::index_uni(lcm_sym246__)); + current_statement__ = 90; lp_accum__.add(stan::math::log_sum_exp( inline_jolly_seber_lp_lp_sym33__)); } @@ -29359,13 +29365,13 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { - double lcm_sym206__; + double lcm_sym207__; + int lcm_sym206__; int lcm_sym205__; int lcm_sym204__; int lcm_sym203__; int lcm_sym202__; int lcm_sym201__; - int lcm_sym200__; double lcm_sym172__; int lcm_sym199__; int lcm_sym198__; @@ -29410,7 +29416,7 @@ class inlining_fail2_model final : public model_base_crtp int lcm_sym154__; int lcm_sym153__; int lcm_sym152__; - int lcm_sym151__; + int lcm_sym200__; int lcm_sym150__; int lcm_sym149__; int lcm_sym148__; @@ -29430,14 +29436,15 @@ class inlining_fail2_model final : public model_base_crtp in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); + lcm_sym200__ = (n_occasions - 1); auto epsilon = - in__.template read>((n_occasions - - 1)); + in__.template read< + Eigen::Matrix>(lcm_sym200__); auto sigma = in__.template read_constrain_lub(0, 5, lp__); Eigen::Matrix phi = - Eigen::Matrix::Constant(M, (n_occasions - 1), + Eigen::Matrix::Constant(M, lcm_sym200__, std::numeric_limits::quiet_NaN()); Eigen::Matrix p = Eigen::Matrix::Constant(M, n_occasions, @@ -29455,8 +29462,8 @@ class inlining_fail2_model final : public model_base_crtp stan::math::primitive_value(emit_generated_quantities__)))) { return ; } - lcm_sym151__ = (n_occasions - 1); - if (stan::math::logical_gte(lcm_sym151__, 1)) { + current_statement__ = 18; + if (stan::math::logical_gte(lcm_sym200__, 1)) { lcm_sym143__ = stan::math::logical_gte(M, 1); if (lcm_sym143__) { lcm_sym184__ = stan::math::inv_logit((stan::math::logit(mean_phi) + @@ -29470,7 +29477,7 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(i), stan::model::index_uni(1)); } } - for (int t = 2; t <= lcm_sym151__; ++t) { + for (int t = 2; t <= lcm_sym200__; ++t) { current_statement__ = 17; if (lcm_sym143__) { lcm_sym183__ = stan::math::inv_logit((stan::math::logit(mean_phi) @@ -29502,17 +29509,17 @@ class inlining_fail2_model final : public model_base_crtp int inline_prob_uncaptured_n_occasions_sym3__ = std::numeric_limits::min(); lcm_sym173__ = stan::math::cols(lcm_sym186__); - current_statement__ = 20; - stan::math::validate_non_negative_index("chi", "n_ind", lcm_sym188__); current_statement__ = 21; + stan::math::validate_non_negative_index("chi", "n_ind", lcm_sym188__); + current_statement__ = 22; stan::math::validate_non_negative_index("chi", "n_occasions", lcm_sym173__); Eigen::Matrix inline_prob_uncaptured_chi_sym4__ = Eigen::Matrix::Constant(lcm_sym188__, lcm_sym173__, std::numeric_limits::quiet_NaN()); - current_statement__ = 30; + current_statement__ = 31; if (stan::math::logical_gte(lcm_sym188__, 1)) { - current_statement__ = 23; + current_statement__ = 24; stan::model::assign(inline_prob_uncaptured_chi_sym4__, 1.0, "assigning variable inline_prob_uncaptured_chi_sym4__", stan::model::index_uni(1), stan::model::index_uni(lcm_sym173__)); @@ -29524,7 +29531,7 @@ class inlining_fail2_model final : public model_base_crtp int inline_prob_uncaptured_t_next_sym6__ = std::numeric_limits::min(); lcm_sym160__ = (lcm_sym155__ + 1); - current_statement__ = 26; + current_statement__ = 27; stan::model::assign(inline_prob_uncaptured_chi_sym4__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), @@ -29549,7 +29556,7 @@ class inlining_fail2_model final : public model_base_crtp int inline_prob_uncaptured_t_next_sym6__ = std::numeric_limits::min(); lcm_sym159__ = (lcm_sym154__ + 1); - current_statement__ = 26; + current_statement__ = 27; stan::model::assign(inline_prob_uncaptured_chi_sym4__, stan::math::fma( (stan::model::rvalue(phi, "phi", stan::model::index_uni(1), @@ -29570,19 +29577,19 @@ class inlining_fail2_model final : public model_base_crtp } for (int inline_prob_uncaptured_i_sym8__ = 2; inline_prob_uncaptured_i_sym8__ <= lcm_sym188__; ++inline_prob_uncaptured_i_sym8__) { - current_statement__ = 23; + current_statement__ = 24; stan::model::assign(inline_prob_uncaptured_chi_sym4__, 1.0, "assigning variable inline_prob_uncaptured_chi_sym4__", stan::model::index_uni(inline_prob_uncaptured_i_sym8__), stan::model::index_uni(lcm_sym173__)); - current_statement__ = 28; + current_statement__ = 29; if (lcm_sym147__) { int inline_prob_uncaptured_t_curr_sym5__ = std::numeric_limits::min(); int inline_prob_uncaptured_t_next_sym6__ = std::numeric_limits::min(); lcm_sym160__ = (lcm_sym155__ + 1); - current_statement__ = 26; + current_statement__ = 27; stan::model::assign(inline_prob_uncaptured_chi_sym4__, stan::math::fma( (stan::model::rvalue(phi, "phi", @@ -29610,7 +29617,7 @@ class inlining_fail2_model final : public model_base_crtp int inline_prob_uncaptured_t_next_sym6__ = std::numeric_limits::min(); lcm_sym159__ = (lcm_sym154__ + 1); - current_statement__ = 26; + current_statement__ = 27; stan::model::assign(inline_prob_uncaptured_chi_sym4__, stan::math::fma( (stan::model::rvalue(phi, "phi", @@ -29633,7 +29640,7 @@ class inlining_fail2_model final : public model_base_crtp } } } - current_statement__ = 31; + current_statement__ = 32; stan::model::assign(inline_prob_uncaptured_return_sym1__, inline_prob_uncaptured_chi_sym4__, "assigning variable inline_prob_uncaptured_return_sym1__"); @@ -29675,7 +29682,7 @@ class inlining_fail2_model final : public model_base_crtp std::vector> z = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); - current_statement__ = 40; + current_statement__ = 41; if (lcm_sym143__) { int q = std::numeric_limits::min(); double mu2 = std::numeric_limits::quiet_NaN(); @@ -29687,24 +29694,24 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(1)); lcm_sym145__ = stan::math::logical_gte(n_occasions, 2); if (lcm_sym145__) { - lcm_sym203__ = stan::model::rvalue(z, "z", + lcm_sym204__ = stan::model::rvalue(z, "z", stan::model::index_uni(1), stan::model::index_uni(1)); - lcm_sym167__ = (1 * (1 - lcm_sym203__)); + lcm_sym167__ = (1 * (1 - lcm_sym204__)); q = lcm_sym167__; lcm_sym181__ = stan::math::fma( stan::model::rvalue(phi, "phi", stan::model::index_uni(1), - stan::model::index_uni(1)), lcm_sym203__, + stan::model::index_uni(1)), lcm_sym204__, (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)) * lcm_sym167__)); - current_statement__ = 34; + current_statement__ = 35; stan::model::assign(z, stan::math::bernoulli_rng(lcm_sym181__, base_rng__), "assigning variable z", stan::model::index_uni(1), stan::model::index_uni(2)); for (int t = 3; t <= n_occasions; ++t) { - current_statement__ = 35; + current_statement__ = 36; q = (q * (1 - stan::model::rvalue(z, "z", stan::model::index_uni(1), stan::model::index_uni((t - 1))))); @@ -29717,7 +29724,7 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni((t - 1))), (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(t)) * q)); - current_statement__ = 34; + current_statement__ = 35; stan::model::assign(z, stan::math::bernoulli_rng(lcm_sym182__, base_rng__), "assigning variable z", stan::model::index_uni(1), @@ -29727,12 +29734,12 @@ class inlining_fail2_model final : public model_base_crtp for (int i = 2; i <= M; ++i) { int q = std::numeric_limits::min(); double mu2 = std::numeric_limits::quiet_NaN(); - current_statement__ = 37; + current_statement__ = 38; stan::model::assign(z, stan::math::bernoulli_rng(lcm_sym172__, base_rng__), "assigning variable z", stan::model::index_uni(i), stan::model::index_uni(1)); - current_statement__ = 38; + current_statement__ = 39; if (lcm_sym145__) { lcm_sym166__ = (1 * (1 - stan::model::rvalue(z, "z", stan::model::index_uni(i), @@ -29747,13 +29754,13 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(1)), (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(2)) * lcm_sym166__)); - current_statement__ = 34; + current_statement__ = 35; stan::model::assign(z, stan::math::bernoulli_rng(lcm_sym179__, base_rng__), "assigning variable z", stan::model::index_uni(i), stan::model::index_uni(2)); for (int t = 3; t <= n_occasions; ++t) { - current_statement__ = 35; + current_statement__ = 36; q = (q * (1 - stan::model::rvalue(z, "z", stan::model::index_uni(i), stan::model::index_uni((t - 1))))); @@ -29766,7 +29773,7 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni((t - 1))), (stan::model::rvalue(gamma, "gamma", stan::model::index_uni(t)) * q)); - current_statement__ = 34; + current_statement__ = 35; stan::model::assign(z, stan::math::bernoulli_rng(lcm_sym180__, base_rng__), "assigning variable z", stan::model::index_uni(i), @@ -29776,7 +29783,7 @@ class inlining_fail2_model final : public model_base_crtp } } { - current_statement__ = 41; + current_statement__ = 42; stan::math::validate_non_negative_index("cprob", "n_occasions", n_occasions); Eigen::Matrix cprob = @@ -29786,7 +29793,7 @@ class inlining_fail2_model final : public model_base_crtp { int inline_seq_cprob_N_sym11__ = std::numeric_limits::min(); lcm_sym187__ = stan::math::rows(gamma); - current_statement__ = 44; + current_statement__ = 45; stan::math::validate_non_negative_index("log_cprob", "N", lcm_sym187__); Eigen::Matrix inline_seq_cprob_log_cprob_sym12__ = @@ -29794,7 +29801,7 @@ class inlining_fail2_model final : public model_base_crtp std::numeric_limits::quiet_NaN()); double inline_seq_cprob_log_residual_prob_sym13__ = std::numeric_limits::quiet_NaN(); - current_statement__ = 50; + current_statement__ = 51; if (stan::math::logical_gte(lcm_sym187__, 1)) { lcm_sym172__ = stan::model::rvalue(gamma, "gamma", stan::model::index_uni(1)); @@ -29802,45 +29809,45 @@ class inlining_fail2_model final : public model_base_crtp (stan::math::log(lcm_sym172__) + 0), "assigning variable inline_seq_cprob_log_cprob_sym12__", stan::model::index_uni(1)); - current_statement__ = 47; + current_statement__ = 48; inline_seq_cprob_log_residual_prob_sym13__ = (0 + stan::math::log1m(lcm_sym172__)); for (int inline_seq_cprob_n_sym14__ = 2; inline_seq_cprob_n_sym14__ <= lcm_sym187__; ++inline_seq_cprob_n_sym14__) { - current_statement__ = 48; + current_statement__ = 49; stan::model::assign(inline_seq_cprob_log_cprob_sym12__, (stan::math::log(gamma[(inline_seq_cprob_n_sym14__ - 1)]) + inline_seq_cprob_log_residual_prob_sym13__), "assigning variable inline_seq_cprob_log_cprob_sym12__", stan::model::index_uni(inline_seq_cprob_n_sym14__)); - current_statement__ = 47; + current_statement__ = 48; inline_seq_cprob_log_residual_prob_sym13__ = (inline_seq_cprob_log_residual_prob_sym13__ + stan::math::log1m(gamma[(inline_seq_cprob_n_sym14__ - 1)])); } } - current_statement__ = 51; + current_statement__ = 52; stan::model::assign(inline_seq_cprob_return_sym10__, stan::math::exp(inline_seq_cprob_log_cprob_sym12__), "assigning variable inline_seq_cprob_return_sym10__"); } - current_statement__ = 52; - stan::math::validate_non_negative_index("recruit", "M", M); current_statement__ = 53; + stan::math::validate_non_negative_index("recruit", "M", M); + current_statement__ = 54; stan::math::validate_non_negative_index("recruit", "n_occasions", n_occasions); std::vector> recruit = std::vector>(M, std::vector(n_occasions, std::numeric_limits::min())); - current_statement__ = 54; + current_statement__ = 55; stan::model::assign(recruit, stan::math::rep_array(0, M, n_occasions), "assigning variable recruit"); - current_statement__ = 55; + current_statement__ = 56; stan::math::validate_non_negative_index("Nind", "M", M); std::vector Nind = std::vector(M, std::numeric_limits::min()); - current_statement__ = 57; + current_statement__ = 58; stan::math::validate_non_negative_index("Nalive", "M", M); std::vector Nalive = std::vector(M, std::numeric_limits::min()); @@ -29848,11 +29855,11 @@ class inlining_fail2_model final : public model_base_crtp sigma2 = lcm_sym191__; lcm_sym193__ = stan::math::sum(inline_seq_cprob_return_sym10__); psi = lcm_sym193__; - current_statement__ = 59; + current_statement__ = 60; stan::model::assign(b, stan::math::divide(inline_seq_cprob_return_sym10__, lcm_sym193__), "assigning variable b"); - current_statement__ = 67; + current_statement__ = 68; if (lcm_sym143__) { int f = std::numeric_limits::min(); int inline_first_capture_return_sym16__; @@ -29865,7 +29872,7 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(1))); for (int inline_first_capture_k_sym17__ = 1; inline_first_capture_k_sym17__ <= lcm_sym190__; ++inline_first_capture_k_sym17__) { - current_statement__ = 62; + current_statement__ = 63; if (stan::model::rvalue(z, "z", stan::model::index_uni(1), stan::model::index_uni(inline_first_capture_k_sym17__))) { inline_first_capture_early_ret_check_sym18__ = 1; @@ -29880,9 +29887,9 @@ class inlining_fail2_model final : public model_base_crtp inline_first_capture_return_sym16__ = 0; break; } - current_statement__ = 65; + current_statement__ = 66; if (stan::math::logical_gt(inline_first_capture_return_sym16__, 0)) { - current_statement__ = 64; + current_statement__ = 65; stan::model::assign(recruit, 1, "assigning variable recruit", stan::model::index_uni(1), stan::model::index_uni(inline_first_capture_return_sym16__)); @@ -29899,7 +29906,7 @@ class inlining_fail2_model final : public model_base_crtp stan::model::index_uni(i))); for (int inline_first_capture_k_sym17__ = 1; inline_first_capture_k_sym17__ <= lcm_sym189__; ++inline_first_capture_k_sym17__) { - current_statement__ = 62; + current_statement__ = 63; if (stan::model::rvalue(z, "z", stan::model::index_uni(i), stan::model::index_uni(inline_first_capture_k_sym17__))) { inline_first_capture_early_ret_check_sym18__ = 1; @@ -29914,9 +29921,9 @@ class inlining_fail2_model final : public model_base_crtp inline_first_capture_return_sym16__ = 0; break; } - current_statement__ = 65; + current_statement__ = 66; if (stan::math::logical_gt(inline_first_capture_return_sym16__, 0)) { - current_statement__ = 64; + current_statement__ = 65; stan::model::assign(recruit, 1, "assigning variable recruit", stan::model::index_uni(i), stan::model::index_uni(inline_first_capture_return_sym16__)); @@ -29925,26 +29932,26 @@ class inlining_fail2_model final : public model_base_crtp } lcm_sym144__ = stan::math::logical_gte(n_occasions, 1); if (lcm_sym144__) { - current_statement__ = 68; + current_statement__ = 69; stan::model::assign(N, stan::math::sum( stan::model::rvalue(z, "z", stan::model::index_omni(), stan::model::index_uni(1))), "assigning variable N", stan::model::index_uni(1)); - current_statement__ = 69; + current_statement__ = 70; stan::model::assign(B, stan::math::sum( stan::model::rvalue(recruit, "recruit", stan::model::index_omni(), stan::model::index_uni(1))), "assigning variable B", stan::model::index_uni(1)); for (int t = 2; t <= n_occasions; ++t) { - current_statement__ = 68; + current_statement__ = 69; stan::model::assign(N, stan::math::sum( stan::model::rvalue(z, "z", stan::model::index_omni(), stan::model::index_uni(t))), "assigning variable N", stan::model::index_uni(t)); - current_statement__ = 69; + current_statement__ = 70; stan::model::assign(B, stan::math::sum( stan::model::rvalue(recruit, "recruit", @@ -29952,32 +29959,32 @@ class inlining_fail2_model final : public model_base_crtp "assigning variable B", stan::model::index_uni(t)); } } - current_statement__ = 74; + current_statement__ = 75; if (lcm_sym143__) { - current_statement__ = 71; + current_statement__ = 72; stan::model::assign(Nind, stan::math::sum( stan::model::rvalue(z, "z", stan::model::index_uni(1))), "assigning variable Nind", stan::model::index_uni(1)); - current_statement__ = 72; + current_statement__ = 73; stan::model::assign(Nalive, (1 - stan::math::logical_negation( stan::model::rvalue(Nind, "Nind", stan::model::index_uni(1)))), "assigning variable Nalive", stan::model::index_uni(1)); for (int i = 2; i <= M; ++i) { - current_statement__ = 71; + current_statement__ = 72; stan::model::assign(Nind, stan::math::sum( stan::model::rvalue(z, "z", stan::model::index_uni(i))), "assigning variable Nind", stan::model::index_uni(i)); - current_statement__ = 72; + current_statement__ = 73; stan::model::assign(Nalive, (1 - stan::math::logical_negation( stan::model::rvalue(Nind, "Nind", stan::model::index_uni(i)))), "assigning variable Nalive", stan::model::index_uni(i)); } } - current_statement__ = 75; + current_statement__ = 76; Nsuper = stan::math::sum(Nalive); } out__.write(lcm_sym191__); @@ -30212,55 +30219,55 @@ class inlining_fail2_model final : public model_base_crtp emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "mean_phi"); param_names__.emplace_back(std::string() + "mean_p"); - for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { + for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { param_names__.emplace_back(std::string() + "gamma" + '.' + - std::to_string(sym355__)); + std::to_string(sym358__)); } - for (int sym355__ = 1; sym355__ <= epsilon_1dim__; ++sym355__) { + for (int sym358__ = 1; sym358__ <= epsilon_1dim__; ++sym358__) { param_names__.emplace_back(std::string() + "epsilon" + '.' + - std::to_string(sym355__)); + std::to_string(sym358__)); } param_names__.emplace_back(std::string() + "sigma"); if (emit_transformed_parameters__) { - for (int sym355__ = 1; sym355__ <= phi_2dim__; ++sym355__) { - for (int sym356__ = 1; sym356__ <= M; ++sym356__) { + for (int sym358__ = 1; sym358__ <= phi_2dim__; ++sym358__) { + for (int sym359__ = 1; sym359__ <= M; ++sym359__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym356__) + '.' + std::to_string(sym355__)); + std::to_string(sym359__) + '.' + std::to_string(sym358__)); } } - for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { - for (int sym356__ = 1; sym356__ <= M; ++sym356__) { + for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { + for (int sym359__ = 1; sym359__ <= M; ++sym359__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym356__) + '.' + std::to_string(sym355__)); + std::to_string(sym359__) + '.' + std::to_string(sym358__)); } } - for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { - for (int sym356__ = 1; sym356__ <= M; ++sym356__) { + for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { + for (int sym359__ = 1; sym359__ <= M; ++sym359__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym356__) + '.' + std::to_string(sym355__)); + std::to_string(sym359__) + '.' + std::to_string(sym358__)); } } } if (emit_generated_quantities__) { param_names__.emplace_back(std::string() + "sigma2"); param_names__.emplace_back(std::string() + "psi"); - for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { + for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { param_names__.emplace_back(std::string() + "b" + '.' + - std::to_string(sym355__)); + std::to_string(sym358__)); } param_names__.emplace_back(std::string() + "Nsuper"); - for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { + for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { param_names__.emplace_back(std::string() + "N" + '.' + - std::to_string(sym355__)); + std::to_string(sym358__)); } - for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { + for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { param_names__.emplace_back(std::string() + "B" + '.' + - std::to_string(sym355__)); + std::to_string(sym358__)); } - for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { - for (int sym356__ = 1; sym356__ <= M; ++sym356__) { + for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { + for (int sym359__ = 1; sym359__ <= M; ++sym359__) { param_names__.emplace_back(std::string() + "z" + '.' + - std::to_string(sym356__) + '.' + std::to_string(sym355__)); + std::to_string(sym359__) + '.' + std::to_string(sym358__)); } } } @@ -30271,55 +30278,55 @@ class inlining_fail2_model final : public model_base_crtp emit_generated_quantities__ = true) const final { param_names__.emplace_back(std::string() + "mean_phi"); param_names__.emplace_back(std::string() + "mean_p"); - for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { + for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { param_names__.emplace_back(std::string() + "gamma" + '.' + - std::to_string(sym355__)); + std::to_string(sym358__)); } - for (int sym355__ = 1; sym355__ <= epsilon_1dim__; ++sym355__) { + for (int sym358__ = 1; sym358__ <= epsilon_1dim__; ++sym358__) { param_names__.emplace_back(std::string() + "epsilon" + '.' + - std::to_string(sym355__)); + std::to_string(sym358__)); } param_names__.emplace_back(std::string() + "sigma"); if (emit_transformed_parameters__) { - for (int sym355__ = 1; sym355__ <= phi_2dim__; ++sym355__) { - for (int sym356__ = 1; sym356__ <= M; ++sym356__) { + for (int sym358__ = 1; sym358__ <= phi_2dim__; ++sym358__) { + for (int sym359__ = 1; sym359__ <= M; ++sym359__) { param_names__.emplace_back(std::string() + "phi" + '.' + - std::to_string(sym356__) + '.' + std::to_string(sym355__)); + std::to_string(sym359__) + '.' + std::to_string(sym358__)); } } - for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { - for (int sym356__ = 1; sym356__ <= M; ++sym356__) { + for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { + for (int sym359__ = 1; sym359__ <= M; ++sym359__) { param_names__.emplace_back(std::string() + "p" + '.' + - std::to_string(sym356__) + '.' + std::to_string(sym355__)); + std::to_string(sym359__) + '.' + std::to_string(sym358__)); } } - for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { - for (int sym356__ = 1; sym356__ <= M; ++sym356__) { + for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { + for (int sym359__ = 1; sym359__ <= M; ++sym359__) { param_names__.emplace_back(std::string() + "chi" + '.' + - std::to_string(sym356__) + '.' + std::to_string(sym355__)); + std::to_string(sym359__) + '.' + std::to_string(sym358__)); } } } if (emit_generated_quantities__) { param_names__.emplace_back(std::string() + "sigma2"); param_names__.emplace_back(std::string() + "psi"); - for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { + for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { param_names__.emplace_back(std::string() + "b" + '.' + - std::to_string(sym355__)); + std::to_string(sym358__)); } param_names__.emplace_back(std::string() + "Nsuper"); - for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { + for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { param_names__.emplace_back(std::string() + "N" + '.' + - std::to_string(sym355__)); + std::to_string(sym358__)); } - for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { + for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { param_names__.emplace_back(std::string() + "B" + '.' + - std::to_string(sym355__)); + std::to_string(sym358__)); } - for (int sym355__ = 1; sym355__ <= n_occasions; ++sym355__) { - for (int sym356__ = 1; sym356__ <= M; ++sym356__) { + for (int sym358__ = 1; sym358__ <= n_occasions; ++sym358__) { + for (int sym359__ = 1; sym359__ <= M; ++sym359__) { param_names__.emplace_back(std::string() + "z" + '.' + - std::to_string(sym356__) + '.' + std::to_string(sym355__)); + std::to_string(sym359__) + '.' + std::to_string(sym358__)); } } } From d62fe4a0323f25a67ec54d2e6194c6ff22b40af9 Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Tue, 23 Jul 2024 16:46:40 -0400 Subject: [PATCH 13/17] update --- src/stan_math_backend/Transform_Mir.ml | 113 ++++++++++++------------- 1 file changed, 52 insertions(+), 61 deletions(-) diff --git a/src/stan_math_backend/Transform_Mir.ml b/src/stan_math_backend/Transform_Mir.ml index 7cbc98d44..e3f96d9a4 100644 --- a/src/stan_math_backend/Transform_Mir.ml +++ b/src/stan_math_backend/Transform_Mir.ml @@ -430,10 +430,11 @@ let rec var_context_read Indexed (readfnapp decl_id flat_type, [Single Expr.Helpers.loop_bottom]) ; meta= {decl_var.meta with type_= unsized} } in - [Assignment (decl_id_lval, unsized, e) |> swrap] + ([Assignment (decl_id_lval, unsized, e) |> swrap], None) | SArray ((SInt | SReal), _) -> - [ Assignment (decl_id_lval, flat_type, readfnapp decl_id flat_type) - |> swrap ] + ( [ Assignment (decl_id_lval, flat_type, readfnapp decl_id flat_type) + |> swrap ] + , None ) | STuple subtypes -> let sub_sts = List.mapi @@ -444,7 +445,7 @@ let rec var_context_read else Location_span.empty) , x )) subtypes in - List.concat_map ~f:var_context_read sub_sts + (List.concat_map ~f:(fun x -> fst (var_context_read x)) sub_sts, None) | SArray _ when SizedType.contains_tuple st -> (* The IO format for tuples is complicated in this case. Therefore, we need to do the following @@ -550,7 +551,7 @@ let rec var_context_read @ final_assignment loopvars) |> swrap_noloc) Location_span.empty ] in - [Block (flat_decls @ temps @ loop) |> swrap] + ([Block (flat_decls @ temps @ loop) |> swrap], None) | SVector _ | SRowVector _ | SMatrix _ | SComplexMatrix _ |SComplexRowVector _ | SComplexVector _ | SArray _ -> let decl, assign, flat_var = @@ -589,11 +590,12 @@ let rec var_context_read Stmt.Fixed.Pattern.Assignment (Stmt.Helpers.lvariable pos, UInt, Expr.Helpers.loop_bottom) |> swrap_noloc in - [ Block - [ decl; assign; pos_reset - ; Stmt.Helpers.for_scalar_inv st bodyfn decl_var Location_span.empty - ] - |> swrap ] + ( [ Block + [ decl; assign; pos_reset + ; Stmt.Helpers.for_scalar_inv st bodyfn decl_var Location_span.empty + ] + |> swrap ] + , None ) (* Get the dimension expressions that are expected by constrain/unconstrain @@ -630,7 +632,7 @@ let param_deserializer_read ( decl_id_lval , smeta , Program.{out_constrained_st= cst; out_block; out_trans; _} ) = - if not (out_block = Parameters) then [] + if not (out_block = Parameters) then ([], None) else let basic_read (cst, out_trans) = let ut = SizedType.to_unsized cst in @@ -639,34 +641,34 @@ let param_deserializer_read ~adlevel:(UnsizedType.fill_adtype_for_type AutoDiffable ut) () in let dims = read_constrain_dims out_trans cst in - let read = - Expr.Helpers.internal_funapp - (FnReadParam - { constrain= out_trans - ; dims - ; mem_pattern= SizedType.get_mem_pattern cst }) - [] emeta in - read in + Expr.Helpers.internal_funapp + (FnReadParam + { constrain= out_trans + ; dims + ; mem_pattern= SizedType.get_mem_pattern cst }) + [] emeta in let rec read_stmt (lval, cst, out_trans) = match cst with | SizedType.SArray _ when SizedType.contains_tuple cst -> let tupl, array_dims = SizedType.get_array_dims cst in - [ Stmt.Helpers.mk_nested_for (List.rev array_dims) - (fun loopvars -> - Stmt.Fixed. - { meta= smeta - ; pattern= - SList - (read_stmt - (let lbase, idxs = lval in - ( ( lbase - , idxs - @ List.map - ~f:(fun e -> Index.Single e) - (List.rev loopvars) ) - , tupl - , out_trans ))) }) - smeta ] + ( [ Stmt.Helpers.mk_nested_for (List.rev array_dims) + (fun loopvars -> + Stmt.Fixed. + { meta= smeta + ; pattern= + SList + (fst + (read_stmt + (let lbase, idxs = lval in + ( ( lbase + , idxs + @ List.map + ~f:(fun e -> Index.Single e) + (List.rev loopvars) ) + , tupl + , out_trans )))) }) + smeta ] + , None ) | SizedType.STuple _ -> let subtys = Utils.(zip_stuple_trans_exn cst (tuple_trans_exn out_trans)) in @@ -677,13 +679,14 @@ let param_deserializer_read , st , trans )) subtys in - List.concat_map ~f:read_stmt sub_sts + (List.concat_map ~f:(fun x -> fst (read_stmt x)) sub_sts, None) | _ -> let read = basic_read (cst, out_trans) in - [ Stmt.Fixed. - { pattern= - Pattern.Assignment (lval, SizedType.to_unsized cst, read) - ; meta= smeta } ] in + ( [ Stmt.Fixed. + { pattern= + Pattern.Assignment (lval, SizedType.to_unsized cst, read) + ; meta= smeta } ] + , Some read ) in read_stmt (decl_id_lval, cst, out_trans) let escape_name str = @@ -764,27 +767,15 @@ let add_reads vars mkread stmts = let var_names = String.Map.of_alist_exn vars in let add_read_to_decl (Stmt.Fixed.{pattern; _} as stmt) = match pattern with - | Decl {decl_id; decl_adtype; decl_type; _} when Map.mem var_names decl_id - -> ( + | Decl ({decl_id; _} as decl_rec) when Map.mem var_names decl_id -> ( let loc, out = Map.find_exn var_names decl_id in - let param_reader = mkread (Stmt.Helpers.lvariable decl_id, loc, out) in - match param_reader with - | [ Stmt.Fixed. - { pattern= - Stmt.Fixed.Pattern.Assignment - ( _ - , _ - , (Expr.Fixed. - { pattern= - Expr.Fixed.Pattern.FunApp - (CompilerInternal (Internal_fun.FnReadParam _), _) - ; _ } as e) ) - ; _ } ] -> - [ { stmt with - pattern= - Stmt.Fixed.Pattern.Decl - {decl_id; decl_adtype; decl_type; initialize= Assign e} } ] - | _ -> stmt :: param_reader) + let param_reader, op_assign = + mkread (Stmt.Helpers.lvariable decl_id, loc, out) in + match op_assign with + | Some e when List.length param_reader = 1 -> + [{stmt with pattern= Decl {decl_rec with initialize= Assign e}}] + | None -> stmt :: param_reader + | Some _ -> stmt :: param_reader) | _ -> [stmt] in List.concat_map ~f:add_read_to_decl stmts @@ -892,7 +883,7 @@ let var_context_unconstrain_transform (decl_id, smeta, outvar) = ; decl_type= Type.Sized st ; initialize= Default } ; meta= smeta } - :: var_context_read (Stmt.Helpers.lvariable decl_id, smeta, st) + :: fst (var_context_read (Stmt.Helpers.lvariable decl_id, smeta, st)) @ param_serializer_write ~unconstrain:true (decl_id, outvar) (** Reads in parameters from a serializer and then writes out the unconstrained versions *) From 5a86db1bc21c827c086352055493169c58e62bff Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Tue, 23 Jul 2024 17:06:19 -0400 Subject: [PATCH 14/17] update --- src/stan_math_backend/Lower_stmt.ml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/stan_math_backend/Lower_stmt.ml b/src/stan_math_backend/Lower_stmt.ml index c91dca678..d86a727c3 100644 --- a/src/stan_math_backend/Lower_stmt.ml +++ b/src/stan_math_backend/Lower_stmt.ml @@ -344,14 +344,9 @@ module Testing = struct (Fmt.option Cpp.Printing.pp_expr) (lower_assign_sized (SArray (SArray (SMatrix (AoS, int 2, int 3), int 4), int 5)) - DataOnly Stmt.Fixed.Pattern.Default) + DataOnly Stmt.Fixed.Pattern.Uninit) |> print_endline; - [%expect - {| - std::vector>>(5, - std::vector>(4, - Eigen::Matrix::Constant(2, 3, - std::numeric_limits::quiet_NaN()))) |}] + [%expect {| |}] let%expect_test "set size mat array" = let int = Expr.Helpers.int in From aeb990aa01add70424f61e4d9e95e99d445de917 Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Wed, 24 Jul 2024 09:53:50 -0400 Subject: [PATCH 15/17] Add back position statements --- src/stan_math_backend/Lower_stmt.ml | 6 +- test/integration/good/code-gen/cl.expected | 27 + .../code-gen/complex_numbers/cpp.expected | 60 ++ test/integration/good/code-gen/cpp.expected | 537 ++++++++++++++++++ .../good/code-gen/expressions/cpp.expected | 21 + test/integration/good/code-gen/lir.expected | 78 ++- .../good/code-gen/ode/cpp.expected | 24 + .../good/code-gen/opencl/cpp.expected | 36 ++ .../good/code-gen/profiling/cpp.expected | 9 + .../good/compiler-optimizations/cpp.expected | 327 +++++++++++ .../compiler-optimizations/cppO0.expected | 333 +++++++++++ .../compiler-optimizations/cppO1.expected | 333 +++++++++++ .../mem_patterns/cpp.expected | 183 ++++++ test/integration/good/tuples/cpp.expected | 24 + 14 files changed, 1994 insertions(+), 4 deletions(-) diff --git a/src/stan_math_backend/Lower_stmt.ml b/src/stan_math_backend/Lower_stmt.ml index d86a727c3..b58471db3 100644 --- a/src/stan_math_backend/Lower_stmt.ml +++ b/src/stan_math_backend/Lower_stmt.ml @@ -118,6 +118,7 @@ let lower_possibly_opencl_decl name st adtype Expr.Fixed. { pattern= FunApp (CompilerInternal (Internal_fun.FnReadParam _), _) ; _ } -> + (* Peephole optimization for param reads, avoids copying *) Auto | _ -> lower_possibly_var_decl adtype ut mem_pattern) | true, UArray UInt -> TypeLiteral "matrix_cl" @@ -208,7 +209,10 @@ let rec lower_statement Stmt.Fixed.{pattern; meta} : stmt list = | _ -> e in let location = match pattern with - | Block _ | SList _ | Decl _ | Skip | Break | Continue -> [] + | Block _ | SList _ + |Decl {initialize= Default | Uninit; _} + |Skip | Break | Continue -> + [] | _ -> Numbering.assign_loc meta in let wrap_e e = [Expression e] in let open Expression_syntax in diff --git a/test/integration/good/code-gen/cl.expected b/test/integration/good/code-gen/cl.expected index bc1bb9cde..76cfe87fd 100644 --- a/test/integration/good/code-gen/cl.expected +++ b/test/integration/good/code-gen/cl.expected @@ -516,19 +516,28 @@ class optimize_glm_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha_v = in__.template read>(k); + current_statement__ = 2; auto beta = in__.template read>(k); + current_statement__ = 3; auto cuts = in__.template read>(k); + current_statement__ = 4; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto alpha = in__.template read(); + current_statement__ = 6; auto phi = in__.template read(); + current_statement__ = 7; auto X_p = in__.template read>(n, k); + current_statement__ = 8; auto beta_m = in__.template read>(n, k); + current_statement__ = 9; auto X_rv_p = in__.template read>(n); { @@ -1213,19 +1222,28 @@ class optimize_glm_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha_v = in__.template read>(k); + current_statement__ = 2; auto beta = in__.template read>(k); + current_statement__ = 3; auto cuts = in__.template read>(k); + current_statement__ = 4; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto alpha = in__.template read(); + current_statement__ = 6; auto phi = in__.template read(); + current_statement__ = 7; auto X_p = in__.template read>(n, k); + current_statement__ = 8; auto beta_m = in__.template read>(n, k); + current_statement__ = 9; auto X_rv_p = in__.template read>(n); { @@ -1921,19 +1939,28 @@ class optimize_glm_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha_v = in__.template read>(k); + current_statement__ = 2; auto beta = in__.template read>(k); + current_statement__ = 3; auto cuts = in__.template read>(k); + current_statement__ = 4; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto alpha = in__.template read(); + current_statement__ = 6; auto phi = in__.template read(); + current_statement__ = 7; auto X_p = in__.template read>(n, k); + current_statement__ = 8; auto beta_m = in__.template read>(n, k); + current_statement__ = 9; auto X_rv_p = in__.template read>(n); out__.write(alpha_v); diff --git a/test/integration/good/code-gen/complex_numbers/cpp.expected b/test/integration/good/code-gen/complex_numbers/cpp.expected index beeffd404..2ced05d5e 100644 --- a/test/integration/good/code-gen/complex_numbers/cpp.expected +++ b/test/integration/good/code-gen/complex_numbers/cpp.expected @@ -240,21 +240,29 @@ class basic_op_param_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto cmat = in__.template read< Eigen::Matrix,-1,-1>>(N, N); + current_statement__ = 2; auto cvec = in__.template read< Eigen::Matrix,-1,1>>(N); + current_statement__ = 3; auto crowvec = in__.template read< Eigen::Matrix,1,-1>>(N); + current_statement__ = 4; auto z = in__.template read>(); + current_statement__ = 5; auto mat = in__.template read>(N, N); + current_statement__ = 6; auto vec = in__.template read>(N); + current_statement__ = 7; auto rowvec = in__.template read>(N); + current_statement__ = 8; auto r = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, @@ -760,21 +768,29 @@ class basic_op_param_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto cmat = in__.template read< Eigen::Matrix,-1,-1>>(N, N); + current_statement__ = 2; auto cvec = in__.template read< Eigen::Matrix,-1,1>>(N); + current_statement__ = 3; auto crowvec = in__.template read< Eigen::Matrix,1,-1>>(N); + current_statement__ = 4; auto z = in__.template read>(); + current_statement__ = 5; auto mat = in__.template read>(N, N); + current_statement__ = 6; auto vec = in__.template read>(N); + current_statement__ = 7; auto rowvec = in__.template read>(N); + current_statement__ = 8; auto r = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, @@ -1291,21 +1307,29 @@ class basic_op_param_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto cmat = in__.template read< Eigen::Matrix,-1,-1>>(N, N); + current_statement__ = 2; auto cvec = in__.template read< Eigen::Matrix,-1,1>>(N); + current_statement__ = 3; auto crowvec = in__.template read< Eigen::Matrix,1,-1>>(N); + current_statement__ = 4; auto z = in__.template read>(); + current_statement__ = 5; auto mat = in__.template read>(N, N); + current_statement__ = 6; auto vec = in__.template read>(N); + current_statement__ = 7; auto rowvec = in__.template read>(N); + current_statement__ = 8; auto r = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, @@ -3988,21 +4012,29 @@ class basic_ops_mix_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto cvmat = in__.template read< Eigen::Matrix,-1,-1>>(N, N); + current_statement__ = 2; auto cvvec = in__.template read< Eigen::Matrix,-1,1>>(N); + current_statement__ = 3; auto cvrowvec = in__.template read< Eigen::Matrix,1,-1>>(N); + current_statement__ = 4; auto zv = in__.template read>(); + current_statement__ = 5; auto vmat = in__.template read>(N, N); + current_statement__ = 6; auto vvec = in__.template read>(N); + current_statement__ = 7; auto vrowvec = in__.template read>(N); + current_statement__ = 8; auto v = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, @@ -4596,21 +4628,29 @@ class basic_ops_mix_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto cvmat = in__.template read< Eigen::Matrix,-1,-1>>(N, N); + current_statement__ = 2; auto cvvec = in__.template read< Eigen::Matrix,-1,1>>(N); + current_statement__ = 3; auto cvrowvec = in__.template read< Eigen::Matrix,1,-1>>(N); + current_statement__ = 4; auto zv = in__.template read>(); + current_statement__ = 5; auto vmat = in__.template read>(N, N); + current_statement__ = 6; auto vvec = in__.template read>(N); + current_statement__ = 7; auto vrowvec = in__.template read>(N); + current_statement__ = 8; auto v = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, @@ -5215,21 +5255,29 @@ class basic_ops_mix_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto cvmat = in__.template read< Eigen::Matrix,-1,-1>>(N, N); + current_statement__ = 2; auto cvvec = in__.template read< Eigen::Matrix,-1,1>>(N); + current_statement__ = 3; auto cvrowvec = in__.template read< Eigen::Matrix,1,-1>>(N); + current_statement__ = 4; auto zv = in__.template read>(); + current_statement__ = 5; auto vmat = in__.template read>(N, N); + current_statement__ = 6; auto vvec = in__.template read>(N); + current_statement__ = 7; auto vrowvec = in__.template read>(N); + current_statement__ = 8; auto v = in__.template read(); Eigen::Matrix,-1,-1> tp_c_matrix = Eigen::Matrix,-1,-1>::Constant(N, N, @@ -8068,10 +8116,14 @@ class complex_scalar_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_r = in__.template read(); + current_statement__ = 2; auto p_complex = in__.template read>(); + current_statement__ = 3; auto p_complex_array = in__.template read>>(2); + current_statement__ = 4; auto p_complex_array_2d = in__.template read< std::vector>>>(2, 3); @@ -8313,10 +8365,14 @@ class complex_scalar_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_r = in__.template read(); + current_statement__ = 2; auto p_complex = in__.template read>(); + current_statement__ = 3; auto p_complex_array = in__.template read>>(2); + current_statement__ = 4; auto p_complex_array_2d = in__.template read< std::vector>>>(2, 3); @@ -8569,10 +8625,14 @@ class complex_scalar_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_r = in__.template read(); + current_statement__ = 2; auto p_complex = in__.template read>(); + current_statement__ = 3; auto p_complex_array = in__.template read>>(2); + current_statement__ = 4; auto p_complex_array_2d = in__.template read< std::vector>>>(2, 3); diff --git a/test/integration/good/code-gen/cpp.expected b/test/integration/good/code-gen/cpp.expected index e3072947d..e6e687a40 100644 --- a/test/integration/good/code-gen/cpp.expected +++ b/test/integration/good/code-gen/cpp.expected @@ -114,10 +114,13 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read(); + current_statement__ = 2; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto theta_tilde = in__.template read>(J); Eigen::Matrix theta = @@ -166,10 +169,13 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read(); + current_statement__ = 2; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto theta_tilde = in__.template read>(J); Eigen::Matrix theta = @@ -229,10 +235,13 @@ class _8_schools_ncp_model final : public model_base_crtp<_8_schools_ncp_model> // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read(); + current_statement__ = 2; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto theta_tilde = in__.template read>(J); Eigen::Matrix theta = @@ -586,6 +595,7 @@ class _8start_with_number_model final : public model_base_crtp<_8start_with_numb // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto bar = in__.template read(); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -617,6 +627,7 @@ class _8start_with_number_model final : public model_base_crtp<_8start_with_numb // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto bar = in__.template read(); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -659,6 +670,7 @@ class _8start_with_number_model final : public model_base_crtp<_8start_with_numb // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto bar = in__.template read(); out__.write(bar); if (stan::math::logical_negation( @@ -1388,6 +1400,7 @@ class container_promotion_model final : public model_base_crtp(); Eigen::Matrix V = Eigen::Matrix::Constant(2, DUMMY_VAR__); @@ -1488,6 +1501,7 @@ class container_promotion_model final : public model_base_crtp(); Eigen::Matrix V = Eigen::Matrix::Constant(2, DUMMY_VAR__); @@ -1599,6 +1613,7 @@ class container_promotion_model final : public model_base_crtp(); Eigen::Matrix V = Eigen::Matrix::Constant(2, @@ -2461,20 +2476,35 @@ class cpp_reserved_words_model final : public model_base_crtp(); + current_statement__ = 2; auto _stan_float = in__.template read(); + current_statement__ = 3; auto _stan_friend = in__.template read(); + current_statement__ = 4; auto _stan_goto = in__.template read(); + current_statement__ = 5; auto _stan_inline = in__.template read(); + current_statement__ = 6; auto _stan_long = in__.template read(); + current_statement__ = 7; auto _stan_mutable = in__.template read(); + current_statement__ = 8; auto _stan_namespace = in__.template read(); + current_statement__ = 9; auto _stan_new = in__.template read(); + current_statement__ = 10; auto _stan_noexcept = in__.template read(); + current_statement__ = 11; auto _stan_not = in__.template read(); + current_statement__ = 12; auto _stan_not_eq = in__.template read(); + current_statement__ = 13; auto _stan_nullptr = in__.template read(); + current_statement__ = 14; auto _stan_operator = in__.template read(); + current_statement__ = 15; auto _stan_or = in__.template read(); { local_scalar_t__ _stan_or_eq = DUMMY_VAR__; @@ -2523,20 +2553,35 @@ class cpp_reserved_words_model final : public model_base_crtp(); + current_statement__ = 2; auto _stan_float = in__.template read(); + current_statement__ = 3; auto _stan_friend = in__.template read(); + current_statement__ = 4; auto _stan_goto = in__.template read(); + current_statement__ = 5; auto _stan_inline = in__.template read(); + current_statement__ = 6; auto _stan_long = in__.template read(); + current_statement__ = 7; auto _stan_mutable = in__.template read(); + current_statement__ = 8; auto _stan_namespace = in__.template read(); + current_statement__ = 9; auto _stan_new = in__.template read(); + current_statement__ = 10; auto _stan_noexcept = in__.template read(); + current_statement__ = 11; auto _stan_not = in__.template read(); + current_statement__ = 12; auto _stan_not_eq = in__.template read(); + current_statement__ = 13; auto _stan_nullptr = in__.template read(); + current_statement__ = 14; auto _stan_operator = in__.template read(); + current_statement__ = 15; auto _stan_or = in__.template read(); { local_scalar_t__ _stan_or_eq = DUMMY_VAR__; @@ -2596,20 +2641,35 @@ class cpp_reserved_words_model final : public model_base_crtp(); + current_statement__ = 2; auto _stan_float = in__.template read(); + current_statement__ = 3; auto _stan_friend = in__.template read(); + current_statement__ = 4; auto _stan_goto = in__.template read(); + current_statement__ = 5; auto _stan_inline = in__.template read(); + current_statement__ = 6; auto _stan_long = in__.template read(); + current_statement__ = 7; auto _stan_mutable = in__.template read(); + current_statement__ = 8; auto _stan_namespace = in__.template read(); + current_statement__ = 9; auto _stan_new = in__.template read(); + current_statement__ = 10; auto _stan_noexcept = in__.template read(); + current_statement__ = 11; auto _stan_not = in__.template read(); + current_statement__ = 12; auto _stan_not_eq = in__.template read(); + current_statement__ = 13; auto _stan_nullptr = in__.template read(); + current_statement__ = 14; auto _stan_operator = in__.template read(); + current_statement__ = 15; auto _stan_or = in__.template read(); out__.write(_stan_explicit); out__.write(_stan_float); @@ -3499,6 +3559,7 @@ class data_only_functions_model final : public model_base_crtp>(N, N); { @@ -3558,6 +3619,7 @@ class data_only_functions_model final : public model_base_crtp>(N, N); { @@ -3628,6 +3690,7 @@ class data_only_functions_model final : public model_base_crtp>(N, N); out__.write(p); @@ -4705,10 +4768,13 @@ class eight_schools_ncp_model final : public model_base_crtp(); + current_statement__ = 2; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto theta_tilde = in__.template read>(J); Eigen::Matrix theta = @@ -4757,10 +4823,13 @@ class eight_schools_ncp_model final : public model_base_crtp(); + current_statement__ = 2; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto theta_tilde = in__.template read>(J); Eigen::Matrix theta = @@ -4820,10 +4889,13 @@ class eight_schools_ncp_model final : public model_base_crtp(); + current_statement__ = 2; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto theta_tilde = in__.template read>(J); Eigen::Matrix theta = @@ -5700,9 +5772,12 @@ class jacobian_pe_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto b_raw = in__.template read(); + current_statement__ = 2; auto b_vec_raw = in__.template read>(N); + current_statement__ = 3; auto b_direct_raw = in__.template read(); local_scalar_t__ b = DUMMY_VAR__; current_statement__ = 4; @@ -5751,9 +5826,12 @@ class jacobian_pe_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto b_raw = in__.template read(); + current_statement__ = 2; auto b_vec_raw = in__.template read>(N); + current_statement__ = 3; auto b_direct_raw = in__.template read(); local_scalar_t__ b = DUMMY_VAR__; current_statement__ = 4; @@ -5813,9 +5891,12 @@ class jacobian_pe_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto b_raw = in__.template read(); + current_statement__ = 2; auto b_vec_raw = in__.template read>(N); + current_statement__ = 3; auto b_direct_raw = in__.template read(); double b = std::numeric_limits::quiet_NaN(); Eigen::Matrix bvec = @@ -6188,6 +6269,7 @@ class mixed_type_arrays_model final : public model_base_crtp>(3); std::vector> y = std::vector>(3, @@ -6244,6 +6326,7 @@ class mixed_type_arrays_model final : public model_base_crtp>(3); std::vector> y = std::vector>(3, @@ -6311,6 +6394,7 @@ class mixed_type_arrays_model final : public model_base_crtp>(3); std::vector> y = std::vector>(3, @@ -12749,79 +12833,103 @@ class mother_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_real = in__.template read(); + current_statement__ = 2; auto p_upper = in__.template read_constrain_lb(p_real, lp__); + current_statement__ = 3; auto p_lower = in__.template read_constrain_ub(p_upper, lp__); + current_statement__ = 4; auto offset_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(1, 2, lp__, 5); + current_statement__ = 5; auto no_offset_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(0, 2, lp__, 5); + current_statement__ = 6; auto offset_no_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(3, 1, lp__, 5); + current_statement__ = 7; auto p_real_1d_ar = in__.template read_constrain_lb, jacobian__>(0, lp__, N); + current_statement__ = 8; auto p_real_3d_ar = in__.template read_constrain_lb< std::vector>>, jacobian__>(0, lp__, N, M, K); + current_statement__ = 9; auto p_vec = in__.template read_constrain_lb, jacobian__>(0, lp__, N); + current_statement__ = 10; auto p_1d_vec = in__.template read< std::vector>>(N, N); + current_statement__ = 11; auto p_3d_vec = in__.template read< std::vector< std::vector>>>>(N, M, K, N); + current_statement__ = 12; auto p_row_vec = in__.template read>(N); + current_statement__ = 13; auto p_1d_row_vec = in__.template read< std::vector>>(N, N); + current_statement__ = 14; auto p_3d_row_vec = in__.template read< std::vector< std::vector>>>>(N, M, K, N); + current_statement__ = 15; auto p_mat = in__.template read>(5, 4); + current_statement__ = 16; auto p_ar_mat = in__.template read_constrain_lub< std::vector>>, jacobian__>(0, 1, lp__, 4, 5, 2, 3); + current_statement__ = 17; auto p_simplex = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, N); + current_statement__ = 18; auto p_1d_simplex = in__.template read_constrain_simplex< std::vector>, jacobian__>(lp__, N, N); + current_statement__ = 19; auto p_3d_simplex = in__.template read_constrain_simplex< std::vector< std::vector>>>, jacobian__>(lp__, N, M, K, N); + current_statement__ = 20; auto p_cfcov_54 = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, 5, 4); + current_statement__ = 21; auto p_cfcov_33 = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, 3, 3); + current_statement__ = 22; auto p_cfcov_33_ar = in__.template read_constrain_cholesky_factor_cov< std::vector>, jacobian__>(lp__, K, 3, 3); + current_statement__ = 23; auto x_p = in__.template read>(2); + current_statement__ = 24; auto y_p = in__.template read>(2); std::vector tp_real_1d_ar = std::vector(N, DUMMY_VAR__); @@ -13184,79 +13292,103 @@ class mother_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_real = in__.template read(); + current_statement__ = 2; auto p_upper = in__.template read_constrain_lb(p_real, lp__); + current_statement__ = 3; auto p_lower = in__.template read_constrain_ub(p_upper, lp__); + current_statement__ = 4; auto offset_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(1, 2, lp__, 5); + current_statement__ = 5; auto no_offset_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(0, 2, lp__, 5); + current_statement__ = 6; auto offset_no_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(3, 1, lp__, 5); + current_statement__ = 7; auto p_real_1d_ar = in__.template read_constrain_lb, jacobian__>(0, lp__, N); + current_statement__ = 8; auto p_real_3d_ar = in__.template read_constrain_lb< std::vector>>, jacobian__>(0, lp__, N, M, K); + current_statement__ = 9; auto p_vec = in__.template read_constrain_lb, jacobian__>(0, lp__, N); + current_statement__ = 10; auto p_1d_vec = in__.template read< std::vector>>(N, N); + current_statement__ = 11; auto p_3d_vec = in__.template read< std::vector< std::vector>>>>(N, M, K, N); + current_statement__ = 12; auto p_row_vec = in__.template read>(N); + current_statement__ = 13; auto p_1d_row_vec = in__.template read< std::vector>>(N, N); + current_statement__ = 14; auto p_3d_row_vec = in__.template read< std::vector< std::vector>>>>(N, M, K, N); + current_statement__ = 15; auto p_mat = in__.template read>(5, 4); + current_statement__ = 16; auto p_ar_mat = in__.template read_constrain_lub< std::vector>>, jacobian__>(0, 1, lp__, 4, 5, 2, 3); + current_statement__ = 17; auto p_simplex = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, N); + current_statement__ = 18; auto p_1d_simplex = in__.template read_constrain_simplex< std::vector>, jacobian__>(lp__, N, N); + current_statement__ = 19; auto p_3d_simplex = in__.template read_constrain_simplex< std::vector< std::vector>>>, jacobian__>(lp__, N, M, K, N); + current_statement__ = 20; auto p_cfcov_54 = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, 5, 4); + current_statement__ = 21; auto p_cfcov_33 = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, 3, 3); + current_statement__ = 22; auto p_cfcov_33_ar = in__.template read_constrain_cholesky_factor_cov< std::vector>, jacobian__>(lp__, K, 3, 3); + current_statement__ = 23; auto x_p = in__.template read>(2); + current_statement__ = 24; auto y_p = in__.template read>(2); std::vector tp_real_1d_ar = std::vector(N, DUMMY_VAR__); @@ -13630,79 +13762,103 @@ class mother_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_real = in__.template read(); + current_statement__ = 2; auto p_upper = in__.template read_constrain_lb(p_real, lp__); + current_statement__ = 3; auto p_lower = in__.template read_constrain_ub(p_upper, lp__); + current_statement__ = 4; auto offset_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(1, 2, lp__, 5); + current_statement__ = 5; auto no_offset_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(0, 2, lp__, 5); + current_statement__ = 6; auto offset_no_multiplier = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(3, 1, lp__, 5); + current_statement__ = 7; auto p_real_1d_ar = in__.template read_constrain_lb, jacobian__>(0, lp__, N); + current_statement__ = 8; auto p_real_3d_ar = in__.template read_constrain_lb< std::vector>>, jacobian__>(0, lp__, N, M, K); + current_statement__ = 9; auto p_vec = in__.template read_constrain_lb, jacobian__>(0, lp__, N); + current_statement__ = 10; auto p_1d_vec = in__.template read< std::vector>>(N, N); + current_statement__ = 11; auto p_3d_vec = in__.template read< std::vector< std::vector>>>>(N, M, K, N); + current_statement__ = 12; auto p_row_vec = in__.template read>(N); + current_statement__ = 13; auto p_1d_row_vec = in__.template read< std::vector>>(N, N); + current_statement__ = 14; auto p_3d_row_vec = in__.template read< std::vector< std::vector>>>>(N, M, K, N); + current_statement__ = 15; auto p_mat = in__.template read>(5, 4); + current_statement__ = 16; auto p_ar_mat = in__.template read_constrain_lub< std::vector>>, jacobian__>(0, 1, lp__, 4, 5, 2, 3); + current_statement__ = 17; auto p_simplex = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, N); + current_statement__ = 18; auto p_1d_simplex = in__.template read_constrain_simplex< std::vector>, jacobian__>(lp__, N, N); + current_statement__ = 19; auto p_3d_simplex = in__.template read_constrain_simplex< std::vector< std::vector>>>, jacobian__>(lp__, N, M, K, N); + current_statement__ = 20; auto p_cfcov_54 = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, 5, 4); + current_statement__ = 21; auto p_cfcov_33 = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, 3, 3); + current_statement__ = 22; auto p_cfcov_33_ar = in__.template read_constrain_cholesky_factor_cov< std::vector>, jacobian__>(lp__, K, 3, 3); + current_statement__ = 23; auto x_p = in__.template read>(2); + current_statement__ = 24; auto y_p = in__.template read>(2); std::vector tp_real_1d_ar = std::vector(N, std::numeric_limits::quiet_NaN()); @@ -17466,16 +17622,23 @@ class motherHOF_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y0_p = in__.template read>(2); + current_statement__ = 2; auto theta_p = in__.template read>(1); + current_statement__ = 3; auto x_p = in__.template read>(1); + current_statement__ = 4; auto x_p_v = in__.template read>(2); + current_statement__ = 5; auto shared_params_p = in__.template read>(3); + current_statement__ = 6; auto job_params_p = in__.template read< std::vector>>(3, 3); + current_statement__ = 7; auto x_r = in__.template read(); local_scalar_t__ abc1_p = DUMMY_VAR__; current_statement__ = 8; @@ -17773,16 +17936,23 @@ class motherHOF_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y0_p = in__.template read>(2); + current_statement__ = 2; auto theta_p = in__.template read>(1); + current_statement__ = 3; auto x_p = in__.template read>(1); + current_statement__ = 4; auto x_p_v = in__.template read>(2); + current_statement__ = 5; auto shared_params_p = in__.template read>(3); + current_statement__ = 6; auto job_params_p = in__.template read< std::vector>>(3, 3); + current_statement__ = 7; auto x_r = in__.template read(); local_scalar_t__ abc1_p = DUMMY_VAR__; current_statement__ = 8; @@ -18088,16 +18258,23 @@ class motherHOF_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y0_p = in__.template read>(2); + current_statement__ = 2; auto theta_p = in__.template read>(1); + current_statement__ = 3; auto x_p = in__.template read>(1); + current_statement__ = 4; auto x_p_v = in__.template read>(2); + current_statement__ = 5; auto shared_params_p = in__.template read>(3); + current_statement__ = 6; auto job_params_p = in__.template read< std::vector>>(3, 3); + current_statement__ = 7; auto x_r = in__.template read(); double abc1_p = std::numeric_limits::quiet_NaN(); double abc2_p = std::numeric_limits::quiet_NaN(); @@ -20034,8 +20211,11 @@ class new_integrate_interface_model final : public model_base_crtp(); + current_statement__ = 2; auto ra = in__.template read>(N); + current_statement__ = 3; auto v = in__.template read>(N); std::vector> z = std::vector>(N, @@ -21677,8 +21857,11 @@ class new_integrate_interface_model final : public model_base_crtp(); + current_statement__ = 2; auto ra = in__.template read>(N); + current_statement__ = 3; auto v = in__.template read>(N); std::vector> z = std::vector>(N, @@ -23331,8 +23514,11 @@ class new_integrate_interface_model final : public model_base_crtp(); + current_statement__ = 2; auto ra = in__.template read>(N); + current_statement__ = 3; auto v = in__.template read>(N); std::vector> z = std::vector>(N, @@ -25539,21 +25725,27 @@ class old_integrate_interface_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto z_init = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); + current_statement__ = 6; auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); @@ -25635,21 +25827,27 @@ class old_integrate_interface_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto z_init = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); + current_statement__ = 6; auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); @@ -25742,21 +25940,27 @@ class old_integrate_interface_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto z_init = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); + current_statement__ = 6; auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); @@ -26601,19 +26805,28 @@ class optimize_glm_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha_v = in__.template read>(k); + current_statement__ = 2; auto beta = in__.template read>(k); + current_statement__ = 3; auto cuts = in__.template read>(k); + current_statement__ = 4; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto alpha = in__.template read(); + current_statement__ = 6; auto phi = in__.template read(); + current_statement__ = 7; auto X_p = in__.template read>(n, k); + current_statement__ = 8; auto beta_m = in__.template read>(n, k); + current_statement__ = 9; auto X_rv_p = in__.template read>(n); { @@ -27148,19 +27361,28 @@ class optimize_glm_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha_v = in__.template read>(k); + current_statement__ = 2; auto beta = in__.template read>(k); + current_statement__ = 3; auto cuts = in__.template read>(k); + current_statement__ = 4; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto alpha = in__.template read(); + current_statement__ = 6; auto phi = in__.template read(); + current_statement__ = 7; auto X_p = in__.template read>(n, k); + current_statement__ = 8; auto beta_m = in__.template read>(n, k); + current_statement__ = 9; auto X_rv_p = in__.template read>(n); { @@ -27706,19 +27928,28 @@ class optimize_glm_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha_v = in__.template read>(k); + current_statement__ = 2; auto beta = in__.template read>(k); + current_statement__ = 3; auto cuts = in__.template read>(k); + current_statement__ = 4; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto alpha = in__.template read(); + current_statement__ = 6; auto phi = in__.template read(); + current_statement__ = 7; auto X_p = in__.template read>(n, k); + current_statement__ = 8; auto beta_m = in__.template read>(n, k); + current_statement__ = 9; auto X_rv_p = in__.template read>(n); out__.write(alpha_v); @@ -28635,7 +28866,9 @@ class overloading_templating_model final : public model_base_crtp(); + current_statement__ = 2; auto z = in__.template read(); { current_statement__ = 3; @@ -28714,7 +28947,9 @@ class overloading_templating_model final : public model_base_crtp(); + current_statement__ = 2; auto z = in__.template read(); { current_statement__ = 3; @@ -28804,7 +29039,9 @@ class overloading_templating_model final : public model_base_crtp(); + current_statement__ = 2; auto z = in__.template read(); out__.write(y); out__.write(z); @@ -29107,10 +29344,12 @@ class param_constraint_model final : public model_base_crtp>, jacobian__>(lp__, nt, 2); + current_statement__ = 2; auto z1 = in__.template read_constrain_lb, jacobian__>(stan::model::rvalue(L_Omega, "L_Omega", @@ -29146,10 +29385,12 @@ class param_constraint_model final : public model_base_crtp>, jacobian__>(lp__, nt, 2); + current_statement__ = 2; auto z1 = in__.template read_constrain_lb, jacobian__>(stan::model::rvalue(L_Omega, "L_Omega", @@ -29196,10 +29437,12 @@ class param_constraint_model final : public model_base_crtp>, jacobian__>(lp__, nt, 2); + current_statement__ = 2; auto z1 = in__.template read_constrain_lb, jacobian__>(stan::model::rvalue(L_Omega, "L_Omega", @@ -30739,6 +30982,7 @@ class recursive_slicing_model final : public model_base_crtp>(times); Eigen::Matrix z_hat = @@ -30782,6 +31026,7 @@ class recursive_slicing_model final : public model_base_crtp>(times); Eigen::Matrix z_hat = @@ -30836,6 +31081,7 @@ class recursive_slicing_model final : public model_base_crtp>(times); Eigen::Matrix z_hat = @@ -31391,8 +31637,11 @@ class reduce_sum_m1_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y1 = in__.template read>(N); + current_statement__ = 2; auto y2 = in__.template read>(N); + current_statement__ = 3; auto y3 = in__.template read>(N); { current_statement__ = 4; @@ -31437,8 +31686,11 @@ class reduce_sum_m1_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y1 = in__.template read>(N); + current_statement__ = 2; auto y2 = in__.template read>(N); + current_statement__ = 3; auto y3 = in__.template read>(N); { current_statement__ = 4; @@ -31494,8 +31746,11 @@ class reduce_sum_m1_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y1 = in__.template read>(N); + current_statement__ = 2; auto y2 = in__.template read>(N); + current_statement__ = 3; auto y3 = in__.template read>(N); out__.write(y1); out__.write(y2); @@ -33270,53 +33525,69 @@ class reduce_sum_m2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto a8 = in__.template read< std::vector>>>(N, N, N, N); + current_statement__ = 2; auto a7 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 3; auto a6 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 4; auto a5 = in__.template read>>(N, N); + current_statement__ = 5; auto a4 = in__.template read< std::vector>>(N, N, N); + current_statement__ = 6; auto a3 = in__.template read< std::vector>>(N, N); + current_statement__ = 7; auto a2 = in__.template read< std::vector>>(N, N); + current_statement__ = 8; auto a1 = in__.template read>(N); + current_statement__ = 9; auto y8 = in__.template read< std::vector>>>(N, N, N, N); + current_statement__ = 10; auto y7 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 11; auto y6 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 12; auto y5 = in__.template read>>(N, N); + current_statement__ = 13; auto y4 = in__.template read< std::vector>>(N, N, N); + current_statement__ = 14; auto y3 = in__.template read< std::vector>>(N, N); + current_statement__ = 15; auto y2 = in__.template read< std::vector>>(N, N); + current_statement__ = 16; auto y1 = in__.template read>(N); { current_statement__ = 17; @@ -33398,53 +33669,69 @@ class reduce_sum_m2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto a8 = in__.template read< std::vector>>>(N, N, N, N); + current_statement__ = 2; auto a7 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 3; auto a6 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 4; auto a5 = in__.template read>>(N, N); + current_statement__ = 5; auto a4 = in__.template read< std::vector>>(N, N, N); + current_statement__ = 6; auto a3 = in__.template read< std::vector>>(N, N); + current_statement__ = 7; auto a2 = in__.template read< std::vector>>(N, N); + current_statement__ = 8; auto a1 = in__.template read>(N); + current_statement__ = 9; auto y8 = in__.template read< std::vector>>>(N, N, N, N); + current_statement__ = 10; auto y7 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 11; auto y6 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 12; auto y5 = in__.template read>>(N, N); + current_statement__ = 13; auto y4 = in__.template read< std::vector>>(N, N, N); + current_statement__ = 14; auto y3 = in__.template read< std::vector>>(N, N); + current_statement__ = 15; auto y2 = in__.template read< std::vector>>(N, N); + current_statement__ = 16; auto y1 = in__.template read>(N); { current_statement__ = 17; @@ -33537,53 +33824,69 @@ class reduce_sum_m2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto a8 = in__.template read< std::vector>>>(N, N, N, N); + current_statement__ = 2; auto a7 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 3; auto a6 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 4; auto a5 = in__.template read>>(N, N); + current_statement__ = 5; auto a4 = in__.template read< std::vector>>(N, N, N); + current_statement__ = 6; auto a3 = in__.template read< std::vector>>(N, N); + current_statement__ = 7; auto a2 = in__.template read< std::vector>>(N, N); + current_statement__ = 8; auto a1 = in__.template read>(N); + current_statement__ = 9; auto y8 = in__.template read< std::vector>>>(N, N, N, N); + current_statement__ = 10; auto y7 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 11; auto y6 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 12; auto y5 = in__.template read>>(N, N); + current_statement__ = 13; auto y4 = in__.template read< std::vector>>(N, N, N); + current_statement__ = 14; auto y3 = in__.template read< std::vector>>(N, N); + current_statement__ = 15; auto y2 = in__.template read< std::vector>>(N, N); + current_statement__ = 16; auto y1 = in__.template read>(N); current_statement__ = 1; for (int sym1__ = 1; sym1__ <= N; ++sym1__) { @@ -37884,35 +38187,48 @@ class reduce_sum_m3_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y1 = in__.template read>(N); + current_statement__ = 2; auto y2 = in__.template read< std::vector>>(N, N); + current_statement__ = 3; auto y3 = in__.template read< std::vector>>(N, N); + current_statement__ = 4; auto y4 = in__.template read< std::vector>>(N, N, N); + current_statement__ = 5; auto y5 = in__.template read>>(N, N); + current_statement__ = 6; auto y6 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 7; auto y7 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 8; auto y8 = in__.template read< std::vector>>>(N, N, N, N); + current_statement__ = 9; auto y9 = in__.template read(); + current_statement__ = 10; auto y10 = in__.template read>(N); + current_statement__ = 11; auto y11 = in__.template read>(N); + current_statement__ = 12; auto y12 = in__.template read>(N, N); + current_statement__ = 13; auto y17 = in__.template read< std::vector>>>(N, N, N); @@ -38032,35 +38348,48 @@ class reduce_sum_m3_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y1 = in__.template read>(N); + current_statement__ = 2; auto y2 = in__.template read< std::vector>>(N, N); + current_statement__ = 3; auto y3 = in__.template read< std::vector>>(N, N); + current_statement__ = 4; auto y4 = in__.template read< std::vector>>(N, N, N); + current_statement__ = 5; auto y5 = in__.template read>>(N, N); + current_statement__ = 6; auto y6 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 7; auto y7 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 8; auto y8 = in__.template read< std::vector>>>(N, N, N, N); + current_statement__ = 9; auto y9 = in__.template read(); + current_statement__ = 10; auto y10 = in__.template read>(N); + current_statement__ = 11; auto y11 = in__.template read>(N); + current_statement__ = 12; auto y12 = in__.template read>(N, N); + current_statement__ = 13; auto y17 = in__.template read< std::vector>>>(N, N, N); @@ -38191,35 +38520,48 @@ class reduce_sum_m3_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y1 = in__.template read>(N); + current_statement__ = 2; auto y2 = in__.template read< std::vector>>(N, N); + current_statement__ = 3; auto y3 = in__.template read< std::vector>>(N, N); + current_statement__ = 4; auto y4 = in__.template read< std::vector>>(N, N, N); + current_statement__ = 5; auto y5 = in__.template read>>(N, N); + current_statement__ = 6; auto y6 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 7; auto y7 = in__.template read< std::vector>>>(N, N, N); + current_statement__ = 8; auto y8 = in__.template read< std::vector>>>(N, N, N, N); + current_statement__ = 9; auto y9 = in__.template read(); + current_statement__ = 10; auto y10 = in__.template read>(N); + current_statement__ = 11; auto y11 = in__.template read>(N); + current_statement__ = 12; auto y12 = in__.template read>(N, N); + current_statement__ = 13; auto y17 = in__.template read< std::vector>>>(N, N, N); @@ -39377,6 +39719,7 @@ class reject_exit_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto x = in__.template read(); { current_statement__ = 2; @@ -39432,6 +39775,7 @@ class reject_exit_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto x = in__.template read(); { current_statement__ = 2; @@ -39498,6 +39842,7 @@ class reject_exit_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto x = in__.template read(); out__.write(x); if (stan::math::logical_negation( @@ -39859,6 +40204,7 @@ class return_position_types_model final : public model_base_crtp(); { std::vector z = @@ -39906,6 +40252,7 @@ class return_position_types_model final : public model_base_crtp(); { std::vector z = @@ -39964,6 +40311,7 @@ class return_position_types_model final : public model_base_crtp(); out__.write(a); if (stan::math::logical_negation( @@ -40747,45 +41095,79 @@ class shadowing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto e = in__.template read(); + current_statement__ = 2; auto pi = in__.template read(); + current_statement__ = 3; auto log2 = in__.template read(); + current_statement__ = 4; auto log10 = in__.template read(); + current_statement__ = 5; auto sqrt2 = in__.template read(); + current_statement__ = 6; auto not_a_number = in__.template read(); + current_statement__ = 7; auto positive_infinity = in__.template read(); + current_statement__ = 8; auto negative_infinity = in__.template read(); + current_statement__ = 9; auto machine_precision = in__.template read(); + current_statement__ = 10; auto inv_logit = in__.template read(); + current_statement__ = 11; auto logit = in__.template read(); + current_statement__ = 12; auto num_elements = in__.template read(); + current_statement__ = 13; auto pow = in__.template read(); + current_statement__ = 14; auto add = in__.template read(); + current_statement__ = 15; auto sub = in__.template read(); + current_statement__ = 16; auto multiply = in__.template read(); + current_statement__ = 17; auto lchoose = in__.template read(); + current_statement__ = 18; auto binomial_coefficient_log = in__.template read(); + current_statement__ = 19; auto read_constrain_lb = in__.template read_constrain_lb(0, lp__); + current_statement__ = 20; auto read = in__.template read(); + current_statement__ = 21; auto validate_non_negative_index = in__.template read(); + current_statement__ = 22; auto length = in__.template read(); + current_statement__ = 23; auto validate_positive_index = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, 5); + current_statement__ = 24; auto profile_map = in__.template read(); + current_statement__ = 25; auto assign = in__.template read(); + current_statement__ = 26; auto rvalue = in__.template read(); + current_statement__ = 27; auto stan_print = in__.template read(); + current_statement__ = 28; auto model_base_crtp = in__.template read(); + current_statement__ = 29; auto index_uni = in__.template read(); + current_statement__ = 30; auto bernoulli_logit_glm_lpmf = in__.template read(); + current_statement__ = 31; auto reduce_sum = in__.template read(); + current_statement__ = 32; auto segment = in__.template read>(4); + current_statement__ = 33; auto ode_bdf = in__.template read(); + current_statement__ = 34; auto ode_bdf_tol = in__.template read(); local_scalar_t__ mu = DUMMY_VAR__; current_statement__ = 38; @@ -40863,45 +41245,79 @@ class shadowing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto e = in__.template read(); + current_statement__ = 2; auto pi = in__.template read(); + current_statement__ = 3; auto log2 = in__.template read(); + current_statement__ = 4; auto log10 = in__.template read(); + current_statement__ = 5; auto sqrt2 = in__.template read(); + current_statement__ = 6; auto not_a_number = in__.template read(); + current_statement__ = 7; auto positive_infinity = in__.template read(); + current_statement__ = 8; auto negative_infinity = in__.template read(); + current_statement__ = 9; auto machine_precision = in__.template read(); + current_statement__ = 10; auto inv_logit = in__.template read(); + current_statement__ = 11; auto logit = in__.template read(); + current_statement__ = 12; auto num_elements = in__.template read(); + current_statement__ = 13; auto pow = in__.template read(); + current_statement__ = 14; auto add = in__.template read(); + current_statement__ = 15; auto sub = in__.template read(); + current_statement__ = 16; auto multiply = in__.template read(); + current_statement__ = 17; auto lchoose = in__.template read(); + current_statement__ = 18; auto binomial_coefficient_log = in__.template read(); + current_statement__ = 19; auto read_constrain_lb = in__.template read_constrain_lb(0, lp__); + current_statement__ = 20; auto read = in__.template read(); + current_statement__ = 21; auto validate_non_negative_index = in__.template read(); + current_statement__ = 22; auto length = in__.template read(); + current_statement__ = 23; auto validate_positive_index = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, 5); + current_statement__ = 24; auto profile_map = in__.template read(); + current_statement__ = 25; auto assign = in__.template read(); + current_statement__ = 26; auto rvalue = in__.template read(); + current_statement__ = 27; auto stan_print = in__.template read(); + current_statement__ = 28; auto model_base_crtp = in__.template read(); + current_statement__ = 29; auto index_uni = in__.template read(); + current_statement__ = 30; auto bernoulli_logit_glm_lpmf = in__.template read(); + current_statement__ = 31; auto reduce_sum = in__.template read(); + current_statement__ = 32; auto segment = in__.template read>(4); + current_statement__ = 33; auto ode_bdf = in__.template read(); + current_statement__ = 34; auto ode_bdf_tol = in__.template read(); local_scalar_t__ mu = DUMMY_VAR__; current_statement__ = 38; @@ -40990,45 +41406,79 @@ class shadowing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto e = in__.template read(); + current_statement__ = 2; auto pi = in__.template read(); + current_statement__ = 3; auto log2 = in__.template read(); + current_statement__ = 4; auto log10 = in__.template read(); + current_statement__ = 5; auto sqrt2 = in__.template read(); + current_statement__ = 6; auto not_a_number = in__.template read(); + current_statement__ = 7; auto positive_infinity = in__.template read(); + current_statement__ = 8; auto negative_infinity = in__.template read(); + current_statement__ = 9; auto machine_precision = in__.template read(); + current_statement__ = 10; auto inv_logit = in__.template read(); + current_statement__ = 11; auto logit = in__.template read(); + current_statement__ = 12; auto num_elements = in__.template read(); + current_statement__ = 13; auto pow = in__.template read(); + current_statement__ = 14; auto add = in__.template read(); + current_statement__ = 15; auto sub = in__.template read(); + current_statement__ = 16; auto multiply = in__.template read(); + current_statement__ = 17; auto lchoose = in__.template read(); + current_statement__ = 18; auto binomial_coefficient_log = in__.template read(); + current_statement__ = 19; auto read_constrain_lb = in__.template read_constrain_lb(0, lp__); + current_statement__ = 20; auto read = in__.template read(); + current_statement__ = 21; auto validate_non_negative_index = in__.template read(); + current_statement__ = 22; auto length = in__.template read(); + current_statement__ = 23; auto validate_positive_index = in__.template read_constrain_simplex< Eigen::Matrix, jacobian__>(lp__, 5); + current_statement__ = 24; auto profile_map = in__.template read(); + current_statement__ = 25; auto assign = in__.template read(); + current_statement__ = 26; auto rvalue = in__.template read(); + current_statement__ = 27; auto stan_print = in__.template read(); + current_statement__ = 28; auto model_base_crtp = in__.template read(); + current_statement__ = 29; auto index_uni = in__.template read(); + current_statement__ = 30; auto bernoulli_logit_glm_lpmf = in__.template read(); + current_statement__ = 31; auto reduce_sum = in__.template read(); + current_statement__ = 32; auto segment = in__.template read>(4); + current_statement__ = 33; auto ode_bdf = in__.template read(); + current_statement__ = 34; auto ode_bdf_tol = in__.template read(); double mu = std::numeric_limits::quiet_NaN(); std::vector> called = @@ -42390,6 +42840,7 @@ class tilde_block_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto x = in__.template read_constrain_lb(0, lp__); @@ -42449,6 +42900,7 @@ class tilde_block_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto x = in__.template read_constrain_lb(0, lp__); @@ -42519,6 +42971,7 @@ class tilde_block_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto x = in__.template read_constrain_lb(0, lp__); @@ -43177,6 +43630,7 @@ class transform_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_1 = in__.template read_constrain_lb, jacobian__>(stan::model::rvalue(ds, "ds", @@ -43186,6 +43640,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_1", p_1, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 2; auto p_2 = in__.template read_constrain_ub, jacobian__>(stan::model::rvalue(ds, "ds", @@ -43195,6 +43650,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_2", p_2, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 3; auto p_3 = in__.template read_constrain_lub, jacobian__>(stan::model::rvalue(ds, "ds", @@ -43209,6 +43665,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_3", p_3, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 4; auto p_4 = in__.template read_constrain_lub, jacobian__>(0, @@ -43218,6 +43675,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_4", p_4, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 5; auto p_5 = in__.template read_constrain_lub, jacobian__>(stan::model::rvalue(ds, "ds", @@ -43227,6 +43685,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_5", p_5, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 6; auto p_6 = in__.template read_constrain_offset_multiplier< std::vector, @@ -43237,6 +43696,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_6", p_6, "offset", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 7; auto p_7 = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(0, @@ -43246,6 +43706,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_7", p_7, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 8; auto p_8 = in__.template read_constrain_offset_multiplier< std::vector, @@ -43261,6 +43722,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_8", p_8, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 9; auto p_9 = in__.template read_constrain_lub< std::vector>, @@ -43269,12 +43731,14 @@ class transform_model final : public model_base_crtp { current_statement__ = 9; stan::math::check_matching_dims("constraint", "p_9", p_9, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1))); + current_statement__ = 10; auto p_10 = in__.template read_constrain_lub< std::vector>>, jacobian__>(0, ds, lp__, n, m, k); current_statement__ = 10; stan::math::check_matching_dims("constraint", "p_10", p_10, "upper", ds); + current_statement__ = 11; auto pv_1 = in__.template read_constrain_lub< Eigen::Matrix, @@ -43290,6 +43754,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "pv_1", pv_1, "upper", stan::model::rvalue(dv, "dv", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 12; auto pv_2 = in__.template read_constrain_lb< std::vector>, @@ -43298,12 +43763,14 @@ class transform_model final : public model_base_crtp { current_statement__ = 12; stan::math::check_matching_dims("constraint", "pv_2", pv_2, "lower", stan::model::rvalue(dv, "dv", stan::model::index_uni(1))); + current_statement__ = 13; auto pv_3 = in__.template read_constrain_ub< std::vector>>, jacobian__>(dv, lp__, n, m, k); current_statement__ = 13; stan::math::check_matching_dims("constraint", "pv_3", pv_3, "upper", dv); + current_statement__ = 14; auto pr_1 = in__.template read_constrain_lub< Eigen::Matrix, @@ -43319,6 +43786,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "pr_1", pr_1, "upper", stan::model::rvalue(dr, "dr", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 15; auto pr_2 = in__.template read_constrain_lb< std::vector>, @@ -43327,12 +43795,14 @@ class transform_model final : public model_base_crtp { current_statement__ = 15; stan::math::check_matching_dims("constraint", "pr_2", pr_2, "lower", stan::model::rvalue(dr, "dr", stan::model::index_uni(1))); + current_statement__ = 16; auto pr_3 = in__.template read_constrain_ub< std::vector>>, jacobian__>(dr, lp__, n, m, k); current_statement__ = 16; stan::math::check_matching_dims("constraint", "pr_3", pr_3, "upper", dr); + current_statement__ = 17; auto pm_1 = in__.template read_constrain_lb< Eigen::Matrix, @@ -43341,6 +43811,7 @@ class transform_model final : public model_base_crtp { current_statement__ = 17; stan::math::check_matching_dims("constraint", "pm_1", pm_1, "lower", stan::model::rvalue(dm, "dm", stan::model::index_uni(1))); + current_statement__ = 18; auto pm_2 = in__.template read_constrain_ub< std::vector>, jacobian__>(dm, @@ -43609,6 +44080,7 @@ class transform_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_1 = in__.template read_constrain_lb, jacobian__>(stan::model::rvalue(ds, "ds", @@ -43618,6 +44090,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_1", p_1, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 2; auto p_2 = in__.template read_constrain_ub, jacobian__>(stan::model::rvalue(ds, "ds", @@ -43627,6 +44100,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_2", p_2, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 3; auto p_3 = in__.template read_constrain_lub, jacobian__>(stan::model::rvalue(ds, "ds", @@ -43641,6 +44115,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_3", p_3, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 4; auto p_4 = in__.template read_constrain_lub, jacobian__>(0, @@ -43650,6 +44125,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_4", p_4, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 5; auto p_5 = in__.template read_constrain_lub, jacobian__>(stan::model::rvalue(ds, "ds", @@ -43659,6 +44135,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_5", p_5, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 6; auto p_6 = in__.template read_constrain_offset_multiplier< std::vector, @@ -43669,6 +44146,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_6", p_6, "offset", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 7; auto p_7 = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(0, @@ -43678,6 +44156,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_7", p_7, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 8; auto p_8 = in__.template read_constrain_offset_multiplier< std::vector, @@ -43693,6 +44172,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_8", p_8, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 9; auto p_9 = in__.template read_constrain_lub< std::vector>, @@ -43701,12 +44181,14 @@ class transform_model final : public model_base_crtp { current_statement__ = 9; stan::math::check_matching_dims("constraint", "p_9", p_9, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1))); + current_statement__ = 10; auto p_10 = in__.template read_constrain_lub< std::vector>>, jacobian__>(0, ds, lp__, n, m, k); current_statement__ = 10; stan::math::check_matching_dims("constraint", "p_10", p_10, "upper", ds); + current_statement__ = 11; auto pv_1 = in__.template read_constrain_lub< Eigen::Matrix, @@ -43722,6 +44204,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "pv_1", pv_1, "upper", stan::model::rvalue(dv, "dv", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 12; auto pv_2 = in__.template read_constrain_lb< std::vector>, @@ -43730,12 +44213,14 @@ class transform_model final : public model_base_crtp { current_statement__ = 12; stan::math::check_matching_dims("constraint", "pv_2", pv_2, "lower", stan::model::rvalue(dv, "dv", stan::model::index_uni(1))); + current_statement__ = 13; auto pv_3 = in__.template read_constrain_ub< std::vector>>, jacobian__>(dv, lp__, n, m, k); current_statement__ = 13; stan::math::check_matching_dims("constraint", "pv_3", pv_3, "upper", dv); + current_statement__ = 14; auto pr_1 = in__.template read_constrain_lub< Eigen::Matrix, @@ -43751,6 +44236,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "pr_1", pr_1, "upper", stan::model::rvalue(dr, "dr", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 15; auto pr_2 = in__.template read_constrain_lb< std::vector>, @@ -43759,12 +44245,14 @@ class transform_model final : public model_base_crtp { current_statement__ = 15; stan::math::check_matching_dims("constraint", "pr_2", pr_2, "lower", stan::model::rvalue(dr, "dr", stan::model::index_uni(1))); + current_statement__ = 16; auto pr_3 = in__.template read_constrain_ub< std::vector>>, jacobian__>(dr, lp__, n, m, k); current_statement__ = 16; stan::math::check_matching_dims("constraint", "pr_3", pr_3, "upper", dr); + current_statement__ = 17; auto pm_1 = in__.template read_constrain_lb< Eigen::Matrix, @@ -43773,6 +44261,7 @@ class transform_model final : public model_base_crtp { current_statement__ = 17; stan::math::check_matching_dims("constraint", "pm_1", pm_1, "lower", stan::model::rvalue(dm, "dm", stan::model::index_uni(1))); + current_statement__ = 18; auto pm_2 = in__.template read_constrain_ub< std::vector>, jacobian__>(dm, @@ -44052,6 +44541,7 @@ class transform_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_1 = in__.template read_constrain_lb, jacobian__>(stan::model::rvalue(ds, "ds", @@ -44061,6 +44551,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_1", p_1, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 2; auto p_2 = in__.template read_constrain_ub, jacobian__>(stan::model::rvalue(ds, "ds", @@ -44070,6 +44561,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_2", p_2, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 3; auto p_3 = in__.template read_constrain_lub, jacobian__>(stan::model::rvalue(ds, "ds", @@ -44084,6 +44576,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_3", p_3, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 4; auto p_4 = in__.template read_constrain_lub, jacobian__>(0, @@ -44093,6 +44586,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_4", p_4, "upper", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 5; auto p_5 = in__.template read_constrain_lub, jacobian__>(stan::model::rvalue(ds, "ds", @@ -44102,6 +44596,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_5", p_5, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 6; auto p_6 = in__.template read_constrain_offset_multiplier< std::vector, @@ -44112,6 +44607,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_6", p_6, "offset", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 7; auto p_7 = in__.template read_constrain_offset_multiplier< std::vector, jacobian__>(0, @@ -44121,6 +44617,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_7", p_7, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(1))); + current_statement__ = 8; auto p_8 = in__.template read_constrain_offset_multiplier< std::vector, @@ -44136,6 +44633,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "p_8", p_8, "multiplier", stan::model::rvalue(ds, "ds", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 9; auto p_9 = in__.template read_constrain_lub< std::vector>, @@ -44144,12 +44642,14 @@ class transform_model final : public model_base_crtp { current_statement__ = 9; stan::math::check_matching_dims("constraint", "p_9", p_9, "lower", stan::model::rvalue(ds, "ds", stan::model::index_uni(1))); + current_statement__ = 10; auto p_10 = in__.template read_constrain_lub< std::vector>>, jacobian__>(0, ds, lp__, n, m, k); current_statement__ = 10; stan::math::check_matching_dims("constraint", "p_10", p_10, "upper", ds); + current_statement__ = 11; auto pv_1 = in__.template read_constrain_lub< Eigen::Matrix, @@ -44165,6 +44665,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "pv_1", pv_1, "upper", stan::model::rvalue(dv, "dv", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 12; auto pv_2 = in__.template read_constrain_lb< std::vector>, @@ -44173,12 +44674,14 @@ class transform_model final : public model_base_crtp { current_statement__ = 12; stan::math::check_matching_dims("constraint", "pv_2", pv_2, "lower", stan::model::rvalue(dv, "dv", stan::model::index_uni(1))); + current_statement__ = 13; auto pv_3 = in__.template read_constrain_ub< std::vector>>, jacobian__>(dv, lp__, n, m, k); current_statement__ = 13; stan::math::check_matching_dims("constraint", "pv_3", pv_3, "upper", dv); + current_statement__ = 14; auto pr_1 = in__.template read_constrain_lub< Eigen::Matrix, @@ -44194,6 +44697,7 @@ class transform_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "pr_1", pr_1, "upper", stan::model::rvalue(dr, "dr", stan::model::index_uni(1), stan::model::index_uni(2))); + current_statement__ = 15; auto pr_2 = in__.template read_constrain_lb< std::vector>, @@ -44202,12 +44706,14 @@ class transform_model final : public model_base_crtp { current_statement__ = 15; stan::math::check_matching_dims("constraint", "pr_2", pr_2, "lower", stan::model::rvalue(dr, "dr", stan::model::index_uni(1))); + current_statement__ = 16; auto pr_3 = in__.template read_constrain_ub< std::vector>>, jacobian__>(dr, lp__, n, m, k); current_statement__ = 16; stan::math::check_matching_dims("constraint", "pr_3", pr_3, "upper", dr); + current_statement__ = 17; auto pm_1 = in__.template read_constrain_lb< Eigen::Matrix, @@ -44216,6 +44722,7 @@ class transform_model final : public model_base_crtp { current_statement__ = 17; stan::math::check_matching_dims("constraint", "pm_1", pm_1, "lower", stan::model::rvalue(dm, "dm", stan::model::index_uni(1))); + current_statement__ = 18; auto pm_2 = in__.template read_constrain_ub< std::vector>, jacobian__>(dm, @@ -45871,7 +46378,9 @@ class truncate_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto m = in__.template read(); + current_statement__ = 2; auto y = in__.template read_constrain_lb(0, lp__); @@ -45987,7 +46496,9 @@ class truncate_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto m = in__.template read(); + current_statement__ = 2; auto y = in__.template read_constrain_lb(0, lp__); @@ -46114,7 +46625,9 @@ class truncate_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto m = in__.template read(); + current_statement__ = 2; auto y = in__.template read_constrain_lb(0, lp__); @@ -46422,6 +46935,7 @@ class udf_tilde_stmt_conflict_model final : public model_base_crtp(); { current_statement__ = 2; @@ -46457,6 +46971,7 @@ class udf_tilde_stmt_conflict_model final : public model_base_crtp(); { current_statement__ = 2; @@ -46503,6 +47018,7 @@ class udf_tilde_stmt_conflict_model final : public model_base_crtp(); out__.write(x); if (stan::math::logical_negation( @@ -46799,6 +47315,7 @@ class user_constrain_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto x = in__.template read_constrain_lb(0, lp__); @@ -46836,6 +47353,7 @@ class user_constrain_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto x = in__.template read_constrain_lb(0, lp__); @@ -46884,6 +47402,7 @@ class user_constrain_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto x = in__.template read_constrain_lb(0, lp__); @@ -47188,7 +47707,9 @@ class variable_named_context_model final : public model_base_crtp(); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb(0, lp__); @@ -47226,7 +47747,9 @@ class variable_named_context_model final : public model_base_crtp(); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb(0, lp__); @@ -47275,7 +47798,9 @@ class variable_named_context_model final : public model_base_crtp(); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb(0, lp__); @@ -47691,12 +48216,16 @@ class vector_truncate_model final : public model_base_crtp(); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto vector_mu = in__.template read>(N); + current_statement__ = 4; auto vector_sigma = in__.template read>(N); { @@ -48206,12 +48735,16 @@ class vector_truncate_model final : public model_base_crtp(); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto vector_mu = in__.template read>(N); + current_statement__ = 4; auto vector_sigma = in__.template read>(N); { @@ -48732,12 +49265,16 @@ class vector_truncate_model final : public model_base_crtp(); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto vector_mu = in__.template read>(N); + current_statement__ = 4; auto vector_sigma = in__.template read>(N); out__.write(mu); diff --git a/test/integration/good/code-gen/expressions/cpp.expected b/test/integration/good/code-gen/expressions/cpp.expected index f1fc09eaf..744f6a771 100644 --- a/test/integration/good/code-gen/expressions/cpp.expected +++ b/test/integration/good/code-gen/expressions/cpp.expected @@ -110,8 +110,11 @@ class operators_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto v = in__.template read>(N); + current_statement__ = 2; auto rv = in__.template read>(N); + current_statement__ = 3; auto A = in__.template read>(N, N); } catch (const std::exception& e) { @@ -144,8 +147,11 @@ class operators_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto v = in__.template read>(N); + current_statement__ = 2; auto rv = in__.template read>(N); + current_statement__ = 3; auto A = in__.template read>(N, N); } catch (const std::exception& e) { @@ -189,8 +195,11 @@ class operators_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto v = in__.template read>(N); + current_statement__ = 2; auto rv = in__.template read>(N); + current_statement__ = 3; auto A = in__.template read>(N, N); out__.write(v); @@ -1175,9 +1184,13 @@ class ternary_if_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto a = in__.template read>(2); + current_statement__ = 2; auto b = in__.template read>(2); + current_statement__ = 3; auto r = in__.template read(); + current_statement__ = 4; auto zp = in__.template read>(); Eigen::Matrix c = Eigen::Matrix::Constant(2, DUMMY_VAR__); @@ -1242,9 +1255,13 @@ class ternary_if_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto a = in__.template read>(2); + current_statement__ = 2; auto b = in__.template read>(2); + current_statement__ = 3; auto r = in__.template read(); + current_statement__ = 4; auto zp = in__.template read>(); Eigen::Matrix c = Eigen::Matrix::Constant(2, DUMMY_VAR__); @@ -1320,9 +1337,13 @@ class ternary_if_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto a = in__.template read>(2); + current_statement__ = 2; auto b = in__.template read>(2); + current_statement__ = 3; auto r = in__.template read(); + current_statement__ = 4; auto zp = in__.template read>(); Eigen::Matrix c = Eigen::Matrix::Constant(2, diff --git a/test/integration/good/code-gen/lir.expected b/test/integration/good/code-gen/lir.expected index 53a0f6fb0..c3d1cc3db 100644 --- a/test/integration/good/code-gen/lir.expected +++ b/test/integration/good/code-gen/lir.expected @@ -6164,12 +6164,14 @@ (Comment "suppress unused var warning") (Expression (Cast Void (Var function__))) (TryCatch - ((VariableDefn + ((Expression (Assign (Var current_statement__) (Literal 1))) + (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_real) (init (Assignment (MethodCall (Var in__) "template read" ((TypeLiteral local_scalar_t__)) ()))))) + (Expression (Assign (Var current_statement__) (Literal 2))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_upper) (init @@ -6177,6 +6179,7 @@ (MethodCall (Var in__) "template read_constrain_lb" ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) ((Var p_real) (Var lp__))))))) + (Expression (Assign (Var current_statement__) (Literal 3))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_lower) (init @@ -6184,6 +6187,7 @@ (MethodCall (Var in__) "template read_constrain_ub" ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) ((Var p_upper) (Var lp__))))))) + (Expression (Assign (Var current_statement__) (Literal 4))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name offset_multiplier) (init @@ -6191,6 +6195,7 @@ (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 1) (Literal 2) (Var lp__) (Literal 5))))))) + (Expression (Assign (Var current_statement__) (Literal 5))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name no_offset_multiplier) (init @@ -6198,6 +6203,7 @@ (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 0) (Literal 2) (Var lp__) (Literal 5))))))) + (Expression (Assign (Var current_statement__) (Literal 6))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name offset_no_multiplier) (init @@ -6205,6 +6211,7 @@ (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 3) (Literal 1) (Var lp__) (Literal 5))))))) + (Expression (Assign (Var current_statement__) (Literal 7))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_real_1d_ar) (init @@ -6212,6 +6219,7 @@ (MethodCall (Var in__) "template read_constrain_lb" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 8))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_real_3d_ar) (init @@ -6220,6 +6228,7 @@ ((StdVector (StdVector (StdVector (TypeLiteral local_scalar_t__)))) (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N) (Var M) (Var K))))))) + (Expression (Assign (Var current_statement__) (Literal 9))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_vec) (init @@ -6228,6 +6237,7 @@ ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 10))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_1d_vec) (init @@ -6235,6 +6245,7 @@ (MethodCall (Var in__) "template read" ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) ((Var N) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 11))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_3d_vec) (init @@ -6244,6 +6255,7 @@ (StdVector (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) ((Var N) (Var M) (Var K) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 12))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_row_vec) (init @@ -6251,6 +6263,7 @@ (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) ((Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 13))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_1d_row_vec) (init @@ -6258,6 +6271,7 @@ (MethodCall (Var in__) "template read" ((StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) ((Var N) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 14))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_3d_row_vec) (init @@ -6267,6 +6281,7 @@ (StdVector (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))))) ((Var N) (Var M) (Var K) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 15))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_mat) (init @@ -6274,6 +6289,7 @@ (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) ((Literal 5) (Literal 4))))))) + (Expression (Assign (Var current_statement__) (Literal 16))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_ar_mat) (init @@ -6284,6 +6300,7 @@ (TemplateType jacobian__)) ((Literal 0) (Literal 1) (Var lp__) (Literal 4) (Literal 5) (Literal 2) (Literal 3))))))) + (Expression (Assign (Var current_statement__) (Literal 17))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_simplex) (init @@ -6292,6 +6309,7 @@ ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) (TemplateType jacobian__)) ((Var lp__) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 18))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_1d_simplex) (init @@ -6300,6 +6318,7 @@ ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) (TemplateType jacobian__)) ((Var lp__) (Var N) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 19))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_3d_simplex) (init @@ -6310,6 +6329,7 @@ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)))) (TemplateType jacobian__)) ((Var lp__) (Var N) (Var M) (Var K) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 20))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_cfcov_54) (init @@ -6318,6 +6338,7 @@ ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) (TemplateType jacobian__)) ((Var lp__) (Literal 5) (Literal 4))))))) + (Expression (Assign (Var current_statement__) (Literal 21))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_cfcov_33) (init @@ -6326,6 +6347,7 @@ ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) (TemplateType jacobian__)) ((Var lp__) (Literal 3) (Literal 3))))))) + (Expression (Assign (Var current_statement__) (Literal 22))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_cfcov_33_ar) (init @@ -6334,6 +6356,7 @@ ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) (TemplateType jacobian__)) ((Var lp__) (Var K) (Literal 3) (Literal 3))))))) + (Expression (Assign (Var current_statement__) (Literal 23))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name x_p) (init @@ -6341,6 +6364,7 @@ (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) ((Literal 2))))))) + (Expression (Assign (Var current_statement__) (Literal 24))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name y_p) (init @@ -7097,12 +7121,14 @@ (Comment "suppress unused var warning") (Expression (Cast Void (Var function__))) (TryCatch - ((VariableDefn + ((Expression (Assign (Var current_statement__) (Literal 1))) + (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_real) (init (Assignment (MethodCall (Var in__) "template read" ((TypeLiteral local_scalar_t__)) ()))))) + (Expression (Assign (Var current_statement__) (Literal 2))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_upper) (init @@ -7110,6 +7136,7 @@ (MethodCall (Var in__) "template read_constrain_lb" ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) ((Var p_real) (Var lp__))))))) + (Expression (Assign (Var current_statement__) (Literal 3))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_lower) (init @@ -7117,6 +7144,7 @@ (MethodCall (Var in__) "template read_constrain_ub" ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) ((Var p_upper) (Var lp__))))))) + (Expression (Assign (Var current_statement__) (Literal 4))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name offset_multiplier) (init @@ -7124,6 +7152,7 @@ (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 1) (Literal 2) (Var lp__) (Literal 5))))))) + (Expression (Assign (Var current_statement__) (Literal 5))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name no_offset_multiplier) (init @@ -7131,6 +7160,7 @@ (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 0) (Literal 2) (Var lp__) (Literal 5))))))) + (Expression (Assign (Var current_statement__) (Literal 6))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name offset_no_multiplier) (init @@ -7138,6 +7168,7 @@ (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 3) (Literal 1) (Var lp__) (Literal 5))))))) + (Expression (Assign (Var current_statement__) (Literal 7))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_real_1d_ar) (init @@ -7145,6 +7176,7 @@ (MethodCall (Var in__) "template read_constrain_lb" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 8))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_real_3d_ar) (init @@ -7153,6 +7185,7 @@ ((StdVector (StdVector (StdVector (TypeLiteral local_scalar_t__)))) (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N) (Var M) (Var K))))))) + (Expression (Assign (Var current_statement__) (Literal 9))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_vec) (init @@ -7161,6 +7194,7 @@ ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 10))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_1d_vec) (init @@ -7168,6 +7202,7 @@ (MethodCall (Var in__) "template read" ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) ((Var N) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 11))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_3d_vec) (init @@ -7177,6 +7212,7 @@ (StdVector (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) ((Var N) (Var M) (Var K) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 12))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_row_vec) (init @@ -7184,6 +7220,7 @@ (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) ((Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 13))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_1d_row_vec) (init @@ -7191,6 +7228,7 @@ (MethodCall (Var in__) "template read" ((StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) ((Var N) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 14))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_3d_row_vec) (init @@ -7200,6 +7238,7 @@ (StdVector (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))))) ((Var N) (Var M) (Var K) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 15))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_mat) (init @@ -7207,6 +7246,7 @@ (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) ((Literal 5) (Literal 4))))))) + (Expression (Assign (Var current_statement__) (Literal 16))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_ar_mat) (init @@ -7217,6 +7257,7 @@ (TemplateType jacobian__)) ((Literal 0) (Literal 1) (Var lp__) (Literal 4) (Literal 5) (Literal 2) (Literal 3))))))) + (Expression (Assign (Var current_statement__) (Literal 17))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_simplex) (init @@ -7225,6 +7266,7 @@ ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) (TemplateType jacobian__)) ((Var lp__) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 18))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_1d_simplex) (init @@ -7233,6 +7275,7 @@ ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) (TemplateType jacobian__)) ((Var lp__) (Var N) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 19))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_3d_simplex) (init @@ -7243,6 +7286,7 @@ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)))) (TemplateType jacobian__)) ((Var lp__) (Var N) (Var M) (Var K) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 20))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_cfcov_54) (init @@ -7251,6 +7295,7 @@ ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) (TemplateType jacobian__)) ((Var lp__) (Literal 5) (Literal 4))))))) + (Expression (Assign (Var current_statement__) (Literal 21))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_cfcov_33) (init @@ -7259,6 +7304,7 @@ ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) (TemplateType jacobian__)) ((Var lp__) (Literal 3) (Literal 3))))))) + (Expression (Assign (Var current_statement__) (Literal 22))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_cfcov_33_ar) (init @@ -7267,6 +7313,7 @@ ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) (TemplateType jacobian__)) ((Var lp__) (Var K) (Literal 3) (Literal 3))))))) + (Expression (Assign (Var current_statement__) (Literal 23))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name x_p) (init @@ -7274,6 +7321,7 @@ (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) ((Literal 2))))))) + (Expression (Assign (Var current_statement__) (Literal 24))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name y_p) (init @@ -8044,12 +8092,14 @@ (Comment "suppress unused var warning") (Expression (Cast Void (Var function__))) (TryCatch - ((VariableDefn + ((Expression (Assign (Var current_statement__) (Literal 1))) + (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_real) (init (Assignment (MethodCall (Var in__) "template read" ((TypeLiteral local_scalar_t__)) ()))))) + (Expression (Assign (Var current_statement__) (Literal 2))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_upper) (init @@ -8057,6 +8107,7 @@ (MethodCall (Var in__) "template read_constrain_lb" ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) ((Var p_real) (Var lp__))))))) + (Expression (Assign (Var current_statement__) (Literal 3))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_lower) (init @@ -8064,6 +8115,7 @@ (MethodCall (Var in__) "template read_constrain_ub" ((TypeLiteral local_scalar_t__) (TemplateType jacobian__)) ((Var p_upper) (Var lp__))))))) + (Expression (Assign (Var current_statement__) (Literal 4))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name offset_multiplier) (init @@ -8071,6 +8123,7 @@ (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 1) (Literal 2) (Var lp__) (Literal 5))))))) + (Expression (Assign (Var current_statement__) (Literal 5))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name no_offset_multiplier) (init @@ -8078,6 +8131,7 @@ (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 0) (Literal 2) (Var lp__) (Literal 5))))))) + (Expression (Assign (Var current_statement__) (Literal 6))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name offset_no_multiplier) (init @@ -8085,6 +8139,7 @@ (MethodCall (Var in__) "template read_constrain_offset_multiplier" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 3) (Literal 1) (Var lp__) (Literal 5))))))) + (Expression (Assign (Var current_statement__) (Literal 7))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_real_1d_ar) (init @@ -8092,6 +8147,7 @@ (MethodCall (Var in__) "template read_constrain_lb" ((StdVector (TypeLiteral local_scalar_t__)) (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 8))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_real_3d_ar) (init @@ -8100,6 +8156,7 @@ ((StdVector (StdVector (StdVector (TypeLiteral local_scalar_t__)))) (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N) (Var M) (Var K))))))) + (Expression (Assign (Var current_statement__) (Literal 9))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_vec) (init @@ -8108,6 +8165,7 @@ ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) (TemplateType jacobian__)) ((Literal 0) (Var lp__) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 10))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_1d_vec) (init @@ -8115,6 +8173,7 @@ (MethodCall (Var in__) "template read" ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))) ((Var N) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 11))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_3d_vec) (init @@ -8124,6 +8183,7 @@ (StdVector (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS))))) ((Var N) (Var M) (Var K) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 12))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_row_vec) (init @@ -8131,6 +8191,7 @@ (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS)) ((Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 13))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_1d_row_vec) (init @@ -8138,6 +8199,7 @@ (MethodCall (Var in__) "template read" ((StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))) ((Var N) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 14))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_3d_row_vec) (init @@ -8147,6 +8209,7 @@ (StdVector (StdVector (Matrix (TypeLiteral local_scalar_t__) 1 -1 AoS))))) ((Var N) (Var M) (Var K) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 15))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_mat) (init @@ -8154,6 +8217,7 @@ (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) ((Literal 5) (Literal 4))))))) + (Expression (Assign (Var current_statement__) (Literal 16))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_ar_mat) (init @@ -8164,6 +8228,7 @@ (TemplateType jacobian__)) ((Literal 0) (Literal 1) (Var lp__) (Literal 4) (Literal 5) (Literal 2) (Literal 3))))))) + (Expression (Assign (Var current_statement__) (Literal 17))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_simplex) (init @@ -8172,6 +8237,7 @@ ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS) (TemplateType jacobian__)) ((Var lp__) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 18))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_1d_simplex) (init @@ -8180,6 +8246,7 @@ ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) (TemplateType jacobian__)) ((Var lp__) (Var N) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 19))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_3d_simplex) (init @@ -8190,6 +8257,7 @@ (StdVector (Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)))) (TemplateType jacobian__)) ((Var lp__) (Var N) (Var M) (Var K) (Var N))))))) + (Expression (Assign (Var current_statement__) (Literal 20))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_cfcov_54) (init @@ -8198,6 +8266,7 @@ ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) (TemplateType jacobian__)) ((Var lp__) (Literal 5) (Literal 4))))))) + (Expression (Assign (Var current_statement__) (Literal 21))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_cfcov_33) (init @@ -8206,6 +8275,7 @@ ((Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS) (TemplateType jacobian__)) ((Var lp__) (Literal 3) (Literal 3))))))) + (Expression (Assign (Var current_statement__) (Literal 22))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name p_cfcov_33_ar) (init @@ -8214,6 +8284,7 @@ ((StdVector (Matrix (TypeLiteral local_scalar_t__) -1 -1 AoS)) (TemplateType jacobian__)) ((Var lp__) (Var K) (Literal 3) (Literal 3))))))) + (Expression (Assign (Var current_statement__) (Literal 23))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name x_p) (init @@ -8221,6 +8292,7 @@ (MethodCall (Var in__) "template read" ((Matrix (TypeLiteral local_scalar_t__) -1 1 AoS)) ((Literal 2))))))) + (Expression (Assign (Var current_statement__) (Literal 24))) (VariableDefn ((static false) (constexpr false) (type_ Auto) (name y_p) (init diff --git a/test/integration/good/code-gen/ode/cpp.expected b/test/integration/good/code-gen/ode/cpp.expected index ddb0b2750..4cc9d5500 100644 --- a/test/integration/good/code-gen/ode/cpp.expected +++ b/test/integration/good/code-gen/ode/cpp.expected @@ -332,9 +332,13 @@ class ode_adjoint_test_model_model final : public model_base_crtp(); + current_statement__ = 2; auto y0 = in__.template read>(N); + current_statement__ = 3; auto t0 = in__.template read(); + current_statement__ = 4; auto times = in__.template read>(N); std::vector> z = std::vector>(M, @@ -394,9 +398,13 @@ class ode_adjoint_test_model_model final : public model_base_crtp(); + current_statement__ = 2; auto y0 = in__.template read>(N); + current_statement__ = 3; auto t0 = in__.template read(); + current_statement__ = 4; auto times = in__.template read>(N); std::vector> z = std::vector>(M, @@ -467,9 +475,13 @@ class ode_adjoint_test_model_model final : public model_base_crtp(); + current_statement__ = 2; auto y0 = in__.template read>(N); + current_statement__ = 3; auto t0 = in__.template read(); + current_statement__ = 4; auto times = in__.template read>(N); std::vector> z = std::vector>(M, @@ -1227,15 +1239,19 @@ class overloaded_ode_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto beta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 2; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto xi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); @@ -1355,15 +1371,19 @@ class overloaded_ode_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto beta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 2; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto xi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); @@ -1494,15 +1514,19 @@ class overloaded_ode_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto beta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 2; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto xi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); diff --git a/test/integration/good/code-gen/opencl/cpp.expected b/test/integration/good/code-gen/opencl/cpp.expected index 2a6e0c81f..512d369fe 100644 --- a/test/integration/good/code-gen/opencl/cpp.expected +++ b/test/integration/good/code-gen/opencl/cpp.expected @@ -933,16 +933,22 @@ class distributions_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_real = in__.template read(); + current_statement__ = 2; auto p_real_array = in__.template read>(d_int); + current_statement__ = 3; auto p_matrix = in__.template read>(d_int, d_int); + current_statement__ = 4; auto p_vector = in__.template read>(d_int); + current_statement__ = 5; auto p_row_vector = in__.template read>(d_int); + current_statement__ = 6; auto y_p = in__.template read(); local_scalar_t__ transformed_param_real = DUMMY_VAR__; current_statement__ = 8; @@ -3974,16 +3980,22 @@ class distributions_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_real = in__.template read(); + current_statement__ = 2; auto p_real_array = in__.template read>(d_int); + current_statement__ = 3; auto p_matrix = in__.template read>(d_int, d_int); + current_statement__ = 4; auto p_vector = in__.template read>(d_int); + current_statement__ = 5; auto p_row_vector = in__.template read>(d_int); + current_statement__ = 6; auto y_p = in__.template read(); local_scalar_t__ transformed_param_real = DUMMY_VAR__; current_statement__ = 8; @@ -7026,16 +7038,22 @@ class distributions_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_real = in__.template read(); + current_statement__ = 2; auto p_real_array = in__.template read>(d_int); + current_statement__ = 3; auto p_matrix = in__.template read>(d_int, d_int); + current_statement__ = 4; auto p_vector = in__.template read>(d_int); + current_statement__ = 5; auto p_row_vector = in__.template read>(d_int); + current_statement__ = 6; auto y_p = in__.template read(); double transformed_param_real = std::numeric_limits::quiet_NaN(); @@ -10597,16 +10615,22 @@ class restricted_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_real = in__.template read(); + current_statement__ = 2; auto p_real_array = in__.template read>(d_int); + current_statement__ = 3; auto p_matrix = in__.template read>(d_int, d_int); + current_statement__ = 4; auto p_vector = in__.template read>(d_int); + current_statement__ = 5; auto p_row_vector = in__.template read>(d_int); + current_statement__ = 6; auto y_p = in__.template read(); local_scalar_t__ transformed_param_real = DUMMY_VAR__; current_statement__ = 8; @@ -10691,16 +10715,22 @@ class restricted_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_real = in__.template read(); + current_statement__ = 2; auto p_real_array = in__.template read>(d_int); + current_statement__ = 3; auto p_matrix = in__.template read>(d_int, d_int); + current_statement__ = 4; auto p_vector = in__.template read>(d_int); + current_statement__ = 5; auto p_row_vector = in__.template read>(d_int); + current_statement__ = 6; auto y_p = in__.template read(); local_scalar_t__ transformed_param_real = DUMMY_VAR__; current_statement__ = 8; @@ -10796,16 +10826,22 @@ class restricted_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto p_real = in__.template read(); + current_statement__ = 2; auto p_real_array = in__.template read>(d_int); + current_statement__ = 3; auto p_matrix = in__.template read>(d_int, d_int); + current_statement__ = 4; auto p_vector = in__.template read>(d_int); + current_statement__ = 5; auto p_row_vector = in__.template read>(d_int); + current_statement__ = 6; auto y_p = in__.template read(); double transformed_param_real = std::numeric_limits::quiet_NaN(); diff --git a/test/integration/good/code-gen/profiling/cpp.expected b/test/integration/good/code-gen/profiling/cpp.expected index eb08a15fd..ab429f09b 100644 --- a/test/integration/good/code-gen/profiling/cpp.expected +++ b/test/integration/good/code-gen/profiling/cpp.expected @@ -144,12 +144,15 @@ class simple_function_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto alpha = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto sigma = in__.template read_constrain_lb(0, lp__); @@ -241,12 +244,15 @@ class simple_function_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto alpha = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto sigma = in__.template read_constrain_lb(0, lp__); @@ -349,12 +355,15 @@ class simple_function_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto alpha = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto sigma = in__.template read_constrain_lb(0, lp__); diff --git a/test/integration/good/compiler-optimizations/cpp.expected b/test/integration/good/compiler-optimizations/cpp.expected index 13e856f06..b17f9b878 100644 --- a/test/integration/good/compiler-optimizations/cpp.expected +++ b/test/integration/good/compiler-optimizations/cpp.expected @@ -705,6 +705,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp lcm_sym20__; Eigen::Matrix lcm_sym19__; Eigen::Matrix lcm_sym18__; + current_statement__ = 1; auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1; @@ -782,6 +783,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp lcm_sym14__; Eigen::Matrix lcm_sym13__; Eigen::Matrix lcm_sym12__; + current_statement__ = 1; auto X_p = in__.template read< stan::math::var_value>>(10, 10); @@ -873,6 +875,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp lcm_sym6__; int lcm_sym5__; int lcm_sym4__; + current_statement__ = 1; auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = @@ -2182,15 +2185,19 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto xi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); @@ -2301,15 +2308,19 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto xi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); @@ -2429,15 +2440,19 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto xi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); @@ -3470,6 +3485,7 @@ class ad_levels_deep_model final : public model_base_crtp try { Eigen::Matrix lcm_sym11__; Eigen::Matrix lcm_sym10__; + current_statement__ = 1; auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = @@ -3515,6 +3531,7 @@ class ad_levels_deep_model final : public model_base_crtp try { Eigen::Matrix lcm_sym9__; Eigen::Matrix lcm_sym8__; + current_statement__ = 1; auto X_p = in__.template read< stan::math::var_value>>(10, 10); @@ -3577,6 +3594,7 @@ class ad_levels_deep_model final : public model_base_crtp Eigen::Matrix lcm_sym6__; int lcm_sym5__; int lcm_sym4__; + current_statement__ = 1; auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = @@ -4557,6 +4575,7 @@ class copy_prop_profile_model final : public model_base_crtp lcm_sym9__; + current_statement__ = 1; auto X = in__.template read>(N, N); { @@ -4626,6 +4645,7 @@ class copy_prop_profile_model final : public model_base_crtp lcm_sym7__; + current_statement__ = 1; auto X = in__.template read>(N, N); { @@ -4706,6 +4726,7 @@ class copy_prop_profile_model final : public model_base_crtp>(N, N); out__.write(X); @@ -5602,9 +5623,11 @@ class copy_fail_model final : public model_base_crtp { int lcm_sym118__; int lcm_sym117__; int lcm_sym116__; + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -6034,9 +6057,11 @@ class copy_fail_model final : public model_base_crtp { int lcm_sym75__; int lcm_sym74__; int lcm_sym73__; + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -6460,9 +6485,11 @@ class copy_fail_model final : public model_base_crtp { int lcm_sym48__; int lcm_sym47__; int lcm_sym46__; + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -7359,38 +7386,54 @@ class dce_fail_model final : public model_base_crtp { int lcm_sym42__; int lcm_sym41__; int lcm_sym40__; + current_statement__ = 1; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 2; auto sigma_age = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto sigma_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto sigma_state = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto sigma_region = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 7; auto b_0 = in__.template read(); + current_statement__ = 8; auto b_female = in__.template read(); + current_statement__ = 9; auto b_black = in__.template read(); + current_statement__ = 10; auto b_female_black = in__.template read(); + current_statement__ = 11; auto b_v_prev = in__.template read(); + current_statement__ = 12; auto b_age = in__.template read>(n_age); + current_statement__ = 13; auto b_edu = in__.template read>(n_edu); + current_statement__ = 14; auto b_region = in__.template read>(n_region); + current_statement__ = 15; auto b_age_edu = in__.template read>(n_age, n_edu); + current_statement__ = 16; auto b_hat = in__.template read>(n_state); { @@ -7617,38 +7660,54 @@ class dce_fail_model final : public model_base_crtp { int lcm_sym20__; int lcm_sym19__; int lcm_sym18__; + current_statement__ = 1; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 2; auto sigma_age = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto sigma_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto sigma_state = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto sigma_region = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 7; auto b_0 = in__.template read(); + current_statement__ = 8; auto b_female = in__.template read(); + current_statement__ = 9; auto b_black = in__.template read(); + current_statement__ = 10; auto b_female_black = in__.template read(); + current_statement__ = 11; auto b_v_prev = in__.template read(); + current_statement__ = 12; auto b_age = in__.template read>(n_age); + current_statement__ = 13; auto b_edu = in__.template read>(n_edu); + current_statement__ = 14; auto b_region = in__.template read>(n_region); + current_statement__ = 15; auto b_age_edu = in__.template read>(n_age, n_edu); + current_statement__ = 16; auto b_hat = in__.template read>(n_state); { @@ -7866,38 +7925,54 @@ class dce_fail_model final : public model_base_crtp { try { int lcm_sym17__; int lcm_sym16__; + current_statement__ = 1; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 2; auto sigma_age = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto sigma_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto sigma_state = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto sigma_region = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 7; auto b_0 = in__.template read(); + current_statement__ = 8; auto b_female = in__.template read(); + current_statement__ = 9; auto b_black = in__.template read(); + current_statement__ = 10; auto b_female_black = in__.template read(); + current_statement__ = 11; auto b_v_prev = in__.template read(); + current_statement__ = 12; auto b_age = in__.template read>(n_age); + current_statement__ = 13; auto b_edu = in__.template read>(n_edu); + current_statement__ = 14; auto b_region = in__.template read>(n_region); + current_statement__ = 15; auto b_age_edu = in__.template read>(n_age, n_edu); + current_statement__ = 16; auto b_hat = in__.template read>(n_state); out__.write(sigma); @@ -9302,12 +9377,15 @@ class expr_prop_fail_model final : public model_base_crtp double lcm_sym14__; double lcm_sym13__; int lcm_sym12__; + current_statement__ = 1; auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); + current_statement__ = 3; auto theta = in__.template read_constrain_lub(0, 1, lp__); @@ -9392,12 +9470,15 @@ class expr_prop_fail_model final : public model_base_crtp double lcm_sym8__; double lcm_sym7__; int lcm_sym6__; + current_statement__ = 1; auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); + current_statement__ = 3; auto theta = in__.template read_constrain_lub(0, 1, lp__); @@ -9489,12 +9570,15 @@ class expr_prop_fail_model final : public model_base_crtp try { int lcm_sym5__; int lcm_sym4__; + current_statement__ = 1; auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); + current_statement__ = 3; auto theta = in__.template read_constrain_lub(0, 1, lp__); @@ -9874,8 +9958,11 @@ class expr_prop_fail2_model final : public model_base_crtp(); + current_statement__ = 2; auto theta = in__.template read>(J); + current_statement__ = 3; auto tau = in__.template read_constrain_lb(0, lp__); @@ -9917,8 +10004,11 @@ class expr_prop_fail2_model final : public model_base_crtp(); + current_statement__ = 2; auto theta = in__.template read>(J); + current_statement__ = 3; auto tau = in__.template read_constrain_lb(0, lp__); @@ -9971,8 +10061,11 @@ class expr_prop_fail2_model final : public model_base_crtp(); + current_statement__ = 2; auto theta = in__.template read>(J); + current_statement__ = 3; auto tau = in__.template read_constrain_lb(0, lp__); @@ -10595,30 +10688,41 @@ class expr_prop_fail3_model final : public model_base_crtp>(n_age); + current_statement__ = 2; auto b = in__.template read>(n_edu); + current_statement__ = 3; auto c = in__.template read>(n_age_edu); + current_statement__ = 4; auto d = in__.template read>(n_state); + current_statement__ = 5; auto e = in__.template read< Eigen::Matrix>(n_region_full); + current_statement__ = 6; auto beta = in__.template read>(5); + current_statement__ = 7; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 9; auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 10; auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 11; auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); @@ -10776,30 +10880,41 @@ class expr_prop_fail3_model final : public model_base_crtp>(n_age); + current_statement__ = 2; auto b = in__.template read>(n_edu); + current_statement__ = 3; auto c = in__.template read>(n_age_edu); + current_statement__ = 4; auto d = in__.template read>(n_state); + current_statement__ = 5; auto e = in__.template read< Eigen::Matrix>(n_region_full); + current_statement__ = 6; auto beta = in__.template read>(5); + current_statement__ = 7; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 9; auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 10; auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 11; auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); @@ -10963,30 +11078,41 @@ class expr_prop_fail3_model final : public model_base_crtp>(n_age); + current_statement__ = 2; auto b = in__.template read>(n_edu); + current_statement__ = 3; auto c = in__.template read>(n_age_edu); + current_statement__ = 4; auto d = in__.template read>(n_state); + current_statement__ = 5; auto e = in__.template read< Eigen::Matrix>(n_region_full); + current_statement__ = 6; auto beta = in__.template read>(5); + current_statement__ = 7; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 9; auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 10; auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 11; auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); @@ -11874,6 +12000,7 @@ class expr_prop_fail4_model final : public model_base_crtp lcm_sym27__; double lcm_sym26__; int lcm_sym31__; + current_statement__ = 1; auto tau_phi = in__.template read_constrain_lb(0, lp__); @@ -11944,6 +12071,7 @@ class expr_prop_fail4_model final : public model_base_crtp lcm_sym20__; double lcm_sym19__; int lcm_sym24__; + current_statement__ = 1; auto tau_phi = in__.template read_constrain_lb(0, lp__); @@ -12033,6 +12161,7 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); @@ -13060,14 +13189,18 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto epsilon = in__.template read>(nind); + current_statement__ = 4; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -13488,14 +13621,18 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto epsilon = in__.template read>(nind); + current_statement__ = 4; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -13910,14 +14047,18 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto epsilon = in__.template read>(nind); + current_statement__ = 4; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -15805,20 +15946,26 @@ class expr_prop_fail6_model final : public model_base_crtp lcm_sym261__; + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto psi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 4; auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); + current_statement__ = 5; auto epsilon = in__.template read>(M); + current_statement__ = 6; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -16725,20 +16872,26 @@ class expr_prop_fail6_model final : public model_base_crtp lcm_sym185__; + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto psi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 4; auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); + current_statement__ = 5; auto epsilon = in__.template read>(M); + current_statement__ = 6; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -17640,20 +17793,26 @@ class expr_prop_fail6_model final : public model_base_crtp lcm_sym128__; + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto psi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 4; auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); + current_statement__ = 5; auto epsilon = in__.template read>(M); + current_statement__ = 6; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -18962,9 +19121,11 @@ class expr_prop_fail7_model final : public model_base_crtp, jacobian__>(lp__, K); + current_statement__ = 2; auto theta = in__.template read_constrain_simplex< std::vector>>, @@ -19141,10 +19302,12 @@ class expr_prop_fail7_model final : public model_base_crtp>, jacobian__>(lp__, K); + current_statement__ = 2; auto theta = in__.template read_constrain_simplex< std::vector>>, @@ -19343,9 +19506,11 @@ class expr_prop_fail7_model final : public model_base_crtp, jacobian__>(lp__, K); + current_statement__ = 2; auto theta = in__.template read_constrain_simplex< std::vector>>, @@ -20084,16 +20249,22 @@ class expr_prop_fail8_model final : public model_base_crtp lcm_sym14__; + current_statement__ = 1; auto beta0 = in__.template read(); + current_statement__ = 2; auto beta1 = in__.template read(); + current_statement__ = 3; auto tau_theta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto tau_phi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto theta_std = in__.template read>(N); + current_statement__ = 6; auto phi_std_raw = in__.template read>(N); local_scalar_t__ sigma_phi = DUMMY_VAR__; @@ -20150,17 +20321,23 @@ class expr_prop_fail8_model final : public model_base_crtp lcm_sym11__; + current_statement__ = 1; auto beta0 = in__.template read(); + current_statement__ = 2; auto beta1 = in__.template read(); + current_statement__ = 3; auto tau_theta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto tau_phi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto theta_std = in__.template read< stan::math::var_value>>(N); + current_statement__ = 6; auto phi_std_raw = in__.template read< stan::math::var_value>>(N); @@ -20232,16 +20409,22 @@ class expr_prop_fail8_model final : public model_base_crtp lcm_sym9__; int lcm_sym8__; int lcm_sym7__; + current_statement__ = 1; auto beta0 = in__.template read(); + current_statement__ = 2; auto beta1 = in__.template read(); + current_statement__ = 3; auto tau_theta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto tau_phi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto theta_std = in__.template read>(N); + current_statement__ = 6; auto phi_std_raw = in__.template read>(N); double sigma_phi = std::numeric_limits::quiet_NaN(); @@ -21261,9 +21444,11 @@ class fails_test_model final : public model_base_crtp { int lcm_sym118__; int lcm_sym117__; int lcm_sym116__; + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -21693,9 +21878,11 @@ class fails_test_model final : public model_base_crtp { int lcm_sym75__; int lcm_sym74__; int lcm_sym73__; + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -22119,9 +22306,11 @@ class fails_test_model final : public model_base_crtp { int lcm_sym48__; int lcm_sym47__; int lcm_sym46__; + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -24141,7 +24330,9 @@ class initialize_SoA_model final : public model_base_crtp double lcm_sym19__; double lcm_sym18__; double lcm_sym17__; + current_statement__ = 1; auto y = in__.template read>(3); + current_statement__ = 2; auto arr_vec = in__.template read< std::vector>>(3, 4); @@ -24207,9 +24398,11 @@ class initialize_SoA_model final : public model_base_crtp double lcm_sym15__; double lcm_sym14__; double lcm_sym13__; + current_statement__ = 1; auto y = in__.template read< stan::math::var_value>>(3); + current_statement__ = 2; auto arr_vec = in__.template read< std::vector>>>(3, @@ -24292,7 +24485,9 @@ class initialize_SoA_model final : public model_base_crtp double lcm_sym8__; int lcm_sym7__; int lcm_sym6__; + current_statement__ = 1; auto y = in__.template read>(3); + current_statement__ = 2; auto arr_vec = in__.template read< std::vector>>(3, 4); @@ -24876,8 +25071,10 @@ class inline_functions_varmat_model final : public model_base_crtp>(5); + current_statement__ = 2; auto p_multi_ret_vec = in__.template read>(5); Eigen::Matrix tp_single_ret_vec = @@ -24945,9 +25142,11 @@ class inline_functions_varmat_model final : public model_base_crtp>>(5); + current_statement__ = 2; auto p_multi_ret_vec = in__.template read< stan::math::var_value>>(5); @@ -25035,8 +25234,10 @@ class inline_functions_varmat_model final : public model_base_crtp>(5); + current_statement__ = 2; auto p_multi_ret_vec = in__.template read>(5); Eigen::Matrix tp_single_ret_vec = @@ -25546,6 +25747,7 @@ class inline_tdata_model final : public model_base_crtp { (void) function__; try { double lcm_sym5__; + current_statement__ = 1; auto alpha = in__.template read(); { current_statement__ = 2; @@ -25583,6 +25785,7 @@ class inline_tdata_model final : public model_base_crtp { (void) function__; try { double lcm_sym4__; + current_statement__ = 1; auto alpha = in__.template read(); { current_statement__ = 2; @@ -25632,6 +25835,7 @@ class inline_tdata_model final : public model_base_crtp { try { int lcm_sym3__; int lcm_sym2__; + current_statement__ = 1; auto alpha = in__.template read(); out__.write(alpha); if (stan::math::logical_negation( @@ -27638,12 +27842,15 @@ class inlining_fail2_model final : public model_base_crtp int lcm_sym280__; int lcm_sym279__; int lcm_sym278__; + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -27652,6 +27859,7 @@ class inlining_fail2_model final : public model_base_crtp auto epsilon = in__.template read< Eigen::Matrix>(lcm_sym341__); + current_statement__ = 5; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -28529,12 +28737,15 @@ class inlining_fail2_model final : public model_base_crtp int lcm_sym210__; int lcm_sym209__; int lcm_sym208__; + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -28543,6 +28754,7 @@ class inlining_fail2_model final : public model_base_crtp auto epsilon = in__.template read< Eigen::Matrix>(lcm_sym271__); + current_statement__ = 5; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -29426,12 +29638,15 @@ class inlining_fail2_model final : public model_base_crtp int lcm_sym144__; int lcm_sym143__; Eigen::Matrix lcm_sym142__; + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -29440,6 +29655,7 @@ class inlining_fail2_model final : public model_base_crtp auto epsilon = in__.template read< Eigen::Matrix>(lcm_sym200__); + current_statement__ = 5; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -30854,6 +31070,7 @@ class lcm_experiment2_model final : public model_base_crtp(); { local_scalar_t__ y = DUMMY_VAR__; @@ -30902,6 +31119,7 @@ class lcm_experiment2_model final : public model_base_crtp(); { local_scalar_t__ y = DUMMY_VAR__; @@ -30960,6 +31178,7 @@ class lcm_experiment2_model final : public model_base_crtp(); out__.write(x); if (stan::math::logical_negation( @@ -31250,6 +31469,7 @@ class lcm_fails_model final : public model_base_crtp { (void) function__; try { double lcm_sym4__; + current_statement__ = 1; auto theta = in__.template read>(J); { current_statement__ = 2; @@ -31286,6 +31506,7 @@ class lcm_fails_model final : public model_base_crtp { (void) function__; try { double lcm_sym3__; + current_statement__ = 1; auto theta = in__.template read>(J); { current_statement__ = 2; @@ -31334,6 +31555,7 @@ class lcm_fails_model final : public model_base_crtp { try { int lcm_sym2__; int lcm_sym1__; + current_statement__ = 1; auto theta = in__.template read>(J); out__.write(theta); if (stan::math::logical_negation( @@ -32111,9 +32333,11 @@ class lcm_fails2_model final : public model_base_crtp { int lcm_sym106__; int lcm_sym105__; int lcm_sym104__; + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); @@ -32520,9 +32744,11 @@ class lcm_fails2_model final : public model_base_crtp { int lcm_sym67__; int lcm_sym66__; int lcm_sym65__; + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); @@ -32923,9 +33149,11 @@ class lcm_fails2_model final : public model_base_crtp { int lcm_sym44__; int lcm_sym43__; int lcm_sym42__; + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); @@ -33610,6 +33838,7 @@ class lupdf_inlining_model final : public model_base_crtp local_scalar_t__ lcm_sym43__; local_scalar_t__ lcm_sym42__; local_scalar_t__ lcm_sym41__; + current_statement__ = 1; auto mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; double inline_foo_lpdf_return_sym23__; @@ -33665,6 +33894,7 @@ class lupdf_inlining_model final : public model_base_crtp local_scalar_t__ lcm_sym40__; local_scalar_t__ lcm_sym39__; local_scalar_t__ lcm_sym38__; + current_statement__ = 1; auto mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; double inline_foo_lpdf_return_sym16__; @@ -33733,6 +33963,7 @@ class lupdf_inlining_model final : public model_base_crtp double lcm_sym35__; int lcm_sym34__; int lcm_sym33__; + current_statement__ = 1; auto mu = in__.template read(); double tp = std::numeric_limits::quiet_NaN(); out__.write(mu); @@ -34276,9 +34507,13 @@ class off_dce_model final : public model_base_crtp { double lcm_sym33__; double lcm_sym32__; int lcm_sym31__; + current_statement__ = 1; auto alpha_occ = in__.template read(); + current_statement__ = 2; auto beta_occ = in__.template read(); + current_statement__ = 3; auto alpha_p = in__.template read(); + current_statement__ = 4; auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); @@ -34393,9 +34628,13 @@ class off_dce_model final : public model_base_crtp { double lcm_sym22__; double lcm_sym21__; int lcm_sym20__; + current_statement__ = 1; auto alpha_occ = in__.template read(); + current_statement__ = 2; auto beta_occ = in__.template read(); + current_statement__ = 3; auto alpha_p = in__.template read(); + current_statement__ = 4; auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); @@ -34529,9 +34768,13 @@ class off_dce_model final : public model_base_crtp { int lcm_sym3__; double lcm_sym2__; double lcm_sym1__; + current_statement__ = 1; auto alpha_occ = in__.template read(); + current_statement__ = 2; auto beta_occ = in__.template read(); + current_statement__ = 3; auto alpha_p = in__.template read(); + current_statement__ = 4; auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, @@ -35206,17 +35449,25 @@ class off_small_model final : public model_base_crtp { double lcm_sym27__; Eigen::Matrix lcm_sym26__; int lcm_sym25__; + current_statement__ = 1; auto beta = in__.template read(); + current_statement__ = 2; auto eta1 = in__.template read>(J); + current_statement__ = 3; auto eta2 = in__.template read>(J); + current_statement__ = 4; auto mu_a1 = in__.template read(); + current_statement__ = 5; auto mu_a2 = in__.template read(); + current_statement__ = 6; auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 7; auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -35328,17 +35579,25 @@ class off_small_model final : public model_base_crtp { double lcm_sym16__; Eigen::Matrix lcm_sym15__; int lcm_sym14__; + current_statement__ = 1; auto beta = in__.template read(); + current_statement__ = 2; auto eta1 = in__.template read>(J); + current_statement__ = 3; auto eta2 = in__.template read>(J); + current_statement__ = 4; auto mu_a1 = in__.template read(); + current_statement__ = 5; auto mu_a2 = in__.template read(); + current_statement__ = 6; auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 7; auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -35457,17 +35716,25 @@ class off_small_model final : public model_base_crtp { int lcm_sym9__; int lcm_sym8__; int lcm_sym7__; + current_statement__ = 1; auto beta = in__.template read(); + current_statement__ = 2; auto eta1 = in__.template read>(J); + current_statement__ = 3; auto eta2 = in__.template read>(J); + current_statement__ = 4; auto mu_a1 = in__.template read(); + current_statement__ = 5; auto mu_a2 = in__.template read(); + current_statement__ = 6; auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 7; auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -36202,12 +36469,17 @@ class optimizations_model final : public model_base_crtp { int lcm_sym94__; int lcm_sym93__; int lcm_sym92__; + current_statement__ = 1; auto theta = in__.template read(); + current_statement__ = 2; auto phi = in__.template read(); + current_statement__ = 3; auto x_matrix = in__.template read>(3, 2); + current_statement__ = 4; auto x_vector = in__.template read>(2); + current_statement__ = 5; auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); @@ -36731,14 +37003,19 @@ class optimizations_model final : public model_base_crtp { int lcm_sym70__; int lcm_sym69__; int lcm_sym68__; + current_statement__ = 1; auto theta = in__.template read(); + current_statement__ = 2; auto phi = in__.template read(); + current_statement__ = 3; auto x_matrix = in__.template read< stan::math::var_value>>(3, 2); + current_statement__ = 4; auto x_vector = in__.template read< stan::math::var_value>>(2); + current_statement__ = 5; auto x_cov = in__.template read_constrain_cov_matrix< stan::math::var_value>, @@ -37252,12 +37529,17 @@ class optimizations_model final : public model_base_crtp { try { int lcm_sym67__; int lcm_sym66__; + current_statement__ = 1; auto theta = in__.template read(); + current_statement__ = 2; auto phi = in__.template read(); + current_statement__ = 3; auto x_matrix = in__.template read>(3, 2); + current_statement__ = 4; auto x_vector = in__.template read>(2); + current_statement__ = 5; auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); @@ -39061,13 +39343,18 @@ class partial_eval_model final : public model_base_crtp { double lcm_sym24__; double lcm_sym23__; int lcm_sym22__; + current_statement__ = 1; auto a = in__.template read>(n_pair); + current_statement__ = 2; auto beta = in__.template read>(2); + current_statement__ = 3; auto mu_a = in__.template read(); + current_statement__ = 4; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 5; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -39170,13 +39457,18 @@ class partial_eval_model final : public model_base_crtp { double lcm_sym14__; double lcm_sym13__; int lcm_sym12__; + current_statement__ = 1; auto a = in__.template read>(n_pair); + current_statement__ = 2; auto beta = in__.template read>(2); + current_statement__ = 3; auto mu_a = in__.template read(); + current_statement__ = 4; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 5; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -39285,13 +39577,18 @@ class partial_eval_model final : public model_base_crtp { int lcm_sym9__; int lcm_sym8__; int lcm_sym7__; + current_statement__ = 1; auto a = in__.template read>(n_pair); + current_statement__ = 2; auto beta = in__.template read>(2); + current_statement__ = 3; auto mu_a = in__.template read(); + current_statement__ = 4; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 5; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -41006,8 +41303,10 @@ class partial_eval_multiply_model final : public model_base_crtp lcm_sym13__; Eigen::Matrix lcm_sym12__; double lcm_sym11__; + current_statement__ = 1; auto m2 = in__.template read>(10, 10); + current_statement__ = 2; auto m3 = in__.template read>(10, 10); { @@ -41066,9 +41365,11 @@ class partial_eval_multiply_model final : public model_base_crtp lcm_sym10__; Eigen::Matrix lcm_sym9__; double lcm_sym8__; + current_statement__ = 1; auto m2 = in__.template read< stan::math::var_value>>(10, 10); + current_statement__ = 2; auto m3 = in__.template read< stan::math::var_value>>(10, 10); @@ -41138,8 +41439,10 @@ class partial_eval_multiply_model final : public model_base_crtp>(10, 10); + current_statement__ = 2; auto m3 = in__.template read>(10, 10); out__.write(m2); @@ -43172,13 +43475,19 @@ class stalled1_failure_model final : public model_base_crtp(); + current_statement__ = 2; auto alpha1 = in__.template read(); + current_statement__ = 3; auto alpha2 = in__.template read(); + current_statement__ = 4; auto alpha12 = in__.template read(); + current_statement__ = 5; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto b = in__.template read< std::vector>>(I, 8); @@ -43289,13 +43598,19 @@ class stalled1_failure_model final : public model_base_crtp(); + current_statement__ = 2; auto alpha1 = in__.template read(); + current_statement__ = 3; auto alpha2 = in__.template read(); + current_statement__ = 4; auto alpha12 = in__.template read(); + current_statement__ = 5; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto b = in__.template read< std::vector>>>(I, @@ -43415,13 +43730,19 @@ class stalled1_failure_model final : public model_base_crtp(); + current_statement__ = 2; auto alpha1 = in__.template read(); + current_statement__ = 3; auto alpha2 = in__.template read(); + current_statement__ = 4; auto alpha12 = in__.template read(); + current_statement__ = 5; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto b = in__.template read< std::vector>>(I, 8); @@ -44046,6 +44367,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); std::vector> local = std::vector>(2, @@ -44168,6 +44490,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); std::vector>> local = std::vector>(2, @@ -44306,6 +44629,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); std::vector> local = std::vector>(2, @@ -44732,6 +45056,7 @@ class unenforce_initialize_model final : public model_base_crtp(); double no_init = std::numeric_limits::quiet_NaN(); local_scalar_t__ init_from_param; @@ -44821,6 +45146,7 @@ class unenforce_initialize_model final : public model_base_crtp(); double no_init = std::numeric_limits::quiet_NaN(); local_scalar_t__ init_from_param; @@ -44923,6 +45249,7 @@ class unenforce_initialize_model final : public model_base_crtp(); double no_init = std::numeric_limits::quiet_NaN(); double init_from_param = std::numeric_limits::quiet_NaN(); diff --git a/test/integration/good/compiler-optimizations/cppO0.expected b/test/integration/good/compiler-optimizations/cppO0.expected index f2a03f0b1..5c5f990e9 100644 --- a/test/integration/good/compiler-optimizations/cppO0.expected +++ b/test/integration/good/compiler-optimizations/cppO0.expected @@ -101,6 +101,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp>(10, 10); Eigen::Matrix X_tp1 = @@ -169,6 +170,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp>(10, 10); Eigen::Matrix X_tp1 = @@ -248,6 +250,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp>(10, 10); Eigen::Matrix X_tp1 = @@ -945,15 +948,19 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto xi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); @@ -1041,15 +1048,19 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto xi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); @@ -1148,15 +1159,19 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto xi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); @@ -1549,6 +1564,7 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = @@ -1593,6 +1609,7 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = @@ -1648,6 +1665,7 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = @@ -2032,6 +2050,7 @@ class copy_prop_profile_model final : public model_base_crtp>(N, N); { @@ -2103,6 +2122,7 @@ class copy_prop_profile_model final : public model_base_crtp>(N, N); { @@ -2185,6 +2205,7 @@ class copy_prop_profile_model final : public model_base_crtp>(N, N); out__.write(X); @@ -2845,9 +2866,11 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -2972,9 +2995,11 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -3110,9 +3135,11 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -3767,38 +3794,54 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 2; auto sigma_age = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto sigma_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto sigma_state = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto sigma_region = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 7; auto b_0 = in__.template read(); + current_statement__ = 8; auto b_female = in__.template read(); + current_statement__ = 9; auto b_black = in__.template read(); + current_statement__ = 10; auto b_female_black = in__.template read(); + current_statement__ = 11; auto b_v_prev = in__.template read(); + current_statement__ = 12; auto b_age = in__.template read>(n_age); + current_statement__ = 13; auto b_edu = in__.template read>(n_edu); + current_statement__ = 14; auto b_region = in__.template read>(n_region); + current_statement__ = 15; auto b_age_edu = in__.template read>(n_age, n_edu); + current_statement__ = 16; auto b_hat = in__.template read>(n_state); { @@ -3924,38 +3967,54 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 2; auto sigma_age = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto sigma_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto sigma_state = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto sigma_region = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 7; auto b_0 = in__.template read(); + current_statement__ = 8; auto b_female = in__.template read(); + current_statement__ = 9; auto b_black = in__.template read(); + current_statement__ = 10; auto b_female_black = in__.template read(); + current_statement__ = 11; auto b_v_prev = in__.template read(); + current_statement__ = 12; auto b_age = in__.template read>(n_age); + current_statement__ = 13; auto b_edu = in__.template read>(n_edu); + current_statement__ = 14; auto b_region = in__.template read>(n_region); + current_statement__ = 15; auto b_age_edu = in__.template read>(n_age, n_edu); + current_statement__ = 16; auto b_hat = in__.template read>(n_state); { @@ -4092,38 +4151,54 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 2; auto sigma_age = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto sigma_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto sigma_state = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto sigma_region = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 7; auto b_0 = in__.template read(); + current_statement__ = 8; auto b_female = in__.template read(); + current_statement__ = 9; auto b_black = in__.template read(); + current_statement__ = 10; auto b_female_black = in__.template read(); + current_statement__ = 11; auto b_v_prev = in__.template read(); + current_statement__ = 12; auto b_age = in__.template read>(n_age); + current_statement__ = 13; auto b_edu = in__.template read>(n_edu); + current_statement__ = 14; auto b_region = in__.template read>(n_region); + current_statement__ = 15; auto b_age_edu = in__.template read>(n_age, n_edu); + current_statement__ = 16; auto b_hat = in__.template read>(n_state); out__.write(sigma); @@ -5445,12 +5520,15 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); + current_statement__ = 3; auto theta = in__.template read_constrain_lub(0, 1, lp__); @@ -5511,12 +5589,15 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); + current_statement__ = 3; auto theta = in__.template read_constrain_lub(0, 1, lp__); @@ -5588,12 +5669,15 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); + current_statement__ = 3; auto theta = in__.template read_constrain_lub(0, 1, lp__); @@ -5963,8 +6047,11 @@ class expr_prop_fail2_model final : public model_base_crtp(); + current_statement__ = 2; auto theta = in__.template read>(J); + current_statement__ = 3; auto tau = in__.template read_constrain_lb(0, lp__); @@ -6004,8 +6091,11 @@ class expr_prop_fail2_model final : public model_base_crtp(); + current_statement__ = 2; auto theta = in__.template read>(J); + current_statement__ = 3; auto tau = in__.template read_constrain_lb(0, lp__); @@ -6056,8 +6146,11 @@ class expr_prop_fail2_model final : public model_base_crtp(); + current_statement__ = 2; auto theta = in__.template read>(J); + current_statement__ = 3; auto tau = in__.template read_constrain_lb(0, lp__); @@ -6640,30 +6733,41 @@ class expr_prop_fail3_model final : public model_base_crtp>(n_age); + current_statement__ = 2; auto b = in__.template read>(n_edu); + current_statement__ = 3; auto c = in__.template read>(n_age_edu); + current_statement__ = 4; auto d = in__.template read>(n_state); + current_statement__ = 5; auto e = in__.template read< Eigen::Matrix>(n_region_full); + current_statement__ = 6; auto beta = in__.template read>(5); + current_statement__ = 7; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 9; auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 10; auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 11; auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); @@ -6751,30 +6855,41 @@ class expr_prop_fail3_model final : public model_base_crtp>(n_age); + current_statement__ = 2; auto b = in__.template read>(n_edu); + current_statement__ = 3; auto c = in__.template read>(n_age_edu); + current_statement__ = 4; auto d = in__.template read>(n_state); + current_statement__ = 5; auto e = in__.template read< Eigen::Matrix>(n_region_full); + current_statement__ = 6; auto beta = in__.template read>(5); + current_statement__ = 7; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 9; auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 10; auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 11; auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); @@ -6873,30 +6988,41 @@ class expr_prop_fail3_model final : public model_base_crtp>(n_age); + current_statement__ = 2; auto b = in__.template read>(n_edu); + current_statement__ = 3; auto c = in__.template read>(n_age_edu); + current_statement__ = 4; auto d = in__.template read>(n_state); + current_statement__ = 5; auto e = in__.template read< Eigen::Matrix>(n_region_full); + current_statement__ = 6; auto beta = in__.template read>(5); + current_statement__ = 7; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 9; auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 10; auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 11; auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); @@ -7640,9 +7766,11 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto phi_std_raw = in__.template read< Eigen::Matrix>(phi_std_raw_1dim__); @@ -7704,9 +7832,11 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto phi_std_raw = in__.template read< Eigen::Matrix>(phi_std_raw_1dim__); @@ -7779,9 +7909,11 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto phi_std_raw = in__.template read< Eigen::Matrix>(phi_std_raw_1dim__); @@ -8589,14 +8721,18 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto epsilon = in__.template read>(nind); + current_statement__ = 4; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -8724,14 +8860,18 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto epsilon = in__.template read>(nind); + current_statement__ = 4; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -8870,14 +9010,18 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto epsilon = in__.template read>(nind); + current_statement__ = 4; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -10048,20 +10192,26 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto psi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 4; auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); + current_statement__ = 5; auto epsilon = in__.template read>(M); + current_statement__ = 6; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -10178,20 +10328,26 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto psi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 4; auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); + current_statement__ = 5; auto epsilon = in__.template read>(M); + current_statement__ = 6; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -10319,20 +10475,26 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto psi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 4; auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); + current_statement__ = 5; auto epsilon = in__.template read>(M); + current_statement__ = 6; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -11213,9 +11375,11 @@ class expr_prop_fail7_model final : public model_base_crtp, jacobian__>(lp__, K); + current_statement__ = 2; auto theta = in__.template read_constrain_simplex< std::vector>>, @@ -11294,9 +11458,11 @@ class expr_prop_fail7_model final : public model_base_crtp, jacobian__>(lp__, K); + current_statement__ = 2; auto theta = in__.template read_constrain_simplex< std::vector>>, @@ -11386,9 +11552,11 @@ class expr_prop_fail7_model final : public model_base_crtp, jacobian__>(lp__, K); + current_statement__ = 2; auto theta = in__.template read_constrain_simplex< std::vector>>, @@ -11918,16 +12086,22 @@ class expr_prop_fail8_model final : public model_base_crtp(); + current_statement__ = 2; auto beta1 = in__.template read(); + current_statement__ = 3; auto tau_theta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto tau_phi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto theta_std = in__.template read>(N); + current_statement__ = 6; auto phi_std_raw = in__.template read>(N); local_scalar_t__ sigma_phi = DUMMY_VAR__; @@ -11981,16 +12155,22 @@ class expr_prop_fail8_model final : public model_base_crtp(); + current_statement__ = 2; auto beta1 = in__.template read(); + current_statement__ = 3; auto tau_theta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto tau_phi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto theta_std = in__.template read>(N); + current_statement__ = 6; auto phi_std_raw = in__.template read>(N); local_scalar_t__ sigma_phi = DUMMY_VAR__; @@ -12055,16 +12235,22 @@ class expr_prop_fail8_model final : public model_base_crtp(); + current_statement__ = 2; auto beta1 = in__.template read(); + current_statement__ = 3; auto tau_theta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto tau_phi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto theta_std = in__.template read>(N); + current_statement__ = 6; auto phi_std_raw = in__.template read>(N); double sigma_phi = std::numeric_limits::quiet_NaN(); @@ -12852,9 +13038,11 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -12979,9 +13167,11 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -13117,9 +13307,11 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -14736,7 +14928,9 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y = in__.template read>(3); + current_statement__ = 2; auto arr_vec = in__.template read< std::vector>>(3, 4); @@ -14787,7 +14981,9 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y = in__.template read>(3); + current_statement__ = 2; auto arr_vec = in__.template read< std::vector>>(3, 4); @@ -14849,7 +15045,9 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y = in__.template read>(3); + current_statement__ = 2; auto arr_vec = in__.template read< std::vector>>(3, 4); @@ -15298,8 +15496,10 @@ class inline_functions_varmat_model final : public model_base_crtp>(5); + current_statement__ = 2; auto p_multi_ret_vec = in__.template read>(5); Eigen::Matrix tp_single_ret_vec = @@ -15344,8 +15544,10 @@ class inline_functions_varmat_model final : public model_base_crtp>(5); + current_statement__ = 2; auto p_multi_ret_vec = in__.template read>(5); Eigen::Matrix tp_single_ret_vec = @@ -15401,8 +15603,10 @@ class inline_functions_varmat_model final : public model_base_crtp>(5); + current_statement__ = 2; auto p_multi_ret_vec = in__.template read>(5); Eigen::Matrix tp_single_ret_vec = @@ -15833,6 +16037,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read(); { current_statement__ = 2; @@ -15869,6 +16074,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read(); { current_statement__ = 2; @@ -15916,6 +16122,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read(); out__.write(alpha); if (stan::math::logical_negation( @@ -17357,19 +17564,24 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); + current_statement__ = 4; auto epsilon = in__.template read< Eigen::Matrix>(epsilon_1dim__); + current_statement__ = 5; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -17449,19 +17661,24 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); + current_statement__ = 4; auto epsilon = in__.template read< Eigen::Matrix>(epsilon_1dim__); + current_statement__ = 5; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -17552,19 +17769,24 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); + current_statement__ = 4; auto epsilon = in__.template read< Eigen::Matrix>(epsilon_1dim__); + current_statement__ = 5; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -18581,6 +18803,7 @@ class lcm_experiment2_model final : public model_base_crtp(); { local_scalar_t__ y = DUMMY_VAR__; @@ -18629,6 +18852,7 @@ class lcm_experiment2_model final : public model_base_crtp(); { local_scalar_t__ y = DUMMY_VAR__; @@ -18688,6 +18912,7 @@ class lcm_experiment2_model final : public model_base_crtp(); out__.write(x); if (stan::math::logical_negation( @@ -18977,6 +19202,7 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto theta = in__.template read>(J); { current_statement__ = 2; @@ -19012,6 +19238,7 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto theta = in__.template read>(J); { current_statement__ = 2; @@ -19058,6 +19285,7 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto theta = in__.template read>(J); out__.write(theta); if (stan::math::logical_negation( @@ -19650,9 +19878,11 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); @@ -19772,9 +20002,11 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); @@ -19905,9 +20137,11 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); @@ -20396,6 +20630,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; current_statement__ = 2; @@ -20436,6 +20671,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; current_statement__ = 2; @@ -20487,6 +20723,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read(); double tp = std::numeric_limits::quiet_NaN(); out__.write(mu); @@ -20955,9 +21192,13 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha_occ = in__.template read(); + current_statement__ = 2; auto beta_occ = in__.template read(); + current_statement__ = 3; auto alpha_p = in__.template read(); + current_statement__ = 4; auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); @@ -21032,9 +21273,13 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha_occ = in__.template read(); + current_statement__ = 2; auto beta_occ = in__.template read(); + current_statement__ = 3; auto alpha_p = in__.template read(); + current_statement__ = 4; auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); @@ -21120,9 +21365,13 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha_occ = in__.template read(); + current_statement__ = 2; auto beta_occ = in__.template read(); + current_statement__ = 3; auto alpha_p = in__.template read(); + current_statement__ = 4; auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, @@ -21717,17 +21966,25 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto beta = in__.template read(); + current_statement__ = 2; auto eta1 = in__.template read>(J); + current_statement__ = 3; auto eta2 = in__.template read>(J); + current_statement__ = 4; auto mu_a1 = in__.template read(); + current_statement__ = 5; auto mu_a2 = in__.template read(); + current_statement__ = 6; auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 7; auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -21807,17 +22064,25 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto beta = in__.template read(); + current_statement__ = 2; auto eta1 = in__.template read>(J); + current_statement__ = 3; auto eta2 = in__.template read>(J); + current_statement__ = 4; auto mu_a1 = in__.template read(); + current_statement__ = 5; auto mu_a2 = in__.template read(); + current_statement__ = 6; auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 7; auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -21908,17 +22173,25 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto beta = in__.template read(); + current_statement__ = 2; auto eta1 = in__.template read>(J); + current_statement__ = 3; auto eta2 = in__.template read>(J); + current_statement__ = 4; auto mu_a1 = in__.template read(); + current_statement__ = 5; auto mu_a2 = in__.template read(); + current_statement__ = 6; auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 7; auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -22634,12 +22907,17 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto theta = in__.template read(); + current_statement__ = 2; auto phi = in__.template read(); + current_statement__ = 3; auto x_matrix = in__.template read>(3, 2); + current_statement__ = 4; auto x_vector = in__.template read>(2); + current_statement__ = 5; auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); @@ -22919,12 +23197,17 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto theta = in__.template read(); + current_statement__ = 2; auto phi = in__.template read(); + current_statement__ = 3; auto x_matrix = in__.template read>(3, 2); + current_statement__ = 4; auto x_vector = in__.template read>(2); + current_statement__ = 5; auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); @@ -23215,12 +23498,17 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto theta = in__.template read(); + current_statement__ = 2; auto phi = in__.template read(); + current_statement__ = 3; auto x_matrix = in__.template read>(3, 2); + current_statement__ = 4; auto x_vector = in__.template read>(2); + current_statement__ = 5; auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); @@ -24898,13 +25186,18 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto a = in__.template read>(n_pair); + current_statement__ = 2; auto beta = in__.template read>(2); + current_statement__ = 3; auto mu_a = in__.template read(); + current_statement__ = 4; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 5; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -24978,13 +25271,18 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto a = in__.template read>(n_pair); + current_statement__ = 2; auto beta = in__.template read>(2); + current_statement__ = 3; auto mu_a = in__.template read(); + current_statement__ = 4; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 5; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -25069,13 +25367,18 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto a = in__.template read>(n_pair); + current_statement__ = 2; auto beta = in__.template read>(2); + current_statement__ = 3; auto mu_a = in__.template read(); + current_statement__ = 4; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 5; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -25554,8 +25857,10 @@ class partial_eval_multiply_model final : public model_base_crtp>(10, 10); + current_statement__ = 2; auto m3 = in__.template read>(10, 10); { @@ -25618,8 +25923,10 @@ class partial_eval_multiply_model final : public model_base_crtp>(10, 10); + current_statement__ = 2; auto m3 = in__.template read>(10, 10); { @@ -25693,8 +26000,10 @@ class partial_eval_multiply_model final : public model_base_crtp>(10, 10); + current_statement__ = 2; auto m3 = in__.template read>(10, 10); out__.write(m2); @@ -26497,13 +26806,19 @@ class stalled1_failure_model final : public model_base_crtp(); + current_statement__ = 2; auto alpha1 = in__.template read(); + current_statement__ = 3; auto alpha2 = in__.template read(); + current_statement__ = 4; auto alpha12 = in__.template read(); + current_statement__ = 5; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto b = in__.template read< std::vector>>(I, K); @@ -26574,13 +26889,19 @@ class stalled1_failure_model final : public model_base_crtp(); + current_statement__ = 2; auto alpha1 = in__.template read(); + current_statement__ = 3; auto alpha2 = in__.template read(); + current_statement__ = 4; auto alpha12 = in__.template read(); + current_statement__ = 5; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto b = in__.template read< std::vector>>(I, K); @@ -26662,13 +26983,19 @@ class stalled1_failure_model final : public model_base_crtp(); + current_statement__ = 2; auto alpha1 = in__.template read(); + current_statement__ = 3; auto alpha2 = in__.template read(); + current_statement__ = 4; auto alpha12 = in__.template read(); + current_statement__ = 5; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto b = in__.template read< std::vector>>(I, K); @@ -27088,6 +27415,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); std::vector> local = std::vector>(2, @@ -27139,6 +27467,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); std::vector> local = std::vector>(2, @@ -27201,6 +27530,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); std::vector> local = std::vector>(2, @@ -27523,6 +27853,7 @@ class unenforce_initialize_model final : public model_base_crtp(); local_scalar_t__ no_init = DUMMY_VAR__; local_scalar_t__ init_from_param = DUMMY_VAR__; @@ -27576,6 +27907,7 @@ class unenforce_initialize_model final : public model_base_crtp(); local_scalar_t__ no_init = DUMMY_VAR__; local_scalar_t__ init_from_param = DUMMY_VAR__; @@ -27640,6 +27972,7 @@ class unenforce_initialize_model final : public model_base_crtp(); double no_init = std::numeric_limits::quiet_NaN(); double init_from_param = std::numeric_limits::quiet_NaN(); diff --git a/test/integration/good/compiler-optimizations/cppO1.expected b/test/integration/good/compiler-optimizations/cppO1.expected index 59c8759cd..94dcb6fc4 100644 --- a/test/integration/good/compiler-optimizations/cppO1.expected +++ b/test/integration/good/compiler-optimizations/cppO1.expected @@ -101,6 +101,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp>(10, 10); Eigen::Matrix X_tp1; @@ -162,6 +163,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp>>(10, 10); @@ -235,6 +237,7 @@ class ad_level_deep_dependence_model final : public model_base_crtp>(10, 10); Eigen::Matrix X_tp1 = @@ -931,15 +934,19 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto xi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); @@ -1027,15 +1034,19 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto xi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); @@ -1134,15 +1145,19 @@ class ad_level_failing_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto gamma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto xi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto delta = in__.template read_constrain_lb(0, lp__); @@ -1535,6 +1550,7 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1; @@ -1577,6 +1593,7 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto X_p = in__.template read< stan::math::var_value>>(10, 10); @@ -1631,6 +1648,7 @@ class ad_levels_deep_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto X_p = in__.template read>(10, 10); Eigen::Matrix X_tp1 = @@ -2014,6 +2032,7 @@ class copy_prop_profile_model final : public model_base_crtp>(N, N); { @@ -2083,6 +2102,7 @@ class copy_prop_profile_model final : public model_base_crtp>(N, N); { @@ -2163,6 +2183,7 @@ class copy_prop_profile_model final : public model_base_crtp>(N, N); out__.write(X); @@ -2821,9 +2842,11 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -3007,9 +3030,11 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -3204,9 +3229,11 @@ class copy_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -3917,38 +3944,54 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 2; auto sigma_age = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto sigma_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto sigma_state = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto sigma_region = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 7; auto b_0 = in__.template read(); + current_statement__ = 8; auto b_female = in__.template read(); + current_statement__ = 9; auto b_black = in__.template read(); + current_statement__ = 10; auto b_female_black = in__.template read(); + current_statement__ = 11; auto b_v_prev = in__.template read(); + current_statement__ = 12; auto b_age = in__.template read>(n_age); + current_statement__ = 13; auto b_edu = in__.template read>(n_edu); + current_statement__ = 14; auto b_region = in__.template read>(n_region); + current_statement__ = 15; auto b_age_edu = in__.template read>(n_age, n_edu); + current_statement__ = 16; auto b_hat = in__.template read>(n_state); { @@ -4078,38 +4121,54 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 2; auto sigma_age = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto sigma_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto sigma_state = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto sigma_region = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 7; auto b_0 = in__.template read(); + current_statement__ = 8; auto b_female = in__.template read(); + current_statement__ = 9; auto b_black = in__.template read(); + current_statement__ = 10; auto b_female_black = in__.template read(); + current_statement__ = 11; auto b_v_prev = in__.template read(); + current_statement__ = 12; auto b_age = in__.template read>(n_age); + current_statement__ = 13; auto b_edu = in__.template read>(n_edu); + current_statement__ = 14; auto b_region = in__.template read>(n_region); + current_statement__ = 15; auto b_age_edu = in__.template read>(n_age, n_edu); + current_statement__ = 16; auto b_hat = in__.template read>(n_state); { @@ -4250,38 +4309,54 @@ class dce_fail_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto sigma = in__.template read_constrain_lb(0, lp__); + current_statement__ = 2; auto sigma_age = in__.template read_constrain_lb(0, lp__); + current_statement__ = 3; auto sigma_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto sigma_state = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto sigma_region = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto sigma_age_edu = in__.template read_constrain_lb(0, lp__); + current_statement__ = 7; auto b_0 = in__.template read(); + current_statement__ = 8; auto b_female = in__.template read(); + current_statement__ = 9; auto b_black = in__.template read(); + current_statement__ = 10; auto b_female_black = in__.template read(); + current_statement__ = 11; auto b_v_prev = in__.template read(); + current_statement__ = 12; auto b_age = in__.template read>(n_age); + current_statement__ = 13; auto b_edu = in__.template read>(n_edu); + current_statement__ = 14; auto b_region = in__.template read>(n_region); + current_statement__ = 15; auto b_age_edu = in__.template read>(n_age, n_edu); + current_statement__ = 16; auto b_hat = in__.template read>(n_state); out__.write(sigma); @@ -5597,12 +5672,15 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); + current_statement__ = 3; auto theta = in__.template read_constrain_lub(0, 1, lp__); @@ -5663,12 +5741,15 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); + current_statement__ = 3; auto theta = in__.template read_constrain_lub(0, 1, lp__); @@ -5740,12 +5821,15 @@ class expr_prop_fail_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, 2); + current_statement__ = 2; auto sigma = in__.template read_constrain_lb, jacobian__>(0, lp__, 2); + current_statement__ = 3; auto theta = in__.template read_constrain_lub(0, 1, lp__); @@ -6113,8 +6197,11 @@ class expr_prop_fail2_model final : public model_base_crtp(); + current_statement__ = 2; auto theta = in__.template read>(J); + current_statement__ = 3; auto tau = in__.template read_constrain_lb(0, lp__); @@ -6154,8 +6241,11 @@ class expr_prop_fail2_model final : public model_base_crtp(); + current_statement__ = 2; auto theta = in__.template read>(J); + current_statement__ = 3; auto tau = in__.template read_constrain_lb(0, lp__); @@ -6206,8 +6296,11 @@ class expr_prop_fail2_model final : public model_base_crtp(); + current_statement__ = 2; auto theta = in__.template read>(J); + current_statement__ = 3; auto tau = in__.template read_constrain_lb(0, lp__); @@ -6789,30 +6882,41 @@ class expr_prop_fail3_model final : public model_base_crtp>(n_age); + current_statement__ = 2; auto b = in__.template read>(n_edu); + current_statement__ = 3; auto c = in__.template read>(n_age_edu); + current_statement__ = 4; auto d = in__.template read>(n_state); + current_statement__ = 5; auto e = in__.template read< Eigen::Matrix>(n_region_full); + current_statement__ = 6; auto beta = in__.template read>(5); + current_statement__ = 7; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 9; auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 10; auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 11; auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); @@ -6911,30 +7015,41 @@ class expr_prop_fail3_model final : public model_base_crtp>(n_age); + current_statement__ = 2; auto b = in__.template read>(n_edu); + current_statement__ = 3; auto c = in__.template read>(n_age_edu); + current_statement__ = 4; auto d = in__.template read>(n_state); + current_statement__ = 5; auto e = in__.template read< Eigen::Matrix>(n_region_full); + current_statement__ = 6; auto beta = in__.template read>(5); + current_statement__ = 7; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 9; auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 10; auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 11; auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); @@ -7044,30 +7159,41 @@ class expr_prop_fail3_model final : public model_base_crtp>(n_age); + current_statement__ = 2; auto b = in__.template read>(n_edu); + current_statement__ = 3; auto c = in__.template read>(n_age_edu); + current_statement__ = 4; auto d = in__.template read>(n_state); + current_statement__ = 5; auto e = in__.template read< Eigen::Matrix>(n_region_full); + current_statement__ = 6; auto beta = in__.template read>(5); + current_statement__ = 7; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_b = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 9; auto sigma_c = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 10; auto sigma_d = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 11; auto sigma_e = in__.template read_constrain_lub(0, 100, lp__); @@ -7814,9 +7940,11 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto phi_std_raw = in__.template read< Eigen::Matrix>(phi_std_raw_1dim__); @@ -7878,9 +8006,11 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto phi_std_raw = in__.template read< stan::math::var_value>>(phi_std_raw_1dim__); @@ -7955,9 +8085,11 @@ class expr_prop_fail4_model final : public model_base_crtp(0, lp__); + current_statement__ = 2; auto phi_std_raw = in__.template read< Eigen::Matrix>(phi_std_raw_1dim__); @@ -8760,14 +8892,18 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto epsilon = in__.template read>(nind); + current_statement__ = 4; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -8956,14 +9092,18 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto epsilon = in__.template read>(nind); + current_statement__ = 4; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -9163,14 +9303,18 @@ class expr_prop_fail5_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto epsilon = in__.template read>(nind); + current_statement__ = 4; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -10395,20 +10539,26 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto psi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 4; auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); + current_statement__ = 5; auto epsilon = in__.template read>(M); + current_statement__ = 6; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -10834,20 +10984,26 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto psi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 4; auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); + current_statement__ = 5; auto epsilon = in__.template read>(M); + current_statement__ = 6; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -11284,20 +11440,26 @@ class expr_prop_fail6_model final : public model_base_crtp(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto psi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 4; auto beta = in__.template read_constrain_lb, jacobian__>(0, lp__, n_occasions); + current_statement__ = 5; auto epsilon = in__.template read>(M); + current_statement__ = 6; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -12263,9 +12425,11 @@ class expr_prop_fail7_model final : public model_base_crtp, jacobian__>(lp__, K); + current_statement__ = 2; auto theta = in__.template read_constrain_simplex< std::vector>>, @@ -12343,10 +12507,12 @@ class expr_prop_fail7_model final : public model_base_crtp>, jacobian__>(lp__, K); + current_statement__ = 2; auto theta = in__.template read_constrain_simplex< std::vector>>, @@ -12435,9 +12601,11 @@ class expr_prop_fail7_model final : public model_base_crtp, jacobian__>(lp__, K); + current_statement__ = 2; auto theta = in__.template read_constrain_simplex< std::vector>>, @@ -12964,16 +13132,22 @@ class expr_prop_fail8_model final : public model_base_crtp(); + current_statement__ = 2; auto beta1 = in__.template read(); + current_statement__ = 3; auto tau_theta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto tau_phi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto theta_std = in__.template read>(N); + current_statement__ = 6; auto phi_std_raw = in__.template read>(N); local_scalar_t__ sigma_phi; @@ -13027,17 +13201,23 @@ class expr_prop_fail8_model final : public model_base_crtp(); + current_statement__ = 2; auto beta1 = in__.template read(); + current_statement__ = 3; auto tau_theta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto tau_phi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto theta_std = in__.template read< stan::math::var_value>>(N); + current_statement__ = 6; auto phi_std_raw = in__.template read< stan::math::var_value>>(N); @@ -13105,16 +13285,22 @@ class expr_prop_fail8_model final : public model_base_crtp(); + current_statement__ = 2; auto beta1 = in__.template read(); + current_statement__ = 3; auto tau_theta = in__.template read_constrain_lb(0, lp__); + current_statement__ = 4; auto tau_phi = in__.template read_constrain_lb(0, lp__); + current_statement__ = 5; auto theta_std = in__.template read>(N); + current_statement__ = 6; auto phi_std_raw = in__.template read>(N); double sigma_phi = std::numeric_limits::quiet_NaN(); @@ -13900,9 +14086,11 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -14086,9 +14274,11 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -14283,9 +14473,11 @@ class fails_test_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto beta = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, @@ -16022,7 +16214,9 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y = in__.template read>(3); + current_statement__ = 2; auto arr_vec = in__.template read< std::vector>>(3, 4); @@ -16072,9 +16266,11 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y = in__.template read< stan::math::var_value>>(3); + current_statement__ = 2; auto arr_vec = in__.template read< std::vector>>>(3, @@ -16136,7 +16332,9 @@ class initialize_SoA_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto y = in__.template read>(3); + current_statement__ = 2; auto arr_vec = in__.template read< std::vector>>(3, 4); @@ -16583,8 +16781,10 @@ class inline_functions_varmat_model final : public model_base_crtp>(5); + current_statement__ = 2; auto p_multi_ret_vec = in__.template read>(5); Eigen::Matrix tp_single_ret_vec = @@ -16651,9 +16851,11 @@ class inline_functions_varmat_model final : public model_base_crtp>>(5); + current_statement__ = 2; auto p_multi_ret_vec = in__.template read< stan::math::var_value>>(5); @@ -16739,8 +16941,10 @@ class inline_functions_varmat_model final : public model_base_crtp>(5); + current_statement__ = 2; auto p_multi_ret_vec = in__.template read>(5); Eigen::Matrix tp_single_ret_vec = @@ -17189,6 +17393,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read(); { current_statement__ = 2; @@ -17225,6 +17430,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read(); { current_statement__ = 2; @@ -17272,6 +17478,7 @@ class inline_tdata_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read(); out__.write(alpha); if (stan::math::logical_negation( @@ -18747,19 +18954,24 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); + current_statement__ = 4; auto epsilon = in__.template read< Eigen::Matrix>(epsilon_1dim__); + current_statement__ = 5; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -19153,19 +19365,24 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); + current_statement__ = 4; auto epsilon = in__.template read< Eigen::Matrix>(epsilon_1dim__); + current_statement__ = 5; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -19570,19 +19787,24 @@ class inlining_fail2_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 3; auto gamma = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(0, 1, lp__, n_occasions); + current_statement__ = 4; auto epsilon = in__.template read< Eigen::Matrix>(epsilon_1dim__); + current_statement__ = 5; auto sigma = in__.template read_constrain_lub(0, 5, lp__); @@ -20713,6 +20935,7 @@ class lcm_experiment2_model final : public model_base_crtp(); { local_scalar_t__ y; @@ -20760,6 +20983,7 @@ class lcm_experiment2_model final : public model_base_crtp(); { local_scalar_t__ y; @@ -20818,6 +21042,7 @@ class lcm_experiment2_model final : public model_base_crtp(); out__.write(x); if (stan::math::logical_negation( @@ -21107,6 +21332,7 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto theta = in__.template read>(J); { current_statement__ = 2; @@ -21142,6 +21368,7 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto theta = in__.template read>(J); { current_statement__ = 2; @@ -21188,6 +21415,7 @@ class lcm_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto theta = in__.template read>(J); out__.write(theta); if (stan::math::logical_negation( @@ -21779,9 +22007,11 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); @@ -21960,9 +22190,11 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); @@ -22152,9 +22384,11 @@ class lcm_fails2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mean_phi = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 2; auto mean_p = in__.template read_constrain_lub(0, 1, lp__); @@ -22699,6 +22933,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; local_scalar_t__ inline_foo_lpdf_return_sym23__; @@ -22761,6 +22996,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read(); local_scalar_t__ tp = DUMMY_VAR__; local_scalar_t__ inline_foo_lpdf_return_sym16__; @@ -22834,6 +23070,7 @@ class lupdf_inlining_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto mu = in__.template read(); double tp = std::numeric_limits::quiet_NaN(); out__.write(mu); @@ -23323,9 +23560,13 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha_occ = in__.template read(); + current_statement__ = 2; auto beta_occ = in__.template read(); + current_statement__ = 3; auto alpha_p = in__.template read(); + current_statement__ = 4; auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); @@ -23398,9 +23639,13 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha_occ = in__.template read(); + current_statement__ = 2; auto beta_occ = in__.template read(); + current_statement__ = 3; auto alpha_p = in__.template read(); + current_statement__ = 4; auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, DUMMY_VAR__); @@ -23484,9 +23729,13 @@ class off_dce_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha_occ = in__.template read(); + current_statement__ = 2; auto beta_occ = in__.template read(); + current_statement__ = 3; auto alpha_p = in__.template read(); + current_statement__ = 4; auto beta_p = in__.template read(); Eigen::Matrix logit_psi = Eigen::Matrix::Constant(R, @@ -24077,17 +24326,25 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto beta = in__.template read(); + current_statement__ = 2; auto eta1 = in__.template read>(J); + current_statement__ = 3; auto eta2 = in__.template read>(J); + current_statement__ = 4; auto mu_a1 = in__.template read(); + current_statement__ = 5; auto mu_a2 = in__.template read(); + current_statement__ = 6; auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 7; auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -24169,17 +24426,25 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto beta = in__.template read(); + current_statement__ = 2; auto eta1 = in__.template read>(J); + current_statement__ = 3; auto eta2 = in__.template read>(J); + current_statement__ = 4; auto mu_a1 = in__.template read(); + current_statement__ = 5; auto mu_a2 = in__.template read(); + current_statement__ = 6; auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 7; auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -24272,17 +24537,25 @@ class off_small_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto beta = in__.template read(); + current_statement__ = 2; auto eta1 = in__.template read>(J); + current_statement__ = 3; auto eta2 = in__.template read>(J); + current_statement__ = 4; auto mu_a1 = in__.template read(); + current_statement__ = 5; auto mu_a2 = in__.template read(); + current_statement__ = 6; auto sigma_a1 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 7; auto sigma_a2 = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 8; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -24950,12 +25223,17 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto theta = in__.template read(); + current_statement__ = 2; auto phi = in__.template read(); + current_statement__ = 3; auto x_matrix = in__.template read>(3, 2); + current_statement__ = 4; auto x_vector = in__.template read>(2); + current_statement__ = 5; auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); @@ -25273,14 +25551,19 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto theta = in__.template read(); + current_statement__ = 2; auto phi = in__.template read(); + current_statement__ = 3; auto x_matrix = in__.template read< stan::math::var_value>>(3, 2); + current_statement__ = 4; auto x_vector = in__.template read< stan::math::var_value>>(2); + current_statement__ = 5; auto x_cov = in__.template read_constrain_cov_matrix< stan::math::var_value>, @@ -25610,12 +25893,17 @@ class optimizations_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto theta = in__.template read(); + current_statement__ = 2; auto phi = in__.template read(); + current_statement__ = 3; auto x_matrix = in__.template read>(3, 2); + current_statement__ = 4; auto x_vector = in__.template read>(2); + current_statement__ = 5; auto x_cov = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, 2); @@ -27285,13 +27573,18 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto a = in__.template read>(n_pair); + current_statement__ = 2; auto beta = in__.template read>(2); + current_statement__ = 3; auto mu_a = in__.template read(); + current_statement__ = 4; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 5; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -27367,13 +27660,18 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto a = in__.template read>(n_pair); + current_statement__ = 2; auto beta = in__.template read>(2); + current_statement__ = 3; auto mu_a = in__.template read(); + current_statement__ = 4; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 5; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -27460,13 +27758,18 @@ class partial_eval_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto a = in__.template read>(n_pair); + current_statement__ = 2; auto beta = in__.template read>(2); + current_statement__ = 3; auto mu_a = in__.template read(); + current_statement__ = 4; auto sigma_a = in__.template read_constrain_lub(0, 100, lp__); + current_statement__ = 5; auto sigma_y = in__.template read_constrain_lub(0, 100, lp__); @@ -27946,8 +28249,10 @@ class partial_eval_multiply_model final : public model_base_crtp>(10, 10); + current_statement__ = 2; auto m3 = in__.template read>(10, 10); { @@ -28002,9 +28307,11 @@ class partial_eval_multiply_model final : public model_base_crtp>>(10, 10); + current_statement__ = 2; auto m3 = in__.template read< stan::math::var_value>>(10, 10); @@ -28071,8 +28378,10 @@ class partial_eval_multiply_model final : public model_base_crtp>(10, 10); + current_statement__ = 2; auto m3 = in__.template read>(10, 10); out__.write(m2); @@ -28873,13 +29182,19 @@ class stalled1_failure_model final : public model_base_crtp(); + current_statement__ = 2; auto alpha1 = in__.template read(); + current_statement__ = 3; auto alpha2 = in__.template read(); + current_statement__ = 4; auto alpha12 = in__.template read(); + current_statement__ = 5; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto b = in__.template read< std::vector>>(I, 8); @@ -28953,13 +29268,19 @@ class stalled1_failure_model final : public model_base_crtp(); + current_statement__ = 2; auto alpha1 = in__.template read(); + current_statement__ = 3; auto alpha2 = in__.template read(); + current_statement__ = 4; auto alpha12 = in__.template read(); + current_statement__ = 5; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto b = in__.template read< std::vector>>>(I, @@ -29045,13 +29366,19 @@ class stalled1_failure_model final : public model_base_crtp(); + current_statement__ = 2; auto alpha1 = in__.template read(); + current_statement__ = 3; auto alpha2 = in__.template read(); + current_statement__ = 4; auto alpha12 = in__.template read(); + current_statement__ = 5; auto tau = in__.template read_constrain_lb(0, lp__); + current_statement__ = 6; auto b = in__.template read< std::vector>>(I, 8); @@ -29471,6 +29798,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); std::vector> local; current_statement__ = 2; @@ -29520,6 +29848,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); std::vector> local; current_statement__ = 2; @@ -29580,6 +29909,7 @@ class unenforce_initialize_should_fail_model final : public model_base_crtp(); std::vector> local = std::vector>(2, @@ -29901,6 +30231,7 @@ class unenforce_initialize_model final : public model_base_crtp(); local_scalar_t__ no_init = DUMMY_VAR__; local_scalar_t__ init_from_param; @@ -29953,6 +30284,7 @@ class unenforce_initialize_model final : public model_base_crtp(); local_scalar_t__ no_init = DUMMY_VAR__; local_scalar_t__ init_from_param; @@ -30016,6 +30348,7 @@ class unenforce_initialize_model final : public model_base_crtp(); double no_init = std::numeric_limits::quiet_NaN(); double init_from_param = std::numeric_limits::quiet_NaN(); diff --git a/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected b/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected index ea7aabd04..e04b50e36 100644 --- a/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected +++ b/test/integration/good/compiler-optimizations/mem_patterns/cpp.expected @@ -166,8 +166,11 @@ class ad_scalar_data_matrix_model final : public model_base_crtp(); + current_statement__ = 2; auto sigma = in__.template read(); + current_statement__ = 3; auto beta = in__.template read>(N); { current_statement__ = 4; @@ -325,8 +328,11 @@ class ad_scalar_data_matrix_model final : public model_base_crtp(); + current_statement__ = 2; auto sigma = in__.template read(); + current_statement__ = 3; auto beta = in__.template read< stan::math::var_value>>(N); @@ -518,8 +524,11 @@ class ad_scalar_data_matrix_model final : public model_base_crtp(); + current_statement__ = 2; auto sigma = in__.template read(); + current_statement__ = 3; auto beta = in__.template read>(N); out__.write(alpha); out__.write(sigma); @@ -833,6 +842,7 @@ class complex_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto A_p = in__.template read>(10, 10); Eigen::Matrix,-1,-1> A_complex_tp = @@ -871,6 +881,7 @@ class complex_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto A_p = in__.template read>(10, 10); Eigen::Matrix,-1,-1> A_complex_tp = @@ -920,6 +931,7 @@ class complex_fails_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto A_p = in__.template read>(10, 10); Eigen::Matrix,-1,-1> A_complex_tp = @@ -1588,6 +1600,7 @@ class constraints_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto high_low_est = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(diff_low_mid, @@ -1598,26 +1611,38 @@ class constraints_model final : public model_base_crtp { current_statement__ = 1; stan::math::check_matching_dims("constraint", "high_low_est", high_low_est, "upper", diff_high_mid); + current_statement__ = 2; auto b = in__.template read>(K); + current_statement__ = 3; auto h = in__.template read>(Nr); + current_statement__ = 4; auto ar = in__.template read>(2); + current_statement__ = 5; auto ma = in__.template read(); + current_statement__ = 6; auto phi_beta = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 7; auto sigma2 = in__.template read_constrain_lb(0, lp__); + current_statement__ = 8; auto Intercept = in__.template read(); + current_statement__ = 9; auto mean_price = in__.template read>(N); + current_statement__ = 10; auto sigma_price = in__.template read_constrain_lb, jacobian__>(0.0, lp__, N); + current_statement__ = 11; auto theta = in__.template read(); + current_statement__ = 12; auto upper_test = in__.template read_constrain_ub, jacobian__>(ma, lp__, N); + current_statement__ = 13; auto lower_upper_test = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(sigma_price, @@ -1628,6 +1653,7 @@ class constraints_model final : public model_base_crtp { current_statement__ = 13; stan::math::check_matching_dims("constraint", "lower_upper_test", lower_upper_test, "upper", upper_test); + current_statement__ = 14; auto row_vec_lower_upper_test = in__.template read_constrain_lub< Eigen::Matrix, @@ -1641,6 +1667,7 @@ class constraints_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "row_vec_lower_upper_test", row_vec_lower_upper_test, "upper", stan::math::transpose(upper_test)); + current_statement__ = 15; auto offset_mult_test = in__.template read_constrain_offset_multiplier< Eigen::Matrix, jacobian__>(mean_price, @@ -1651,24 +1678,31 @@ class constraints_model final : public model_base_crtp { current_statement__ = 15; stan::math::check_matching_dims("constraint", "offset_mult_test", offset_mult_test, "multiplier", sigma_price); + current_statement__ = 16; auto ordered_test = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, N); + current_statement__ = 17; auto unit_vec_test = in__.template read_constrain_unit_vector< Eigen::Matrix, jacobian__>(lp__, N); + current_statement__ = 18; auto pos_ordered_test = in__.template read_constrain_positive_ordered< Eigen::Matrix, jacobian__>(lp__, N); + current_statement__ = 19; auto corr_matrix_test = in__.template read_constrain_corr_matrix< Eigen::Matrix, jacobian__>(lp__, N); + current_statement__ = 20; auto cov_matrix_test = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, N); + current_statement__ = 21; auto chol_fac_cov_test = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, K, K); + current_statement__ = 22; auto chol_fac_corr_test = in__.template read_constrain_cholesky_factor_corr< Eigen::Matrix, jacobian__>(lp__, K); @@ -1837,6 +1871,7 @@ class constraints_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto high_low_est = in__.template read_constrain_lub< stan::math::var_value>, @@ -1847,35 +1882,47 @@ class constraints_model final : public model_base_crtp { current_statement__ = 1; stan::math::check_matching_dims("constraint", "high_low_est", high_low_est, "upper", diff_high_mid); + current_statement__ = 2; auto b = in__.template read< stan::math::var_value>>(K); + current_statement__ = 3; auto h = in__.template read< stan::math::var_value>>(Nr); + current_statement__ = 4; auto ar = in__.template read< stan::math::var_value>>(2); + current_statement__ = 5; auto ma = in__.template read(); + current_statement__ = 6; auto phi_beta = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 7; auto sigma2 = in__.template read_constrain_lb(0, lp__); + current_statement__ = 8; auto Intercept = in__.template read(); + current_statement__ = 9; auto mean_price = in__.template read< stan::math::var_value>>(N); + current_statement__ = 10; auto sigma_price = in__.template read_constrain_lb< stan::math::var_value>, jacobian__>(0.0, lp__, N); + current_statement__ = 11; auto theta = in__.template read(); + current_statement__ = 12; auto upper_test = in__.template read_constrain_ub< stan::math::var_value>, jacobian__>(ma, lp__, N); + current_statement__ = 13; auto lower_upper_test = in__.template read_constrain_lub< stan::math::var_value>, @@ -1886,6 +1933,7 @@ class constraints_model final : public model_base_crtp { current_statement__ = 13; stan::math::check_matching_dims("constraint", "lower_upper_test", lower_upper_test, "upper", upper_test); + current_statement__ = 14; auto row_vec_lower_upper_test = in__.template read_constrain_lub< stan::math::var_value>, @@ -1899,6 +1947,7 @@ class constraints_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "row_vec_lower_upper_test", row_vec_lower_upper_test, "upper", stan::math::transpose(upper_test)); + current_statement__ = 15; auto offset_mult_test = in__.template read_constrain_offset_multiplier< stan::math::var_value>, @@ -1909,30 +1958,37 @@ class constraints_model final : public model_base_crtp { current_statement__ = 15; stan::math::check_matching_dims("constraint", "offset_mult_test", offset_mult_test, "multiplier", sigma_price); + current_statement__ = 16; auto ordered_test = in__.template read_constrain_ordered< stan::math::var_value>, jacobian__>(lp__, N); + current_statement__ = 17; auto unit_vec_test = in__.template read_constrain_unit_vector< stan::math::var_value>, jacobian__>(lp__, N); + current_statement__ = 18; auto pos_ordered_test = in__.template read_constrain_positive_ordered< stan::math::var_value>, jacobian__>(lp__, N); + current_statement__ = 19; auto corr_matrix_test = in__.template read_constrain_corr_matrix< stan::math::var_value>, jacobian__>(lp__, N); + current_statement__ = 20; auto cov_matrix_test = in__.template read_constrain_cov_matrix< stan::math::var_value>, jacobian__>(lp__, N); + current_statement__ = 21; auto chol_fac_cov_test = in__.template read_constrain_cholesky_factor_cov< stan::math::var_value>, jacobian__>(lp__, K, K); + current_statement__ = 22; auto chol_fac_corr_test = in__.template read_constrain_cholesky_factor_corr< stan::math::var_value>, @@ -2127,6 +2183,7 @@ class constraints_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto high_low_est = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(diff_low_mid, @@ -2137,26 +2194,38 @@ class constraints_model final : public model_base_crtp { current_statement__ = 1; stan::math::check_matching_dims("constraint", "high_low_est", high_low_est, "upper", diff_high_mid); + current_statement__ = 2; auto b = in__.template read>(K); + current_statement__ = 3; auto h = in__.template read>(Nr); + current_statement__ = 4; auto ar = in__.template read>(2); + current_statement__ = 5; auto ma = in__.template read(); + current_statement__ = 6; auto phi_beta = in__.template read_constrain_lub(0, 1, lp__); + current_statement__ = 7; auto sigma2 = in__.template read_constrain_lb(0, lp__); + current_statement__ = 8; auto Intercept = in__.template read(); + current_statement__ = 9; auto mean_price = in__.template read>(N); + current_statement__ = 10; auto sigma_price = in__.template read_constrain_lb, jacobian__>(0.0, lp__, N); + current_statement__ = 11; auto theta = in__.template read(); + current_statement__ = 12; auto upper_test = in__.template read_constrain_ub, jacobian__>(ma, lp__, N); + current_statement__ = 13; auto lower_upper_test = in__.template read_constrain_lub< Eigen::Matrix, jacobian__>(sigma_price, @@ -2167,6 +2236,7 @@ class constraints_model final : public model_base_crtp { current_statement__ = 13; stan::math::check_matching_dims("constraint", "lower_upper_test", lower_upper_test, "upper", upper_test); + current_statement__ = 14; auto row_vec_lower_upper_test = in__.template read_constrain_lub< Eigen::Matrix, @@ -2180,6 +2250,7 @@ class constraints_model final : public model_base_crtp { stan::math::check_matching_dims("constraint", "row_vec_lower_upper_test", row_vec_lower_upper_test, "upper", stan::math::transpose(upper_test)); + current_statement__ = 15; auto offset_mult_test = in__.template read_constrain_offset_multiplier< Eigen::Matrix, jacobian__>(mean_price, @@ -2190,24 +2261,31 @@ class constraints_model final : public model_base_crtp { current_statement__ = 15; stan::math::check_matching_dims("constraint", "offset_mult_test", offset_mult_test, "multiplier", sigma_price); + current_statement__ = 16; auto ordered_test = in__.template read_constrain_ordered< Eigen::Matrix, jacobian__>(lp__, N); + current_statement__ = 17; auto unit_vec_test = in__.template read_constrain_unit_vector< Eigen::Matrix, jacobian__>(lp__, N); + current_statement__ = 18; auto pos_ordered_test = in__.template read_constrain_positive_ordered< Eigen::Matrix, jacobian__>(lp__, N); + current_statement__ = 19; auto corr_matrix_test = in__.template read_constrain_corr_matrix< Eigen::Matrix, jacobian__>(lp__, N); + current_statement__ = 20; auto cov_matrix_test = in__.template read_constrain_cov_matrix< Eigen::Matrix, jacobian__>(lp__, N); + current_statement__ = 21; auto chol_fac_cov_test = in__.template read_constrain_cholesky_factor_cov< Eigen::Matrix, jacobian__>(lp__, K, K); + current_statement__ = 22; auto chol_fac_corr_test = in__.template read_constrain_cholesky_factor_corr< Eigen::Matrix, jacobian__>(lp__, K); @@ -3381,6 +3459,7 @@ class deep_dependence_model final : public model_base_crtp>(10, 10); Eigen::Matrix X_tp1 = @@ -3460,6 +3539,7 @@ class deep_dependence_model final : public model_base_crtp>(10, 10); Eigen::Matrix X_tp1 = @@ -3550,6 +3630,7 @@ class deep_dependence_model final : public model_base_crtp>(10, 10); Eigen::Matrix X_tp1 = @@ -4353,46 +4434,67 @@ class indexing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read(); + current_statement__ = 2; auto p_soa_vec_v = in__.template read>(M); + current_statement__ = 3; auto p_soa_mat = in__.template read>(N, M); + current_statement__ = 4; auto p_soa_arr_vec_v = in__.template read< std::vector>>(10, N); + current_statement__ = 5; auto p_soa_mat_uni_col_idx = in__.template read>(N, M); + current_statement__ = 6; auto p_soa_vec_uni_idx = in__.template read>(N); + current_statement__ = 7; auto p_soa_loop_mat_uni_col_idx = in__.template read>(N, M); + current_statement__ = 8; auto p_soa_lhs_loop_mul = in__.template read>(N); + current_statement__ = 9; auto p_soa_rhs_loop_mul = in__.template read>(N); + current_statement__ = 10; auto p_soa_used_with_aos_in_excluded_fun = in__.template read>(N); + current_statement__ = 11; auto p_soa_loop_mat_multi_uni_uni_idx = in__.template read>(N, M); + current_statement__ = 12; auto p_aos_vec_v_assign_to_aos = in__.template read>(M); + current_statement__ = 13; auto p_aos_vec_v_tp_fails_func = in__.template read>(M); + current_statement__ = 14; auto p_aos_loop_vec_v_uni_idx = in__.template read>(M); + current_statement__ = 15; auto p_aos_fail_assign_from_top_idx = in__.template read>(M); + current_statement__ = 16; auto p_aos_loop_mat_uni_uni_idx = in__.template read>(N, M); + current_statement__ = 17; auto p_aos_mat = in__.template read>(N, M); + current_statement__ = 18; auto p_aos_mat_pass_func_outer_single_indexed1 = in__.template read>(N, M); + current_statement__ = 19; auto p_aos_mat_pass_func_outer_single_indexed2 = in__.template read>(N, M); + current_statement__ = 20; auto p_aos_mat_fail_uni_uni_idx1 = in__.template read>(N, M); + current_statement__ = 21; auto p_aos_mat_fail_uni_uni_idx2 = in__.template read>(N, M); local_scalar_t__ tp_real_from_aos = DUMMY_VAR__; @@ -4695,56 +4797,77 @@ class indexing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read(); + current_statement__ = 2; auto p_soa_vec_v = in__.template read< stan::math::var_value>>(M); + current_statement__ = 3; auto p_soa_mat = in__.template read< stan::math::var_value>>(N, M); + current_statement__ = 4; auto p_soa_arr_vec_v = in__.template read< std::vector>>>(10, N); + current_statement__ = 5; auto p_soa_mat_uni_col_idx = in__.template read< stan::math::var_value>>(N, M); + current_statement__ = 6; auto p_soa_vec_uni_idx = in__.template read< stan::math::var_value>>(N); + current_statement__ = 7; auto p_soa_loop_mat_uni_col_idx = in__.template read< stan::math::var_value>>(N, M); + current_statement__ = 8; auto p_soa_lhs_loop_mul = in__.template read< stan::math::var_value>>(N); + current_statement__ = 9; auto p_soa_rhs_loop_mul = in__.template read< stan::math::var_value>>(N); + current_statement__ = 10; auto p_soa_used_with_aos_in_excluded_fun = in__.template read< stan::math::var_value>>(N); + current_statement__ = 11; auto p_soa_loop_mat_multi_uni_uni_idx = in__.template read< stan::math::var_value>>(N, M); + current_statement__ = 12; auto p_aos_vec_v_assign_to_aos = in__.template read>(M); + current_statement__ = 13; auto p_aos_vec_v_tp_fails_func = in__.template read>(M); + current_statement__ = 14; auto p_aos_loop_vec_v_uni_idx = in__.template read>(M); + current_statement__ = 15; auto p_aos_fail_assign_from_top_idx = in__.template read>(M); + current_statement__ = 16; auto p_aos_loop_mat_uni_uni_idx = in__.template read>(N, M); + current_statement__ = 17; auto p_aos_mat = in__.template read>(N, M); + current_statement__ = 18; auto p_aos_mat_pass_func_outer_single_indexed1 = in__.template read>(N, M); + current_statement__ = 19; auto p_aos_mat_pass_func_outer_single_indexed2 = in__.template read>(N, M); + current_statement__ = 20; auto p_aos_mat_fail_uni_uni_idx1 = in__.template read>(N, M); + current_statement__ = 21; auto p_aos_mat_fail_uni_uni_idx2 = in__.template read>(N, M); local_scalar_t__ tp_real_from_aos = DUMMY_VAR__; @@ -5071,46 +5194,67 @@ class indexing_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read(); + current_statement__ = 2; auto p_soa_vec_v = in__.template read>(M); + current_statement__ = 3; auto p_soa_mat = in__.template read>(N, M); + current_statement__ = 4; auto p_soa_arr_vec_v = in__.template read< std::vector>>(10, N); + current_statement__ = 5; auto p_soa_mat_uni_col_idx = in__.template read>(N, M); + current_statement__ = 6; auto p_soa_vec_uni_idx = in__.template read>(N); + current_statement__ = 7; auto p_soa_loop_mat_uni_col_idx = in__.template read>(N, M); + current_statement__ = 8; auto p_soa_lhs_loop_mul = in__.template read>(N); + current_statement__ = 9; auto p_soa_rhs_loop_mul = in__.template read>(N); + current_statement__ = 10; auto p_soa_used_with_aos_in_excluded_fun = in__.template read>(N); + current_statement__ = 11; auto p_soa_loop_mat_multi_uni_uni_idx = in__.template read>(N, M); + current_statement__ = 12; auto p_aos_vec_v_assign_to_aos = in__.template read>(M); + current_statement__ = 13; auto p_aos_vec_v_tp_fails_func = in__.template read>(M); + current_statement__ = 14; auto p_aos_loop_vec_v_uni_idx = in__.template read>(M); + current_statement__ = 15; auto p_aos_fail_assign_from_top_idx = in__.template read>(M); + current_statement__ = 16; auto p_aos_loop_mat_uni_uni_idx = in__.template read>(N, M); + current_statement__ = 17; auto p_aos_mat = in__.template read>(N, M); + current_statement__ = 18; auto p_aos_mat_pass_func_outer_single_indexed1 = in__.template read>(N, M); + current_statement__ = 19; auto p_aos_mat_pass_func_outer_single_indexed2 = in__.template read>(N, M); + current_statement__ = 20; auto p_aos_mat_fail_uni_uni_idx1 = in__.template read>(N, M); + current_statement__ = 21; auto p_aos_mat_fail_uni_uni_idx2 = in__.template read>(N, M); double tp_real_from_aos = std::numeric_limits::quiet_NaN(); @@ -6384,7 +6528,9 @@ class indexing2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read(); + current_statement__ = 2; auto p_aos_loop_single_idx = in__.template read>(10); { @@ -6455,7 +6601,9 @@ class indexing2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read(); + current_statement__ = 2; auto p_aos_loop_single_idx = in__.template read>(10); { @@ -6542,7 +6690,9 @@ class indexing2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read(); + current_statement__ = 2; auto p_aos_loop_single_idx = in__.template read>(10); out__.write(alpha); @@ -6929,10 +7079,13 @@ class reductions_allowed_model final : public model_base_crtp>(5, 10); + current_statement__ = 2; auto aos_x = in__.template read>(5, 10); + current_statement__ = 3; auto aos_y = in__.template read>(5, 10); local_scalar_t__ tp_real_from_soa = DUMMY_VAR__; @@ -6986,11 +7139,14 @@ class reductions_allowed_model final : public model_base_crtp>>(5, 10); + current_statement__ = 2; auto aos_x = in__.template read>(5, 10); + current_statement__ = 3; auto aos_y = in__.template read>(5, 10); local_scalar_t__ tp_real_from_soa = DUMMY_VAR__; @@ -7055,10 +7211,13 @@ class reductions_allowed_model final : public model_base_crtp>(5, 10); + current_statement__ = 2; auto aos_x = in__.template read>(5, 10); + current_statement__ = 3; auto aos_y = in__.template read>(5, 10); double tp_real_from_soa = std::numeric_limits::quiet_NaN(); @@ -7573,8 +7732,10 @@ class return_types_and_udfs_demotes_model final : public model_base_crtp>(10, 10); + current_statement__ = 2; auto udf_input_aos = in__.template read>(10, 10); Eigen::Matrix user_func_aos = @@ -7638,9 +7799,11 @@ class return_types_and_udfs_demotes_model final : public model_base_crtp>>(10, 10); + current_statement__ = 2; auto udf_input_aos = in__.template read>(10, 10); Eigen::Matrix user_func_aos = @@ -7715,8 +7878,10 @@ class return_types_and_udfs_demotes_model final : public model_base_crtp>(10, 10); + current_statement__ = 2; auto udf_input_aos = in__.template read>(10, 10); Eigen::Matrix user_func_aos = @@ -8189,8 +8354,10 @@ class single_indexing_model final : public model_base_crtp>(10, 10); + current_statement__ = 2; auto soa_p = in__.template read>(10, 10); local_scalar_t__ tp_real_from_soa = DUMMY_VAR__; @@ -8247,8 +8414,10 @@ class single_indexing_model final : public model_base_crtp>(10, 10); + current_statement__ = 2; auto soa_p = in__.template read< stan::math::var_value>>(10, 10); @@ -8323,8 +8492,10 @@ class single_indexing_model final : public model_base_crtp>(10, 10); + current_statement__ = 2; auto soa_p = in__.template read>(10, 10); double tp_real_from_soa = std::numeric_limits::quiet_NaN(); @@ -8783,8 +8954,10 @@ class tp_reused_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto first_pass_soa_x = in__.template read>(5, 10); + current_statement__ = 2; auto aos_x = in__.template read>(5, 10); Eigen::Matrix tp_matrix_aos = @@ -8825,8 +8998,10 @@ class tp_reused_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto first_pass_soa_x = in__.template read>(5, 10); + current_statement__ = 2; auto aos_x = in__.template read>(5, 10); Eigen::Matrix tp_matrix_aos = @@ -8878,8 +9053,10 @@ class tp_reused_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto first_pass_soa_x = in__.template read>(5, 10); + current_statement__ = 2; auto aos_x = in__.template read>(5, 10); Eigen::Matrix tp_matrix_aos = @@ -9905,8 +10082,10 @@ class tuple_test2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto m1 = in__.template read>(3, 3); + current_statement__ = 1; auto m2 = in__.template read>(3, 3); { @@ -9963,8 +10142,10 @@ class tuple_test2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto m1 = in__.template read>(3, 3); + current_statement__ = 1; auto m2 = in__.template read>(3, 3); { @@ -10032,8 +10213,10 @@ class tuple_test2_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto m1 = in__.template read>(3, 3); + current_statement__ = 1; auto m2 = in__.template read>(3, 3); out__.write(m1); diff --git a/test/integration/good/tuples/cpp.expected b/test/integration/good/tuples/cpp.expected index 4dbb9a642..2d5da4842 100644 --- a/test/integration/good/tuples/cpp.expected +++ b/test/integration/good/tuples/cpp.expected @@ -3376,6 +3376,7 @@ class infer_tuple_ad_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto x = in__.template read(); { std::vector> z = @@ -3419,6 +3420,7 @@ class infer_tuple_ad_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto x = in__.template read(); { std::vector> z = @@ -3473,6 +3475,7 @@ class infer_tuple_ad_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto x = in__.template read(); out__.write(x); if (stan::math::logical_negation( @@ -4204,6 +4207,7 @@ class qr_unpack_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto A = in__.template read>(N, M); { @@ -4264,6 +4268,7 @@ class qr_unpack_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto A = in__.template read>(N, M); { @@ -4335,6 +4340,7 @@ class qr_unpack_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto A = in__.template read>(N, M); out__.write(A); @@ -6138,6 +6144,7 @@ class tuple_constraints_params_model final : public model_base_crtp(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); @@ -6258,6 +6265,7 @@ class tuple_constraints_params_model final : public model_base_crtp(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); @@ -6384,6 +6392,7 @@ class tuple_constraints_params_model final : public model_base_crtp(std::get<0>(foo(pstream__)), std::get<1>(ps), lp__); @@ -12831,8 +12840,10 @@ class tuple_copying_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto m1 = in__.template read>(3, 3); + current_statement__ = 1; auto m2 = in__.template read>(3, 3); { @@ -12933,8 +12944,10 @@ class tuple_copying_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto m1 = in__.template read>(3, 3); + current_statement__ = 1; auto m2 = in__.template read>(3, 3); { @@ -13046,8 +13059,10 @@ class tuple_copying_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto m1 = in__.template read>(3, 3); + current_statement__ = 1; auto m2 = in__.template read>(3, 3); out__.write(m1); @@ -13886,6 +13901,7 @@ class tuple_hof_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto param_y = in__.template read>(N); local_scalar_t__ sum2 = DUMMY_VAR__; current_statement__ = 2; @@ -13921,6 +13937,7 @@ class tuple_hof_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto param_y = in__.template read>(N); local_scalar_t__ sum2 = DUMMY_VAR__; current_statement__ = 2; @@ -13967,6 +13984,7 @@ class tuple_hof_model final : public model_base_crtp { // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto param_y = in__.template read>(N); double sum2 = std::numeric_limits::quiet_NaN(); out__.write(param_y); @@ -15835,7 +15853,9 @@ class unpack_promote_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read>(N); + current_statement__ = 2; auto theta = in__.template read>(N); { @@ -15985,7 +16005,9 @@ class unpack_promote_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read>(N); + current_statement__ = 2; auto theta = in__.template read>(N); { @@ -16146,7 +16168,9 @@ class unpack_promote_model final : public model_base_crtp // suppress unused var warning (void) function__; try { + current_statement__ = 1; auto alpha = in__.template read>(N); + current_statement__ = 2; auto theta = in__.template read>(N); out__.write(alpha); From 0f127baba288ad2f5a5b14758c74ecc0b59551d1 Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Wed, 24 Jul 2024 11:49:28 -0400 Subject: [PATCH 16/17] Tidy Transform_Mir --- src/stan_math_backend/Transform_Mir.ml | 42 ++++++++++++++------------ 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/src/stan_math_backend/Transform_Mir.ml b/src/stan_math_backend/Transform_Mir.ml index e3f96d9a4..c7ab40902 100644 --- a/src/stan_math_backend/Transform_Mir.ml +++ b/src/stan_math_backend/Transform_Mir.ml @@ -402,7 +402,7 @@ let rec var_context_read_inside_tuple enclosing_tuple_name origin_type ] |> swrap ] -let rec var_context_read +let rec var_context_read_internal ((decl_id_lval : 'a Stmt.Fixed.Pattern.lvalue), smeta, st) = let unsized = SizedType.to_unsized st in let scalar = base_type st in @@ -430,11 +430,10 @@ let rec var_context_read Indexed (readfnapp decl_id flat_type, [Single Expr.Helpers.loop_bottom]) ; meta= {decl_var.meta with type_= unsized} } in - ([Assignment (decl_id_lval, unsized, e) |> swrap], None) + [Assignment (decl_id_lval, unsized, e) |> swrap] | SArray ((SInt | SReal), _) -> - ( [ Assignment (decl_id_lval, flat_type, readfnapp decl_id flat_type) - |> swrap ] - , None ) + [ Assignment (decl_id_lval, flat_type, readfnapp decl_id flat_type) + |> swrap ] | STuple subtypes -> let sub_sts = List.mapi @@ -445,7 +444,7 @@ let rec var_context_read else Location_span.empty) , x )) subtypes in - (List.concat_map ~f:(fun x -> fst (var_context_read x)) sub_sts, None) + List.concat_map ~f:var_context_read_internal sub_sts | SArray _ when SizedType.contains_tuple st -> (* The IO format for tuples is complicated in this case. Therefore, we need to do the following @@ -551,7 +550,7 @@ let rec var_context_read @ final_assignment loopvars) |> swrap_noloc) Location_span.empty ] in - ([Block (flat_decls @ temps @ loop) |> swrap], None) + [Block (flat_decls @ temps @ loop) |> swrap] | SVector _ | SRowVector _ | SMatrix _ | SComplexMatrix _ |SComplexRowVector _ | SComplexVector _ | SArray _ -> let decl, assign, flat_var = @@ -590,12 +589,15 @@ let rec var_context_read Stmt.Fixed.Pattern.Assignment (Stmt.Helpers.lvariable pos, UInt, Expr.Helpers.loop_bottom) |> swrap_noloc in - ( [ Block - [ decl; assign; pos_reset - ; Stmt.Helpers.for_scalar_inv st bodyfn decl_var Location_span.empty - ] - |> swrap ] - , None ) + [ Block + [ decl; assign; pos_reset + ; Stmt.Helpers.for_scalar_inv st bodyfn decl_var Location_span.empty + ] + |> swrap ] + +let var_context_read p = + (* this never uses the declare-define fast path at the moment *) + (var_context_read_internal p, None) (* Get the dimension expressions that are expected by constrain/unconstrain @@ -679,14 +681,17 @@ let param_deserializer_read , st , trans )) subtys in - (List.concat_map ~f:(fun x -> fst (read_stmt x)) sub_sts, None) - | _ -> + (List.concat_map ~f:(Fn.compose fst read_stmt) sub_sts, None) + | _ -> ( let read = basic_read (cst, out_trans) in ( [ Stmt.Fixed. { pattern= Pattern.Assignment (lval, SizedType.to_unsized cst, read) ; meta= smeta } ] - , Some read ) in + , (* if we're assigning to a top level variable, we can opt into to the declare-define *) + match lval with + | Stmt.Fixed.Pattern.LVariable _, [] -> Some read + | _ -> None )) in read_stmt (decl_id_lval, cst, out_trans) let escape_name str = @@ -772,10 +777,9 @@ let add_reads vars mkread stmts = let param_reader, op_assign = mkread (Stmt.Helpers.lvariable decl_id, loc, out) in match op_assign with - | Some e when List.length param_reader = 1 -> + | Some e -> [{stmt with pattern= Decl {decl_rec with initialize= Assign e}}] - | None -> stmt :: param_reader - | Some _ -> stmt :: param_reader) + | None -> stmt :: param_reader) | _ -> [stmt] in List.concat_map ~f:add_read_to_decl stmts From 36271ca8fce882a7e82ae1508cf24779994e1087 Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Wed, 24 Jul 2024 12:21:32 -0400 Subject: [PATCH 17/17] More optimization tweaks --- src/analysis_and_optimization/Monotone_framework.ml | 1 + src/analysis_and_optimization/Optimize.ml | 9 +++++---- src/stan_math_backend/Transform_Mir.ml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/analysis_and_optimization/Monotone_framework.ml b/src/analysis_and_optimization/Monotone_framework.ml index ffb4b8f0c..45d3dab3b 100644 --- a/src/analysis_and_optimization/Monotone_framework.ml +++ b/src/analysis_and_optimization/Monotone_framework.ml @@ -474,6 +474,7 @@ let assigned_vars_stmt (s : (Expr.Typed.t, 'a) Stmt.Fixed.Pattern.t) = match s with | Assignment (lhs, _, _) -> Set.Poly.singleton (Middle.Stmt.Helpers.lhs_variable lhs) + | Decl {decl_id; initialize= Assign _; _} -> Set.Poly.singleton decl_id | TargetPE _ | JacobianPE _ -> Set.Poly.singleton "target" | NRFunApp ( ( UserDefined (_, (FnTarget | FnJacobian)) diff --git a/src/analysis_and_optimization/Optimize.ml b/src/analysis_and_optimization/Optimize.ml index 8c2bed7a9..bd0806ff1 100644 --- a/src/analysis_and_optimization/Optimize.ml +++ b/src/analysis_and_optimization/Optimize.ml @@ -752,13 +752,13 @@ let dead_code_elimination (mir : Program.Typed.t) = (Middle.Stmt.Helpers.lhs_indices lhs) then stmt else Skip - | Decl {decl_id; initialize= Assign e; _} -> - if Set.mem live_variables_s decl_id || cannot_remove_expr e then stmt - else Skip (* NOTE: we never get rid of declarations as we might not be able to remove an assignment to a variable due to side effects. *) (* TODO: maybe we should revisit that. *) + | Decl ({decl_id; initialize= Assign e; _} as decl) -> + if Set.mem live_variables_s decl_id || cannot_remove_expr e then stmt + else Decl {decl with initialize= Uninit} | Decl _ | TargetPE _ | JacobianPE _ |NRFunApp (_, _) |Break | Continue | Return _ | Skip -> @@ -835,7 +835,8 @@ let rec find_assignment_idx (name : string) Stmt.Fixed.{pattern; _} = and unenforce_initialize (lst : Stmt.Located.t list) = let rec unenforce_initialize_patt (Stmt.Fixed.{pattern; _} as stmt) sub_lst = match pattern with - | Stmt.Fixed.Pattern.Decl ({decl_id; _} as decl_pat) -> ( + | Stmt.Fixed.Pattern.Decl ({decl_id; initialize= Default; _} as decl_pat) + -> ( match List.hd sub_lst with | Some next_stmt -> ( match find_assignment_idx decl_id next_stmt with diff --git a/src/stan_math_backend/Transform_Mir.ml b/src/stan_math_backend/Transform_Mir.ml index c7ab40902..b03976b2f 100644 --- a/src/stan_math_backend/Transform_Mir.ml +++ b/src/stan_math_backend/Transform_Mir.ml @@ -887,7 +887,7 @@ let var_context_unconstrain_transform (decl_id, smeta, outvar) = ; decl_type= Type.Sized st ; initialize= Default } ; meta= smeta } - :: fst (var_context_read (Stmt.Helpers.lvariable decl_id, smeta, st)) + :: var_context_read_internal (Stmt.Helpers.lvariable decl_id, smeta, st) @ param_serializer_write ~unconstrain:true (decl_id, outvar) (** Reads in parameters from a serializer and then writes out the unconstrained versions *)