Skip to content

Commit 47ee1ca

Browse files
author
Nicusor Serban
committedApr 10, 2023
Run make format, dune promote
1 parent 29b2a36 commit 47ee1ca

File tree

23 files changed

+366
-364
lines changed

23 files changed

+366
-364
lines changed
 

‎dune-project

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
(lang dune 2.8)
22
(using menhir 1.1)
33
(name stanc)
4+
(version v2.32.0-rc1)
45
(cram enable)
56
(generate_opam_files true)
67
(package

‎src/stanc/stanc.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ open Analysis_and_optimization
88
open Middle
99

1010
(** The main program. *)
11-
let version = "%%NAME%%3 %%VERSION%%"
11+
let version = "stanc3 v2.32.0-rc1"
1212

13-
let name = "%%NAME%%"
13+
let name = "stanc"
1414

1515
(** The usage message. *)
1616
let usage = "Usage: " ^ name ^ " [option] ... <model_file.stan[functions]>"

‎src/stancjs/stancjs.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ open Analysis_and_optimization
55
open Middle
66
open Js_of_ocaml
77

8-
let version = "%%NAME%% %%VERSION%%"
8+
let version = "stanc v2.32.0-rc1"
99

1010
let stan2cpp model_name model_string is_flag_set flag_val =
1111
Common.Gensym.reset_danger_use_cautiously () ;

‎stanc.opam

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: "2.32.0-rc1"
12
# This file is generated by dune, edit dune-project instead
23
opam-version: "2.0"
34
synopsis: "The Stan compiler and utilities"

‎test/integration/cli-args/allow-undefined/cpp.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ ../../../../../install/default/bin/stanc --allow-undefined --print-cpp external.stan
2-
// Code generated by %%NAME%% %%VERSION%%
2+
// Code generated by stanc v2.32.0-rc1
33
#include <stan/model/model_header.hpp>
44
namespace external_model_namespace {
55
using stan::model::model_base_crtp;
@@ -80,7 +80,7 @@ class external_model final : public model_base_crtp<external_model> {
8080
return "external_model";
8181
}
8282
inline std::vector<std::string> model_compile_info() const noexcept {
83-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
83+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
8484
"stancflags = --allow-undefined --print-cpp"};
8585
}
8686
template <bool propto__, bool jacobian__, typename VecR, typename VecI,

‎test/integration/cli-args/allow-undefined/standalone-cpp.expected

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ ../../../../../install/default/bin/stanc --standalone-functions --allow-undefined --print-cpp external.stan
2-
// Code generated by %%NAME%% %%VERSION%%
2+
// Code generated by stanc v2.32.0-rc1
33
#include <stan/model/model_header.hpp>
44
namespace external_model_namespace {
55
using stan::model::model_base_crtp;

‎test/integration/cli-args/canonicalize/canonicalize.t

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Test that a nonsense argument is caught
22
$ stanc --canonicalize dummy
33
stanc: Unrecognized canonicalizer option 'dummy'.
44
Should be one of 'deprecations', 'parentheses', 'braces', 'includes'.
5-
Usage: %%NAME%% [option] ... <model_file.stan[functions]>
5+
Usage: stanc [option] ... <model_file.stan[functions]>
66
--debug-lex For debugging purposes: print the lexer actions
77
--debug-parse For debugging purposes: print the parser actions
88
--debug-ast For debugging purposes: print the undecorated AST, before semantic checking
@@ -48,7 +48,7 @@ Test that a nonsense argument is caught
4848
Test capitalization - this should fail due to the lack of model_name, not the canonicalizer
4949
$ stanc --canonicalize DEPRECATIONS,parentheses,bRaCeS
5050
Please specify a model_file.
51-
Usage: %%NAME%% [option] ... <model_file.stan[functions]>
51+
Usage: stanc [option] ... <model_file.stan[functions]>
5252
--debug-lex For debugging purposes: print the lexer actions
5353
--debug-parse For debugging purposes: print the parser actions
5454
--debug-ast For debugging purposes: print the undecorated AST, before semantic checking

‎test/integration/cli-args/filename-in-msg/filename_good.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ ../../../../../install/default/bin/stanc --filename-in-msg=foo.stan --print-cpp filename_good.stan
2-
// Code generated by %%NAME%% %%VERSION%%
2+
// Code generated by stanc v2.32.0-rc1
33
#include <stan/model/model_header.hpp>
44
namespace filename_good_model_namespace {
55
using stan::model::model_base_crtp;
@@ -49,7 +49,7 @@ class filename_good_model final : public model_base_crtp<filename_good_model> {
4949
return "filename_good_model";
5050
}
5151
inline std::vector<std::string> model_compile_info() const noexcept {
52-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
52+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
5353
"stancflags = --filename-in-msg=foo.stan --print-cpp"};
5454
}
5555
template <bool propto__, bool jacobian__, typename VecR, typename VecI,

‎test/integration/cli-args/stanc.t

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Show help
22
$ stanc --help
3-
Usage: %%NAME%% [option] ... <model_file.stan[functions]>
3+
Usage: stanc [option] ... <model_file.stan[functions]>
44
--debug-lex For debugging purposes: print the lexer actions
55
--debug-parse For debugging purposes: print the parser actions
66
--debug-ast For debugging purposes: print the undecorated AST, before semantic checking
@@ -43,11 +43,11 @@ Show help
4343
--help Display this list of options
4444
Show version
4545
$ stanc --version
46-
%%NAME%%3 %%VERSION%% (Unix)
46+
stanc3 v2.32.0-rc1 (Unix)
4747
Error when no file passed
4848
$ stanc
4949
Please specify a model_file.
50-
Usage: %%NAME%% [option] ... <model_file.stan[functions]>
50+
Usage: stanc [option] ... <model_file.stan[functions]>
5151
--debug-lex For debugging purposes: print the lexer actions
5252
--debug-parse For debugging purposes: print the parser actions
5353
--debug-ast For debugging purposes: print the undecorated AST, before semantic checking
@@ -92,7 +92,7 @@ Error when no file passed
9292
Error when multiple files passed
9393
$ stanc foo.stan foo2.stan
9494
stanc: Please specify only one model_file.
95-
Usage: %%NAME%% [option] ... <model_file.stan[functions]>
95+
Usage: stanc [option] ... <model_file.stan[functions]>
9696
--debug-lex For debugging purposes: print the lexer actions
9797
--debug-parse For debugging purposes: print the parser actions
9898
--debug-ast For debugging purposes: print the undecorated AST, before semantic checking

‎test/integration/good/code-gen/cl.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ ../../../../../install/default/bin/stanc --print-cpp --use-opencl optimize_glm.stan
2-
// Code generated by %%NAME%% %%VERSION%%
2+
// Code generated by stanc v2.32.0-rc1
33
#include <stan/model/model_header.hpp>
44
namespace optimize_glm_model_namespace {
55
using stan::model::model_base_crtp;
@@ -507,7 +507,7 @@ class optimize_glm_model final : public model_base_crtp<optimize_glm_model> {
507507
return "optimize_glm_model";
508508
}
509509
inline std::vector<std::string> model_compile_info() const noexcept {
510-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
510+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
511511
"stancflags = --print-cpp --use-opencl"};
512512
}
513513
template <bool propto__, bool jacobian__, typename VecR, typename VecI,

‎test/integration/good/code-gen/complex_numbers/cpp.expected

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ ../../../../../../install/default/bin/stanc --print-cpp basic_op_param.stan
2-
// Code generated by %%NAME%% %%VERSION%%
2+
// Code generated by stanc v2.32.0-rc1
33
#include <stan/model/model_header.hpp>
44
namespace basic_op_param_model_namespace {
55
using stan::model::model_base_crtp;
@@ -208,7 +208,7 @@ class basic_op_param_model final : public model_base_crtp<basic_op_param_model>
208208
return "basic_op_param_model";
209209
}
210210
inline std::vector<std::string> model_compile_info() const noexcept {
211-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
211+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
212212
"stancflags = --print-cpp"};
213213
}
214214
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -1773,7 +1773,7 @@ stan::math::profile_map& get_stan_profile_data() {
17731773
}
17741774
#endif
17751775
$ ../../../../../../install/default/bin/stanc --print-cpp basic_operations.stan
1776-
// Code generated by %%NAME%% %%VERSION%%
1776+
// Code generated by stanc v2.32.0-rc1
17771777
#include <stan/model/model_header.hpp>
17781778
namespace basic_operations_model_namespace {
17791779
using stan::model::model_base_crtp;
@@ -2156,7 +2156,7 @@ class basic_operations_model final : public model_base_crtp<basic_operations_mod
21562156
return "basic_operations_model";
21572157
}
21582158
inline std::vector<std::string> model_compile_info() const noexcept {
2159-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
2159+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
21602160
"stancflags = --print-cpp"};
21612161
}
21622162
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -2929,7 +2929,7 @@ stan::math::profile_map& get_stan_profile_data() {
29292929
}
29302930
#endif
29312931
$ ../../../../../../install/default/bin/stanc --print-cpp basic_ops_mix.stan
2932-
// Code generated by %%NAME%% %%VERSION%%
2932+
// Code generated by stanc v2.32.0-rc1
29332933
#include <stan/model/model_header.hpp>
29342934
namespace basic_ops_mix_model_namespace {
29352935
using stan::model::model_base_crtp;
@@ -3361,7 +3361,7 @@ class basic_ops_mix_model final : public model_base_crtp<basic_ops_mix_model> {
33613361
return "basic_ops_mix_model";
33623362
}
33633363
inline std::vector<std::string> model_compile_info() const noexcept {
3364-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
3364+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
33653365
"stancflags = --print-cpp"};
33663366
}
33673367
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -5044,7 +5044,7 @@ stan::math::profile_map& get_stan_profile_data() {
50445044
}
50455045
#endif
50465046
$ ../../../../../../install/default/bin/stanc --print-cpp complex_data.stan
5047-
// Code generated by %%NAME%% %%VERSION%%
5047+
// Code generated by stanc v2.32.0-rc1
50485048
#include <stan/model/model_header.hpp>
50495049
namespace complex_data_model_namespace {
50505050
using stan::model::model_base_crtp;
@@ -5387,7 +5387,7 @@ class complex_data_model final : public model_base_crtp<complex_data_model> {
53875387
return "complex_data_model";
53885388
}
53895389
inline std::vector<std::string> model_compile_info() const noexcept {
5390-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
5390+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
53915391
"stancflags = --print-cpp"};
53925392
}
53935393
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -5630,7 +5630,7 @@ stan::math::profile_map& get_stan_profile_data() {
56305630
}
56315631
#endif
56325632
$ ../../../../../../install/default/bin/stanc --print-cpp complex_scalar.stan
5633-
// Code generated by %%NAME%% %%VERSION%%
5633+
// Code generated by stanc v2.32.0-rc1
56345634
#include <stan/model/model_header.hpp>
56355635
namespace complex_scalar_model_namespace {
56365636
using stan::model::model_base_crtp;
@@ -6606,7 +6606,7 @@ class complex_scalar_model final : public model_base_crtp<complex_scalar_model>
66066606
return "complex_scalar_model";
66076607
}
66086608
inline std::vector<std::string> model_compile_info() const noexcept {
6609-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
6609+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
66106610
"stancflags = --print-cpp"};
66116611
}
66126612
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -8265,7 +8265,7 @@ stan::math::profile_map& get_stan_profile_data() {
82658265
}
82668266
#endif
82678267
$ ../../../../../../install/default/bin/stanc --print-cpp complex_vectors.stan
8268-
// Code generated by %%NAME%% %%VERSION%%
8268+
// Code generated by stanc v2.32.0-rc1
82698269
#include <stan/model/model_header.hpp>
82708270
namespace complex_vectors_model_namespace {
82718271
using stan::model::model_base_crtp;
@@ -8311,7 +8311,7 @@ class complex_vectors_model final : public model_base_crtp<complex_vectors_model
83118311
return "complex_vectors_model";
83128312
}
83138313
inline std::vector<std::string> model_compile_info() const noexcept {
8314-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
8314+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
83158315
"stancflags = --print-cpp"};
83168316
}
83178317
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -8774,7 +8774,7 @@ stan::math::profile_map& get_stan_profile_data() {
87748774
}
87758775
#endif
87768776
$ ../../../../../../install/default/bin/stanc --print-cpp user_function_templating.stan
8777-
// Code generated by %%NAME%% %%VERSION%%
8777+
// Code generated by stanc v2.32.0-rc1
87788778
#include <stan/model/model_header.hpp>
87798779
namespace user_function_templating_model_namespace {
87808780
using stan::model::model_base_crtp;
@@ -9060,7 +9060,7 @@ class user_function_templating_model final : public model_base_crtp<user_functio
90609060
return "user_function_templating_model";
90619061
}
90629062
inline std::vector<std::string> model_compile_info() const noexcept {
9063-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
9063+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
90649064
"stancflags = --print-cpp"};
90659065
}
90669066
template <bool propto__, bool jacobian__, typename VecR, typename VecI,

