We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d315f09 + c24225f commit 2081cb6Copy full SHA for 2081cb6
src/stan_math_backend/Lower_program.ml
@@ -737,6 +737,7 @@ let lower_model_public p =
737
@ gen_overloads p
738
739
let model_public_basics name =
740
+ let version_string = "stanc_version = %%NAME%%3 %%VERSION%%" in
741
[ FunDef
742
(make_fun_defn ~inline:true ~return_type:Types.string ~name:"model_name"
743
~cv_qualifiers:[Const; Final]
@@ -750,8 +751,7 @@ let model_public_basics name =
750
751
[ Return
752
(Some
753
(Exprs.std_vector_init_expr Types.string
- [ Exprs.literal_string
754
- "stanc_version = %%NAME%%3 %%VERSION%%"
+ [ Exprs.literal_string version_string
755
; Exprs.literal_string
756
("stancflags = " ^ !stanc_args_to_print) ] ) ) ]
757
~cv_qualifiers:[Const; NoExcept] () ) ]
0 commit comments