‎test/integration/good/code-gen/cpp.expected

+58-58
Large diffs are not rendered by default.

‎test/integration/good/code-gen/expressions/cpp.expected

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ ../../../../../../install/default/bin/stanc --print-cpp operators.stan
2-
// Code generated by %%NAME%% %%VERSION%%
2+
// Code generated by stanc v2.32.0-rc1
33
#include <stan/model/model_header.hpp>
44
namespace operators_model_namespace {
55
using stan::model::model_base_crtp;
@@ -84,7 +84,7 @@ class operators_model final : public model_base_crtp<operators_model> {
8484
return "operators_model";
8585
}
8686
inline std::vector<std::string> model_compile_info() const noexcept {
87-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
87+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
8888
"stancflags = --print-cpp"};
8989
}
9090
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -521,7 +521,7 @@ Warning in 'operators.stan', line 14, column 6: Condition of type real is
521521
comparison instead. This can be automatically changed using the
522522
canonicalize flag for stanc
523523
$ ../../../../../../install/default/bin/stanc --print-cpp simple_function.stan
524-
// Code generated by %%NAME%% %%VERSION%%
524+
// Code generated by stanc v2.32.0-rc1
525525
#include <stan/model/model_header.hpp>
526526
namespace simple_function_model_namespace {
527527
using stan::model::model_base_crtp;
@@ -763,7 +763,7 @@ class simple_function_model final : public model_base_crtp<simple_function_model
763763
return "simple_function_model";
764764
}
765765
inline std::vector<std::string> model_compile_info() const noexcept {
766-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
766+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
767767
"stancflags = --print-cpp"};
768768
}
769769
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -1006,7 +1006,7 @@ stan::math::profile_map& get_stan_profile_data() {
10061006
}
10071007
#endif
10081008
$ ../../../../../../install/default/bin/stanc --print-cpp ternary_if.stan
1009-
// Code generated by %%NAME%% %%VERSION%%
1009+
// Code generated by stanc v2.32.0-rc1
10101010
#include <stan/model/model_header.hpp>
10111011
namespace ternary_if_model_namespace {
10121012
using stan::model::model_base_crtp;
@@ -1063,7 +1063,7 @@ class ternary_if_model final : public model_base_crtp<ternary_if_model> {
10631063
return "ternary_if_model";
10641064
}
10651065
inline std::vector<std::string> model_compile_info() const noexcept {
1066-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
1066+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
10671067
"stancflags = --print-cpp"};
10681068
}
10691069
template <bool propto__, bool jacobian__, typename VecR, typename VecI,

‎test/integration/good/code-gen/lir.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ ../../../../../install/default/bin/stanc --debug-lir mother.stan
2-
((GlobalComment "Code generated by %%NAME%% %%VERSION%%")
2+
((GlobalComment "Code generated by stanc v2.32.0-rc1")
33
(Preprocessor (Include stan/model/model_header.hpp))
44
(Namespace mother_model_namespace
55
((GlobalUsing stan::model::model_base_crtp ())
@@ -5385,7 +5385,7 @@
53855385
(body
53865386
(((Return
53875387
((InitializerExpr (StdVector (TypeLiteral std::string))
5388-
((Literal "\"stanc_version = %%NAME%%3 %%VERSION%%\"")
5388+
((Literal "\"stanc_version = stanc3 v2.32.0-rc1\"")
53895389
(Literal "\"stancflags = --debug-lir\""))))))))))
53905390
(FunDef
53915391
((templates_init

‎test/integration/good/code-gen/ode/cpp.expected

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ ../../../../../../install/default/bin/stanc --print-cpp ode_adjoint_test_model.stan
2-
// Code generated by %%NAME%% %%VERSION%%
2+
// Code generated by stanc v2.32.0-rc1
33
#include <stan/model/model_header.hpp>
44
namespace ode_adjoint_test_model_model_namespace {
55
using stan::model::model_base_crtp;
@@ -277,7 +277,7 @@ class ode_adjoint_test_model_model final : public model_base_crtp<ode_adjoint_te
277277
return "ode_adjoint_test_model_model";
278278
}
279279
inline std::vector<std::string> model_compile_info() const noexcept {
280-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
280+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
281281
"stancflags = --print-cpp"};
282282
}
283283
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -699,7 +699,7 @@ stan::math::profile_map& get_stan_profile_data() {
699699
}
700700
#endif
701701
$ ../../../../../../install/default/bin/stanc --print-cpp overloaded-ode.stan
702-
// Code generated by %%NAME%% %%VERSION%%
702+
// Code generated by stanc v2.32.0-rc1
703703
#include <stan/model/model_header.hpp>
704704
namespace overloaded_ode_model_namespace {
705705
using stan::model::model_base_crtp;
@@ -1058,7 +1058,7 @@ class overloaded_ode_model final : public model_base_crtp<overloaded_ode_model>
10581058
return "overloaded_ode_model";
10591059
}
10601060
inline std::vector<std::string> model_compile_info() const noexcept {
1061-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
1061+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
10621062
"stancflags = --print-cpp"};
10631063
}
10641064
template <bool propto__, bool jacobian__, typename VecR, typename VecI,

‎test/integration/good/code-gen/opencl/cpp.expected

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ ../../../../../../install/default/bin/stanc --print-cpp --use-opencl distributions.stan
2-
// Code generated by %%NAME%% %%VERSION%%
2+
// Code generated by stanc v2.32.0-rc1
33
#include <stan/model/model_header.hpp>
44
namespace distributions_model_namespace {
55
using stan::model::model_base_crtp;
@@ -913,7 +913,7 @@ class distributions_model final : public model_base_crtp<distributions_model> {
913913
return "distributions_model";
914914
}
915915
inline std::vector<std::string> model_compile_info() const noexcept {
916-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
916+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
917917
"stancflags = --print-cpp --use-opencl"};
918918
}
919919
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -7356,7 +7356,7 @@ stan::math::profile_map& get_stan_profile_data() {
73567356
}
73577357
#endif
73587358
$ ../../../../../../install/default/bin/stanc --print-cpp --use-opencl restricted.stan
7359-
// Code generated by %%NAME%% %%VERSION%%
7359+
// Code generated by stanc v2.32.0-rc1
73607360
#include <stan/model/model_header.hpp>
73617361
namespace restricted_model_namespace {
73627362
using stan::model::model_base_crtp;
@@ -7533,7 +7533,7 @@ class restricted_model final : public model_base_crtp<restricted_model> {
75337533
return "restricted_model";
75347534
}
75357535
inline std::vector<std::string> model_compile_info() const noexcept {
7536-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
7536+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
75377537
"stancflags = --print-cpp --use-opencl"};
75387538
}
75397539
template <bool propto__, bool jacobian__, typename VecR, typename VecI,

‎test/integration/good/code-gen/profiling/cpp.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ ../../../../../../install/default/bin/stanc --print-cpp simple_function.stan
2-
// Code generated by %%NAME%% %%VERSION%%
2+
// Code generated by stanc v2.32.0-rc1
33
#include <stan/model/model_header.hpp>
44
namespace simple_function_model_namespace {
55
using stan::model::model_base_crtp;
@@ -120,7 +120,7 @@ class simple_function_model final : public model_base_crtp<simple_function_model
120120
return "simple_function_model";
121121
}
122122
inline std::vector<std::string> model_compile_info() const noexcept {
123-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
123+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
124124
"stancflags = --print-cpp"};
125125
}
126126
template <bool propto__, bool jacobian__, typename VecR, typename VecI,

‎test/integration/good/code-gen/standalone_functions/cpp.expected

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ ../../../../../../install/default/bin/stanc --standalone-functions --allow-undefined --print-cpp basic.stan
2-
// Code generated by %%NAME%% %%VERSION%%
2+
// Code generated by stanc v2.32.0-rc1
33
#include <stan/model/model_header.hpp>
44
namespace basic_model_namespace {
55
using stan::model::model_base_crtp;
@@ -282,7 +282,7 @@ test_lpdf(const double& a, const double& b, std::ostream* pstream__ = nullptr) {
282282
return basic_model_namespace::test_lpdf<false>(a, b, pstream__);
283283
}
284284
$ ../../../../../../install/default/bin/stanc --standalone-functions --allow-undefined --print-cpp basic.stanfunctions
285-
// Code generated by %%NAME%% %%VERSION%%
285+
// Code generated by stanc v2.32.0-rc1
286286
#include <stan/model/model_header.hpp>
287287
namespace basic_model_namespace {
288288
using stan::model::model_base_crtp;
@@ -565,7 +565,7 @@ test_lpdf(const double& a, const double& b, std::ostream* pstream__ = nullptr) {
565565
return basic_model_namespace::test_lpdf<false>(a, b, pstream__);
566566
}
567567
$ ../../../../../../install/default/bin/stanc --standalone-functions --allow-undefined --print-cpp integrate.stan
568-
// Code generated by %%NAME%% %%VERSION%%
568+
// Code generated by stanc v2.32.0-rc1
569569
#include <stan/model/model_header.hpp>
570570
namespace integrate_model_namespace {
571571
using stan::model::model_base_crtp;

‎test/integration/good/compiler-optimizations/cpp.expected

+78-78
Large diffs are not rendered by default.

‎test/integration/good/compiler-optimizations/cppO0.expected

+78-78
Large diffs are not rendered by default.

‎test/integration/good/compiler-optimizations/cppO1.expected

+78-78
Large diffs are not rendered by default.

‎test/integration/good/compiler-optimizations/mem_patterns/cpp.expected

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ ../../../../../../install/default/bin/stanc -fsoa --print-cpp complex-fails.stan
2-
// Code generated by %%NAME%% %%VERSION%%
2+
// Code generated by stanc v2.32.0-rc1
33
#include <stan/model/model_header.hpp>
44
namespace complex_fails_model_namespace {
55
using stan::model::model_base_crtp;
@@ -42,7 +42,7 @@ class complex_fails_model final : public model_base_crtp<complex_fails_model> {
4242
return "complex_fails_model";
4343
}
4444
inline std::vector<std::string> model_compile_info() const noexcept {
45-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
45+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
4646
"stancflags = -fsoa --print-cpp"};
4747
}
4848
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -381,7 +381,7 @@ stan::math::profile_map& get_stan_profile_data() {
381381
}
382382
#endif
383383
$ ../../../../../../install/default/bin/stanc -fsoa --print-cpp constraints.stan
384-
// Code generated by %%NAME%% %%VERSION%%
384+
// Code generated by stanc v2.32.0-rc1
385385
#include <stan/model/model_header.hpp>
386386
namespace constraints_model_namespace {
387387
using stan::model::model_base_crtp;
@@ -765,7 +765,7 @@ class constraints_model final : public model_base_crtp<constraints_model> {
765765
return "constraints_model";
766766
}
767767
inline std::vector<std::string> model_compile_info() const noexcept {
768-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
768+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
769769
"stancflags = -fsoa --print-cpp"};
770770
}
771771
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -2355,7 +2355,7 @@ stan::math::profile_map& get_stan_profile_data() {
23552355
}
23562356
#endif
23572357
$ ../../../../../../install/default/bin/stanc -fsoa --print-cpp deep_dependence.stan
2358-
// Code generated by %%NAME%% %%VERSION%%
2358+
// Code generated by stanc v2.32.0-rc1
23592359
#include <stan/model/model_header.hpp>
23602360
namespace deep_dependence_model_namespace {
23612361
using stan::model::model_base_crtp;
@@ -2409,7 +2409,7 @@ class deep_dependence_model final : public model_base_crtp<deep_dependence_model
24092409
return "deep_dependence_model";
24102410
}
24112411
inline std::vector<std::string> model_compile_info() const noexcept {
2412-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
2412+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
24132413
"stancflags = -fsoa --print-cpp"};
24142414
}
24152415
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -2921,7 +2921,7 @@ stan::math::profile_map& get_stan_profile_data() {
29212921
}
29222922
#endif
29232923
$ ../../../../../../install/default/bin/stanc -fsoa --print-cpp indexing.stan
2924-
// Code generated by %%NAME%% %%VERSION%%
2924+
// Code generated by stanc v2.32.0-rc1
29252925
#include <stan/model/model_header.hpp>
29262926
namespace indexing_model_namespace {
29272927
using stan::model::model_base_crtp;
@@ -3291,7 +3291,7 @@ class indexing_model final : public model_base_crtp<indexing_model> {
32913291
return "indexing_model";
32923292
}
32933293
inline std::vector<std::string> model_compile_info() const noexcept {
3294-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
3294+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
32953295
"stancflags = -fsoa --print-cpp"};
32963296
}
32973297
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -4984,7 +4984,7 @@ stan::math::profile_map& get_stan_profile_data() {
49844984
}
49854985
#endif
49864986
$ ../../../../../../install/default/bin/stanc -fsoa --print-cpp indexing2.stan
4987-
// Code generated by %%NAME%% %%VERSION%%
4987+
// Code generated by stanc v2.32.0-rc1
49884988
#include <stan/model/model_header.hpp>
49894989
namespace indexing2_model_namespace {
49904990
using stan::model::model_base_crtp;
@@ -5063,7 +5063,7 @@ class indexing2_model final : public model_base_crtp<indexing2_model> {
50635063
return "indexing2_model";
50645064
}
50655065
inline std::vector<std::string> model_compile_info() const noexcept {
5066-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
5066+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
50675067
"stancflags = -fsoa --print-cpp"};
50685068
}
50695069
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -5410,7 +5410,7 @@ stan::math::profile_map& get_stan_profile_data() {
54105410
}
54115411
#endif
54125412
$ ../../../../../../install/default/bin/stanc -fsoa --print-cpp reductions_allowed.stan
5413-
// Code generated by %%NAME%% %%VERSION%%
5413+
// Code generated by stanc v2.32.0-rc1
54145414
#include <stan/model/model_header.hpp>
54155415
namespace reductions_allowed_model_namespace {
54165416
using stan::model::model_base_crtp;
@@ -5525,7 +5525,7 @@ class reductions_allowed_model final : public model_base_crtp<reductions_allowed
55255525
return "reductions_allowed_model";
55265526
}
55275527
inline std::vector<std::string> model_compile_info() const noexcept {
5528-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
5528+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
55295529
"stancflags = -fsoa --print-cpp"};
55305530
}
55315531
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -6013,7 +6013,7 @@ stan::math::profile_map& get_stan_profile_data() {
60136013
}
60146014
#endif
60156015
$ ../../../../../../install/default/bin/stanc -fsoa --print-cpp return_types_and_udfs_demotes.stan
6016-
// Code generated by %%NAME%% %%VERSION%%
6016+
// Code generated by stanc v2.32.0-rc1
60176017
#include <stan/model/model_header.hpp>
60186018
namespace return_types_and_udfs_demotes_model_namespace {
60196019
using stan::model::model_base_crtp;
@@ -6112,7 +6112,7 @@ class return_types_and_udfs_demotes_model final : public model_base_crtp<return_
61126112
return "return_types_and_udfs_demotes_model";
61136113
}
61146114
inline std::vector<std::string> model_compile_info() const noexcept {
6115-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
6115+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
61166116
"stancflags = -fsoa --print-cpp"};
61176117
}
61186118
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -6617,7 +6617,7 @@ stan::math::profile_map& get_stan_profile_data() {
66176617
}
66186618
#endif
66196619
$ ../../../../../../install/default/bin/stanc -fsoa --print-cpp single_indexing.stan
6620-
// Code generated by %%NAME%% %%VERSION%%
6620+
// Code generated by stanc v2.32.0-rc1
66216621
#include <stan/model/model_header.hpp>
66226622
namespace single_indexing_model_namespace {
66236623
using stan::model::model_base_crtp;
@@ -6665,7 +6665,7 @@ class single_indexing_model final : public model_base_crtp<single_indexing_model
66656665
return "single_indexing_model";
66666666
}
66676667
inline std::vector<std::string> model_compile_info() const noexcept {
6668-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
6668+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
66696669
"stancflags = -fsoa --print-cpp"};
66706670
}
66716671
template <bool propto__, bool jacobian__, typename VecR, typename VecI,
@@ -7082,7 +7082,7 @@ stan::math::profile_map& get_stan_profile_data() {
70827082
}
70837083
#endif
70847084
$ ../../../../../../install/default/bin/stanc -fsoa --print-cpp tp_reused.stan
7085-
// Code generated by %%NAME%% %%VERSION%%
7085+
// Code generated by stanc v2.32.0-rc1
70867086
#include <stan/model/model_header.hpp>
70877087
namespace tp_reused_model_namespace {
70887088
using stan::model::model_base_crtp;
@@ -7195,7 +7195,7 @@ class tp_reused_model final : public model_base_crtp<tp_reused_model> {
71957195
return "tp_reused_model";
71967196
}
71977197
inline std::vector<std::string> model_compile_info() const noexcept {
7198-
return std::vector<std::string>{"stanc_version = %%NAME%%3 %%VERSION%%",
7198+
return std::vector<std::string>{"stanc_version = stanc3 v2.32.0-rc1",
71997199
"stancflags = -fsoa --print-cpp"};
72007200
}
72017201
template <bool propto__, bool jacobian__, typename VecR, typename VecI,

‎test/stancjs/stancjs.expected

+3-3
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ $ node pedantic.js
252252
$ node standalone-functions.js
253253

254254
$ node version.js
255-
%%NAME%% %%VERSION%%
256-
%%NAME%% %%VERSION%%
257-
%%NAME%% %%VERSION%%
255+
stanc v2.32.0-rc1
256+
stanc v2.32.0-rc1
257+
stanc v2.32.0-rc1
258258
$ node warnings.js
259259
["Warning in 'string', line 4, column 4: Comments beginning with # are\n deprecated and this syntax will be removed in Stan 2.33.0. Use // to\n begin line comments; this can be done automatically using the auto-format\n flag to stanc"]
260260
["Warning in 'string', line 10, column 11: Found int division:\n x / w\n Values will be rounded towards zero. If rounding is not desired you can\n write\n the division as\n x * 1.0 / w\n If rounding is intended please use the integer division operator %/%."]

0 commit comments

Comments
 (0)
Please sign in to comment.