Debian Codegraph @

sys/Formula.cpp

raw symbols SCIP
1 /* Formula.cpp
2 *
3 * Copyright (C) 1992-2026 Paul Boersma
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #if defined (UNIXcxx . . $ `<built-in>:479:9`!)
20 #include <sys/stat.h>
21 #endif
22 #include "../dwsys/NUM2.h"cxx . . $ `<file>/dwsys/NUM2.h`/
23 #include "Formula.h"cxx . . $ `<file>/sys/Formula.h`/
24 #include "Interpreter.h"cxx . . $ `<file>/sys/Interpreter.h`/
25 #include "Ui.h"cxx . . $ `<file>/sys/Ui.h`/
26 #include "praatP.h"cxx . . $ `<file>/sys/praatP.h`/
27 #include "praat_script.h"cxx . . $ `<file>/sys/praat_script.h`/
28 #include "../kar/UnicodeData.h"cxx . . $ `<file>/kar/UnicodeData.h`/
29 #include "../kar/longchar.h"cxx . . $ `<file>/kar/longchar.h`/
30 #include "UiPause.h"cxx . . $ `<file>/sys/UiPause.h`/
31 #include "GuiTrust.h"cxx . . $ `<file>/sys/GuiTrust.h`/
32 #include "Script.h"cxx . . $ `<file>/sys/Script.h`/
33 #include "Notebook.h"cxx . . $ `<file>/sys/Notebook.h`/
34 #include "DemoEditor.h"cxx . . $ `<file>/sys/DemoEditor.h`/
35
36 static Interpretercxx . . $ Interpreter# theInterpretercxx . . $ theInterpreter.;
37 static autoInterpreterStackcxx . . $ autoInterpreterStack# theLocalInterpreterStackcxx . . $ theLocalInterpreterStack.;
38 static Daatacxx . . $ Daata# theSourcecxx . . $ theSource.;
39 static conststring32cxx . . $ conststring32# theExpressioncxx . . $ theExpression.;
40 static int theLevelcxx . . $ theLevel. = 1;
41 #define MAXIMUM_NUMBER_OF_LEVELScxx . . $ `sys/Formula.cpp:41:9`! 20
42 static int theExpressionTypecxx . . $ theExpressionType. [1 + MAXIMUM_NUMBER_OF_LEVELScxx . . $ `sys/Formula.cpp:41:9`!];
43 static bool theOptimizecxx . . $ theOptimize.;
44
45 typedef struct structFormulaInstructioncxx . . $ structFormulaInstruction# {
46 integercxx . . $ integer# symbolcxx . . $ structFormulaInstruction#symbol.;
47 integercxx . . $ integer# positioncxx . . $ structFormulaInstruction#position.;
48 unioncxx . . $ structFormulaInstruction#$anonymous_type_0# {
49 double numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number.;
50 integercxx . . $ integer# labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.;
51 char32cxx . . $ char32# *stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string.;
52 Daatacxx . . $ Daata# objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.;
53 InterpreterVariablecxx . . $ InterpreterVariable# variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.;
54 } contentcxx . . $ structFormulaInstruction#content.;
55 } *FormulaInstructioncxx . . $ FormulaInstruction#;
56
57 static FormulaInstructioncxx . . $ FormulaInstruction# lexancxx . . $ lexan., parsecxx . . $ parse.;
58 static integercxx . . $ integer# ilabelcxx . . $ ilabel., ilexancxx . . $ ilexan., iparsecxx . . $ iparse., numberOfInstructionscxx . . $ numberOfInstructions., numberOfStringConstantscxx . . $ numberOfStringConstants.;
59
60 enumcxx . . $ $anonymous_type_72b56f3bc1c68424_1# { NO_SYMBOL_cxx . . $ NO_SYMBOL_.,
61
62 #define DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`!(symbol) \
63 symbol, symbol##VEC_, symbol##MAT_,
64
65 /* First, all symbols after which "-" is unary. */
66 /* The list ends with "MINUS_" itself. */
67
68 /* Opening symbols. */
69 IF_cxx . . $ IF_., THEN_cxx . . $ THEN_., ELSE_cxx . . $ ELSE_., OPENING_PARENTHESIS_cxx . . $ OPENING_PARENTHESIS_., OPENING_BRACKET_cxx . . $ OPENING_BRACKET_., OPENING_BRACE_cxx . . $ OPENING_BRACE_., COMMA_cxx . . $ COMMA_., COLON_cxx . . $ COLON_., FROM_cxx . . $ FROM_., TO_cxx . . $ TO_.,
70 /* Operators with boolean results. */
71 OR_cxx . . $ OR_., AND_cxx . . $ AND_., NOT_cxx . . $ NOT_., EQ_cxx . . $ EQ_., NE_cxx . . $ NE_., LE_cxx . . $ LE_., LT_cxx . . $ LT_., GE_cxx . . $ GE_., GT_cxx . . $ GT_.,
72 /* Operators with results. */
73 ADD_cxx . . $ ADD_., SUB_cxx . . $ SUB_., MUL_cxx . . $ MUL_., RDIV_cxx . . $ RDIV_., IDIV_cxx . . $ IDIV_., MOD_cxx . . $ MOD_., POWER_cxx . . $ POWER_., CALL_cxx . . $ CALL_., MINUS_cxx . . $ MINUS_.,
74
75 /* Then, the symbols after which "-" is binary. */
76
77 /* Closing symbols. */
78 ENDIF_cxx . . $ ENDIF_., FI_cxx . . $ FI_., CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_., CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_., CLOSING_BRACE_cxx . . $ CLOSING_BRACE_.,
79 /* Things with a value. */
80 #define LOW_VALUEcxx . . $ `sys/Formula.cpp:80:10`! NUMBER_
81 NUMBER_cxx . . $ NUMBER_., NUMBER_PI_cxx . . $ NUMBER_PI_., NUMBER_E_cxx . . $ NUMBER_E_., NUMBER_UNDEFINED_cxx . . $ NUMBER_UNDEFINED_.,
82 /* Attributes of objects. */
83 #define LOW_ATTRIBUTEcxx . . $ `sys/Formula.cpp:83:11`! XMIN_
84 XMIN_cxx . . $ XMIN_., XMAX_cxx . . $ XMAX_., YMIN_cxx . . $ YMIN_., YMAX_cxx . . $ YMAX_., NX_cxx . . $ NX_., NY_cxx . . $ NY_., DX_cxx . . $ DX_., DY_cxx . . $ DY_.,
85 ROW_cxx . . $ ROW_., COL_cxx . . $ COL_., NROW_cxx . . $ NROW_., NCOL_cxx . . $ NCOL_., ROW_STR_cxx . . $ ROW_STR_., COL_STR_cxx . . $ COL_STR_., Y_cxx . . $ Y_., X_cxx . . $ X_.,
86 #define HIGH_ATTRIBUTEcxx . . $ `sys/Formula.cpp:86:11`! X_
87 #define HIGH_VALUEcxx . . $ `sys/Formula.cpp:87:10`! HIGH_ATTRIBUTEcxx . . $ `sys/Formula.cpp:86:11`!
88
89 SELF_cxx . . $ SELF_., SELF_STR_cxx . . $ SELF_STR_., OBJECT_cxx . . $ OBJECT_., OBJECT_STR_cxx . . $ OBJECT_STR_., MATRIX_cxx . . $ MATRIX_., MATRIX_STR_cxx . . $ MATRIX_STR_.,
90 STOPWATCH_cxx . . $ STOPWATCH_.,
91
92 /* The following symbols can be followed by "-" only if they are a variable. */
93
94 /* Functions of 1 variable; if you add, update the #defines. */
95 #define LOW_FUNCTION_1cxx . . $ `sys/Formula.cpp:95:10`! ABS_
96 DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (ABS_)
97 DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (ROUND_) DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (FLOOR_) DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (CEILING_)
98 DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (RECTIFY_)
99 DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (SQRT_)
100 DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (SIN_) DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (COS_) DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (TAN_)
101 DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (ARCSIN_) DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (ARCCOS_) DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (ARCTAN_)
102 SINC_cxx . . $ SINC_., SINCPI_cxx . . $ SINCPI_.,
103 DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (EXP_)
104 DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (SINH_) DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (COSH_) DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (TANH_)
105 DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (ARCSINH_) DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (ARCCOSH_) DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (ARCTANH_)
106 DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (SIGMOID_) DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (INV_SIGMOID_)
107 SOFTMAX_VEC_cxx . . $ SOFTMAX_VEC_., SOFTMAX_PER_ROW_MAT_cxx . . $ SOFTMAX_PER_ROW_MAT_.,
108 ERF_cxx . . $ ERF_., ERFC_cxx . . $ ERFC_., GAUSS_P_cxx . . $ GAUSS_P_., GAUSS_Q_cxx . . $ GAUSS_Q_., INV_GAUSS_Q_cxx . . $ INV_GAUSS_Q_.,
109 RANDOM_BERNOULLI_cxx . . $ RANDOM_BERNOULLI_., RANDOM_BERNOULLI_VEC_cxx . . $ RANDOM_BERNOULLI_VEC_.,
110 RANDOM_POISSON_cxx . . $ RANDOM_POISSON_., TRANSPOSE_MAT_cxx . . $ TRANSPOSE_MAT_.,
111 ROW_SUMS_VEC_cxx . . $ ROW_SUMS_VEC_., COLUMN_SUMS_VEC_cxx . . $ COLUMN_SUMS_VEC_.,
112 DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (LOG2_) DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (LN_) DECLARE_WITH_TENSORScxx . . $ `sys/Formula.cpp:62:9`! (LOG10_)
113 LN_GAMMA_cxx . . $ LN_GAMMA_.,
114 HERTZ_TO_BARK_cxx . . $ HERTZ_TO_BARK_., BARK_TO_HERTZ_cxx . . $ BARK_TO_HERTZ_., PHON_TO_DIFFERENCE_LIMENS_cxx . . $ PHON_TO_DIFFERENCE_LIMENS_., DIFFERENCE_LIMENS_TO_PHON_cxx . . $ DIFFERENCE_LIMENS_TO_PHON_.,
115 HERTZ_TO_MEL_cxx . . $ HERTZ_TO_MEL_., MEL_TO_HERTZ_cxx . . $ MEL_TO_HERTZ_., HERTZ_TO_SEMITONES_cxx . . $ HERTZ_TO_SEMITONES_., SEMITONES_TO_HERTZ_cxx . . $ SEMITONES_TO_HERTZ_.,
116 ERB_cxx . . $ ERB_., HERTZ_TO_ERB_cxx . . $ HERTZ_TO_ERB_., ERB_TO_HERTZ_cxx . . $ ERB_TO_HERTZ_.,
117 SUM_cxx . . $ SUM_., MEAN_cxx . . $ MEAN_., STDEV_cxx . . $ STDEV_., CENTER_cxx . . $ CENTER_., RANDOM_IMAX_cxx . . $ RANDOM_IMAX_.,
118 EVALUATE_cxx . . $ EVALUATE_., EVALUATE_NOCHECK_cxx . . $ EVALUATE_NOCHECK_., EVALUATE_STR_cxx . . $ EVALUATE_STR_., EVALUATE_NOCHECK_STR_cxx . . $ EVALUATE_NOCHECK_STR_.,
119 STRING_STR_cxx . . $ STRING_STR_., HORIZONTAL_STR_cxx . . $ HORIZONTAL_STR_., VERTICAL_STR_cxx . . $ VERTICAL_STR_., NUMBERS_VEC_cxx . . $ NUMBERS_VEC_., SLEEP_cxx . . $ SLEEP_., UNICODE_cxx . . $ UNICODE_., UNICODE_STR_cxx . . $ UNICODE_STR_.,
120 #define HIGH_FUNCTION_1cxx . . $ `sys/Formula.cpp:120:10`! UNICODE_STR_
121
122 /* Functions of 2 variables; if you add, update the #defines. */
123 #define LOW_FUNCTION_2cxx . . $ `sys/Formula.cpp:123:10`! ARCTAN2_
124 ARCTAN2_cxx . . $ ARCTAN2_., RANDOM_UNIFORM_cxx . . $ RANDOM_UNIFORM_., RANDOM_INTEGER_cxx . . $ RANDOM_INTEGER_., RANDOM_GAUSS_cxx . . $ RANDOM_GAUSS_., RANDOM_BINOMIAL_cxx . . $ RANDOM_BINOMIAL_.,
125 RANDOM_GAMMA_cxx . . $ RANDOM_GAMMA_.,
126 CHI_SQUARE_P_cxx . . $ CHI_SQUARE_P_., CHI_SQUARE_Q_cxx . . $ CHI_SQUARE_Q_., INCOMPLETE_GAMMAP_cxx . . $ INCOMPLETE_GAMMAP_.,
127 INV_CHI_SQUARE_Q_cxx . . $ INV_CHI_SQUARE_Q_., STUDENT_P_cxx . . $ STUDENT_P_., STUDENT_Q_cxx . . $ STUDENT_Q_., INV_STUDENT_Q_cxx . . $ INV_STUDENT_Q_.,
128 BETA_cxx . . $ BETA_., BETA2_cxx . . $ BETA2_., BESSEL_I_cxx . . $ BESSEL_I_., BESSEL_K_cxx . . $ BESSEL_K_., LN_BETA_cxx . . $ LN_BETA_.,
129 SOUND_PRESSURE_TO_PHON_cxx . . $ SOUND_PRESSURE_TO_PHON_., OBJECTS_ARE_IDENTICAL_cxx . . $ OBJECTS_ARE_IDENTICAL_.,
130 ROW_VEC_cxx . . $ ROW_VEC_., COL_VEC_cxx . . $ COL_VEC_.,
131 INNER_cxx . . $ INNER_., CORRELATION_cxx . . $ CORRELATION_., OUTER_MAT_cxx . . $ OUTER_MAT_., MUL_VEC_cxx . . $ MUL_VEC_., MUL_MAT_cxx . . $ MUL_MAT_., MUL_FAST_MAT_cxx . . $ MUL_FAST_MAT_., MUL_METAL_MAT_cxx . . $ MUL_METAL_MAT_.,
132 MUL_TN_MAT_cxx . . $ MUL_TN_MAT_., MUL_NT_MAT_cxx . . $ MUL_NT_MAT_., MUL_TT_MAT_cxx . . $ MUL_TT_MAT_., REPEAT_VEC_cxx . . $ REPEAT_VEC_.,
133 ROW_INNERS_VEC_cxx . . $ ROW_INNERS_VEC_., SOLVE_VEC_cxx . . $ SOLVE_VEC_., SOLVE_MAT_cxx . . $ SOLVE_MAT_.,
134 #define HIGH_FUNCTION_2cxx . . $ `sys/Formula.cpp:134:10`! SOLVE_MAT_
135
136 /* Functions of 3 variables; if you add, update the #defines. */
137 #define LOW_FUNCTION_3cxx . . $ `sys/Formula.cpp:137:10`! FISHER_P_
138 FISHER_P_cxx . . $ FISHER_P_., FISHER_Q_cxx . . $ FISHER_Q_., INV_FISHER_Q_cxx . . $ INV_FISHER_Q_.,
139 BINOMIAL_P_cxx . . $ BINOMIAL_P_., BINOMIAL_Q_cxx . . $ BINOMIAL_Q_., INCOMPLETE_BETA_cxx . . $ INCOMPLETE_BETA_., INV_BINOMIAL_P_cxx . . $ INV_BINOMIAL_P_., INV_BINOMIAL_Q_cxx . . $ INV_BINOMIAL_Q_.,
140 #define HIGH_FUNCTION_3cxx . . $ `sys/Formula.cpp:140:10`! INV_BINOMIAL_Q_
141
142 /* Functions of 4 variables; if you add, update the #defines. */
143 #define LOW_FUNCTION_4cxx . . $ `sys/Formula.cpp:143:10`! SOLVE_WEAKLYCONSTRAINED_VEC_
144 SOLVE_WEAKLYCONSTRAINED_VEC_cxx . . $ SOLVE_WEAKLYCONSTRAINED_VEC_.,
145 #define HIGH_FUNCTION_4cxx . . $ `sys/Formula.cpp:145:10`! SOLVE_WEAKLYCONSTRAINED_VEC_
146
147 /* Functions of a variable number of variables; if you add, update the #defines. */
148 #define LOW_FUNCTION_Ncxx . . $ `sys/Formula.cpp:148:10`! DO_
149 DO_cxx . . $ DO_., DOSTR_cxx . . $ DOSTR_.,
150 WRITE_INFO_cxx . . $ WRITE_INFO_., WRITE_INFO_LINE_cxx . . $ WRITE_INFO_LINE_., APPEND_INFO_cxx . . $ APPEND_INFO_., APPEND_INFO_LINE_cxx . . $ APPEND_INFO_LINE_.,
151 WRITE_FILE_cxx . . $ WRITE_FILE_., WRITE_FILE_LINE_cxx . . $ WRITE_FILE_LINE_., APPEND_FILE_cxx . . $ APPEND_FILE_., APPEND_FILE_LINE_cxx . . $ APPEND_FILE_LINE_.,
152 PAUSE_SCRIPT_cxx . . $ PAUSE_SCRIPT_., EXIT_SCRIPT_cxx . . $ EXIT_SCRIPT_., RUN_SCRIPT_cxx . . $ RUN_SCRIPT_., RUN_SCRIPT_WITH_FORM_cxx . . $ RUN_SCRIPT_WITH_FORM_., RUN_NOTEBOOK_cxx . . $ RUN_NOTEBOOK_.,
153 RUN_SYSTEM_cxx . . $ RUN_SYSTEM_., RUN_SYSTEM_STR_cxx . . $ RUN_SYSTEM_STR_., RUN_SYSTEM_NOCHECK_cxx . . $ RUN_SYSTEM_NOCHECK_., RUN_SUBPROCESS_cxx . . $ RUN_SUBPROCESS_., RUN_SUBPROCESS_STR_cxx . . $ RUN_SUBPROCESS_STR_.,
154 MIN_cxx . . $ MIN_., MIN_E_cxx . . $ MIN_E_., MIN_IGNORE_UNDEFINED_cxx . . $ MIN_IGNORE_UNDEFINED_.,
155 MAX_cxx . . $ MAX_., MAX_E_cxx . . $ MAX_E_., MAX_IGNORE_UNDEFINED_cxx . . $ MAX_IGNORE_UNDEFINED_.,
156 IMIN_cxx . . $ IMIN_., IMIN_E_cxx . . $ IMIN_E_., IMIN_IGNORE_UNDEFINED_cxx . . $ IMIN_IGNORE_UNDEFINED_.,
157 IMAX_cxx . . $ IMAX_., IMAX_E_cxx . . $ IMAX_E_., IMAX_IGNORE_UNDEFINED_cxx . . $ IMAX_IGNORE_UNDEFINED_.,
158 QUANTILE_cxx . . $ QUANTILE_.,
159 NORM_cxx . . $ NORM_.,
160 LEFT_STR_cxx . . $ LEFT_STR_., RIGHT_STR_cxx . . $ RIGHT_STR_., MID_STR_cxx . . $ MID_STR_.,
161 PAD_LEFT_STR_cxx . . $ PAD_LEFT_STR_., PAD_RIGHT_STR_cxx . . $ PAD_RIGHT_STR_., TRUNCATE_LEFT_STR_cxx . . $ TRUNCATE_LEFT_STR_., TRUNCATE_RIGHT_STR_cxx . . $ TRUNCATE_RIGHT_STR_., PAD_OR_TRUNCATE_LEFT_STR_cxx . . $ PAD_OR_TRUNCATE_LEFT_STR_., PAD_OR_TRUNCATE_RIGHT_STR_cxx . . $ PAD_OR_TRUNCATE_RIGHT_STR_.,
162 SELECTED_cxx . . $ SELECTED_., SELECTED_STR_cxx . . $ SELECTED_STR_., NUMBER_OF_SELECTED_cxx . . $ NUMBER_OF_SELECTED_., SELECTED_VEC_cxx . . $ SELECTED_VEC_., SELECTED_STRVEC_cxx . . $ SELECTED_STRVEC_.,
163 SELECT_OBJECT_cxx . . $ SELECT_OBJECT_., PLUS_OBJECT_cxx . . $ PLUS_OBJECT_., MINUS_OBJECT_cxx . . $ MINUS_OBJECT_., REMOVE_OBJECT_cxx . . $ REMOVE_OBJECT_.,
164 ASK_FOR_TRUST_cxx . . $ ASK_FOR_TRUST_., BEGIN_PAUSE_cxx . . $ BEGIN_PAUSE_.,
165 REAL_cxx . . $ REAL_., POSITIVE_cxx . . $ POSITIVE_., INTEGER_cxx . . $ INTEGER_., NATURAL_cxx . . $ NATURAL_.,
166 WORD_cxx . . $ WORD_., SENTENCE_cxx . . $ SENTENCE_., TEXT_cxx . . $ TEXT_., BOOLEAN_cxx . . $ BOOLEAN_.,
167 CHOICE_cxx . . $ CHOICE_., OPTIONMENU_cxx . . $ OPTIONMENU_., OPTION_MENU_cxx . . $ OPTION_MENU_., OPTION_cxx . . $ OPTION_.,
168 INFILE_cxx . . $ INFILE_., OUTFILE_cxx . . $ OUTFILE_., FOLDER_cxx . . $ FOLDER_.,
169 REALVECTOR_cxx . . $ REALVECTOR_., POSITIVEVECTOR_cxx . . $ POSITIVEVECTOR_., INTEGERVECTOR_cxx . . $ INTEGERVECTOR_., NATURALVECTOR_cxx . . $ NATURALVECTOR_.,
170 HEADING_cxx . . $ HEADING_., COMMENT_cxx . . $ COMMENT_., END_PAUSE_cxx . . $ END_PAUSE_.,
171 LOWER_CASE_APP_NAME_STR_cxx . . $ LOWER_CASE_APP_NAME_STR_., UPPER_CASE_APP_NAME_STR_cxx . . $ UPPER_CASE_APP_NAME_STR_.,
172 CLOCK_cxx . . $ CLOCK_.,
173 APP_VERSION_cxx . . $ APP_VERSION_., APP_VERSION_STR_cxx . . $ APP_VERSION_STR_., APP_YEAR_cxx . . $ APP_YEAR_., APP_MONTH_cxx . . $ APP_MONTH_., APP_MONTH_STR_cxx . . $ APP_MONTH_STR_., APP_DAY_cxx . . $ APP_DAY_.,
174 CHOOSE_READ_FILE_STR_cxx . . $ CHOOSE_READ_FILE_STR_., CHOOSE_WRITE_FILE_STR_cxx . . $ CHOOSE_WRITE_FILE_STR_., CHOOSE_FOLDER_STR_cxx . . $ CHOOSE_FOLDER_STR_., CHOOSE_DIRECTORY_STR_cxx . . $ CHOOSE_DIRECTORY_STR_.,
175 DEMO_WINDOW_TITLE_cxx . . $ DEMO_WINDOW_TITLE_., DEMO_SHOW_cxx . . $ DEMO_SHOW_., DEMO_WAIT_FOR_INPUT_cxx . . $ DEMO_WAIT_FOR_INPUT_., DEMO_PEEK_INPUT_cxx . . $ DEMO_PEEK_INPUT_., DEMO_INPUT_cxx . . $ DEMO_INPUT_., DEMO_CLICKED_IN_cxx . . $ DEMO_CLICKED_IN_.,
176 DEMO_CLICKED_cxx . . $ DEMO_CLICKED_., DEMO_X_cxx . . $ DEMO_X_., DEMO_Y_cxx . . $ DEMO_Y_., DEMO_KEY_PRESSED_cxx . . $ DEMO_KEY_PRESSED_., DEMO_KEY_cxx . . $ DEMO_KEY_.,
177 DEMO_SHIFT_KEY_PRESSED_cxx . . $ DEMO_SHIFT_KEY_PRESSED_., DEMO_COMMAND_KEY_PRESSED_cxx . . $ DEMO_COMMAND_KEY_PRESSED_., DEMO_OPTION_KEY_PRESSED_cxx . . $ DEMO_OPTION_KEY_PRESSED_.,
178 ZERO_VEC_cxx . . $ ZERO_VEC_., ZERO_MAT_cxx . . $ ZERO_MAT_.,
179 LINEAR_VEC_cxx . . $ LINEAR_VEC_., LINEAR_MAT_cxx . . $ LINEAR_MAT_., TO_VEC_cxx . . $ TO_VEC_., FROM_TO_VEC_cxx . . $ FROM_TO_VEC_., FROM_TO_BY_VEC_cxx . . $ FROM_TO_BY_VEC_., FROM_TO_COUNT_VEC_cxx . . $ FROM_TO_COUNT_VEC_., BETWEEN_BY_VEC_cxx . . $ BETWEEN_BY_VEC_., BETWEEN_COUNT_VEC_cxx . . $ BETWEEN_COUNT_VEC_.,
180 SORT_VEC_cxx . . $ SORT_VEC_., SORT_REMOVE_UNDEFINED_VEC_cxx . . $ SORT_REMOVE_UNDEFINED_VEC_., SORT_STRVEC_cxx . . $ SORT_STRVEC_., SORT_NUMBER_AWARE_STRVEC_cxx . . $ SORT_NUMBER_AWARE_STRVEC_., SHUFFLE_VEC_cxx . . $ SHUFFLE_VEC_., SHUFFLE_STRVEC_cxx . . $ SHUFFLE_STRVEC_.,
181 RANDOM_UNIFORM_VEC_cxx . . $ RANDOM_UNIFORM_VEC_., RANDOM_UNIFORM_MAT_cxx . . $ RANDOM_UNIFORM_MAT_.,
182 RANDOM_INTEGER_VEC_cxx . . $ RANDOM_INTEGER_VEC_., RANDOM_INTEGER_MAT_cxx . . $ RANDOM_INTEGER_MAT_.,
183 RANDOM_GAUSS_VEC_cxx . . $ RANDOM_GAUSS_VEC_., RANDOM_GAUSS_MAT_cxx . . $ RANDOM_GAUSS_MAT_.,
184 RANDOM_GAMMA_VEC_cxx . . $ RANDOM_GAMMA_VEC_., RANDOM_GAMMA_MAT_cxx . . $ RANDOM_GAMMA_MAT_.,
185 SOLVE_SPARSE_VEC_cxx . . $ SOLVE_SPARSE_VEC_., SOLVE_NONNEGATIVE_VEC_cxx . . $ SOLVE_NONNEGATIVE_VEC_.,
186 PEAKS_MAT_cxx . . $ PEAKS_MAT_.,
187 SIZE_cxx . . $ SIZE_., NUMBER_OF_ROWS_cxx . . $ NUMBER_OF_ROWS_., NUMBER_OF_COLUMNS_cxx . . $ NUMBER_OF_COLUMNS_., COMBINE_VEC_cxx . . $ COMBINE_VEC_., BLAKE3_VEC_cxx . . $ BLAKE3_VEC_., PART_VEC_cxx . . $ PART_VEC_., PART_MAT_cxx . . $ PART_MAT_., EDITOR_cxx . . $ EDITOR_.,
188 RANDOM__INITIALIZE_WITH_SEED_UNSAFELY_BUT_PREDICTABLY_cxx . . $ RANDOM__INITIALIZE_WITH_SEED_UNSAFELY_BUT_PREDICTABLY_., RANDOM__INITIALIZE_SAFELY_AND_UNPREDICTABLY_cxx . . $ RANDOM__INITIALIZE_SAFELY_AND_UNPREDICTABLY_.,
189 HASH_cxx . . $ HASH_., HEX_STR_cxx . . $ HEX_STR_., UNHEX_STR_cxx . . $ UNHEX_STR_.,
190 EMPTY_STRVEC_cxx . . $ EMPTY_STRVEC_., READ_LINES_FROM_FILE_STRVEC_cxx . . $ READ_LINES_FROM_FILE_STRVEC_.,
191 FILE_NAMES_STRVEC_cxx . . $ FILE_NAMES_STRVEC_., FOLDER_NAMES_STRVEC_cxx . . $ FOLDER_NAMES_STRVEC_., FILE_NAMES_CASE_INSENSITIVE_STRVEC_cxx . . $ FILE_NAMES_CASE_INSENSITIVE_STRVEC_., FOLDER_NAMES_CASE_INSENSITIVE_STRVEC_cxx . . $ FOLDER_NAMES_CASE_INSENSITIVE_STRVEC_.,
192 SPLIT_BY_WHITESPACE_STRVEC_cxx . . $ SPLIT_BY_WHITESPACE_STRVEC_., SPLIT_BY_STRVEC_cxx . . $ SPLIT_BY_STRVEC_.,
193 LOWER_CASE_STR_cxx . . $ LOWER_CASE_STR_., LOWER_CAMEL_CASE_STR_cxx . . $ LOWER_CAMEL_CASE_STR_., LOWER_SNAKE_CASE_STR_cxx . . $ LOWER_SNAKE_CASE_STR_.,
194 UPPER_CASE_STR_cxx . . $ UPPER_CASE_STR_., UPPER_CAMEL_CASE_STR_cxx . . $ UPPER_CAMEL_CASE_STR_., UPPER_SNAKE_CASE_STR_cxx . . $ UPPER_SNAKE_CASE_STR_.,
195 #define HIGH_FUNCTION_Ncxx . . $ `sys/Formula.cpp:195:10`! UPPER_SNAKE_CASE_STR_
196
197 /* String functions. */
198 #define LOW_STRING_FUNCTIONcxx . . $ `sys/Formula.cpp:198:10`! LOW_FUNCTION_STR1cxx . . $ `sys/Formula.cpp:199:11`!
199 #define LOW_FUNCTION_STR1cxx . . $ `sys/Formula.cpp:199:11`! LENGTH_
200 LENGTH_cxx . . $ LENGTH_., STRING_TO_NUMBER_cxx . . $ STRING_TO_NUMBER_., FILE_READABLE_cxx . . $ FILE_READABLE_., FOLDER_EXISTS_cxx . . $ FOLDER_EXISTS_., TRY_TO_WRITE_FILE_cxx . . $ TRY_TO_WRITE_FILE_., TRY_TO_APPEND_FILE_cxx . . $ TRY_TO_APPEND_FILE_., DELETE_FILE_cxx . . $ DELETE_FILE_.,
201 CREATE_FOLDER_cxx . . $ CREATE_FOLDER_., CREATE_DIRECTORY_cxx . . $ CREATE_DIRECTORY_., SET_WORKING_DIRECTORY_cxx . . $ SET_WORKING_DIRECTORY_., VARIABLE_EXISTS_cxx . . $ VARIABLE_EXISTS_.,
202 READ_FILE_cxx . . $ READ_FILE_., READ_FILE_STR_cxx . . $ READ_FILE_STR_., READ_FILE_VEC_cxx . . $ READ_FILE_VEC_., READ_FILE_MAT_cxx . . $ READ_FILE_MAT_.,
203 UNICODE_TO_BACKSLASH_TRIGRAPHS_STR_cxx . . $ UNICODE_TO_BACKSLASH_TRIGRAPHS_STR_., BACKSLASH_TRIGRAPHS_TO_UNICODE_STR_cxx . . $ BACKSLASH_TRIGRAPHS_TO_UNICODE_STR_., ENVIRONMENT_STR_cxx . . $ ENVIRONMENT_STR_.,
204 BIG_INTEGER_STR_cxx . . $ BIG_INTEGER_STR_., HALF_STR_cxx . . $ HALF_STR_., GRAPHICAL_HALF_STR_cxx . . $ GRAPHICAL_HALF_STR_., SINGLE_STR_cxx . . $ SINGLE_STR_., GRAPHICAL_SINGLE_STR_cxx . . $ GRAPHICAL_SINGLE_STR_., DOUBLE_STR_cxx . . $ DOUBLE_STR_., GRAPHICAL_DOUBLE_STR_cxx . . $ GRAPHICAL_DOUBLE_STR_.,
205 NATURAL_LOGARITHM_STR_cxx . . $ NATURAL_LOGARITHM_STR_., GRAPHICAL_NATURAL_LOGARITHM_STR_cxx . . $ GRAPHICAL_NATURAL_LOGARITHM_STR_.,
206 #define HIGH_FUNCTION_STR1cxx . . $ `sys/Formula.cpp:206:11`! GRAPHICAL_NATURAL_LOGARITHM_STR_
207 #define LOW_FUNCTION_STR0cxx . . $ `sys/Formula.cpp:207:11`! DATE_STR_
208 DATE_STR_cxx . . $ DATE_STR_., DATE_UTC_STR_cxx . . $ DATE_UTC_STR_., DATE_ISO_STR_cxx . . $ DATE_ISO_STR_., DATE_UTC_ISO_STR_cxx . . $ DATE_UTC_ISO_STR_., DATE_VEC_cxx . . $ DATE_VEC_., DATE_UTC_VEC_cxx . . $ DATE_UTC_VEC_., INFO_STR_cxx . . $ INFO_STR_., // TODO: two of those aren't really string functions
209 #define HIGH_FUNCTION_STR0cxx . . $ `sys/Formula.cpp:209:11`! INFO_STR_
210 #define LOW_FUNCTION_STR2cxx . . $ `sys/Formula.cpp:210:11`! INDEX_
211 INDEX_cxx . . $ INDEX_., INDEX_CASE_INSENSITIVE_cxx . . $ INDEX_CASE_INSENSITIVE_., RINDEX_cxx . . $ RINDEX_., RINDEX_CASE_INSENSITIVE_cxx . . $ RINDEX_CASE_INSENSITIVE_.,
212 STARTS_WITH_cxx . . $ STARTS_WITH_., STARTS_WITH_CASE_INSENSITIVE_cxx . . $ STARTS_WITH_CASE_INSENSITIVE_., ENDS_WITH_cxx . . $ ENDS_WITH_., ENDS_WITH_CASE_INSENSITIVE_cxx . . $ ENDS_WITH_CASE_INSENSITIVE_.,
213 INDEX_REGEX_cxx . . $ INDEX_REGEX_., RINDEX_REGEX_cxx . . $ RINDEX_REGEX_., EXTRACT_NUMBER_cxx . . $ EXTRACT_NUMBER_.,
214 MOVE_AND_OR_RENAME_FILE_cxx . . $ MOVE_AND_OR_RENAME_FILE_.,
215 FIXED_STR_cxx . . $ FIXED_STR_., PERCENT_STR_cxx . . $ PERCENT_STR_., GRAPHICAL_PERCENT_STR_cxx . . $ GRAPHICAL_PERCENT_STR_., HEXADECIMAL_STR_cxx . . $ HEXADECIMAL_STR_.,
216 #define HIGH_FUNCTION_STR2cxx . . $ `sys/Formula.cpp:216:11`! HEXADECIMAL_STR_
217 EXTRACT_WORD_STR_cxx . . $ EXTRACT_WORD_STR_., EXTRACT_LINE_STR_cxx . . $ EXTRACT_LINE_STR_.,
218 REPLACE_STR_cxx . . $ REPLACE_STR_., REPLACE_REGEX_STR_cxx . . $ REPLACE_REGEX_STR_.,
219 #define HIGH_STRING_FUNCTIONcxx . . $ `sys/Formula.cpp:219:10`! REPLACE_REGEX_STR_
220
221 /* Range functions. */
222 #define LOW_RANGE_FUNCTIONcxx . . $ `sys/Formula.cpp:222:10`! SUM_OVER_
223 SUM_OVER_cxx . . $ SUM_OVER_.,
224 #define HIGH_RANGE_FUNCTIONcxx . . $ `sys/Formula.cpp:224:10`! SUM_OVER_
225
226 #define LOW_FUNCTIONcxx . . $ `sys/Formula.cpp:226:10`! LOW_FUNCTION_1cxx . . $ `sys/Formula.cpp:95:10`!
227 #define HIGH_FUNCTIONcxx . . $ `sys/Formula.cpp:227:10`! HIGH_RANGE_FUNCTIONcxx . . $ `sys/Formula.cpp:224:10`!
228
229 /* Membership operator. */
230 PERIOD_cxx . . $ PERIOD_.,
231 #define highestInputSymbolcxx . . $ `sys/Formula.cpp:231:10`! PERIOD_
232
233 /* Symbols introduced by the parser. */
234
235 TRUE_cxx . . $ TRUE_., FALSE_cxx . . $ FALSE_.,
236 GOTO_cxx . . $ GOTO_., IFTRUE_cxx . . $ IFTRUE_., IFFALSE_cxx . . $ IFFALSE_., INCREMENT_GREATER_GOTO_cxx . . $ INCREMENT_GREATER_GOTO_.,
237 LABEL_cxx . . $ LABEL_.,
238 DECREMENT_AND_ASSIGN_cxx . . $ DECREMENT_AND_ASSIGN_., ADD_3DOWN_cxx . . $ ADD_3DOWN_., POP_2_cxx . . $ POP_2_.,
239 VEC_CELL_cxx . . $ VEC_CELL_., MAT_CELL_cxx . . $ MAT_CELL_., STRVEC_CELL_cxx . . $ STRVEC_CELL_., VARIABLE_REFERENCE_cxx . . $ VARIABLE_REFERENCE_.,
240 TENSOR_LITERAL_cxx . . $ TENSOR_LITERAL_., TENSOR_LITERAL_CELL_cxx . . $ TENSOR_LITERAL_CELL_.,
241 SELF0_cxx . . $ SELF0_., SELFSTR0_cxx . . $ SELFSTR0_., TO_OBJECT_cxx . . $ TO_OBJECT_.,
242 OBJECT_XMIN_cxx . . $ OBJECT_XMIN_., OBJECT_XMAX_cxx . . $ OBJECT_XMAX_., OBJECT_YMIN_cxx . . $ OBJECT_YMIN_., OBJECT_YMAX_cxx . . $ OBJECT_YMAX_., OBJECT_NX_cxx . . $ OBJECT_NX_., OBJECT_NY_cxx . . $ OBJECT_NY_.,
243 OBJECT_DX_cxx . . $ OBJECT_DX_., OBJECT_DY_cxx . . $ OBJECT_DY_., OBJECT_NROW_cxx . . $ OBJECT_NROW_., OBJECT_NCOL_cxx . . $ OBJECT_NCOL_., OBJECT_ROW_STR_cxx . . $ OBJECT_ROW_STR_., OBJECT_COL_STR_cxx . . $ OBJECT_COL_STR_.,
244 OBJECTCELL0_cxx . . $ OBJECTCELL0_., OBJECTCELL0_STR_cxx . . $ OBJECTCELL0_STR_., OBJECTCELL1_cxx . . $ OBJECTCELL1_., OBJECTCELL1_STR_cxx . . $ OBJECTCELL1_STR_., OBJECTCELL2_cxx . . $ OBJECTCELL2_., OBJECTCELL2_STR_cxx . . $ OBJECTCELL2_STR_.,
245 OBJECTLOCATION0_cxx . . $ OBJECTLOCATION0_., OBJECTLOCATION0_STR_cxx . . $ OBJECTLOCATION0_STR_., OBJECTLOCATION1_cxx . . $ OBJECTLOCATION1_., OBJECTLOCATION1_STR_cxx . . $ OBJECTLOCATION1_STR_., OBJECTLOCATION2_cxx . . $ OBJECTLOCATION2_., OBJECTLOCATION2_STR_cxx . . $ OBJECTLOCATION2_STR_.,
246 SELFMATRIX1_cxx . . $ SELFMATRIX1_., SELFMATRIX1_STR_cxx . . $ SELFMATRIX1_STR_., SELFMATRIX2_cxx . . $ SELFMATRIX2_., SELFMATRIX2_STR_cxx . . $ SELFMATRIX2_STR_.,
247 SELFFUNCTION1_cxx . . $ SELFFUNCTION1_., SELFFUNCTION1_STR_cxx . . $ SELFFUNCTION1_STR_., SELFFUNCTION2_cxx . . $ SELFFUNCTION2_., SELFFUNCTION2_STR_cxx . . $ SELFFUNCTION2_STR_.,
248 MATRIX0_cxx . . $ MATRIX0_., MATRIX0_STR_cxx . . $ MATRIX0_STR_., MATRIX1_cxx . . $ MATRIX1_., MATRIX1_STR_cxx . . $ MATRIX1_STR_., MATRIX2_cxx . . $ MATRIX2_., MATRIX2_STR_cxx . . $ MATRIX2_STR_.,
249 FUNCTION0_cxx . . $ FUNCTION0_., FUNCTION0_STR_cxx . . $ FUNCTION0_STR_., FUNCTION1_cxx . . $ FUNCTION1_., FUNCTION1_STR_cxx . . $ FUNCTION1_STR_., FUNCTION2_cxx . . $ FUNCTION2_., FUNCTION2_STR_cxx . . $ FUNCTION2_STR_.,
250 SQR_cxx . . $ SQR_.,
251
252 /* Symbols introduced by lexical analysis. */
253
254 STRING_cxx . . $ STRING_.,
255 NUMERIC_VARIABLE_cxx . . $ NUMERIC_VARIABLE_., NUMERIC_VECTOR_VARIABLE_cxx . . $ NUMERIC_VECTOR_VARIABLE_., NUMERIC_MATRIX_VARIABLE_cxx . . $ NUMERIC_MATRIX_VARIABLE_.,
256 STRING_VARIABLE_cxx . . $ STRING_VARIABLE_., STRING_ARRAY_VARIABLE_cxx . . $ STRING_ARRAY_VARIABLE_.,
257 VARIABLE_NAME_cxx . . $ VARIABLE_NAME_., INDEXED_NUMERIC_VARIABLE_cxx . . $ INDEXED_NUMERIC_VARIABLE_., INDEXED_STRING_VARIABLE_cxx . . $ INDEXED_STRING_VARIABLE_.,
258 END_cxx . . $ END_.
259 #define highestSymbolcxx . . $ `sys/Formula.cpp:259:10`! END_
260 };
261
262 /* The names that start with an underscore (_) do not occur in the formula text: */
263 /* they are used in error messages and in debugging (see Formula_print). */
264
265 static const conststring32cxx . . $ conststring32# Formula_instructionNamescxx . . $ Formula_instructionNames. [] = { U"",
266 #define NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`!(name) \
267 U"" #name, U"" #name "#", U"" #name "##",
268
269 U"if", U"then", U"else", U"(", U"[", U"{", U",", U":", U"from", U"to",
270 U"or", U"and", U"not", U"=", U"<>", U"<=", U"<", U">=", U">",
271 U"+", U"-", U"*", U"/", U"div", U"mod", U"^", U"_call", U"_neg",
272 U"endif", U"fi", U")", U"]", U"}",
273 U"a number", U"pi", U"e", U"undefined",
274 U"xmin", U"xmax", U"ymin", U"ymax", U"nx", U"ny", U"dx", U"dy",
275 U"row", U"col", U"nrow", U"ncol", U"row$", U"col$", U"y", U"x",
276 U"self", U"self$", U"object", U"object$", U"_matrix", U"_matrix$",
277 U"stopwatch",
278 NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (abs)
279 NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (round) NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (floor) NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (ceiling)
280 NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (rectify)
281 NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (sqrt)
282 NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (sin) NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (cos) NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (tan)
283 NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (arcsin) NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (arccos) NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (arctan)
284 U"sinc", U"sincpi",
285 NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (exp)
286 NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (sinh) NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (cosh) NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (tanh)
287 NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (arcsinh) NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (arccosh) NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (arctanh)
288 NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (sigmoid) NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (invSigmoid)
289 U"softmax#", U"softmaxPerRow##",
290 U"erf", U"erfc", U"gaussP", U"gaussQ", U"invGaussQ",
291 U"randomBernoulli", U"randomBernoulli#",
292 U"randomPoisson", U"transpose##",
293 U"rowSums#", U"columnSums#",
294 NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (log2) NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (ln) NAME_WITH_TENSORScxx . . $ `sys/Formula.cpp:266:10`! (log10)
295 U"lnGamma",
296 U"hertzToBark", U"barkToHertz", U"phonToDifferenceLimens", U"differenceLimensToPhon",
297 U"hertzToMel", U"melToHertz", U"hertzToSemitones", U"semitonesToHertz",
298 U"erb", U"hertzToErb", U"erbToHertz",
299 U"sum", U"mean", U"stdev", U"center", U"randomImax",
300 U"evaluate", U"evaluate_nocheck", U"evaluate$", U"evaluate_nocheck$",
301 U"string$", U"horizontal$", U"vertical$", U"numbers#", U"sleep", U"unicode", U"unicode$",
302 U"arctan2", U"randomUniform", U"randomInteger", U"randomGauss", U"randomBinomial",
303 U"randomGamma",
304 U"chiSquareP", U"chiSquareQ", U"incompleteGammaP", U"invChiSquareQ", U"studentP", U"studentQ", U"invStudentQ",
305 U"beta", U"beta2", U"besselI", U"besselK", U"lnBeta",
306 U"soundPressureToPhon", U"objectsAreIdentical",
307 U"row#", U"col#",
308 U"inner", U"correlation", U"outer##", U"mul#", U"mul##", U"mul_fast##", U"mul_metal##",
309 U"mul_tn##", U"mul_nt##", U"mul_tt##", U"repeat#",
310 U"rowInners#", U"solve#", U"solve##",
311 U"fisherP", U"fisherQ", U"invFisherQ",
312 U"binomialP", U"binomialQ", U"incompleteBeta", U"invBinomialP", U"invBinomialQ",
313 U"solveWeaklyConstrained#",
314 U"do", U"do$",
315 U"writeInfo", U"writeInfoLine", U"appendInfo", U"appendInfoLine",
316 U"writeFile", U"writeFileLine", U"appendFile", U"appendFileLine",
317 U"pauseScript", U"exitScript", U"runScript", U"runScriptWithForm", U"runNotebook",
318 U"runSystem", U"runSystem$", U"runSystem_nocheck", U"runSubprocess", U"runSubprocess$",
319 U"min", U"min_e", U"min_removeUndefined",
320 U"max", U"max_e", U"max_removeUndefined",
321 U"imin", U"imin_e", U"imin_removeUndefined",
322 U"imax", U"imax_e", U"imax_removeUndefined",
323 U"quantile",
324 U"norm",
325 U"left$", U"right$", U"mid$",
326 U"padLeft$", U"padRight$", U"truncateLeft$", U"truncateRight$", U"padOrTruncateLeft$", U"padOrTruncateRight$",
327 U"selected", U"selected$", U"numberOfSelected", U"selected#", U"selected$#",
328 U"selectObject", U"plusObject", U"minusObject", U"removeObject",
329 U"askForTrust", U"beginPause",
330 U"real", U"positive", U"integer", U"natural",
331 U"word", U"sentence", U"text", U"boolean",
332 U"choice", U"optionmenu", U"optionMenu", U"option",
333 U"infile", U"outfile", U"folder",
334 U"realvector", U"positivevector", U"integervector", U"naturalvector",
335 U"heading", U"comment", U"endPause",
336 U"lowerCaseAppName$", U"upperCaseAppName$",
337 U"clock",
338 U"appVersion", U"appVersion$", U"appYear", U"appMonth", U"appMonth$", U"appDay",
339 U"chooseReadFile$", U"chooseWriteFile$", U"chooseFolder$", U"chooseDirectory$",
340 U"demoWindowTitle", U"demoShow", U"demoWaitForInput", U"demoPeekInput", U"demoInput", U"demoClickedIn",
341 U"demoClicked", U"demoX", U"demoY", U"demoKeyPressed", U"demoKey$",
342 U"demoShiftKeyPressed", U"demoCommandKeyPressed", U"demoOptionKeyPressed",
343 U"zero#", U"zero##",
344 U"linear#", U"linear##", U"to#", U"from_to#", U"from_to_by#", U"from_to_count#", U"between_by#", U"between_count#",
345 U"sort#", U"sort_removeUndefined#", U"sort$#", U"sort_numberAware$#", U"shuffle#", U"shuffle$#",
346 U"randomUniform#", U"randomUniform##",
347 U"randomInteger#", U"randomInteger##",
348 U"randomGauss#", U"randomGauss##",
349 U"randomGamma#", U"randomGamma##", U"solveSparse#", U"solveNonnegative#",
350 U"peaks##",
351 U"size", U"numberOfRows", U"numberOfColumns", U"combine#", U"blake3#", U"part#", U"part##", U"editor",
352 U"random_initializeWithSeedUnsafelyButPredictably", U"random_initializeSafelyAndUnpredictably",
353 U"hash", U"hex$", U"unhex$",
354 U"empty$#", U"readLinesFromFile$#",
355 U"fileNames$#", U"folderNames$#", U"fileNames_caseInsensitive$#", U"folderNames_caseInsensitive$#",
356 U"splitByWhitespace$#", U"splitBy$#",
357 U"lowerCase$", U"lowerCamelCase$", U"lowerSnakeCase$",
358 U"upperCase$", U"upperCamelCase$", U"upperSnakeCase$",
359
360 // LOW_FUNCTION_STR1
361 U"length", U"number", U"fileReadable", U"folderExists", U"tryToWriteFile", U"tryToAppendFile", U"deleteFile",
362 U"createFolder", U"createDirectory", U"setWorkingDirectory", U"variableExists",
363 U"readFile", U"readFile$", U"readFile#", U"readFile##",
364 U"unicodeToBackslashTrigraphs$", U"backslashTrigraphsToUnicode$", U"environment$",
365 U"bigInteger$", U"half$", U"graphicalHalf$", U"single$", U"graphicalSingle$", U"double$", U"graphicalDouble$",
366 U"naturalLogarithm$", U"graphicalNaturalLogarithm$",
367 // HIGH_FUNCTION_STR1
368 U"date$", U"date_utc$", U"date_iso$", U"date_utc_iso$", U"date#", U"date_utc#", U"info$",
369 // LOW_FUNCTION_STR2
370 U"index", U"index_caseInsensitive", U"rindex", U"rindex_caseInsensitive",
371 U"startsWith", U"startsWith_caseInsensitive", U"endsWith", U"endsWith_caseInsensitive",
372 U"index_regex", U"rindex_regex", U"extractNumber",
373 U"moveAndOrRenameFile",
374 U"fixed$", U"percent$", U"graphicalPercent$", U"hexadecimal$",
375 // HIGH_FUNCTION_STR2
376 U"extractWord$", U"extractLine$",
377 U"replace$", U"replace_regex$",
378 U"sumOver",
379 U".",
380 U"_true", U"_false",
381 U"_goto", U"_iftrue", U"_iffalse", U"_incrementGreaterGoto",
382 U"_label",
383 U"_decrementAndAssign", U"_add3Down", U"_pop2",
384 U"_numericVectorElement", U"_numericMatrixElement", U"_stringVectorElement", U"_variableReference",
385 U"_tensorLiteral", U"_tensorLiteralCell",
386 U"_self0", U"_self0$", U"_toObject",
387 U"_object_xmin", U"_object_xmax", U"_object_ymin", U"_object_ymax", U"_object_nx", U"_object_ny",
388 U"_object_dx", U"_object_dy", U"_object_nrow", U"_object_ncol", U"_object_row$", U"_object_col$",
389 U"_objectcell0", U"_objectcell0$", U"_objectcell1", U"_objectcell1$", U"_objectcell2", U"_objectcell2$",
390 U"_objectlocation0", U"_objectlocation0$", U"_objectlocation1", U"_objectlocation1$", U"_objectlocation2", U"_objectlocation2$",
391 U"_selfmatrix1", U"_selfmatrix1$", U"_selfmatrix2", U"_selfmatrix2$",
392 U"_selffunction1", U"_selffunction1$", U"_selffunction2", U"_selffunction2$",
393 U"_matrix0", U"_matrix0$", U"_matrix1", U"_matrix1$", U"_matrix2", U"_matrix2$",
394 U"_function0", U"_function0$", U"_function1", U"_function1$", U"_function2", U"_function2$",
395 U"_square",
396 U"_string",
397 U"a numeric variable", U"a vector variable", U"a matrix variable",
398 U"a string variable", U"a string array variable",
399 U"a variable name", U"an indexed numeric variable", U"an indexed string variable",
400 U"the end of the formula"
401 };
402 static_assert (sizeof (Formula_instructionNamescxx . . $ Formula_instructionNames.) == (1 + END_cxx . . $ END_.) * sizeof (conststring32cxx . . $ conststring32#));
403
404 #define newlabelcxx . . $ `sys/Formula.cpp:404:9`! (-- ilabel)
405 #define newreadcxx . . $ `sys/Formula.cpp:405:9`! (lexan [++ ilexan]. symbol)
406 #define oldreadcxx . . $ `sys/Formula.cpp:406:9`! (-- ilexan)
407
408 static void formulaErrorcxx . . $ formulaError(940f97f64241106a). (conststring32cxx . . $ conststring32# message, integercxx . . $ integer# position) {
409 static MelderStringcxx . . $ MelderString# truncatedExpression;
410 MelderString_ncopycxx . . $ MelderString_ncopy(b76236fd155635ca). (& truncatedExpression, theExpressioncxx . . $ theExpression., position + 1);
411 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (message, U":\n« ", truncatedExpression.string);
412 }
413
414 static integercxx . . $ integer# Formula_hasLanguageNamecxx . . $ Formula_hasLanguageName(c94c67ff4219bf83). (conststring32cxx . . $ conststring32# f) {
415 static autoINTVECcxx . . $ autoINTVEC# indexcxx . . $ autovector#autovector(49f6e7a06ebc5aa8).;
416 if (NUMisEmptycxx . . $ NUMisEmpty(3c471b8d64252e9b). (index.getcxx . . $ autovector#get(e8d1da7fe68a6585).())) {
417 index =cxx . . $ autovector#`operator=`(f4f0443dbfdd1e40). to_INTVECcxx . . $ to_INTVEC(dab5d3ef28d6a25). (highestInputSymbolcxx . . $ `sys/Formula.cpp:231:10`!);
418 stdcxx . . $ std/::sortcxx . . $ std/sort(4d3091562df4e52e). (index.begincxx . . $ autovector#begin(5a2a78a048fb49a8).(), index.endcxx . . $ autovector#end(5a2a78a048fb49a8).(),
419 [] (integercxx . . $ integer# i, integercxx . . $ integer# j) {
420 return str32cmpcxx . . $ str32cmp(937dacc22d2a7919). (Formula_instructionNamescxx . . $ Formula_instructionNames. [i], Formula_instructionNamescxx . . $ Formula_instructionNames. [j]) < 0;
421 }
422 );
423 }
424 constexpr integercxx . . $ integer# sentinel = 0; // has to be different from the numbers 1 .. index.size
425 const integercxx . . $ integer# *const found = stdcxx . . $ std/::lower_boundcxx . . $ std/lower_bound(16e024635f5f5018). (index.begincxx . . $ autovector#begin(5a2a78a048fb49a8).(), index.endcxx . . $ autovector#end(5a2a78a048fb49a8).(), sentinel,
426 [f] (integercxx . . $ integer# i, integercxx . . $ integer# j) {
427 return str32cmpcxx . . $ str32cmp(937dacc22d2a7919). (
428 i == sentinel ? f : Formula_instructionNamescxx . . $ Formula_instructionNames. [i],
429 j == sentinel ? f : Formula_instructionNamescxx . . $ Formula_instructionNames. [j]
430 ) < 0;
431 }
432 );
433 if (found != index.endcxx . . $ autovector#end(5a2a78a048fb49a8).() && Melder_equcxx . . $ `melder/melder_str32.h:124:9`! (Formula_instructionNamescxx . . $ Formula_instructionNames. [*found], f))
434 return *found;
435 return 0;
436 }
437
438 static void Formula_lexancxx . . $ Formula_lexan(49f6e7a06ebc5aa8). () {
439 /*
440 Purpose:
441 translate the formula text into a series of symbols.
442 Postcondition:
443 if not thrown, then the last symbol is END_.
444 Example:
445 the text "x*7" yields 5 symbols:
446 lexan [0] is empty;
447 lexan [1]. symbol = X_;
448 lexan [2]. symbol = MUL_;
449 lexan [3]. symbol = NUMBER_;
450 lexan [3]. number = 7.00000000e+00;
451 lexan [4]. symbol = END_;
452 */
453 char32cxx . . $ char32# kar; // the character most recently read from theExpression
454 integercxx . . $ integer# ikar = -1; // the position of that character in theExpression
455 #define newcharcxx . . $ `sys/Formula.cpp:455:9`! kar = theExpression [++ ikar]
456 #define oldcharcxx . . $ `sys/Formula.cpp:456:9`! -- ikar
457
458 integercxx . . $ integer# itok = 0; // position of most recent symbol in "lexan"
459 #define newtokcxx . . $ `sys/Formula.cpp:459:9`!(s) { lexan [++ itok]. symbol = s; lexan [itok]. position = ikar; }
460 #define toknumbercxx . . $ `sys/Formula.cpp:460:9`!(g) lexan [itok]. content.number = (g)
461 #define tokmatrixcxx . . $ `sys/Formula.cpp:461:9`!(m) lexan [itok]. content.object = (m)
462
463 static MelderStringcxx . . $ MelderString# token; // string to collect a symbol name in
464 #define stringtokoncxx . . $ `sys/Formula.cpp:464:9`! MelderString_empty (& token);
465 #define stringtokcharcxx . . $ `sys/Formula.cpp:465:9`! { MelderString_appendCharacter (& token, kar); newcharcxx . . $ `sys/Formula.cpp:455:9`!; }
466 #define stringtokoffcxx . . $ `sys/Formula.cpp:466:9`! (void) 0
467
468 ilexancxx . . $ ilexan. = iparsecxx . . $ iparse. = ilabelcxx . . $ ilabel. = numberOfStringConstantscxx . . $ numberOfStringConstants. = 0;
469 do {
470 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
471 if (Melder_isHorizontalOrVerticalSpacecxx . . $ Melder_isHorizontalOrVerticalSpace(b8d0204ce8416907). (kar)) {
472 ; // ignore spaces and tabs
473 } else if (kar == U'\0') {
474 newtokcxx . . $ `sys/Formula.cpp:459:9`! (END_)
475 } else if (Melder_isAsciiDecimalNumbercxx . . $ Melder_isAsciiDecimalNumber(b8d0204ce8416907). (kar)) {
476 char32cxx . . $ char32# saveKar = kar;
477 bool isHexadecimal = false;
478 if (kar == U'0') {
479 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
480 if (kar == U'x') {
481 isHexadecimal = true;
482 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
483 } else {
484 oldcharcxx . . $ `sys/Formula.cpp:456:9`!;
485 }
486 }
487 if (isHexadecimal) {
488 stringtokoncxx . . $ `sys/Formula.cpp:464:9`!;
489 do stringtokcharcxx . . $ `sys/Formula.cpp:465:9`! while (Melder_isHexadecimalDigitcxx . . $ Melder_isHexadecimalDigit(b8d0204ce8416907). (kar));
490 stringtokoffcxx . . $ `sys/Formula.cpp:466:9`!;
491 oldcharcxx . . $ `sys/Formula.cpp:456:9`!;
492 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NUMBER_)
493 toknumbercxx . . $ `sys/Formula.cpp:460:9`! (strtoull (Melder_peek32to8 (token.string), nullptr, 16));
494 } else {
495 kar = saveKar;
496 stringtokoncxx . . $ `sys/Formula.cpp:464:9`!;
497 do stringtokcharcxx . . $ `sys/Formula.cpp:465:9`! while (Melder_isAsciiDecimalNumbercxx . . $ Melder_isAsciiDecimalNumber(b8d0204ce8416907). (kar));
498 if (kar == U'.')
499 do stringtokcharcxx . . $ `sys/Formula.cpp:465:9`! while (Melder_isAsciiDecimalNumbercxx . . $ Melder_isAsciiDecimalNumber(b8d0204ce8416907). (kar));
500 if (kar == U'e' || kar == U'E') {
501 kar = U'e';
502 stringtokcharcxx . . $ `sys/Formula.cpp:465:9`!
503 if (kar == U'-')
504 stringtokcharcxx . . $ `sys/Formula.cpp:465:9`!
505 else if (kar == U'+')
506 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
507 if (! Melder_isAsciiDecimalNumbercxx . . $ Melder_isAsciiDecimalNumber(b8d0204ce8416907). (kar))
508 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Missing exponent", ikar);
509 do stringtokcharcxx . . $ `sys/Formula.cpp:465:9`! while (Melder_isAsciiDecimalNumbercxx . . $ Melder_isAsciiDecimalNumber(b8d0204ce8416907). (kar));
510 }
511 if (kar == U'%')
512 stringtokcharcxx . . $ `sys/Formula.cpp:465:9`!
513 stringtokoffcxx . . $ `sys/Formula.cpp:466:9`!;
514 oldcharcxx . . $ `sys/Formula.cpp:456:9`!;
515 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NUMBER_)
516 toknumbercxx . . $ `sys/Formula.cpp:460:9`! (Melder_atof (token.string));
517 }
518 } else if (Melder_isLettercxx . . $ Melder_isLetter(b8d0204ce8416907). (kar) && ! Melder_isUpperCaseLettercxx . . $ Melder_isUpperCaseLetter(b8d0204ce8416907). (kar) ||
519 (kar == U'.' && Melder_isLettercxx . . $ Melder_isLetter(b8d0204ce8416907). (theExpressioncxx . . $ theExpression. [ikar + 1]) && ! Melder_isUpperCaseLettercxx . . $ Melder_isUpperCaseLetter(b8d0204ce8416907). (theExpressioncxx . . $ theExpression. [ikar + 1])
520 && (itok == 0 || (lexancxx . . $ lexan. [itok]. symbolcxx . . $ structFormulaInstruction#symbol. != MATRIX_cxx . . $ MATRIX_. && lexancxx . . $ lexan. [itok]. symbolcxx . . $ structFormulaInstruction#symbol. != MATRIX_STR_cxx . . $ MATRIX_STR_.
521 && lexancxx . . $ lexan. [itok]. symbolcxx . . $ structFormulaInstruction#symbol. != CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.)))) {
522 integercxx . . $ integer# tok;
523 bool isString = false;
524 int rank = 0;
525 stringtokoncxx . . $ `sys/Formula.cpp:464:9`!;
526 do stringtokcharcxx . . $ `sys/Formula.cpp:465:9`! while (Melder_isWordCharactercxx . . $ Melder_isWordCharacter(b8d0204ce8416907). (kar) || kar == U'.');
527 if (kar == U'$') {
528 isString = true;
529 stringtokcharcxx . . $ `sys/Formula.cpp:465:9`!
530 if (kar == U'#') {
531 rank += 1;
532 stringtokcharcxx . . $ `sys/Formula.cpp:465:9`!
533 }
534 }
535 if (kar == U'#') {
536 rank += 1;
537 stringtokcharcxx . . $ `sys/Formula.cpp:465:9`!
538 if (kar == U'#') {
539 rank += 1;
540 stringtokcharcxx . . $ `sys/Formula.cpp:465:9`!
541 if (kar == U'#') {
542 rank += 1;
543 stringtokcharcxx . . $ `sys/Formula.cpp:465:9`!
544 if (kar == U'#') {
545 rank += 1;
546 stringtokcharcxx . . $ `sys/Formula.cpp:465:9`!
547 }
548 }
549 }
550 }
551 stringtokoffcxx . . $ `sys/Formula.cpp:466:9`!;
552 oldcharcxx . . $ `sys/Formula.cpp:456:9`!;
553 /*
554 `token` now contains a word, possibly ending in $, #, ## or $#;
555 it could be a variable name, a function name, both, or a procedure name.
556 Try a language or function name first.
557 */
558 tok = Formula_hasLanguageNamecxx . . $ Formula_hasLanguageName(c94c67ff4219bf83). (token.stringcxx . . $ MelderString#string.);
559 if (tok) {
560 /*
561 We have a language name or a function name. It MIGHT be meant to be a variable name, though,
562 regarding the large and expanding number of language names.
563 */
564 /*
565 First the constants. They are reserved words and can never be variable names.
566 */
567 if (tok == NUMBER_PI_cxx . . $ NUMBER_PI_.) {
568 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NUMBER_)
569 toknumbercxx . . $ `sys/Formula.cpp:460:9`! (NUMpi);
570 } else if (tok == NUMBER_E_cxx . . $ NUMBER_E_.) {
571 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NUMBER_)
572 toknumbercxx . . $ `sys/Formula.cpp:460:9`! (NUMe);
573 } else if (tok == NUMBER_UNDEFINED_cxx . . $ NUMBER_UNDEFINED_.) {
574 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NUMBER_)
575 toknumbercxx . . $ `sys/Formula.cpp:460:9`! (undefined);
576 /*
577 One very common language name must be converted to a synonym.
578 */
579 } else if (tok == FI_cxx . . $ FI_.) {
580 newtokcxx . . $ `sys/Formula.cpp:459:9`! (ENDIF_)
581 /*
582 Is it a function name? These may be ambiguous.
583 */
584 } else if (tok >= LOW_FUNCTIONcxx . . $ `sys/Formula.cpp:226:10`! && tok <= HIGH_FUNCTIONcxx . . $ `sys/Formula.cpp:227:10`!) {
585 /*
586 Look ahead to find out whether the next token is a left parenthesis (or a colon).
587 */
588 integercxx . . $ integer# jkar;
589 jkar = ikar + 1;
590 while (Melder_isHorizontalSpacecxx . . $ Melder_isHorizontalSpace(b8d0204ce8416907). (theExpressioncxx . . $ theExpression. [jkar]))
591 jkar ++;
592 if (theExpressioncxx . . $ theExpression. [jkar] == U'(' || theExpressioncxx . . $ theExpression. [jkar] == U':') {
593 newtokcxx . . $ `sys/Formula.cpp:459:9`! (tok) // this must be a function name
594 } else if (theExpressioncxx . . $ theExpression. [jkar] == U'[' && rank == 0) {
595 if (isString) {
596 newtokcxx . . $ `sys/Formula.cpp:459:9`! (INDEXED_STRING_VARIABLE_)
597 } else {
598 newtokcxx . . $ `sys/Formula.cpp:459:9`! (INDEXED_NUMERIC_VARIABLE_)
599 }
600 lexancxx . . $ lexan. [itok]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string. = Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (token.stringcxx . . $ MelderString#string.).transfercxx . . $ _autostring#transfer(155dc7f103cdb9db).();
601 numberOfStringConstantscxx . . $ numberOfStringConstants. ++;
602 } else {
603 /*
604 This could be a variable with the same name as a function.
605 */
606 const InterpreterVariablecxx . . $ InterpreterVariable# var = Interpreter_hasVariablecxx . . $ Interpreter_hasVariable(17b277cbad23fdab). (theInterpretercxx . . $ theInterpreter., token.stringcxx . . $ MelderString#string.);
607 if (! var) {
608 newtokcxx . . $ `sys/Formula.cpp:459:9`! (VARIABLE_NAME_)
609 lexancxx . . $ lexan. [itok]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string. = Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (token.stringcxx . . $ MelderString#string.).transfercxx . . $ _autostring#transfer(155dc7f103cdb9db).();
610 numberOfStringConstantscxx . . $ numberOfStringConstants. ++;
611 } else {
612 if (rank == 0) {
613 if (isString) {
614 newtokcxx . . $ `sys/Formula.cpp:459:9`! (STRING_VARIABLE_)
615 } else {
616 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NUMERIC_VARIABLE_)
617 }
618 } else if (rank == 1) {
619 if (isString) {
620 newtokcxx . . $ `sys/Formula.cpp:459:9`! (STRING_ARRAY_VARIABLE_)
621 } else {
622 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NUMERIC_VECTOR_VARIABLE_)
623 }
624 } else if (rank == 2) {
625 if (isString) {
626 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"String matrices not implemented.", ikar);
627 } else {
628 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NUMERIC_MATRIX_VARIABLE_)
629 }
630 } else if (rank == 3) {
631 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Rank-3 tensors not implemented.", ikar);
632 } else {
633 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Rank-4 tensors not implemented.", ikar);
634 }
635 lexancxx . . $ lexan. [itok]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. = var;
636 }
637 }
638 /*
639 Not a function name.
640 Must be a language name (if, then, else, endif, or, and, not, div, mod, x, ncol, stopwatch).
641 Some can be used as variable names (x, ncol...).
642 */
643 } else if (tok >= LOW_ATTRIBUTEcxx . . $ `sys/Formula.cpp:83:11`! && tok <= HIGH_ATTRIBUTEcxx . . $ `sys/Formula.cpp:86:11`!) {
644 /*
645 Look back to find out whether this is an attribute.
646 */
647 if (itok > 0 && lexancxx . . $ lexan. [itok]. symbolcxx . . $ structFormulaInstruction#symbol. == PERIOD_cxx . . $ PERIOD_.) {
648 /*
649 This must be an attribute that follows a period.
650 */
651 newtokcxx . . $ `sys/Formula.cpp:459:9`! (tok)
652 } else if (theSourcecxx . . $ theSource.) {
653 /*
654 Look for ambiguity.
655 */
656 if (Interpreter_hasVariablecxx . . $ Interpreter_hasVariable(17b277cbad23fdab). (theInterpretercxx . . $ theInterpreter., token.stringcxx . . $ MelderString#string.))
657 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (
658 U"«", token.string,
659 U"» is ambiguous: a variable or an attribute of the current object. "
660 U"Please change variable name.");
661 if (tok == ROW_cxx . . $ ROW_. || tok == COL_cxx . . $ COL_. || tok == X_cxx . . $ X_. || tok == Y_cxx . . $ Y_.) {
662 newtokcxx . . $ `sys/Formula.cpp:459:9`! (tok)
663 } else {
664 newtokcxx . . $ `sys/Formula.cpp:459:9`! (MATRIX_)
665 tokmatrixcxx . . $ `sys/Formula.cpp:461:9`! (theSource);
666 newtokcxx . . $ `sys/Formula.cpp:459:9`! (PERIOD_)
667 newtokcxx . . $ `sys/Formula.cpp:459:9`! (tok)
668 }
669 } else {
670 /*
671 This must be a variable, since there is no "current object" here.
672 */
673 integercxx . . $ integer# jkar = ikar + 1;
674 while (Melder_isHorizontalSpacecxx . . $ Melder_isHorizontalSpace(b8d0204ce8416907). (theExpressioncxx . . $ theExpression. [jkar])) jkar ++;
675 if (theExpressioncxx . . $ theExpression. [jkar] == U'[' && rank == 0) {
676 if (isString) {
677 newtokcxx . . $ `sys/Formula.cpp:459:9`! (INDEXED_STRING_VARIABLE_)
678 } else {
679 newtokcxx . . $ `sys/Formula.cpp:459:9`! (INDEXED_NUMERIC_VARIABLE_)
680 }
681 lexancxx . . $ lexan. [itok]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string. = Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (token.stringcxx . . $ MelderString#string.).transfercxx . . $ _autostring#transfer(155dc7f103cdb9db).();
682 numberOfStringConstantscxx . . $ numberOfStringConstants. ++;
683 } else {
684 const InterpreterVariablecxx . . $ InterpreterVariable# var = Interpreter_hasVariablecxx . . $ Interpreter_hasVariable(17b277cbad23fdab). (theInterpretercxx . . $ theInterpreter., token.stringcxx . . $ MelderString#string.);
685 if (! var) {
686 newtokcxx . . $ `sys/Formula.cpp:459:9`! (VARIABLE_NAME_)
687 lexancxx . . $ lexan. [itok]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string. = Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (token.stringcxx . . $ MelderString#string.).transfercxx . . $ _autostring#transfer(155dc7f103cdb9db).();
688 numberOfStringConstantscxx . . $ numberOfStringConstants. ++;
689 } else {
690 if (rank == 0) {
691 if (isString) {
692 newtokcxx . . $ `sys/Formula.cpp:459:9`! (STRING_VARIABLE_)
693 } else {
694 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NUMERIC_VARIABLE_)
695 }
696 } else if (rank == 1) {
697 if (isString) {
698 newtokcxx . . $ `sys/Formula.cpp:459:9`! (STRING_ARRAY_VARIABLE_)
699 } else {
700 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NUMERIC_VECTOR_VARIABLE_)
701 }
702 } else if (rank == 2) {
703 if (isString) {
704 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"String matrices not implemented.", ikar);
705 } else {
706 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NUMERIC_MATRIX_VARIABLE_)
707 }
708 } else if (rank == 3) {
709 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Rank-3 tensors not implemented.", ikar);
710 } else {
711 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Rank-4 tensors not implemented.", ikar);
712 }
713 lexancxx . . $ lexan. [itok]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. = var;
714 }
715 }
716 }
717 } else {
718 newtokcxx . . $ `sys/Formula.cpp:459:9`! (tok) // this must be a language name
719 }
720 } else {
721 /*
722 token.string is not a language name
723 */
724 integercxx . . $ integer# jkar = ikar + 1;
725 while (Melder_isHorizontalSpacecxx . . $ Melder_isHorizontalSpace(b8d0204ce8416907). (theExpressioncxx . . $ theExpression. [jkar]))
726 jkar ++;
727 if (theExpressioncxx . . $ theExpression. [jkar] == U'(' || theExpressioncxx . . $ theExpression. [jkar] == U':') {
728 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (
729 U"Unknown function «", token.string, U"» in formula.");
730 } else if (theExpressioncxx . . $ theExpression. [jkar] == '[' && rank == 0) {
731 if (isString) {
732 newtokcxx . . $ `sys/Formula.cpp:459:9`! (INDEXED_STRING_VARIABLE_)
733 } else {
734 newtokcxx . . $ `sys/Formula.cpp:459:9`! (INDEXED_NUMERIC_VARIABLE_)
735 }
736 lexancxx . . $ lexan. [itok]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string. = Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (token.stringcxx . . $ MelderString#string.).transfercxx . . $ _autostring#transfer(155dc7f103cdb9db).();
737 numberOfStringConstantscxx . . $ numberOfStringConstants. ++;
738 } else {
739 InterpreterVariablecxx . . $ InterpreterVariable# var = Interpreter_hasVariablecxx . . $ Interpreter_hasVariable(17b277cbad23fdab). (theInterpretercxx . . $ theInterpreter., token.stringcxx . . $ MelderString#string.);
740 if (! var) {
741 newtokcxx . . $ `sys/Formula.cpp:459:9`! (VARIABLE_NAME_)
742 lexancxx . . $ lexan. [itok]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string. = Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (token.stringcxx . . $ MelderString#string.).transfercxx . . $ _autostring#transfer(155dc7f103cdb9db).();
743 numberOfStringConstantscxx . . $ numberOfStringConstants. ++;
744 } else {
745 if (rank == 0) {
746 if (isString) {
747 newtokcxx . . $ `sys/Formula.cpp:459:9`! (STRING_VARIABLE_)
748 } else {
749 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NUMERIC_VARIABLE_)
750 }
751 } else if (rank == 1) {
752 if (isString) {
753 newtokcxx . . $ `sys/Formula.cpp:459:9`! (STRING_ARRAY_VARIABLE_)
754 } else {
755 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NUMERIC_VECTOR_VARIABLE_)
756 }
757 } else if (rank == 2) {
758 if (isString) {
759 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"String matrices not implemented.", ikar);
760 } else {
761 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NUMERIC_MATRIX_VARIABLE_)
762 }
763 } else if (rank == 3) {
764 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Rank-3 tensors not implemented.", ikar);
765 } else {
766 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Rank-4 tensors not implemented.", ikar);
767 }
768 lexancxx . . $ lexan. [itok]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. = var;
769 }
770 }
771 }
772 } else if (kar >= U'A' && kar <= U'Z') {
773 bool endsInDollarSign = false;
774 stringtokoncxx . . $ `sys/Formula.cpp:464:9`!;
775 do stringtokcharcxx . . $ `sys/Formula.cpp:465:9`! while (Melder_isAlphanumericcxx . . $ Melder_isAlphanumeric(b8d0204ce8416907). (kar) || kar == U'_');
776 if (kar == U'$') {
777 stringtokcharcxx . . $ `sys/Formula.cpp:465:9`!
778 endsInDollarSign = true;
779 }
780 stringtokoffcxx . . $ `sys/Formula.cpp:466:9`!;
781 oldcharcxx . . $ `sys/Formula.cpp:456:9`!;
782 /*
783 `token` now contains a word that could be an object name.
784 */
785 char32cxx . . $ char32# *underscore = str32chrcxx . . $ str32chr(328a9ede0fba853a). (token.stringcxx . . $ MelderString#string., '_');
786 if (str32equcxx . . $ `melder/melder_str32.h:122:9`! (token.stringcxx . . $ MelderString#string., U"Self")) {
787 if (! theSourcecxx . . $ theSource.)
788 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Cannot use “Self” if there is no current object.", ikar);
789 newtokcxx . . $ `sys/Formula.cpp:459:9`! (MATRIX_)
790 tokmatrixcxx . . $ `sys/Formula.cpp:461:9`! (theSource);
791 } else if (str32equcxx . . $ `melder/melder_str32.h:122:9`! (token.stringcxx . . $ MelderString#string., U"Self$")) {
792 if (! theSourcecxx . . $ theSource.)
793 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Cannot use “Self$” if there is no current object.", ikar);
794 newtokcxx . . $ `sys/Formula.cpp:459:9`! (MATRIX_STR_)
795 tokmatrixcxx . . $ `sys/Formula.cpp:461:9`! (theSource);
796 } else if (! underscore) {
797 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (
798 U"Unknown symbol «", token.string, U"» in formula "
799 U"(variables start with nonupper case; object names contain an underscore).");
800 } else if (str32nequcxx . . $ `melder/melder_str32.h:123:9`! (token.stringcxx . . $ MelderString#string., U"Object_", 7)) {
801 const integercxx . . $ integer# uniqueID = Melder_atoicxx . . $ Melder_atoi(c94c67ff4219bf83). (token.stringcxx . . $ MelderString#string. + 7);
802 integercxx . . $ integer# i = theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> ncxx . . $ structPraatObjects#n.;
803 while (i > 0 && uniqueID != theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> listcxx . . $ structPraatObjects#list. [i]. idcxx . . $ structPraat_Object#id.)
804 i --;
805 if (i == 0)
806 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"No such object (note: variables start with nonupper case)", ikar);
807 newtokcxx . . $ `sys/Formula.cpp:459:9`! (endsInDollarSign ? MATRIX_STR_ : MATRIX_)
808 tokmatrixcxx . . $ `sys/Formula.cpp:461:9`! ((Daata) theCurrentPraatObjects -> list [i]. object);
809 } else {
810 integercxx . . $ integer# i = theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> ncxx . . $ structPraatObjects#n.;
811 *underscore = U' ';
812 if (endsInDollarSign)
813 token.stringcxx . . $ MelderString#string. [-- token.lengthcxx . . $ MelderString#length.] = U'\0';
814 while (i > 0 && ! str32equcxx . . $ `melder/melder_str32.h:122:9`! (token.stringcxx . . $ MelderString#string., theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> listcxx . . $ structPraatObjects#list. [i]. namecxx . . $ structPraat_Object#name..getcxx . . $ _autostring#get(5a2a78a048fb49a8).()))
815 i --;
816 if (i == 0)
817 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"No such object (note: variables start with nonupper case)", ikar);
818 newtokcxx . . $ `sys/Formula.cpp:459:9`! (endsInDollarSign ? MATRIX_STR_ : MATRIX_)
819 tokmatrixcxx . . $ `sys/Formula.cpp:461:9`! ((Daata) theCurrentPraatObjects -> list [i]. object);
820 }
821 } else if (kar == U'(') {
822 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
823 if (kar == U'=') {
824 newtokcxx . . $ `sys/Formula.cpp:459:9`! (END_) // "(=" = final comment
825 } else {
826 oldcharcxx . . $ `sys/Formula.cpp:456:9`!;
827 newtokcxx . . $ `sys/Formula.cpp:459:9`! (OPENING_PARENTHESIS_)
828 }
829 } else if (kar == U')') {
830 newtokcxx . . $ `sys/Formula.cpp:459:9`! (CLOSING_PARENTHESIS_)
831 } else if (kar == U'+') {
832 newtokcxx . . $ `sys/Formula.cpp:459:9`! (ADD_)
833 } else if (kar == U'-') {
834 if (itok == 0 || lexancxx . . $ lexan. [itok]. symbolcxx . . $ structFormulaInstruction#symbol. <= MINUS_cxx . . $ MINUS_.) {
835 newtokcxx . . $ `sys/Formula.cpp:459:9`! (MINUS_)
836 } else {
837 newtokcxx . . $ `sys/Formula.cpp:459:9`! (SUB_)
838 }
839 } else if (kar == U'*') {
840 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
841 if (kar == U'*') {
842 newtokcxx . . $ `sys/Formula.cpp:459:9`! (POWER_) // "**" = "^"
843 } else {
844 oldcharcxx . . $ `sys/Formula.cpp:456:9`!;
845 newtokcxx . . $ `sys/Formula.cpp:459:9`! (MUL_)
846 }
847 } else if (kar == U'/') {
848 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
849 if (kar == U'=') {
850 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NE_) // "/=" = "<>"
851 } else {
852 oldcharcxx . . $ `sys/Formula.cpp:456:9`!;
853 newtokcxx . . $ `sys/Formula.cpp:459:9`! (RDIV_)
854 }
855 } else if (kar == U'=') {
856 newtokcxx . . $ `sys/Formula.cpp:459:9`! (EQ_) // "="
857 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
858 if (kar != U'=') {
859 oldcharcxx . . $ `sys/Formula.cpp:456:9`!; // "==" = "="
860 }
861 } else if (kar == U'>') {
862 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
863 if (kar == U'=') {
864 newtokcxx . . $ `sys/Formula.cpp:459:9`! (GE_)
865 } else {
866 oldcharcxx . . $ `sys/Formula.cpp:456:9`!;
867 newtokcxx . . $ `sys/Formula.cpp:459:9`! (GT_)
868 }
869 } else if (kar == U'<') {
870 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
871 if (kar == U'=') {
872 newtokcxx . . $ `sys/Formula.cpp:459:9`! (LE_)
873 } else if (kar == U'>') {
874 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NE_)
875 } else {
876 oldcharcxx . . $ `sys/Formula.cpp:456:9`!;
877 newtokcxx . . $ `sys/Formula.cpp:459:9`! (LT_)
878 }
879 } else if (kar == U'!') {
880 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
881 if (kar == U'=') {
882 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NE_) // "!=" = "<>"
883 } else {
884 oldcharcxx . . $ `sys/Formula.cpp:456:9`!;
885 newtokcxx . . $ `sys/Formula.cpp:459:9`! (NOT_)
886 }
887 } else if (kar == U',') {
888 newtokcxx . . $ `sys/Formula.cpp:459:9`! (COMMA_)
889 } else if (kar == U':') {
890 newtokcxx . . $ `sys/Formula.cpp:459:9`! (COLON_)
891 } else if (kar == U';') {
892 newtokcxx . . $ `sys/Formula.cpp:459:9`! (END_)
893 } else if (kar == U'^') {
894 newtokcxx . . $ `sys/Formula.cpp:459:9`! (POWER_)
895 } else if (kar == U'@') {
896 do {
897 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
898 } while (Melder_isHorizontalSpacecxx . . $ Melder_isHorizontalSpace(b8d0204ce8416907). (kar));
899 stringtokoncxx . . $ `sys/Formula.cpp:464:9`!;
900 do stringtokcharcxx . . $ `sys/Formula.cpp:465:9`! while (Melder_isWordCharactercxx . . $ Melder_isWordCharacter(b8d0204ce8416907). (kar) || kar == U'.');
901 stringtokoffcxx . . $ `sys/Formula.cpp:466:9`!;
902 oldcharcxx . . $ `sys/Formula.cpp:456:9`!;
903 newtokcxx . . $ `sys/Formula.cpp:459:9`! (CALL_)
904 lexancxx . . $ lexan. [itok]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string. = Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (token.stringcxx . . $ MelderString#string.).transfercxx . . $ _autostring#transfer(155dc7f103cdb9db).();
905 numberOfStringConstantscxx . . $ numberOfStringConstants. ++;
906 } else if (kar == U'"') {
907 /*
908 String constant, straight-quote version.
909 */
910 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
911 stringtokoncxx . . $ `sys/Formula.cpp:464:9`!;
912 for (;;) {
913 if (kar == U'\0')
914 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"No closing quote in string constant", ikar);
915 if (kar == U'"') {
916 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
917 if (kar == U'"')
918 stringtokcharcxx . . $ `sys/Formula.cpp:465:9`!
919 else break;
920 } else {
921 stringtokcharcxx . . $ `sys/Formula.cpp:465:9`!
922 }
923 }
924 stringtokoffcxx . . $ `sys/Formula.cpp:466:9`!;
925 oldcharcxx . . $ `sys/Formula.cpp:456:9`!;
926 newtokcxx . . $ `sys/Formula.cpp:459:9`! (STRING_)
927 lexancxx . . $ lexan. [itok]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string. = Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (token.stringcxx . . $ MelderString#string.).transfercxx . . $ _autostring#transfer(155dc7f103cdb9db).();
928 numberOfStringConstantscxx . . $ numberOfStringConstants. ++;
929 } else if (kar == U'“') {
930 /*
931 String constant, curly-quote version.
932 */
933 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
934 stringtokoncxx . . $ `sys/Formula.cpp:464:9`!;
935 for (;;) {
936 if (kar == U'\0')
937 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"No closing quote in string constant", ikar);
938 if (kar == U'”')
939 break;
940 stringtokcharcxx . . $ `sys/Formula.cpp:465:9`!
941 }
942 stringtokoffcxx . . $ `sys/Formula.cpp:466:9`!;
943 newtokcxx . . $ `sys/Formula.cpp:459:9`! (STRING_)
944 lexancxx . . $ lexan. [itok]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string. = Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (token.stringcxx . . $ MelderString#string.).transfercxx . . $ _autostring#transfer(155dc7f103cdb9db).();
945 numberOfStringConstantscxx . . $ numberOfStringConstants. ++;
946 } else if (kar == U'~') {
947 /*
948 The content of the remainder of the line,
949 including any leading and trailing space,
950 will become a string constant (this is good for formulas).
951 */
952 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
953 stringtokoncxx . . $ `sys/Formula.cpp:464:9`!;
954 for (;;) {
955 if (kar == U'\0')
956 break;
957 stringtokcharcxx . . $ `sys/Formula.cpp:465:9`!
958 }
959 stringtokoffcxx . . $ `sys/Formula.cpp:466:9`!;
960 oldcharcxx . . $ `sys/Formula.cpp:456:9`!;
961 newtokcxx . . $ `sys/Formula.cpp:459:9`! (STRING_)
962 lexancxx . . $ lexan. [itok]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string. = Melder_dup_fcxx . . $ Melder_dup_f(87bf156b1f548402). (token.stringcxx . . $ MelderString#string.).transfercxx . . $ _autostring#transfer(155dc7f103cdb9db).();
963 numberOfStringConstantscxx . . $ numberOfStringConstants. ++;
964 } else if (kar == U'|') {
965 newtokcxx . . $ `sys/Formula.cpp:459:9`! (OR_) /* "|" = "or" */
966 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
967 if (kar != U'|') {
968 oldcharcxx . . $ `sys/Formula.cpp:456:9`!; /* "||" = "or" */
969 }
970 } else if (kar == U'&') {
971 newtokcxx . . $ `sys/Formula.cpp:459:9`! (AND_) /* "&" = "and" */
972 newcharcxx . . $ `sys/Formula.cpp:455:9`!;
973 if (kar != U'&') {
974 oldcharcxx . . $ `sys/Formula.cpp:456:9`!; /* "&&" = "and" */
975 }
976 } else if (kar == U'[') {
977 newtokcxx . . $ `sys/Formula.cpp:459:9`! (OPENING_BRACKET_)
978 } else if (kar == U']') {
979 newtokcxx . . $ `sys/Formula.cpp:459:9`! (CLOSING_BRACKET_)
980 } else if (kar == U'{') {
981 newtokcxx . . $ `sys/Formula.cpp:459:9`! (OPENING_BRACE_)
982 } else if (kar == U'}') {
983 newtokcxx . . $ `sys/Formula.cpp:459:9`! (CLOSING_BRACE_)
984 } else if (kar == U'.') {
985 newtokcxx . . $ `sys/Formula.cpp:459:9`! (PERIOD_)
986 } else {
987 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Unknown symbol", ikar);
988 }
989 } while (lexancxx . . $ lexan. [itok]. symbolcxx . . $ structFormulaInstruction#symbol. != END_cxx . . $ END_.);
990 }
991
992 static void fitcxx . . $ fit(1624ee8275b10bda). (integercxx . . $ integer# symbol) {
993 if (symbol == newreadcxx . . $ `sys/Formula.cpp:405:9`!) {
994 return; // success
995 } else {
996 const conststring32cxx . . $ conststring32# symbolName1 = Formula_instructionNamescxx . . $ Formula_instructionNames. [symbol];
997 const conststring32cxx . . $ conststring32# symbolName2 = Formula_instructionNamescxx . . $ Formula_instructionNames. [lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. symbolcxx . . $ structFormulaInstruction#symbol.];
998 const bool needQuotes1 = ! str32chrcxx . . $ str32chr(328a9ede0fba853a). (symbolName1, U' ');
999 const bool needQuotes2 = ! str32chrcxx . . $ str32chr(328a9ede0fba853a). (symbolName2, U' ');
1000 static MelderStringcxx . . $ MelderString# message;
1001 MelderString_copycxx . . $ MelderString_copy(65be51a793e0ff96). (& message,
1002 U"Expected ", ( needQuotes1 ? U"“" : nullptr ), symbolName1, ( needQuotes1 ? U"”" : nullptr ),
1003 U", but found ", ( needQuotes2 ? U"“" : nullptr ), symbolName2, ( needQuotes2 ? U"”" : nullptr ));
1004 formulaErrorcxx . . $ formulaError(940f97f64241106a). (message.stringcxx . . $ MelderString#string., lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1005 }
1006 }
1007
1008 static bool fitArgumentscxx . . $ fitArguments(c9857a73d68e59ba). () {
1009 const integercxx . . $ integer# symbol = newreadcxx . . $ `sys/Formula.cpp:405:9`!;
1010 if (symbol == OPENING_PARENTHESIS_cxx . . $ OPENING_PARENTHESIS_.)
1011 return true; // success: a function call like: myFunction (...)
1012 if (symbol == COLON_cxx . . $ COLON_.)
1013 return false; // success: a function call like: myFunction: ...
1014 const conststring32cxx . . $ conststring32# symbolName2 = Formula_instructionNamescxx . . $ Formula_instructionNames. [lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. symbolcxx . . $ structFormulaInstruction#symbol.];
1015 const bool needQuotes2 = ! str32chrcxx . . $ str32chr(328a9ede0fba853a). (symbolName2, U' ');
1016 static MelderStringcxx . . $ MelderString# message;
1017 MelderString_copycxx . . $ MelderString_copy(65be51a793e0ff96). (& message,
1018 U"Expected “(” or “:”, but found ", ( needQuotes2 ? U"“" : nullptr ), symbolName2, ( needQuotes2 ? U"”" : nullptr ));
1019 formulaErrorcxx . . $ formulaError(940f97f64241106a). (message.stringcxx . . $ MelderString#string., lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1020 return false; // will never occur
1021 }
1022
1023 #define newparsecxx . . $ `sys/Formula.cpp:1023:9`!(s) parse [++ iparse]. symbol = (s)
1024 #define parsenumbercxx . . $ `sys/Formula.cpp:1024:9`!(g) parse [iparse]. content.number = (g)
1025 #define parselabelcxx . . $ `sys/Formula.cpp:1025:9`!(l) parse [iparse]. content.label = (l)
1026
1027 static void parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1028
1029 static void parsePowerFactorcxx . . $ parsePowerFactor(49f6e7a06ebc5aa8). () {
1030 integercxx . . $ integer# symbol = newreadcxx . . $ `sys/Formula.cpp:405:9`!;
1031
1032 if (symbol >= LOW_VALUEcxx . . $ `sys/Formula.cpp:80:10`! && symbol <= HIGH_VALUEcxx . . $ `sys/Formula.cpp:87:10`!) {
1033 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (symbol);
1034 if (symbol == NUMBER_cxx . . $ NUMBER_.) parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (lexan [ilexan]. content.number);
1035 return;
1036 }
1037
1038 if (symbol == STRING_cxx . . $ STRING_.) {
1039 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (symbol);
1040 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string. = lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string.; // reference copy!
1041 return;
1042 }
1043
1044 if (symbol == NUMERIC_VARIABLE_cxx . . $ NUMERIC_VARIABLE_. || symbol == STRING_VARIABLE_cxx . . $ STRING_VARIABLE_.) {
1045 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (symbol);
1046 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. = lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.;
1047 return;
1048 }
1049
1050 if (symbol == INDEXED_NUMERIC_VARIABLE_cxx . . $ INDEXED_NUMERIC_VARIABLE_. || symbol == INDEXED_STRING_VARIABLE_cxx . . $ INDEXED_STRING_VARIABLE_.) {
1051 char32cxx . . $ char32# *var = lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string.; // Save before incrementing ilexan.
1052 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.) {
1053 int n = 0;
1054 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! != CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.) {
1055 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1056 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1057 n ++;
1058 while (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1059 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1060 n ++;
1061 }
1062 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1063 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1064 }
1065 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_); parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (n);
1066 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (symbol);
1067 } else {
1068 Melder_crashcxx . . $ `melder/melder_error.h:98:9`! (U"Formula:parsePowerFactor (indexed variable): No '['; cannot happen.");
1069 }
1070 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string. = var;
1071 return;
1072 }
1073
1074 if (symbol == NUMERIC_VECTOR_VARIABLE_cxx . . $ NUMERIC_VECTOR_VARIABLE_.) {
1075 const InterpreterVariablecxx . . $ InterpreterVariable# var = lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.; // save before incrementing ilexan
1076 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.) {
1077 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1078 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1079 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (VEC_CELL_);
1080 } else {
1081 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1082 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMERIC_VECTOR_VARIABLE_);
1083 }
1084 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. = var;
1085 return;
1086 }
1087
1088 if (symbol == NUMERIC_MATRIX_VARIABLE_cxx . . $ NUMERIC_MATRIX_VARIABLE_.) {
1089 const InterpreterVariablecxx . . $ InterpreterVariable# var = lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.; // save before incrementing ilexan
1090 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.) {
1091 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1092 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1093 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1094 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1095 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (MAT_CELL_);
1096 } else {
1097 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1098 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMERIC_MATRIX_VARIABLE_);
1099 }
1100 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. = var;
1101 return;
1102 }
1103
1104 if (symbol == STRING_ARRAY_VARIABLE_cxx . . $ STRING_ARRAY_VARIABLE_.) {
1105 const InterpreterVariablecxx . . $ InterpreterVariable# var = lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.; // save before incrementing ilexan
1106 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.) {
1107 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1108 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1109 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (STRVEC_CELL_);
1110 } else {
1111 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1112 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (STRING_ARRAY_VARIABLE_);
1113 }
1114 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. = var;
1115 return;
1116 }
1117
1118 if (symbol == VARIABLE_NAME_cxx . . $ VARIABLE_NAME_.) {
1119 const InterpreterVariablecxx . . $ InterpreterVariable# var = Interpreter_hasVariablecxx . . $ Interpreter_hasVariable(17b277cbad23fdab). (theInterpretercxx . . $ theInterpreter., lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string.);
1120 if (! var)
1121 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Unknown variable", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1122 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMERIC_VARIABLE_);
1123 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. = var;
1124 return;
1125 }
1126
1127 if (symbol == SELF_cxx . . $ SELF_.) {
1128 symbol = newreadcxx . . $ `sys/Formula.cpp:405:9`!;
1129 if (symbol == OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.) {
1130 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1131 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1132 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1133 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (SELFMATRIX2_);
1134 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1135 return;
1136 }
1137 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1138 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (SELFMATRIX1_);
1139 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1140 return;
1141 }
1142 if (symbol == OPENING_PARENTHESIS_cxx . . $ OPENING_PARENTHESIS_.) {
1143 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1144 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1145 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1146 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (SELFFUNCTION2_);
1147 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1148 return;
1149 }
1150 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1151 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (SELFFUNCTION1_);
1152 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1153 return;
1154 }
1155 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1156 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (SELF0_);
1157 return;
1158 }
1159
1160 if (symbol == SELF_STR_cxx . . $ SELF_STR_.) {
1161 symbol = newreadcxx . . $ `sys/Formula.cpp:405:9`!;
1162 if (symbol == OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.) {
1163 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1164 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1165 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1166 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (SELFMATRIX2_STR_);
1167 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1168 return;
1169 }
1170 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1171 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (SELFMATRIX1_STR_);
1172 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1173 return;
1174 }
1175 if (symbol == OPENING_PARENTHESIS_cxx . . $ OPENING_PARENTHESIS_.) {
1176 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1177 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1178 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1179 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (SELFFUNCTION2_STR_);
1180 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1181 return;
1182 }
1183 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1184 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (SELFFUNCTION1_STR_);
1185 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1186 return;
1187 }
1188 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1189 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (SELFSTR0_);
1190 return;
1191 }
1192
1193 if (symbol == OBJECT_cxx . . $ OBJECT_.) {
1194 symbol = newreadcxx . . $ `sys/Formula.cpp:405:9`!;
1195 if (symbol == OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.) {
1196 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). (); // the object's name or ID
1197 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (TO_OBJECT_);
1198 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.) {
1199 symbol = newreadcxx . . $ `sys/Formula.cpp:405:9`!;
1200 if (symbol == PERIOD_cxx . . $ PERIOD_.) {
1201 switch (newreadcxx . . $ `sys/Formula.cpp:405:9`!) {
1202 case XMIN_cxx . . $ XMIN_.:
1203 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECT_XMIN_);
1204 return;
1205 case XMAX_cxx . . $ XMAX_.:
1206 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECT_XMAX_);
1207 return;
1208 case YMIN_cxx . . $ YMIN_.:
1209 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECT_YMIN_);
1210 return;
1211 case YMAX_cxx . . $ YMAX_.:
1212 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECT_YMAX_);
1213 return;
1214 case NX_cxx . . $ NX_.:
1215 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECT_NX_);
1216 return;
1217 case NY_cxx . . $ NY_.:
1218 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECT_NY_);
1219 return;
1220 case DX_cxx . . $ DX_.:
1221 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECT_DX_);
1222 return;
1223 case DY_cxx . . $ DY_.:
1224 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECT_DY_);
1225 return;
1226 case NROW_cxx . . $ NROW_.:
1227 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECT_NROW_);
1228 return;
1229 case NCOL_cxx . . $ NCOL_.:
1230 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECT_NCOL_);
1231 return;
1232 case ROW_STR_cxx . . $ ROW_STR_.:
1233 fitcxx . . $ fit(1624ee8275b10bda). (OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.);
1234 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1235 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECT_ROW_STR_);
1236 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1237 return;
1238 case COL_STR_cxx . . $ COL_STR_.:
1239 fitcxx . . $ fit(1624ee8275b10bda). (OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.);
1240 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1241 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECT_COL_STR_);
1242 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1243 return;
1244 default:
1245 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"After “object [number].” there should be “xmin”, “xmax”, “ymin”, "
1246 "“ymax”, “nx”, “ny”, “dx”, “dy”, “nrow” or “ncol”", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1247 }
1248 } else if (symbol == OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.) {
1249 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1250 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1251 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1252 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECTCELL2_);
1253 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1254 } else {
1255 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1256 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECTCELL1_);
1257 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1258 }
1259 } else {
1260 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1261 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECTCELL0_);
1262 }
1263 } else {
1264 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1265 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1266 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1267 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1268 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1269 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECTCELL2_);
1270 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1271 } else {
1272 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1273 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECTCELL1_);
1274 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1275 }
1276 }
1277 } else if (symbol == OPENING_PARENTHESIS_cxx . . $ OPENING_PARENTHESIS_.) {
1278 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). (); // the object's name or ID
1279 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (TO_OBJECT_);
1280 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.) {
1281 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECTLOCATION0_);
1282 } else {
1283 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1284 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1285 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1286 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1287 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1288 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECTLOCATION2_);
1289 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1290 } else {
1291 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1292 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECTLOCATION1_);
1293 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1294 }
1295 }
1296 } else {
1297 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"After “object” there should be “(” or “[”", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1298 }
1299 return;
1300 }
1301
1302 if (symbol == OBJECT_STR_cxx . . $ OBJECT_STR_.) {
1303 symbol = newreadcxx . . $ `sys/Formula.cpp:405:9`!;
1304 if (symbol == OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.) {
1305 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). (); // the object's name or ID
1306 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (TO_OBJECT_);
1307 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.) {
1308 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECTCELL0_STR_);
1309 } else {
1310 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1311 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1312 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1313 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1314 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1315 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECTCELL2_STR_);
1316 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1317 } else {
1318 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1319 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECTCELL1_STR_);
1320 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1321 }
1322 }
1323 } else if (symbol == OPENING_PARENTHESIS_cxx . . $ OPENING_PARENTHESIS_.) {
1324 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). (); // the object's name or ID
1325 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (TO_OBJECT_);
1326 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.) {
1327 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECTLOCATION0_STR_);
1328 } else {
1329 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1330 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1331 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1332 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1333 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1334 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECTLOCATION2_STR_);
1335 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1336 } else {
1337 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1338 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (OBJECTLOCATION1_STR_);
1339 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1340 }
1341 }
1342 } else {
1343 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"After “object$” there should be “(” or “[”", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1344 }
1345 return;
1346 }
1347
1348 if (symbol == OPENING_PARENTHESIS_cxx . . $ OPENING_PARENTHESIS_.) {
1349 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1350 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1351 return;
1352 }
1353
1354 if (symbol == IF_cxx . . $ IF_.) {
1355 const integercxx . . $ integer# elseLabel = newlabelcxx . . $ `sys/Formula.cpp:404:9`!; // has to be local,
1356 const integercxx . . $ integer# endifLabel = newlabelcxx . . $ `sys/Formula.cpp:404:9`!; // because of recursion
1357 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1358 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (IFFALSE_);
1359 parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (elseLabel);
1360 fitcxx . . $ fit(1624ee8275b10bda). (THEN_cxx . . $ THEN_.);
1361 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1362 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (GOTO_);
1363 parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (endifLabel);
1364 fitcxx . . $ fit(1624ee8275b10bda). (ELSE_cxx . . $ ELSE_.);
1365 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (LABEL_);
1366 parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (elseLabel);
1367 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1368 fitcxx . . $ fit(1624ee8275b10bda). (ENDIF_cxx . . $ ENDIF_.);
1369 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (LABEL_);
1370 parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (endifLabel);
1371 return;
1372 }
1373
1374 if (symbol == MATRIX_cxx . . $ MATRIX_.) {
1375 const Daatacxx . . $ Daata# thee = lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.;
1376 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (thee != nullptr);
1377 symbol = newreadcxx . . $ `sys/Formula.cpp:405:9`!;
1378 if (symbol == OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.) {
1379 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.) {
1380 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (MATRIX0_);
1381 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object. = thee;
1382 } else {
1383 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1384 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1385 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1386 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1387 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (MATRIX2_);
1388 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object. = thee;
1389 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1390 } else {
1391 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1392 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (MATRIX1_);
1393 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object. = thee;
1394 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1395 }
1396 }
1397 } else if (symbol == OPENING_PARENTHESIS_cxx . . $ OPENING_PARENTHESIS_.) {
1398 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.) {
1399 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (FUNCTION0_);
1400 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object. = thee;
1401 } else {
1402 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1403 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1404 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1405 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1406 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (FUNCTION2_);
1407 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object. = thee;
1408 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1409 } else {
1410 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1411 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (FUNCTION1_);
1412 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object. = thee;
1413 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1414 }
1415 }
1416 } else if (symbol == PERIOD_cxx . . $ PERIOD_.) {
1417 switch (newreadcxx . . $ `sys/Formula.cpp:405:9`!) {
1418 case XMIN_cxx . . $ XMIN_.:
1419 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetXmincxx . . $ structDaata#v_hasGetXmin(50ce9a9e25b4a850). ()) {
1420 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Attribute “xmin” not defined for this object", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1421 } else {
1422 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_);
1423 parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (thycxx . . $ `melder/melder.h:45:9`! v_getXmin ());
1424 return;
1425 }
1426 case XMAX_cxx . . $ XMAX_.:
1427 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetXmaxcxx . . $ structDaata#v_hasGetXmax(50ce9a9e25b4a850). ()) {
1428 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Attribute “xmax” not defined for this object", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1429 } else {
1430 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_);
1431 parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (thycxx . . $ `melder/melder.h:45:9`! v_getXmax ());
1432 return;
1433 }
1434 case YMIN_cxx . . $ YMIN_.:
1435 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetYmincxx . . $ structDaata#v_hasGetYmin(50ce9a9e25b4a850). ()) {
1436 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Attribute “ymin” not defined for this object", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1437 } else {
1438 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_);
1439 parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (thycxx . . $ `melder/melder.h:45:9`! v_getYmin ());
1440 return;
1441 }
1442 case YMAX_cxx . . $ YMAX_.:
1443 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetYmaxcxx . . $ structDaata#v_hasGetYmax(50ce9a9e25b4a850). ()) {
1444 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Attribute “ymax” not defined for this object", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1445 } else {
1446 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_);
1447 parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (thycxx . . $ `melder/melder.h:45:9`! v_getYmax ());
1448 return;
1449 }
1450 case NX_cxx . . $ NX_.:
1451 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetNxcxx . . $ structDaata#v_hasGetNx(50ce9a9e25b4a850). ()) {
1452 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Attribute “nx” not defined for this object", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1453 } else {
1454 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_);
1455 parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (thycxx . . $ `melder/melder.h:45:9`! v_getNx ());
1456 return;
1457 }
1458 case NY_cxx . . $ NY_.:
1459 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetNycxx . . $ structDaata#v_hasGetNy(50ce9a9e25b4a850). ()) {
1460 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Attribute “ny” not defined for this object", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1461 } else {
1462 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_);
1463 parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (thycxx . . $ `melder/melder.h:45:9`! v_getNy ());
1464 return;
1465 }
1466 case DX_cxx . . $ DX_.:
1467 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetDxcxx . . $ structDaata#v_hasGetDx(50ce9a9e25b4a850). ()) {
1468 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Attribute “dx” not defined for this object", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1469 } else {
1470 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_);
1471 parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (thycxx . . $ `melder/melder.h:45:9`! v_getDx ());
1472 return;
1473 }
1474 case DY_cxx . . $ DY_.:
1475 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetDycxx . . $ structDaata#v_hasGetDy(50ce9a9e25b4a850). ()) {
1476 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Attribute “dy” not defined for this object", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1477 } else {
1478 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_);
1479 parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (thycxx . . $ `melder/melder.h:45:9`! v_getDy ());
1480 return;
1481 }
1482 case NCOL_cxx . . $ NCOL_.:
1483 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetNcolcxx . . $ structDaata#v_hasGetNcol(50ce9a9e25b4a850). ()) {
1484 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Attribute “ncol” not defined for this object", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1485 } else {
1486 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_);
1487 parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (thycxx . . $ `melder/melder.h:45:9`! v_getNcol ());
1488 return;
1489 }
1490 case NROW_cxx . . $ NROW_.:
1491 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetNrowcxx . . $ structDaata#v_hasGetNrow(50ce9a9e25b4a850). ()) {
1492 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Attribute “nrow” not defined for this object", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1493 } else {
1494 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_);
1495 parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (thycxx . . $ `melder/melder.h:45:9`! v_getNrow ());
1496 return;
1497 }
1498 case ROW_STR_cxx . . $ ROW_STR_.:
1499 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetRowStrcxx . . $ structDaata#v_hasGetRowStr(50ce9a9e25b4a850). ()) {
1500 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Attribute “row$” not defined for this object", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1501 } else {
1502 fitcxx . . $ fit(1624ee8275b10bda). (OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.);
1503 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1504 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (ROW_STR_);
1505 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object. = thee;
1506 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1507 return;
1508 }
1509 case COL_STR_cxx . . $ COL_STR_.:
1510 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetColStrcxx . . $ structDaata#v_hasGetColStr(50ce9a9e25b4a850). ()) {
1511 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Attribute “col$” not defined for this object", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1512 } else {
1513 fitcxx . . $ fit(1624ee8275b10bda). (OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.);
1514 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1515 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (COL_STR_);
1516 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object. = thee;
1517 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1518 return;
1519 }
1520 default: formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Unknown attribute.", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1521 }
1522 } else {
1523 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"After a name of a matrix there should be “(”, “[”, or “.”", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1524 }
1525 return;
1526 }
1527
1528 if (symbol == MATRIX_STR_cxx . . $ MATRIX_STR_.) {
1529 const Daatacxx . . $ Daata# thee = lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.;
1530 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (thee != nullptr);
1531 symbol = newreadcxx . . $ `sys/Formula.cpp:405:9`!;
1532 if (symbol == OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.) {
1533 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.) {
1534 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (MATRIX0_STR_);
1535 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object. = thee;
1536 } else {
1537 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1538 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1539 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1540 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1541 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (MATRIX2_STR_);
1542 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object. = thee;
1543 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1544 } else {
1545 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1546 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (MATRIX1_STR_);
1547 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object. = thee;
1548 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1549 }
1550 }
1551 } else {
1552 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"After a name of a matrix$ there should be “[”", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1553 }
1554 return;
1555 }
1556
1557 if (symbol >= LOW_FUNCTION_1cxx . . $ `sys/Formula.cpp:95:10`! && symbol <= HIGH_FUNCTION_1cxx . . $ `sys/Formula.cpp:120:10`!) {
1558 const bool isParenthesis = fitArgumentscxx . . $ fitArguments(c9857a73d68e59ba). ();
1559 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1560 if (isParenthesis)
1561 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1562 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (symbol);
1563 return;
1564 }
1565
1566 if (symbol >= LOW_FUNCTION_2cxx . . $ `sys/Formula.cpp:123:10`! && symbol <= HIGH_FUNCTION_2cxx . . $ `sys/Formula.cpp:134:10`!) {
1567 const bool isParenthesis = fitArgumentscxx . . $ fitArguments(c9857a73d68e59ba). ();
1568 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1569 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1570 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1571 if (isParenthesis)
1572 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1573 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (symbol);
1574 return;
1575 }
1576
1577 if (symbol >= LOW_FUNCTION_3cxx . . $ `sys/Formula.cpp:137:10`! && symbol <= HIGH_FUNCTION_3cxx . . $ `sys/Formula.cpp:140:10`!) {
1578 const bool isParenthesis = fitArgumentscxx . . $ fitArguments(c9857a73d68e59ba). ();
1579 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1580 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1581 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1582 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1583 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1584 if (isParenthesis)
1585 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1586 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (symbol);
1587 return;
1588 }
1589
1590 if (symbol >= LOW_FUNCTION_4cxx . . $ `sys/Formula.cpp:143:10`! && symbol <= HIGH_FUNCTION_4cxx . . $ `sys/Formula.cpp:145:10`!) {
1591 const bool isParenthesis = fitArgumentscxx . . $ fitArguments(c9857a73d68e59ba). ();
1592 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1593 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1594 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1595 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1596 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1597 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1598 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1599 if (isParenthesis)
1600 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1601 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (symbol);
1602 return;
1603 }
1604
1605 if (symbol >= LOW_FUNCTION_Ncxx . . $ `sys/Formula.cpp:148:10`! && symbol <= HIGH_FUNCTION_Ncxx . . $ `sys/Formula.cpp:195:10`!) {
1606 int n = 0;
1607 const bool isParenthesis = fitArgumentscxx . . $ fitArguments(c9857a73d68e59ba). ();
1608 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! != CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.) {
1609 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1610 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1611 n ++;
1612 while (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1613 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1614 n ++;
1615 }
1616 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1617 if (isParenthesis)
1618 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1619 }
1620 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_); parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (n);
1621 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (symbol);
1622 return;
1623 }
1624
1625 if (symbol == OPENING_BRACE_cxx . . $ OPENING_BRACE_.) {
1626 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == CLOSING_BRACE_cxx . . $ CLOSING_BRACE_.) {
1627 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_);
1628 parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (0);
1629 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (TENSOR_LITERAL_);
1630 return;
1631 }
1632 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1633 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1634 int n = 1;
1635 while (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1636 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1637 n ++;
1638 }
1639 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1640 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACE_cxx . . $ CLOSING_BRACE_.);
1641 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_);
1642 parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (n);
1643 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == OPENING_BRACKET_cxx . . $ OPENING_BRACKET_.) {
1644 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1645 //fit (COMMA_); // this would be for matrices
1646 //parseExpression ();
1647 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_BRACKET_cxx . . $ CLOSING_BRACKET_.);
1648 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (TENSOR_LITERAL_CELL_);
1649 } else {
1650 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1651 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (TENSOR_LITERAL_);
1652 }
1653 return;
1654 }
1655
1656 if (symbol == CALL_cxx . . $ CALL_.) {
1657 char32cxx . . $ char32# *procedureName = lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string.; // reference copy!
1658 int n = 0;
1659 const bool isParenthesis = fitArgumentscxx . . $ fitArguments(c9857a73d68e59ba). ();
1660 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! != CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.) {
1661 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1662 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1663 n ++;
1664 while (newreadcxx . . $ `sys/Formula.cpp:405:9`! == COMMA_cxx . . $ COMMA_.) {
1665 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1666 n ++;
1667 }
1668 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1669 if (isParenthesis)
1670 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1671 }
1672 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_); parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (n);
1673 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (CALL_);
1674 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string. = procedureName;
1675 return;
1676 }
1677
1678 if (symbol >= LOW_STRING_FUNCTIONcxx . . $ `sys/Formula.cpp:198:10`! && symbol <= HIGH_STRING_FUNCTIONcxx . . $ `sys/Formula.cpp:219:10`!) {
1679 if (symbol >= LOW_FUNCTION_STR1cxx . . $ `sys/Formula.cpp:199:11`! && symbol <= HIGH_FUNCTION_STR1cxx . . $ `sys/Formula.cpp:206:11`!) {
1680 const bool isParenthesis = fitArgumentscxx . . $ fitArguments(c9857a73d68e59ba). ();
1681 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1682 if (isParenthesis)
1683 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1684 } else if (symbol >= LOW_FUNCTION_STR2cxx . . $ `sys/Formula.cpp:210:11`! && symbol <= HIGH_FUNCTION_STR2cxx . . $ `sys/Formula.cpp:216:11`!) {
1685 const bool isParenthesis = fitArgumentscxx . . $ fitArguments(c9857a73d68e59ba). ();
1686 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1687 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1688 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1689 if (isParenthesis)
1690 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1691 } else if (symbol >= LOW_FUNCTION_STR0cxx . . $ `sys/Formula.cpp:207:11`! && symbol <= HIGH_FUNCTION_STR0cxx . . $ `sys/Formula.cpp:209:11`!) {
1692 fitcxx . . $ fit(1624ee8275b10bda). (OPENING_PARENTHESIS_cxx . . $ OPENING_PARENTHESIS_.);
1693 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1694 } else if (symbol == EXTRACT_WORD_STR_cxx . . $ EXTRACT_WORD_STR_. || symbol == EXTRACT_LINE_STR_cxx . . $ EXTRACT_LINE_STR_.) {
1695 const bool isParenthesis = fitArgumentscxx . . $ fitArguments(c9857a73d68e59ba). ();
1696 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1697 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1698 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1699 if (isParenthesis)
1700 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1701 } else if (symbol == REPLACE_STR_cxx . . $ REPLACE_STR_. || symbol == REPLACE_REGEX_STR_cxx . . $ REPLACE_REGEX_STR_.) {
1702 const bool isParenthesis = fitArgumentscxx . . $ fitArguments(c9857a73d68e59ba). ();
1703 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1704 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1705 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1706 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1707 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1708 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1709 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1710 if (isParenthesis)
1711 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1712 } else {
1713 oldreadcxx . . $ `sys/Formula.cpp:406:9`!; // needed for retry if we are going to be in a string comparison?
1714 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Function expected", lexancxx . . $ lexan. [ilexancxx . . $ ilexan. + 1]. positioncxx . . $ structFormulaInstruction#position.);
1715 }
1716 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (symbol);
1717 return;
1718 }
1719
1720 if (symbol >= LOW_RANGE_FUNCTIONcxx . . $ `sys/Formula.cpp:222:10`! && symbol <= HIGH_RANGE_FUNCTIONcxx . . $ `sys/Formula.cpp:224:10`!) {
1721 if (symbol == SUM_OVER_cxx . . $ SUM_OVER_.) {
1722 //theOptimize = 1;
1723 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_);
1724 parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (0.0); // initialize the sum
1725 const bool isParenthesis = fitArgumentscxx . . $ fitArguments(c9857a73d68e59ba). ();
1726 const integercxx . . $ integer# symbol2 = newreadcxx . . $ `sys/Formula.cpp:405:9`!;
1727 if (symbol2 == NUMERIC_VARIABLE_cxx . . $ NUMERIC_VARIABLE_.) { // an existing variable
1728 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (VARIABLE_REFERENCE_);
1729 InterpreterVariablecxx . . $ InterpreterVariable# loopVariable = lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.;
1730 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. = loopVariable;
1731 } else if (symbol2 == VARIABLE_NAME_cxx . . $ VARIABLE_NAME_.) { // a new variable
1732 InterpreterVariablecxx . . $ InterpreterVariable# loopVariable = Interpreter_lookUpVariablecxx . . $ Interpreter_lookUpVariable(17b277cbad23fdab). (theInterpretercxx . . $ theInterpreter., lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string.);
1733 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (VARIABLE_REFERENCE_);
1734 parsecxx . . $ parse. [iparsecxx . . $ iparse.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. = loopVariable;
1735 } else {
1736 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Numeric variable expected", lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. positioncxx . . $ structFormulaInstruction#position.);
1737 }
1738 // now on stack: sum, loop variable
1739 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == FROM_cxx . . $ FROM_.) {
1740 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1741 } else {
1742 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1743 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NUMBER_);
1744 parsenumbercxx . . $ `sys/Formula.cpp:1024:9`! (1.0);
1745 }
1746 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (DECREMENT_AND_ASSIGN_); // this pushes the variable back on the stack
1747 // now on stack: sum, loop variable
1748 fitcxx . . $ fit(1624ee8275b10bda). (TO_cxx . . $ TO_.);
1749 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1750 // now on stack: sum, loop variable, end value
1751 const integercxx . . $ integer# startLabel = newlabelcxx . . $ `sys/Formula.cpp:404:9`!;
1752 const integercxx . . $ integer# endLabel = newlabelcxx . . $ `sys/Formula.cpp:404:9`!;
1753 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (LABEL_);
1754 parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (startLabel);
1755 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (INCREMENT_GREATER_GOTO_);
1756 parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (endLabel);
1757 fitcxx . . $ fit(1624ee8275b10bda). (COMMA_cxx . . $ COMMA_.);
1758 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1759 if (isParenthesis)
1760 fitcxx . . $ fit(1624ee8275b10bda). (CLOSING_PARENTHESIS_cxx . . $ CLOSING_PARENTHESIS_.);
1761 // now on stack: sum, loop variable, end value, value to add
1762 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (ADD_3DOWN_);
1763 // now on stack: sum, loop variable, end value
1764 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (GOTO_);
1765 parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (startLabel);
1766 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (LABEL_);
1767 parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (endLabel);
1768 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (POP_2_);
1769 // now on stack: sum
1770 return;
1771 }
1772 }
1773
1774 if (symbol == STOPWATCH_cxx . . $ STOPWATCH_.) {
1775 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (symbol);
1776 return;
1777 }
1778
1779 oldreadcxx . . $ `sys/Formula.cpp:406:9`!; // needed for retry if we are going to be in a string comparison
1780 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Symbol misplaced", lexancxx . . $ lexan. [ilexancxx . . $ ilexan. + 1]. positioncxx . . $ structFormulaInstruction#position.);
1781 }
1782
1783 static void parseFactorcxx . . $ parseFactor(49f6e7a06ebc5aa8). ();
1784
1785 static void parsePowerFactorscxx . . $ parsePowerFactors(49f6e7a06ebc5aa8). () {
1786 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == POWER_cxx . . $ POWER_.) {
1787 if (ilexancxx . . $ ilexan. > 2 && lexancxx . . $ lexan. [ilexancxx . . $ ilexan. - 2]. symbolcxx . . $ structFormulaInstruction#symbol. == MINUS_cxx . . $ MINUS_. && lexancxx . . $ lexan. [ilexancxx . . $ ilexan. - 1]. symbolcxx . . $ structFormulaInstruction#symbol. == NUMBER_cxx . . $ NUMBER_.) {
1788 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1789 formulaErrorcxx . . $ formulaError(940f97f64241106a). (U"Expressions like -3^4 are ambiguous; use (-3)^4 or -(3^4) or -(3)^4", lexancxx . . $ lexan. [ilexancxx . . $ ilexan. + 1]. positioncxx . . $ structFormulaInstruction#position.);
1790 }
1791 parseFactorcxx . . $ parseFactor(49f6e7a06ebc5aa8). (); // like a^-b
1792 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (POWER_);
1793 }
1794 else
1795 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1796 }
1797
1798 static void parseMinuscxx . . $ parseMinus(49f6e7a06ebc5aa8). () {
1799 parsePowerFactorcxx . . $ parsePowerFactor(49f6e7a06ebc5aa8). ();
1800 parsePowerFactorscxx . . $ parsePowerFactors(49f6e7a06ebc5aa8). ();
1801 }
1802
1803 static void parseFactorcxx . . $ parseFactor(49f6e7a06ebc5aa8). () {
1804 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == MINUS_cxx . . $ MINUS_.) {
1805 parseFactorcxx . . $ parseFactor(49f6e7a06ebc5aa8). (); // there can be multiple consecutive minuses
1806 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (MINUS_);
1807 return;
1808 }
1809 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1810 parseMinuscxx . . $ parseMinus(49f6e7a06ebc5aa8). (); // like -a^b
1811 }
1812
1813 static void parseFactorscxx . . $ parseFactors(49f6e7a06ebc5aa8). () {
1814 const integercxx . . $ integer# symbol = newreadcxx . . $ `sys/Formula.cpp:405:9`!; // has to be local, because of recursion
1815 if (symbol == MUL_cxx . . $ MUL_. || symbol == RDIV_cxx . . $ RDIV_. || symbol == IDIV_cxx . . $ IDIV_. || symbol == MOD_cxx . . $ MOD_.) {
1816 parseFactorcxx . . $ parseFactor(49f6e7a06ebc5aa8). ();
1817 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (symbol);
1818 parseFactorscxx . . $ parseFactors(49f6e7a06ebc5aa8). ();
1819 }
1820 else oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1821 }
1822
1823 static void parseTermcxx . . $ parseTerm(49f6e7a06ebc5aa8). () {
1824 parseFactorcxx . . $ parseFactor(49f6e7a06ebc5aa8). ();
1825 parseFactorscxx . . $ parseFactors(49f6e7a06ebc5aa8). ();
1826 }
1827
1828 static void parseTermscxx . . $ parseTerms(49f6e7a06ebc5aa8). () {
1829 const integercxx . . $ integer# symbol = newreadcxx . . $ `sys/Formula.cpp:405:9`!;
1830 if (symbol == ADD_cxx . . $ ADD_. || symbol == SUB_cxx . . $ SUB_.) {
1831 parseTermcxx . . $ parseTerm(49f6e7a06ebc5aa8). ();
1832 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (symbol);
1833 parseTermscxx . . $ parseTerms(49f6e7a06ebc5aa8). ();
1834 }
1835 else oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1836 }
1837
1838 static void parseNotcxx . . $ parseNot(49f6e7a06ebc5aa8). () {
1839 parseTermcxx . . $ parseTerm(49f6e7a06ebc5aa8). ();
1840 parseTermscxx . . $ parseTerms(49f6e7a06ebc5aa8). ();
1841 integercxx . . $ integer# symbol = newreadcxx . . $ `sys/Formula.cpp:405:9`!;
1842 if (symbol >= EQ_cxx . . $ EQ_. && symbol <= GT_cxx . . $ GT_.) {
1843 parseTermcxx . . $ parseTerm(49f6e7a06ebc5aa8). ();
1844 parseTermscxx . . $ parseTerms(49f6e7a06ebc5aa8). ();
1845 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (symbol);
1846 }
1847 else oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1848 }
1849
1850 static void parseAndcxx . . $ parseAnd(49f6e7a06ebc5aa8). () {
1851 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == NOT_cxx . . $ NOT_.) {
1852 parseAndcxx . . $ parseAnd(49f6e7a06ebc5aa8). (); // like not not not
1853 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (NOT_);
1854 return;
1855 }
1856 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1857 parseNotcxx . . $ parseNot(49f6e7a06ebc5aa8). ();
1858 }
1859
1860 static void parseOrcxx . . $ parseOr(49f6e7a06ebc5aa8). () {
1861 parseAndcxx . . $ parseAnd(49f6e7a06ebc5aa8). ();
1862 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == AND_cxx . . $ AND_.) {
1863 integercxx . . $ integer# falseLabel = newlabelcxx . . $ `sys/Formula.cpp:404:9`!;
1864 integercxx . . $ integer# andLabel = newlabelcxx . . $ `sys/Formula.cpp:404:9`!;
1865 do {
1866 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (IFFALSE_); parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (falseLabel);
1867 parseAndcxx . . $ parseAnd(49f6e7a06ebc5aa8). ();
1868 } while (newreadcxx . . $ `sys/Formula.cpp:405:9`! == AND_cxx . . $ AND_.);
1869 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (IFFALSE_); parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (falseLabel);
1870 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (TRUE_);
1871 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (GOTO_); parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (andLabel);
1872 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (LABEL_); parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (falseLabel);
1873 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (FALSE_);
1874 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (LABEL_); parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (andLabel);
1875 }
1876 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1877 }
1878
1879 static void parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). () {
1880 parseOrcxx . . $ parseOr(49f6e7a06ebc5aa8). ();
1881 if (newreadcxx . . $ `sys/Formula.cpp:405:9`! == OR_cxx . . $ OR_.) {
1882 integercxx . . $ integer# trueLabel = newlabelcxx . . $ `sys/Formula.cpp:404:9`!;
1883 integercxx . . $ integer# orLabel = newlabelcxx . . $ `sys/Formula.cpp:404:9`!;
1884 do {
1885 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (IFTRUE_); parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (trueLabel);
1886 parseOrcxx . . $ parseOr(49f6e7a06ebc5aa8). ();
1887 } while (newreadcxx . . $ `sys/Formula.cpp:405:9`! == OR_cxx . . $ OR_.);
1888 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (IFTRUE_); parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (trueLabel);
1889 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (FALSE_);
1890 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (GOTO_); parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (orLabel);
1891 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (LABEL_); parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (trueLabel);
1892 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (TRUE_);
1893 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (LABEL_); parselabelcxx . . $ `sys/Formula.cpp:1025:9`! (orLabel);
1894 }
1895 oldreadcxx . . $ `sys/Formula.cpp:406:9`!;
1896 }
1897
1898 /*
1899 Translate the infix expression "my lexan" into the postfix expression "my parse":
1900 remove parentheses and brackets, commas, colons, FROM_, TO_,
1901 IF_ THEN_ ELSE_ ENDIF_ OR_ AND_;
1902 introduce LABEL_ GOTO_ IFTRUE_ IFFALSE_ TRUE_ FALSE_
1903 SELF0_ SELF1_ SELF2_ MATRIX0_ MATRIX1_ MATRIX2_
1904 Return:
1905 0 if error, otherwise 1.
1906 Precondition:
1907 "my lexan" contains an END_ symbol.
1908 Postconditions:
1909 *my lexan not changed.
1910 result == 0 || my parse [my numberOfInstructions]. symbol == END_
1911 */
1912
1913 static void Formula_parseExpressioncxx . . $ Formula_parseExpression(49f6e7a06ebc5aa8). () {
1914 ilabelcxx . . $ ilabel. = ilexancxx . . $ ilexan. = iparsecxx . . $ iparse. = 0;
1915 if (lexancxx . . $ lexan. [1]. symbolcxx . . $ structFormulaInstruction#symbol. == END_cxx . . $ END_.)
1916 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Empty formula.");
1917 parseExpressioncxx . . $ parseExpression(49f6e7a06ebc5aa8). ();
1918 fitcxx . . $ fit(1624ee8275b10bda). (END_cxx . . $ END_.);
1919 newparsecxx . . $ `sys/Formula.cpp:1023:9`! (END_);
1920 numberOfInstructionscxx . . $ numberOfInstructions. = iparsecxx . . $ iparse.;
1921 }
1922
1923 static void shiftcxx . . $ shift(a8896fd0f69df779). (integercxx . . $ integer# begin, integercxx . . $ integer# distance) {
1924 numberOfInstructionscxx . . $ numberOfInstructions. -= distance;
1925 for (integercxx . . $ integer# j = begin; j <= numberOfInstructionscxx . . $ numberOfInstructions.; j ++)
1926 parsecxx . . $ parse. [j] =cxx . . $ structFormulaInstruction#`operator=`(9ca9f0472bd96fa2). parsecxx . . $ parse. [j + distance];
1927 }
1928
1929 static integercxx . . $ integer# findLabelcxx . . $ findLabel(8ce0d1b217db7fd1). (integercxx . . $ integer# label) {
1930 integercxx . . $ integer# result = numberOfInstructionscxx . . $ numberOfInstructions.;
1931 while (parsecxx . . $ parse. [result]. symbolcxx . . $ structFormulaInstruction#symbol. != LABEL_cxx . . $ LABEL_. ||
1932 parsecxx . . $ parse. [result]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. != label)
1933 result --;
1934 return result;
1935 }
1936
1937 static void Formula_optimizeFlowcxx . . $ Formula_optimizeFlow(49f6e7a06ebc5aa8). ()
1938 /* Vereenvoudig boolse uitdrukkingen. */
1939 /* Nadien: */
1940 /* de stroom volgt het kortste pad; */
1941 /* als de rekenkundige waarden van boolse uitdrukkingen */
1942 /* in de formule niet voorkomen, zijn alle TRUE_s en FALSE_s weg; */
1943 /* als in de formule geen NOT_s voorkwamen op rekenkundige */
1944 /* uitdrukkingen, zijn alle NOT_s weg; */
1945 /* onbereikbare kode is weg; */
1946 {
1947 integercxx . . $ integer# i, j, volg;
1948 for (;;) {
1949 bool improved = false;
1950 for (i = 1; i <= numberOfInstructionscxx . . $ numberOfInstructions.; i ++)
1951 {
1952
1953 /* Optimalisatie 1: */
1954 /* true goto x -> goto y / __ ... label x iftrue y */
1955 /* false goto x -> goto y / __ ... label x iffalse y */
1956
1957 if ((parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == TRUE_cxx . . $ TRUE_. &&
1958 parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == GOTO_cxx . . $ GOTO_. &&
1959 parsecxx . . $ parse. [volg = findLabelcxx . . $ findLabel(8ce0d1b217db7fd1). (parsecxx . . $ parse. [i + 1]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.) + 1]
1960 . symbolcxx . . $ structFormulaInstruction#symbol. == IFTRUE_cxx . . $ IFTRUE_.)
1961 ||
1962 (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == FALSE_cxx . . $ FALSE_. &&
1963 parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == GOTO_cxx . . $ GOTO_. &&
1964 parsecxx . . $ parse. [volg = findLabelcxx . . $ findLabel(8ce0d1b217db7fd1). (parsecxx . . $ parse. [i + 1]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.) + 1]
1965 . symbolcxx . . $ structFormulaInstruction#symbol. == IFFALSE_cxx . . $ IFFALSE_.))
1966 {
1967 improved = true;
1968 parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. = GOTO_cxx . . $ GOTO_.;
1969 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. = parsecxx . . $ parse. [volg]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.;
1970 shiftcxx . . $ shift(a8896fd0f69df779). (i + 1, 1);
1971 }
1972
1973 /* Optimalisatie 2: */
1974 /* true goto x ... label x iffalse y -> */
1975 /* goto z ... label x iffalse y label z */
1976 /* en analoog met false en iftrue. */
1977
1978 if ((parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == TRUE_cxx . . $ TRUE_. &&
1979 parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == GOTO_cxx . . $ GOTO_. &&
1980 parsecxx . . $ parse. [volg = findLabelcxx . . $ findLabel(8ce0d1b217db7fd1). (parsecxx . . $ parse. [i + 1]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.) + 1]
1981 . symbolcxx . . $ structFormulaInstruction#symbol. == IFFALSE_cxx . . $ IFFALSE_.)
1982 ||
1983 (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == FALSE_cxx . . $ FALSE_. &&
1984 parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == GOTO_cxx . . $ GOTO_. &&
1985 parsecxx . . $ parse. [volg = findLabelcxx . . $ findLabel(8ce0d1b217db7fd1). (parsecxx . . $ parse. [i + 1]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.) + 1]
1986 . symbolcxx . . $ structFormulaInstruction#symbol. == IFTRUE_cxx . . $ IFTRUE_.))
1987 {
1988 improved = true;
1989 parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. = GOTO_cxx . . $ GOTO_.;
1990 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. = newlabelcxx . . $ `sys/Formula.cpp:404:9`!;
1991 for (j = i + 1; j < volg; j ++)
1992 parsecxx . . $ parse. [j] =cxx . . $ structFormulaInstruction#`operator=`(9ca9f0472bd96fa2). parsecxx . . $ parse. [j + 1];
1993 parsecxx . . $ parse. [volg]. symbolcxx . . $ structFormulaInstruction#symbol. = LABEL_cxx . . $ LABEL_.;
1994 parsecxx . . $ parse. [volg]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. = ilabelcxx . . $ ilabel.;
1995 }
1996
1997 /* Optimalisatie 3a: */
1998 /* iftrue x goto y label x -> iffalse y label x */
1999
2000 if (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == IFTRUE_cxx . . $ IFTRUE_. &&
2001 parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == GOTO_cxx . . $ GOTO_. &&
2002 parsecxx . . $ parse. [i + 2]. symbolcxx . . $ structFormulaInstruction#symbol. == LABEL_cxx . . $ LABEL_. &&
2003 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. == parsecxx . . $ parse. [i + 2]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.)
2004 {
2005 improved = true;
2006 parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. = IFFALSE_cxx . . $ IFFALSE_.;
2007 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. = parsecxx . . $ parse. [i + 1]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.;
2008 shiftcxx . . $ shift(a8896fd0f69df779). (i + 1, 1);
2009 }
2010
2011 /* Optimalisatie 3b: */
2012 /* iffalse x goto y label x -> iftrue y label x */
2013
2014 if (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == IFFALSE_cxx . . $ IFFALSE_. &&
2015 parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == GOTO_cxx . . $ GOTO_. &&
2016 parsecxx . . $ parse. [i + 2]. symbolcxx . . $ structFormulaInstruction#symbol. == LABEL_cxx . . $ LABEL_. &&
2017 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. == parsecxx . . $ parse. [i + 2]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.)
2018 {
2019 improved = true;
2020 parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. = IFTRUE_cxx . . $ IFTRUE_.;
2021 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. = parsecxx . . $ parse. [i + 1]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.;
2022 shiftcxx . . $ shift(a8896fd0f69df779). (i + 1, 1);
2023 }
2024
2025 /* Optimalisatie 4: */
2026 /* verwijder onbereikbare kode: na een GOTO_ hoort een LABEL_. */
2027
2028 if (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == GOTO_cxx . . $ GOTO_. &&
2029 parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. != LABEL_cxx . . $ LABEL_.)
2030 {
2031 improved = true;
2032 j = i + 2;
2033 while (parsecxx . . $ parse. [j]. symbolcxx . . $ structFormulaInstruction#symbol. != LABEL_cxx . . $ LABEL_.) j ++;
2034 shiftcxx . . $ shift(a8896fd0f69df779). (i + 1, j - i - 1);
2035 }
2036
2037 /* Optimalisatie 5: */
2038 /* goto x -> 0 / __ label x */
2039
2040 if (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == GOTO_cxx . . $ GOTO_. &&
2041 parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == LABEL_cxx . . $ LABEL_. &&
2042 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. == parsecxx . . $ parse. [i + 1]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.)
2043 {
2044 improved = true;
2045 shiftcxx . . $ shift(a8896fd0f69df779). (i, 1);
2046 }
2047
2048 /* Optimalisatie 6: */
2049 /* true iffalse x -> 0 */
2050 /* false iftrue x -> 0 */
2051
2052 if ((parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == TRUE_cxx . . $ TRUE_. && parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == IFFALSE_cxx . . $ IFFALSE_.)
2053 || (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == FALSE_cxx . . $ FALSE_. && parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == IFTRUE_cxx . . $ IFTRUE_.))
2054 {
2055 improved = true;
2056 shiftcxx . . $ shift(a8896fd0f69df779). (i, 2);
2057 }
2058
2059 /* Optimalisatie 7: */
2060 /* true iftrue x -> goto x */
2061 /* false iffalse x -> goto x */
2062
2063 if ((parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == TRUE_cxx . . $ TRUE_. && parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == IFTRUE_cxx . . $ IFTRUE_.)
2064 || (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == FALSE_cxx . . $ FALSE_. && parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == IFFALSE_cxx . . $ IFFALSE_.))
2065 {
2066 improved = true;
2067 parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. = GOTO_cxx . . $ GOTO_.;
2068 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. = parsecxx . . $ parse. [i + 1]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.;
2069 shiftcxx . . $ shift(a8896fd0f69df779). (i + 1, 1);
2070 }
2071
2072 /* Optimalisatie 8: */
2073 /* iftrue x -> iftrue y / __ ... label x goto y */
2074 /* iffalse x -> iffalse y / __ ... label x goto y */
2075
2076 if ((parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == IFTRUE_cxx . . $ IFTRUE_. || parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == IFFALSE_cxx . . $ IFFALSE_.)
2077 && parsecxx . . $ parse. [volg = findLabelcxx . . $ findLabel(8ce0d1b217db7fd1). (parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.) + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == GOTO_cxx . . $ GOTO_.)
2078 {
2079 improved = true;
2080 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. = parsecxx . . $ parse. [volg]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.;
2081 }
2082
2083 /* Optimalisatie 9a: */
2084 /* not iftrue x -> iffalse x */
2085
2086 if (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == NOT_cxx . . $ NOT_. && parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == IFTRUE_cxx . . $ IFTRUE_.)
2087 {
2088 improved = true;
2089 parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. = IFFALSE_cxx . . $ IFFALSE_.;
2090 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. = parsecxx . . $ parse. [i + 1]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.;
2091 shiftcxx . . $ shift(a8896fd0f69df779). (i + 1, 1);
2092 }
2093
2094 /* Optimalisatie 9b: */
2095 /* not iffalse x -> iftrue x */
2096
2097 if (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == NOT_cxx . . $ NOT_. && parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == IFFALSE_cxx . . $ IFFALSE_.)
2098 {
2099 improved = true;
2100 parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. = IFTRUE_cxx . . $ IFTRUE_.;
2101 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. = parsecxx . . $ parse. [i + 1]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.;
2102 shiftcxx . . $ shift(a8896fd0f69df779). (i + 1, 1);
2103 }
2104
2105 /* De volgende optimalisaties ontbreken want zijn hier overbodig: */
2106 /* goto x -> goto y / __ ... label x goto y */
2107 /* trek twee opeenvolgende labels samen */
2108
2109 } /* for i */
2110
2111 /* Verwijder labels waar niet naar verwezen wordt. */
2112
2113 for (i = 1; i <= numberOfInstructionscxx . . $ numberOfInstructions.; i ++)
2114 if (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == LABEL_cxx . . $ LABEL_.)
2115 {
2116 bool found = false;
2117 for (j = 1; j <= numberOfInstructionscxx . . $ numberOfInstructions.; j ++)
2118 if ((parsecxx . . $ parse. [j]. symbolcxx . . $ structFormulaInstruction#symbol. == GOTO_cxx . . $ GOTO_. || parsecxx . . $ parse. [j]. symbolcxx . . $ structFormulaInstruction#symbol. == IFFALSE_cxx . . $ IFFALSE_. || parsecxx . . $ parse. [j]. symbolcxx . . $ structFormulaInstruction#symbol. == IFTRUE_cxx . . $ IFTRUE_.
2119 || parsecxx . . $ parse. [j]. symbolcxx . . $ structFormulaInstruction#symbol. == INCREMENT_GREATER_GOTO_cxx . . $ INCREMENT_GREATER_GOTO_.)
2120 && parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. == parsecxx . . $ parse. [j]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.)
2121 found = true;
2122 if (! found)
2123 {
2124 improved = true;
2125 shiftcxx . . $ shift(a8896fd0f69df779). (i, 1);
2126 }
2127 }
2128 if (! improved)
2129 break;
2130 }
2131 }
2132
2133 static integercxx . . $ integer# praat_findObjectByIdcxx . . $ praat_findObjectById(8ce0d1b217db7fd1). (integercxx . . $ integer# id) {
2134 integercxx . . $ integer# IOBJECT;
2135 WHERE_DOWNcxx . . $ `sys/praat.h:199:9`! (IDcxx . . $ `sys/praat.h:206:9`! == id)
2136 return IOBJECT;
2137 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"No object with number ", id, U".");
2138 }
2139
2140 static integercxx . . $ integer# praat_findObjectByNamecxx . . $ praat_findObjectByName(c94c67ff4219bf83). (conststring32cxx . . $ conststring32# name) {
2141 integercxx . . $ integer# IOBJECT;
2142 if (*name >= U'A' && *name <= U'Z') {
2143 static MelderStringcxx . . $ MelderString# buffer;
2144 MelderString_copycxx . . $ MelderString_copy(65be51a793e0ff96). (& buffer, name);
2145 char32cxx . . $ char32# *spaceLocation = str32chrcxx . . $ str32chr(328a9ede0fba853a). (buffer.stringcxx . . $ MelderString#string., U' ');
2146 if (! spaceLocation)
2147 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Missing space in object name “", name, U"”.");
2148 *spaceLocation = U'\0';
2149 conststring32cxx . . $ conststring32# className = & buffer.stringcxx . . $ MelderString#string. [0], givenName = spaceLocation + 1;
2150 WHERE_DOWNcxx . . $ `sys/praat.h:199:9`! (1) {
2151 Daatacxx . . $ Daata# object = OBJECTcxx . . $ `sys/praat.h:203:9`!;
2152 if (str32equcxx . . $ `melder/melder_str32.h:122:9`! (className, Thing_classNamecxx . . $ Thing_className(fbb3dc34e3ef688d). (OBJECTcxx . . $ `sys/praat.h:203:9`!)) && str32equcxx . . $ `melder/melder_str32.h:122:9`! (givenName, object -> namecxx . . $ structThing#name..getcxx . . $ _autostring#get(5a2a78a048fb49a8).()))
2153 return IOBJECT;
2154 }
2155 ClassInfocxx . . $ ClassInfo# klas = Thing_classFromClassNamecxx . . $ Thing_classFromClassName(8643cf72d5cb42e3). (className, nullptr);
2156 WHERE_DOWNcxx . . $ `sys/praat.h:199:9`! (1) {
2157 Daatacxx . . $ Daata# object = OBJECTcxx . . $ `sys/praat.h:203:9`!;
2158 if (str32equcxx . . $ `melder/melder_str32.h:122:9`! (klas -> classNamecxx . . $ structClassInfo#className., Thing_classNamecxx . . $ Thing_className(fbb3dc34e3ef688d). (OBJECTcxx . . $ `sys/praat.h:203:9`!)) && str32equcxx . . $ `melder/melder_str32.h:122:9`! (givenName, object -> namecxx . . $ structThing#name..getcxx . . $ _autostring#get(5a2a78a048fb49a8).()))
2159 return IOBJECT;
2160 }
2161 }
2162 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"No object with name “", name, U"”.");
2163 }
2164
2165 static void Formula_evaluateConstantscxx . . $ Formula_evaluateConstants(49f6e7a06ebc5aa8). () {
2166 for (;;) {
2167 bool improved = false;
2168 for (integercxx . . $ integer# i = 1; i <= numberOfInstructionscxx . . $ numberOfInstructions.; i ++) {
2169 integercxx . . $ integer# gain = 0;
2170 if (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == NUMBER_cxx . . $ NUMBER_.) {
2171 if (parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number. == 2.0 && parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == POWER_cxx . . $ POWER_.)
2172 { gain = 1; parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. = SQR_cxx . . $ SQR_.; }
2173 else if (parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == MINUS_cxx . . $ MINUS_.)
2174 { gain = 1; parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number. = - parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number.; }
2175 else if (parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == SQR_cxx . . $ SQR_.)
2176 { gain = 1; parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number. *= parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number.; }
2177 else if (parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == NUMBER_cxx . . $ NUMBER_.) {
2178 if (parsecxx . . $ parse. [i + 2]. symbolcxx . . $ structFormulaInstruction#symbol. == ADD_cxx . . $ ADD_.)
2179 { gain = 2; parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number. += parsecxx . . $ parse. [i + 1]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number.; }
2180 else if (parsecxx . . $ parse. [i + 2]. symbolcxx . . $ structFormulaInstruction#symbol. == SUB_cxx . . $ SUB_.)
2181 { gain = 2; parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number. -= parsecxx . . $ parse. [i + 1]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number.; }
2182 else if (parsecxx . . $ parse. [i + 2]. symbolcxx . . $ structFormulaInstruction#symbol. == MUL_cxx . . $ MUL_.)
2183 { gain = 2; parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number. *= parsecxx . . $ parse. [i + 1]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number.; }
2184 else if (parsecxx . . $ parse. [i + 2]. symbolcxx . . $ structFormulaInstruction#symbol. == RDIV_cxx . . $ RDIV_.)
2185 { gain = 2; parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number. /= parsecxx . . $ parse. [i + 1]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number.; }
2186 } else if (parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == TO_OBJECT_cxx . . $ TO_OBJECT_.) {
2187 parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. = OBJECT_cxx . . $ OBJECT_.;
2188 integercxx . . $ integer# IOBJECT = praat_findObjectByIdcxx . . $ praat_findObjectById(8ce0d1b217db7fd1). (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number.));
2189 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object. = OBJECTcxx . . $ `sys/praat.h:203:9`!;
2190 gain = 1;
2191 }
2192 } else if (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == STRING_cxx . . $ STRING_.) {
2193 if (parsecxx . . $ parse. [i + 1]. symbolcxx . . $ structFormulaInstruction#symbol. == TO_OBJECT_cxx . . $ TO_OBJECT_.) {
2194 parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. = OBJECT_cxx . . $ OBJECT_.;
2195 const integercxx . . $ integer# IOBJECT = praat_findObjectByNamecxx . . $ praat_findObjectByName(c94c67ff4219bf83). (parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string.);
2196 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object. = OBJECTcxx . . $ `sys/praat.h:203:9`!;
2197 gain = 1;
2198 }
2199 } else if (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == NUMERIC_VARIABLE_cxx . . $ NUMERIC_VARIABLE_.) {
2200 parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. = NUMBER_cxx . . $ NUMBER_.;
2201 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number. = parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. -> numericValuecxx . . $ structInterpreterVariable#numericValue.;
2202 gain = 0;
2203 improved = true;
2204 } else if (parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. == STRING_VARIABLE_cxx . . $ STRING_VARIABLE_.) {
2205 parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol. = STRING_cxx . . $ STRING_.;
2206 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string. = parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. -> stringValuecxx . . $ structInterpreterVariable#stringValue..getcxx . . $ _autostring#get(5a2a78a048fb49a8).(); // again a reference copy (lexan is still the owner)
2207 gain = 0;
2208 improved = true;
2209 #if 0
2210 } else if (parse [i]. symbol == ROW_) {
2211 if (parse [i + 1]. symbol == COL_ && parse [i + 2]. symbol == SELFMATRIX2_)
2212 { gain = 2; parse [i]. symbol = SELF0_; } // TODO: SELF0_ may not have the same restrictions as SELFMATRIX2_
2213 } else if (parse [i]. symbol == COL_) {
2214 if (parse [i + 1]. symbol == SELFMATRIX1_)
2215 { gain = 1; parse [i]. symbol = SELF0_; }
2216 #endif
2217 }
2218 if (gain > 0) {
2219 improved = true;
2220 shiftcxx . . $ shift(a8896fd0f69df779). (i + 1, gain);
2221 }
2222 }
2223 if (! improved)
2224 break;
2225 }
2226 }
2227
2228 static void Formula_removeLabelscxx . . $ Formula_removeLabels(49f6e7a06ebc5aa8). () {
2229 /*
2230 First translate symbolic labels (< 0) into instructions locations (> 0).
2231 */
2232 for (integercxx . . $ integer# i = 1; i <= numberOfInstructionscxx . . $ numberOfInstructions.; i ++) {
2233 const integercxx . . $ integer# symboli = parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol.;
2234 if (symboli == GOTO_cxx . . $ GOTO_. || symboli == IFTRUE_cxx . . $ IFTRUE_. || symboli == IFFALSE_cxx . . $ IFFALSE_. || symboli == INCREMENT_GREATER_GOTO_cxx . . $ INCREMENT_GREATER_GOTO_.) {
2235 integercxx . . $ integer# label = parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.;
2236 for (int j = 1; j <= numberOfInstructionscxx . . $ numberOfInstructions.; j ++) {
2237 if (parsecxx . . $ parse. [j]. symbolcxx . . $ structFormulaInstruction#symbol. == LABEL_cxx . . $ LABEL_. && parsecxx . . $ parse. [j]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. == label) {
2238 parsecxx . . $ parse. [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. = j;
2239 }
2240 }
2241 }
2242 }
2243 /*
2244 Then remove the labels,
2245 which have become superfluous.
2246 */
2247 if (theOptimizecxx . . $ theOptimize.) {
2248 integercxx . . $ integer# i = 1;
2249 while (i <= numberOfInstructionscxx . . $ numberOfInstructions.) {
2250 const integercxx . . $ integer# symboli = parsecxx . . $ parse. [i]. symbolcxx . . $ structFormulaInstruction#symbol.;
2251 if (symboli == LABEL_cxx . . $ LABEL_.) {
2252 shiftcxx . . $ shift(a8896fd0f69df779). (i, 1); // remove one label
2253 for (int j = 1; j <= numberOfInstructionscxx . . $ numberOfInstructions.; j ++) {
2254 const integercxx . . $ integer# symbolj = parsecxx . . $ parse. [j]. symbolcxx . . $ structFormulaInstruction#symbol.;
2255 if ((symbolj == GOTO_cxx . . $ GOTO_. || symbolj == IFTRUE_cxx . . $ IFTRUE_. || symbolj == IFFALSE_cxx . . $ IFFALSE_. || symbolj == INCREMENT_GREATER_GOTO_cxx . . $ INCREMENT_GREATER_GOTO_.) && parsecxx . . $ parse. [j]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. > i)
2256 parsecxx . . $ parse. [j]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. --; /* Pas een label aan. */
2257 }
2258 i --; // voorkom ophogen i (overbodig?)
2259 }
2260 i ++;
2261 }
2262 }
2263 numberOfInstructionscxx . . $ numberOfInstructions. --; /* Het END_-symbol hoeft niet geinterpreteerd. */
2264 }
2265
2266 #include <inttypes.h>
2267
2268 /*
2269 For debugging.
2270 */
2271 static void Formula_printcxx . . $ Formula_print(228cb083f9b7092d). (FormulaInstructioncxx . . $ FormulaInstruction# f) {
2272 integercxx . . $ integer# i = 0, symbol;
2273 do {
2274 conststring32cxx . . $ conststring32# instructionName;
2275 symbol = f [++ i]. symbolcxx . . $ structFormulaInstruction#symbol.;
2276 instructionName = Formula_instructionNamescxx . . $ Formula_instructionNames. [symbol];
2277 if (symbol == NUMBER_cxx . . $ NUMBER_.)
2278 Melder_casualcxx . . $ Melder_casual(6298c93241566110). (i, U" ", instructionName, U" ", f [i]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number.);
2279 else if (symbol == GOTO_cxx . . $ GOTO_. || symbol == IFFALSE_cxx . . $ IFFALSE_. || symbol == IFTRUE_cxx . . $ IFTRUE_. || symbol == LABEL_cxx . . $ LABEL_. || symbol == INCREMENT_GREATER_GOTO_cxx . . $ INCREMENT_GREATER_GOTO_.)
2280 Melder_casualcxx . . $ Melder_casual(6298c93241566110). (i, U" ", instructionName, U" ", f [i]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label.);
2281 else if (symbol == NUMERIC_VARIABLE_cxx . . $ NUMERIC_VARIABLE_.)
2282 Melder_casualcxx . . $ Melder_casual(6298c93241566110). (i, U" ", instructionName, U" ", f [i]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. -> stringcxx . . $ structSimpleString#string..getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), U" ", f [i]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. -> numericValuecxx . . $ structInterpreterVariable#numericValue.);
2283 else if (symbol == STRING_VARIABLE_cxx . . $ STRING_VARIABLE_.)
2284 Melder_casualcxx . . $ Melder_casual(6298c93241566110). (i, U" ", instructionName, U" ", f [i]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. -> stringcxx . . $ structSimpleString#string..getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), U" ", f [i]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable. -> stringValuecxx . . $ structInterpreterVariable#stringValue..getcxx . . $ _autostring#get(5a2a78a048fb49a8).());
2285 else if (symbol == STRING_cxx . . $ STRING_. || symbol == VARIABLE_NAME_cxx . . $ VARIABLE_NAME_. || symbol == INDEXED_NUMERIC_VARIABLE_cxx . . $ INDEXED_NUMERIC_VARIABLE_. || symbol == INDEXED_STRING_VARIABLE_cxx . . $ INDEXED_STRING_VARIABLE_.)
2286 Melder_casualcxx . . $ Melder_casual(6298c93241566110). (i, U" ", instructionName, U" ", f [i]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string.);
2287 else if (symbol == MATRIX_cxx . . $ MATRIX_. || symbol == MATRIX_STR_cxx . . $ MATRIX_STR_. || symbol == MATRIX1_cxx . . $ MATRIX1_. || symbol == MATRIX1_STR_cxx . . $ MATRIX1_STR_. ||
2288 symbol == MATRIX2_cxx . . $ MATRIX2_. || symbol == MATRIX2_STR_cxx . . $ MATRIX2_STR_. || symbol == ROW_STR_cxx . . $ ROW_STR_. || symbol == COL_STR_cxx . . $ COL_STR_.)
2289 {
2290 Thingcxx . . $ Thing# object = f [i]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.;
2291 if (object) {
2292 Melder_casualcxx . . $ Melder_casual(6298c93241566110). (i, U" ", instructionName, U" ", Thing_classNamecxx . . $ Thing_className(fbb3dc34e3ef688d). (object), U" ", object -> namecxx . . $ structThing#name..getcxx . . $ _autostring#get(5a2a78a048fb49a8).());
2293 } else {
2294 Melder_casualcxx . . $ Melder_casual(6298c93241566110). (i, U" ", instructionName);
2295 }
2296 }
2297 else if (symbol == CALL_cxx . . $ CALL_.)
2298 Melder_casualcxx . . $ Melder_casual(6298c93241566110). (i, U" ", instructionName, U" ", f [i]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string.);
2299 else
2300 Melder_casualcxx . . $ Melder_casual(6298c93241566110). (i, U" ", instructionName);
2301 } while (symbol != END_cxx . . $ END_.);
2302 }
2303
2304 void Formula_compilecxx . . $ Formula_compile(3f9bc12732facfd). (Interpretercxx . . $ Interpreter# interpreter, Daatacxx . . $ Daata# data, conststring32cxx . . $ conststring32# expression, int expressionType, bool optimize) {
2305 if (interpreter)
2306 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (interpreter -> owningInterpreterStack);
2307 theInterpretercxx . . $ theInterpreter. = interpreter;
2308 if (! theInterpretercxx . . $ theInterpreter.) {
2309 if (! theLocalInterpreterStackcxx . . $ theLocalInterpreterStack.) {
2310 theLocalInterpreterStackcxx . . $ theLocalInterpreterStack. =cxx . . $ autoSomeThing#`operator=`(80cc59814f7161e8). InterpreterStack_createcxx . . $ InterpreterStack_create(91aa183261e4fa82). (nullptr);
2311 theLocalInterpreterStackcxx . . $ theLocalInterpreterStack. ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). interpreterscxx . . $ structInterpreterStack#interpreters. [1] =cxx . . $ autoSomeThing#`operator=`(80cc59814f7161e8). Interpreter_createFromEnvironmentcxx . . $ Interpreter_createFromEnvironment(2a446a9b6f15a803). (
2312 theLocalInterpreterStackcxx . . $ theLocalInterpreterStack..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(),
2313 Editorcxx . . $ Editor# (nullptr),
2314 MelderFilecxx . . $ MelderFile# (nullptr)
2315 );
2316 }
2317 theInterpretercxx . . $ theInterpreter. = theLocalInterpreterStackcxx . . $ theLocalInterpreterStack. ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). interpreterscxx . . $ structInterpreterStack#interpreters. [1].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).();
2318 theInterpretercxx . . $ theInterpreter. -> owningInterpreterStackcxx . . $ structInterpreter#owningInterpreterStack. = theLocalInterpreterStackcxx . . $ theLocalInterpreterStack..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).();
2319 theInterpretercxx . . $ theInterpreter. -> variablesMapcxx . . $ structInterpreter#variablesMap.. clearcxx . . $ std/unordered_map#clear(ced63f7c635d850d). ();
2320 }
2321 theSourcecxx . . $ theSource. = data;
2322 theExpressioncxx . . $ theExpression. = expression;
2323 theExpressionTypecxx . . $ theExpressionType. [theLevelcxx . . $ theLevel.] = expressionType;
2324 theOptimizecxx . . $ theOptimize. = optimize;
2325 if (! lexancxx . . $ lexan.) {
2326 lexancxx . . $ lexan. = Melder_calloc_fcxx . . $ `melder/melder_alloc.h:36:9`! (structFormulaInstruction, Formula_MAXIMUM_STACK_SIZEcxx . . $ `sys/Formula.h:40:9`!);
2327 lexancxx . . $ lexan. [Formula_MAXIMUM_STACK_SIZEcxx . . $ `sys/Formula.h:40:9`! - 1]. symbolcxx . . $ structFormulaInstruction#symbol. = END_cxx . . $ END_.; // make sure that cleaning up always terminates
2328 }
2329 if (! parsecxx . . $ parse.)
2330 parsecxx . . $ parse. = Melder_calloc_fcxx . . $ `melder/melder_alloc.h:36:9`! (structFormulaInstruction, Formula_MAXIMUM_STACK_SIZEcxx . . $ `sys/Formula.h:40:9`!);
2331
2332 /*
2333 Clean up strings from the previous call.
2334 These strings are in a union, that's why this cannot be done later, when a new string is created.
2335 */
2336 if (numberOfStringConstantscxx . . $ numberOfStringConstants.) {
2337 ilexancxx . . $ ilexan. = 1;
2338 for (;;) {
2339 integercxx . . $ integer# symbol = lexancxx . . $ lexan. [ilexancxx . . $ ilexan.]. symbolcxx . . $ structFormulaInstruction#symbol.;
2340 if (symbol == STRING_cxx . . $ STRING_. ||
2341 symbol == VARIABLE_NAME_cxx . . $ VARIABLE_NAME_. ||
2342 symbol == INDEXED_NUMERIC_VARIABLE_cxx . . $ INDEXED_NUMERIC_VARIABLE_. ||
2343 symbol == INDEXED_STRING_VARIABLE_cxx . . $ INDEXED_STRING_VARIABLE_. ||
2344 symbol == CALL_cxx . . $ CALL_.
2345 ) {
2346 Melder_freecxx . . $ `melder/melder_alloc.h:38:9`! (lexan [ilexan]. content.string);
2347 }
2348 else if (symbol == END_cxx . . $ END_.) break; // either the end of a formula, or the end of lexan
2349 ilexancxx . . $ ilexan. ++;
2350 }
2351 numberOfStringConstantscxx . . $ numberOfStringConstants. = 0;
2352 }
2353
2354 Formula_lexancxx . . $ Formula_lexan(49f6e7a06ebc5aa8). ();
2355 if (Melder_debugcxx . . $ Melder_debug. == 17) Formula_printcxx . . $ Formula_print(228cb083f9b7092d). (lexancxx . . $ lexan.);
2356 Formula_parseExpressioncxx . . $ Formula_parseExpression(49f6e7a06ebc5aa8). ();
2357 if (Melder_debugcxx . . $ Melder_debug. == 17) Formula_printcxx . . $ Formula_print(228cb083f9b7092d). (parsecxx . . $ parse.);
2358 if (theOptimizecxx . . $ theOptimize.) {
2359 Formula_optimizeFlowcxx . . $ Formula_optimizeFlow(49f6e7a06ebc5aa8). ();
2360 if (Melder_debugcxx . . $ Melder_debug. == 17) Formula_printcxx . . $ Formula_print(228cb083f9b7092d). (parsecxx . . $ parse.);
2361 Formula_evaluateConstantscxx . . $ Formula_evaluateConstants(49f6e7a06ebc5aa8). ();
2362 if (Melder_debugcxx . . $ Melder_debug. == 17) Formula_printcxx . . $ Formula_print(228cb083f9b7092d). (parsecxx . . $ parse.);
2363 }
2364 Formula_removeLabelscxx . . $ Formula_removeLabels(49f6e7a06ebc5aa8). ();
2365 if (Melder_debugcxx . . $ Melder_debug. == 17) Formula_printcxx . . $ Formula_print(228cb083f9b7092d). (parsecxx . . $ parse.);
2366 }
2367
2368 /*
2369 Running.
2370 */
2371
2372 conststring32cxx . . $ conststring32# structStackelcxx . . $ structStackel# :: whichTextcxx . . $ structStackel#whichText(1912f6684645c851). () {
2373 return
2374 ourcxx . . $ `melder/melder.h:42:9`! whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! ? U"a number" :
2375 ourcxx . . $ `melder/melder.h:42:9`! whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! ? U"a numeric vector" :
2376 ourcxx . . $ `melder/melder.h:42:9`! whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! ? U"a numeric matrix" :
2377 ourcxx . . $ `melder/melder.h:42:9`! whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! ? U"a string" :
2378 ourcxx . . $ `melder/melder.h:42:9`! whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`! ? U"a string vector" :
2379 ourcxx . . $ `melder/melder.h:42:9`! whichcxx . . $ structStackel#which. == Stackel_OBJECTcxx . . $ `sys/Formula.h:54:10`! ? U"an object" :
2380 U"???";
2381 }
2382
2383 static integercxx . . $ integer# programPointercxx . . $ programPointer.;
2384
2385 static Stackelcxx . . $ Stackel# theStackcxx . . $ theStack.;
2386 static integercxx . . $ integer# stackPointercxx . . $ stackPointer., stackPointerMaxcxx . . $ stackPointerMax.;
2387 #define popcxx . . $ `sys/Formula.cpp:2387:9`! & theStack [stackPointer --]
2388 #define topOfStackcxx . . $ `sys/Formula.cpp:2388:9`! & theStack [stackPointer]
2389 inline static void pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (const double x) {
2390 /* inline runs 10 to 20 percent faster; here's the test script:
2391 stopwatch
2392 Create Sound from formula: "test", 1, 0.0, 1000.0, 44100, ~ x + 1 + 2 + 3 + 4 + 5 + 6
2393 writeInfoLine: stopwatch
2394 Remove
2395 * Mac: 3.76 -> 3.20 seconds
2396 */
2397 if (++ stackPointercxx . . $ stackPointer. > stackPointerMaxcxx . . $ stackPointerMax.)
2398 if (++ stackPointerMaxcxx . . $ stackPointerMax. > Formula_MAXIMUM_STACK_SIZEcxx . . $ `sys/Formula.h:40:9`!)
2399 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Formula: stack overflow. Please simplify your formulas.");
2400 const Stackelcxx . . $ Stackel# stackel = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer.];
2401 stackel -> resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
2402 stackel -> whichcxx . . $ structStackel#which. = Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!;
2403 stackel -> numbercxx . . $ structStackel#$anonymous_type_0#number. = ( isdefinedcxx . . $ isdefined(f8197d536af80c96). (x) ? x : undefinedcxx . . $ undefined. );
2404 //stackel -> number = x; // this one would be 2 percent faster
2405 //stackel -> owned = true; // superfluous, because never checked (2020-12-20)
2406 }
2407 static void pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (autoVECcxx . . $ autoVEC# x) {
2408 if (++ stackPointercxx . . $ stackPointer. > stackPointerMaxcxx . . $ stackPointerMax.)
2409 if (++ stackPointerMaxcxx . . $ stackPointerMax. > Formula_MAXIMUM_STACK_SIZEcxx . . $ `sys/Formula.h:40:9`!)
2410 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Formula: stack overflow. Please simplify your formulas.");
2411 const Stackelcxx . . $ Stackel# stackel = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer.];
2412 stackel -> resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
2413 stackel -> whichcxx . . $ structStackel#which. = Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!;
2414 stackel -> numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(b5ebf627ac2fae1e). x.releaseToAmbiguousOwnercxx . . $ autovector#releaseToAmbiguousOwner(b4260375df4b1a56).();
2415 stackel -> ownedcxx . . $ structStackel#owned. = true;
2416 }
2417 static void pushNumericVectorReferencecxx . . $ pushNumericVectorReference(33ae648fa537298c). (VECcxx . . $ VEC# x) {
2418 if (++ stackPointercxx . . $ stackPointer. > stackPointerMaxcxx . . $ stackPointerMax.)
2419 if (++ stackPointerMaxcxx . . $ stackPointerMax. > Formula_MAXIMUM_STACK_SIZEcxx . . $ `sys/Formula.h:40:9`!)
2420 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Formula: stack overflow. Please simplify your formulas.");
2421 const Stackelcxx . . $ Stackel# stackel = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer.];
2422 stackel -> resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
2423 stackel -> whichcxx . . $ structStackel#which. = Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!;
2424 stackel -> numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(958c14910af86093). x;
2425 stackel -> ownedcxx . . $ structStackel#owned. = false;
2426 }
2427 static void pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (autoMATcxx . . $ autoMAT# x) {
2428 if (++ stackPointercxx . . $ stackPointer. > stackPointerMaxcxx . . $ stackPointerMax.)
2429 if (++ stackPointerMaxcxx . . $ stackPointerMax. > Formula_MAXIMUM_STACK_SIZEcxx . . $ `sys/Formula.h:40:9`!)
2430 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Formula: stack overflow. Please simplify your formulas.");
2431 const Stackelcxx . . $ Stackel# stackel = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer.];
2432 stackel -> resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
2433 stackel -> whichcxx . . $ structStackel#which. = Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!;
2434 stackel -> numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). x.releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
2435 stackel -> ownedcxx . . $ structStackel#owned. = true;
2436 }
2437 static void pushNumericMatrixReferencecxx . . $ pushNumericMatrixReference(f301d87584f52a18). (MATcxx . . $ MAT# x) {
2438 if (++ stackPointercxx . . $ stackPointer. > stackPointerMaxcxx . . $ stackPointerMax.)
2439 if (++ stackPointerMaxcxx . . $ stackPointerMax. > Formula_MAXIMUM_STACK_SIZEcxx . . $ `sys/Formula.h:40:9`!)
2440 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Formula: stack overflow. Please simplify your formulas.");
2441 const Stackelcxx . . $ Stackel# stackel = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer.];
2442 stackel -> resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
2443 stackel -> whichcxx . . $ structStackel#which. = Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!;
2444 stackel -> numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(5dfd60dc70a2bbd2). x;
2445 stackel -> ownedcxx . . $ structStackel#owned. = false;
2446 }
2447 static void pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (autostring32cxx . . $ autostring32# x) {
2448 if (++ stackPointercxx . . $ stackPointer. > stackPointerMaxcxx . . $ stackPointerMax.)
2449 if (++ stackPointerMaxcxx . . $ stackPointerMax. > Formula_MAXIMUM_STACK_SIZEcxx . . $ `sys/Formula.h:40:9`!)
2450 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Formula: stack overflow. Please simplify your formulas.");
2451 const Stackelcxx . . $ Stackel# stackel = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer.];
2452 //stackel -> reset(); // incorporated in next statement
2453 stackel -> setStringcxx . . $ structStackel#setString(c3bcb1467d3e4c86). (xcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
2454 //stackel -> owned = true; // superfluous, because never checked (2020-12-20)
2455 }
2456 static void pushStringVectorcxx . . $ pushStringVector(c1f8ac1f3abfc6e2). (autoSTRVECcxx . . $ autoSTRVEC# x) {
2457 if (++ stackPointercxx . . $ stackPointer. > stackPointerMaxcxx . . $ stackPointerMax.)
2458 if (++ stackPointerMaxcxx . . $ stackPointerMax. > Formula_MAXIMUM_STACK_SIZEcxx . . $ `sys/Formula.h:40:9`!)
2459 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Formula: stack overflow. Please simplify your formulas.");
2460 const Stackelcxx . . $ Stackel# stackel = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer.];
2461 stackel -> resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
2462 stackel -> whichcxx . . $ structStackel#which. = Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!;
2463 stackel -> stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray. =cxx . . $ _stringvector#`operator=`(be866ce0e0aaecab). x.releaseToAmbiguousOwnercxx . . $ _autostringautovector#releaseToAmbiguousOwner(b24a0e1d7c492d81).();
2464 stackel -> ownedcxx . . $ structStackel#owned. = true;
2465 }
2466 static void pushStringVectorReferencecxx . . $ pushStringVectorReference(f69ae485e82fc38d). (STRVECcxx . . $ STRVEC# x) {
2467 if (++ stackPointercxx . . $ stackPointer. > stackPointerMaxcxx . . $ stackPointerMax.)
2468 if (++ stackPointerMaxcxx . . $ stackPointerMax. > Formula_MAXIMUM_STACK_SIZEcxx . . $ `sys/Formula.h:40:9`!)
2469 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Formula: stack overflow. Please simplify your formulas.");
2470 const Stackelcxx . . $ Stackel# stackel = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer.];
2471 stackel -> resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
2472 stackel -> whichcxx . . $ structStackel#which. = Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!;
2473 stackel -> stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray. =cxx . . $ _stringvector#`operator=`(15d94a005602ee33). x;
2474 stackel -> ownedcxx . . $ structStackel#owned. = false;
2475 }
2476 static void pushObjectcxx . . $ pushObject(fde123624714e72). (Daatacxx . . $ Daata# object) {
2477 if (++ stackPointercxx . . $ stackPointer. > stackPointerMaxcxx . . $ stackPointerMax.)
2478 if (++ stackPointerMaxcxx . . $ stackPointerMax. > Formula_MAXIMUM_STACK_SIZEcxx . . $ `sys/Formula.h:40:9`!)
2479 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Formula: stack overflow. Please simplify your formulas.");
2480 const Stackelcxx . . $ Stackel# stackel = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer.];
2481 stackel -> resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
2482 stackel -> whichcxx . . $ structStackel#which. = Stackel_OBJECTcxx . . $ `sys/Formula.h:54:10`!;
2483 stackel -> objectcxx . . $ structStackel#$anonymous_type_0#object. = object;
2484 //stackel -> owned = false; // superfluous, because never checked (2020-12-20)
2485 }
2486 static void pushVariablecxx . . $ pushVariable(3a00ba7a47150c6c). (InterpreterVariablecxx . . $ InterpreterVariable# var) {
2487 if (++ stackPointercxx . . $ stackPointer. > stackPointerMaxcxx . . $ stackPointerMax.)
2488 if (++ stackPointerMaxcxx . . $ stackPointerMax. > Formula_MAXIMUM_STACK_SIZEcxx . . $ `sys/Formula.h:40:9`!)
2489 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Formula: stack overflow. Please simplify your formulas.");
2490 const Stackelcxx . . $ Stackel# stackel = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer.];
2491 stackel -> resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
2492 stackel -> whichcxx . . $ structStackel#which. = Stackel_VARIABLEcxx . . $ `sys/Formula.h:53:10`!;
2493 stackel -> variablecxx . . $ structStackel#$anonymous_type_0#variable. = var;
2494 //stackel -> owned = false; // superfluous, because never checked (2020-12-20)
2495 }
2496
2497 static void do_notcxx . . $ do_not(49f6e7a06ebc5aa8). () {
2498 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
2499 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
2500 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (isundefcxx . . $ isundef(f8197d536af80c96). (x->numbercxx . . $ structStackel#$anonymous_type_0#number.) ? undefinedcxx . . $ undefined. : x->numbercxx . . $ structStackel#$anonymous_type_0#number. == 0.0 ? 1.0 : 0.0);
2501 } else {
2502 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot negate (“not”) ", x->whichText(), U".");
2503 }
2504 }
2505 static void do_eqcxx . . $ do_eq(49f6e7a06ebc5aa8). () {
2506 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
2507 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
2508 /*
2509 It is possible that we are comparing a value against --undefined--.
2510 Any defined value is unequal to --undefined--,
2511 but any undefined value (inf or NaN) *is* equal to --undefined--.
2512 Note that this is different from how "==" works in C.
2513 */
2514 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMequalcxx . . $ NUMequal(828b76dce88fac). (x->numbercxx . . $ structStackel#$anonymous_type_0#number., y->numbercxx . . $ structStackel#$anonymous_type_0#number.) ? 1.0 : 0.0);
2515 } else if (x->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && y->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
2516 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (str32equcxx . . $ `melder/melder_str32.h:122:9`! (x->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), y->getStringcxx . . $ structStackel#getString(1912f6684645c851).()) ? 1.0 : 0.0);
2517 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
2518 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMequalcxx . . $ NUMequal(6596de982874463a). (x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., y->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.) ? 1.0 : 0.0);
2519 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
2520 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMequalcxx . . $ NUMequal(bcd99c6dca37547). (x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.) ? 1.0 : 0.0);
2521 } else if (x->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`! && y->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!) {
2522 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMequalcxx . . $ NUMequal(a0b5f47107c5438c). (xcxx . . $ _conststringvector#_conststringvector(93d9e701af42cb0d).->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray., ycxx . . $ _conststringvector#_conststringvector(93d9e701af42cb0d).->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray.) ? 1.0 : 0.0);
2523 } else {
2524 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compare (=) ", x->whichText(), U" to ", y->whichText(), U".");
2525 }
2526 }
2527 static void do_necxx . . $ do_ne(49f6e7a06ebc5aa8). () {
2528 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
2529 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
2530 /*
2531 Unequal is defined as the opposite of equal.
2532 */
2533 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMequalcxx . . $ NUMequal(828b76dce88fac). (x->numbercxx . . $ structStackel#$anonymous_type_0#number., y->numbercxx . . $ structStackel#$anonymous_type_0#number.) ? 0.0 : 1.0);
2534 } else if (x->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && y->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
2535 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (str32equcxx . . $ `melder/melder_str32.h:122:9`! (x->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), y->getStringcxx . . $ structStackel#getString(1912f6684645c851).()) ? 0.0 : 1.0);
2536 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
2537 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMequalcxx . . $ NUMequal(6596de982874463a). (x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., y->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.) ? 0.0 : 1.0);
2538 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
2539 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMequalcxx . . $ NUMequal(bcd99c6dca37547). (x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.) ? 0.0 : 1.0);
2540 } else if (x->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`! && y->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!) {
2541 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMequalcxx . . $ NUMequal(a0b5f47107c5438c). (xcxx . . $ _conststringvector#_conststringvector(93d9e701af42cb0d).->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray., ycxx . . $ _conststringvector#_conststringvector(93d9e701af42cb0d).->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray.) ? 0.0 : 1.0);
2542 } else {
2543 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compare (<>) ", x->whichText(), U" to ", y->whichText(), U".");
2544 }
2545 }
2546 static void do_lecxx . . $ do_le(49f6e7a06ebc5aa8). () {
2547 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
2548 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
2549 double xvalue = x->numbercxx . . $ structStackel#$anonymous_type_0#number., yvalue = y->numbercxx . . $ structStackel#$anonymous_type_0#number.;
2550 if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (xvalue)) {
2551 if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (yvalue)) {
2552 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (x->numbercxx . . $ structStackel#$anonymous_type_0#number. <= y->numbercxx . . $ structStackel#$anonymous_type_0#number. ? 1.0 : 0.0);
2553 } else {
2554 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (0.0); // defined is not equal to, nor less than, undefined
2555 }
2556 } else {
2557 if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (yvalue)) {
2558 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (0.0); // undefined is not equal to, nor less than, defined
2559 } else {
2560 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1.0); // undefined is equal to undefined
2561 }
2562 }
2563 } else if (x->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && y->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
2564 const double result = str32cmpcxx . . $ str32cmp(937dacc22d2a7919). (x->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), y->getStringcxx . . $ structStackel#getString(1912f6684645c851).()) <= 0 ? 1.0 : 0.0;
2565 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
2566 } else {
2567 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compare (<=) ", x->whichText(), U" to ", y->whichText(), U".");
2568 }
2569 }
2570 static void do_ltcxx . . $ do_lt(49f6e7a06ebc5aa8). () {
2571 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
2572 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
2573 double xvalue = x->numbercxx . . $ structStackel#$anonymous_type_0#number., yvalue = y->numbercxx . . $ structStackel#$anonymous_type_0#number.;
2574 if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (xvalue)) {
2575 if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (yvalue)) {
2576 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (x->numbercxx . . $ structStackel#$anonymous_type_0#number. < y->numbercxx . . $ structStackel#$anonymous_type_0#number. ? 1.0 : 0.0);
2577 } else {
2578 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (0.0); // defined is not less than undefined
2579 }
2580 } else {
2581 if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (yvalue)) {
2582 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (0.0); // undefined is not less than defined
2583 } else {
2584 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (0.0); // undefined is not less than undefined
2585 }
2586 }
2587 } else if (x->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && y->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
2588 const double result = str32cmpcxx . . $ str32cmp(937dacc22d2a7919). (x->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), y->getStringcxx . . $ structStackel#getString(1912f6684645c851).()) < 0 ? 1.0 : 0.0;
2589 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
2590 } else {
2591 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compare (<) ", x->whichText(), U" to ", y->whichText(), U".");
2592 }
2593 }
2594 static void do_gecxx . . $ do_ge(49f6e7a06ebc5aa8). () {
2595 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
2596 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
2597 const double xvalue = x->numbercxx . . $ structStackel#$anonymous_type_0#number., yvalue = y->numbercxx . . $ structStackel#$anonymous_type_0#number.;
2598 if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (xvalue)) {
2599 if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (yvalue)) {
2600 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (x->numbercxx . . $ structStackel#$anonymous_type_0#number. >= y->numbercxx . . $ structStackel#$anonymous_type_0#number. ? 1.0 : 0.0);
2601 } else {
2602 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (0.0); // defined is not equal to, nor greater than, undefined
2603 }
2604 } else {
2605 if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (yvalue)) {
2606 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (0.0); // undefined is not equal to, nor greater than, defined
2607 } else {
2608 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1.0); // undefined is equal to undefined
2609 }
2610 }
2611 } else if (x->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && y->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
2612 const double result = str32cmpcxx . . $ str32cmp(937dacc22d2a7919). (x->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), y->getStringcxx . . $ structStackel#getString(1912f6684645c851).()) >= 0 ? 1.0 : 0.0;
2613 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
2614 } else {
2615 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compare (>=) ", x->whichText(), U" to ", y->whichText(), U".");
2616 }
2617 }
2618 static void do_gtcxx . . $ do_gt(49f6e7a06ebc5aa8). () {
2619 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
2620 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
2621 const double xvalue = x->numbercxx . . $ structStackel#$anonymous_type_0#number., yvalue = y->numbercxx . . $ structStackel#$anonymous_type_0#number.;
2622 if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (xvalue)) {
2623 if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (yvalue)) {
2624 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (x->numbercxx . . $ structStackel#$anonymous_type_0#number. > y->numbercxx . . $ structStackel#$anonymous_type_0#number. ? 1.0 : 0.0);
2625 } else {
2626 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (0.0); // defined is not greater than undefined
2627 }
2628 } else {
2629 if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (yvalue)) {
2630 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (0.0); // undefined is not greater than defined
2631 } else {
2632 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (0.0); // undefined is not greater than undefined
2633 }
2634 }
2635 } else if (x->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && y->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
2636 const double result = str32cmpcxx . . $ str32cmp(937dacc22d2a7919). (x->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), y->getStringcxx . . $ structStackel#getString(1912f6684645c851).()) > 0 ? 1.0 : 0.0;
2637 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
2638 } else {
2639 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compare (>) ", x->whichText(), U" to ", y->whichText(), U".");
2640 }
2641 }
2642 inline static void moveNumericVectorcxx . . $ moveNumericVector(b6d56f2f7b451283). (Stackelcxx . . $ Stackel# from, Stackelcxx . . $ Stackel# to) {
2643 //Melder_assert (from -> owned);
2644 //Melder_assert (to -> which == Stackel_NUMERIC_VECTOR);
2645 from -> ownedcxx . . $ structStackel#owned. = false;
2646 to -> numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(958c14910af86093). from -> numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
2647 to -> ownedcxx . . $ structStackel#owned. = true;
2648 }
2649 inline static void moveNumericMatrixcxx . . $ moveNumericMatrix(b6d56f2f7b451283). (Stackelcxx . . $ Stackel# from, Stackelcxx . . $ Stackel# to) {
2650 //Melder_assert (from -> owned);
2651 //Melder_assert (to -> which == Stackel_NUMERIC_MATRIX);
2652 from -> ownedcxx . . $ structStackel#owned. = false;
2653 to -> numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(5dfd60dc70a2bbd2). from -> numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
2654 to -> ownedcxx . . $ structStackel#owned. = true;
2655 }
2656
2657 static void do_addcxx . . $ do_add(49f6e7a06ebc5aa8). () {
2658 /*
2659 result.. = x.. + y..
2660 */
2661 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = topOfStackcxx . . $ `sys/Formula.cpp:2388:9`!;
2662 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
2663 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
2664 /*@praat
2665 #
2666 # result = x + y
2667 #
2668 x = 5
2669 y = 6
2670 result = x + y
2671 assert result = 11
2672 @*/
2673 x->numbercxx . . $ structStackel#$anonymous_type_0#number. += y->numbercxx . . $ structStackel#$anonymous_type_0#number.;
2674 //x->which = Stackel_NUMBER; // superfluous, as is cleaning up
2675 return;
2676 }
2677 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
2678 /*
2679 result# = x + y#
2680 */
2681 if (y->ownedcxx . . $ structStackel#owned.) {
2682 /*@praat
2683 #
2684 # result# = x + owned y#
2685 #
2686 result# = 5 + { 11, 13, 31 } ; numeric vector literals are owned
2687 assert result# = { 16, 18, 36 }
2688 @*/
2689 ycxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. +=cxx . . $ `operator+=`(c555d170d72ff256). x->numbercxx . . $ structStackel#$anonymous_type_0#number.;
2690 // x does not have to be cleaned up, because it was a number
2691 moveNumericVectorcxx . . $ moveNumericVector(b6d56f2f7b451283). (y, x);
2692 } else {
2693 /*@praat
2694 #
2695 # result# = x + unowned y#
2696 #
2697 y# = { 17, -11, 29 }
2698 result# = 30 + y# ; numeric vector variables are not owned
2699 assert result# = { 47, 19, 59 }
2700 @*/
2701 // x does not have to be cleaned up, because it was a number
2702 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(b5ebf627ac2fae1e). add_VECcxx . . $ add_VEC(61ade8de38ecf2c1). (ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., x->numbercxx . . $ structStackel#$anonymous_type_0#number.). releaseToAmbiguousOwnercxx . . $ autovector#releaseToAmbiguousOwner(b4260375df4b1a56).();
2703 x->ownedcxx . . $ structStackel#owned. = true;
2704 }
2705 x->whichcxx . . $ structStackel#which. = Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!;
2706 return;
2707 }
2708 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
2709 /*
2710 result## = x + y##
2711 */
2712 if (y->ownedcxx . . $ structStackel#owned.) {
2713 ycxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. +=cxx . . $ `operator+=`(50b469ae42a42f64). x->numbercxx . . $ structStackel#$anonymous_type_0#number.;
2714 // x does not have to be cleaned up, because it was a number
2715 moveNumericMatrixcxx . . $ moveNumericMatrix(b6d56f2f7b451283). (y, x);
2716 } else {
2717 // x does not have to be cleaned up, because it was a number
2718 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). add_MATcxx . . $ add_MAT(d05068067bdbbf5a). (ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., x->numbercxx . . $ structStackel#$anonymous_type_0#number.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
2719 x->ownedcxx . . $ structStackel#owned. = true;
2720 }
2721 x->whichcxx . . $ structStackel#which. = Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!;
2722 return;
2723 }
2724 }
2725 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
2726 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
2727 /*
2728 result# = x# + y#
2729 i.e.
2730 result# [i] = x# [i] + y# [i]
2731 */
2732 const integercxx . . $ integer# nx = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size., ny = y->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
2733 if (nx != ny) {
2734 /*@praat
2735 #
2736 # Error: unequal sizes.
2737 #
2738 x# = { 11, 13, 17 }
2739 y# = { 8, 90 }
2740 asserterror When adding vectors, their numbers of elements should be equal, instead of 3 and 2.
2741 result# = x# + y#
2742 @*/
2743 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"When adding vectors, their numbers of elements should be equal, instead of ", nx, U" and ", ny, U".");
2744 }
2745 if (x -> ownedcxx . . $ structStackel#owned.) {
2746 /*@praat
2747 #
2748 # result# = owned x# + y#
2749 #
2750 result# = { 11, 13, 17 } + { 44, 56, 67 } ; owned + owned
2751 assert result# = { 55, 69, 84 }
2752 y# = { 3, 2, 89.5 }
2753 result# = { 11, 13, 17 } + y# ; owned + unowned
2754 assert result# = { 14, 15, 106.5 }
2755 @*/
2756 xcxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. +=cxx . . $ `operator+=`(adea042513329390). ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
2757 } else if (y -> ownedcxx . . $ structStackel#owned.) {
2758 /*@praat
2759 #
2760 # result# = unowned x# + owned y#
2761 #
2762 x# = { 14, -3, 6.25 }
2763 result# = x# + { 55, 1, -89 }
2764 assert result# = { 69, -2, -82.75 }
2765 @*/
2766 ycxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. +=cxx . . $ `operator+=`(adea042513329390). xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
2767 // x does not have to be cleaned up, because it was not owned
2768 moveNumericVectorcxx . . $ moveNumericVector(b6d56f2f7b451283). (y, x);
2769 } else {
2770 /*@praat
2771 #
2772 # result# = unowned x# + unowned y#
2773 #
2774 x# = { 14, -33, 6.25 }
2775 y# = { -33, 17, 9 }
2776 result# = x# + y#
2777 assert result# = { -19, -16, 15.25 }
2778 @*/
2779 // x does not have to be cleaned up, because it was not owned
2780 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(b5ebf627ac2fae1e). add_VECcxx . . $ add_VEC(d5d92300b35dc604). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.). releaseToAmbiguousOwnercxx . . $ autovector#releaseToAmbiguousOwner(b4260375df4b1a56).();
2781 x->ownedcxx . . $ structStackel#owned. = true;
2782 }
2783 //x->which = Stackel_NUMERIC_VECTOR; // superfluous
2784 return;
2785 }
2786 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
2787 /*
2788 result## = x# + y##
2789 i.e.
2790 result## [i, j] = x# [i] + y## [i, j]
2791 */
2792 const integercxx . . $ integer# xsize = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
2793 const integercxx . . $ integer# ynrow = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.;
2794 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (ynrow == xsize,
2795 U"When adding a matrix to a vector, the matrix’s number of rows should be equal to the vector’s size, "
2796 "instead of ", ynrow, U" and ", xsize, U"."
2797 );
2798 if (x->ownedcxx . . $ structStackel#owned.) {
2799 /*@praat
2800 assert { 1, 2, 3 } + { { 1, 2 }, { 3, 4 }, { 5, 6 } } = { { 2, 3 }, { 5, 6 }, { 8, 9 } }
2801 @*/
2802 autoMATcxx . . $ autoMAT# newMatrix = add_MATcxx . . $ add_MAT(f284c9185690a20e). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
2803 x->resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
2804 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). newMatrix. releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
2805 } else {
2806 /*@praat
2807 a# = { 1, 2, 3 }
2808 assert a# + { { 1, 2 }, { 3, 4 }, { 5, 6 } } = { { 2, 3 }, { 5, 6 }, { 8, 9 } }
2809 @*/
2810 // x does not have to be cleaned up, because it was not owned
2811 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). add_MATcxx . . $ add_MAT(f284c9185690a20e). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
2812 x->ownedcxx . . $ structStackel#owned. = true;
2813 }
2814 x->whichcxx . . $ structStackel#which. = Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!;
2815 return;
2816 }
2817 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
2818 /*
2819 result# = x# + y
2820 i.e.
2821 result# [i] = x# [i] + y
2822 */
2823 if (x->ownedcxx . . $ structStackel#owned.) {
2824 xcxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. +=cxx . . $ `operator+=`(c555d170d72ff256). y->numbercxx . . $ structStackel#$anonymous_type_0#number.;
2825 } else {
2826 // x does not have to be cleaned up, because it was not owned
2827 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(b5ebf627ac2fae1e). add_VECcxx . . $ add_VEC(61ade8de38ecf2c1). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., y->numbercxx . . $ structStackel#$anonymous_type_0#number.). releaseToAmbiguousOwnercxx . . $ autovector#releaseToAmbiguousOwner(b4260375df4b1a56).();
2828 x->ownedcxx . . $ structStackel#owned. = true;
2829 }
2830 //x->which = Stackel_NUMERIC_VECTOR; // superfluous
2831 return;
2832 }
2833 }
2834 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
2835 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
2836 /*
2837 result## = x## + y##
2838 i.e.
2839 result## [i, j] = x## [i, j] + y## [i, j]
2840 */
2841 const integercxx . . $ integer# xnrow = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow., xncol = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.;
2842 const integercxx . . $ integer# ynrow = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow., yncol = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.;
2843 if (xnrow != ynrow)
2844 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"When adding matrices, their numbers of rows should be equal, instead of ", xnrow, U" and ", ynrow, U".");
2845 if (xncol != yncol)
2846 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"When adding matrices, their numbers of columns should be equal, instead of ", xncol, U" and ", yncol, U".");
2847 if (x->ownedcxx . . $ structStackel#owned.) {
2848 xcxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. +=cxx . . $ `operator+=`(a7d93ba40fe22fe0). ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
2849 } else if (y->ownedcxx . . $ structStackel#owned.) {
2850 ycxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. +=cxx . . $ `operator+=`(a7d93ba40fe22fe0). xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
2851 // x does not have to be cleaned up, because it was not owned
2852 moveNumericMatrixcxx . . $ moveNumericMatrix(b6d56f2f7b451283). (y, x);
2853 } else {
2854 // x does not have to be cleaned up, because it was not owned and has the right shape
2855 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). add_MATcxx . . $ add_MAT(341c1d932d99e4e3). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
2856 x->ownedcxx . . $ structStackel#owned. = true;
2857 }
2858 //x->which = Stackel_NUMERIC_MATRIX;
2859 return;
2860 }
2861 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
2862 /*
2863 result## = x## + y#
2864 i.e.
2865 result## [i, j] = x## [i, j] + y# [j]
2866 */
2867 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (y->numericVector.size == x->numericMatrix.ncol,
2868 U"Cannot add a vector with ", y->numericVector.size, U" elements "
2869 "to a matrix with ", x->numericMatrix.ncol, U" columns. "
2870 "These numbers should be equal."
2871 );
2872 if (x->ownedcxx . . $ structStackel#owned.) {
2873 /*@praat
2874 #
2875 # result## = owned x## + y#
2876 #
2877 y# = { -5, 6, -19 }
2878 result## = { { 14, -33, 6.25 }, { -33, 17, 9 } } + y#
2879 assert result## = { { 9, -27, -12.75 }, { -38, 23, -10 } }
2880 @*/
2881 xcxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. +=cxx . . $ `operator+=`(88779db6ac139909). ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
2882 } else {
2883 /*@praat
2884 #
2885 # result## = unowned x## + y#
2886 #
2887 x## = { { 14, -33, 6.25 }, { -33, 17, 9 } }
2888 y# = { -5, 6, -19 }
2889 result## = x## + y#
2890 assert result## = { { 9, -27, -12.75 }, { -38, 23, -10 } }
2891 @*/
2892 // x does not have to be cleaned up, because it was not owned
2893 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). add_MATcxx . . $ add_MAT(58a61c4ec227c4d). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
2894 x->ownedcxx . . $ structStackel#owned. = true;
2895 }
2896 //x->which = Stackel_NUMERIC_MATRIX;
2897 return;
2898 }
2899 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
2900 /*
2901 result## = x## + y
2902 i.e.
2903 result## [i, j] = x## [i, j] + y
2904 */
2905 if (x->ownedcxx . . $ structStackel#owned.) {
2906 xcxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. +=cxx . . $ `operator+=`(50b469ae42a42f64). y->numbercxx . . $ structStackel#$anonymous_type_0#number.;
2907 } else {
2908 // x does not have to be cleaned up, because it was not owned
2909 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). add_MATcxx . . $ add_MAT(d05068067bdbbf5a). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., y->numbercxx . . $ structStackel#$anonymous_type_0#number.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
2910 x->ownedcxx . . $ structStackel#owned. = true;
2911 }
2912 //x->which = Stackel_NUMERIC_MATRIX; // superfluous
2913 return;
2914 }
2915 }
2916 if (x->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && y->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
2917 /*
2918 result$ = x$ + y$
2919 */
2920 const integercxx . . $ integer# length1 = Melder_lengthcxx . . $ Melder_length(3fae411214b133ad). (x->getStringcxx . . $ structStackel#getString(1912f6684645c851).()), length2 = Melder_lengthcxx . . $ Melder_length(3fae411214b133ad). (y->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
2921 autostring32cxx . . $ autostring32# resultcxx . . $ _autostring#_autostring(f153f132b2bc41c2). (length1 + length2);
2922 str32cpycxx . . $ str32cpy(6ab934322573b179). (result.getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), x->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
2923 str32cpycxx . . $ str32cpy(6ab934322573b179). (result.getcxx . . $ _autostring#get(5a2a78a048fb49a8).() + length1, y->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
2924 x->setStringcxx . . $ structStackel#setString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
2925 return;
2926 }
2927 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot add ", y->whichText(), U" to ", x->whichText(), U".");
2928 }
2929 static void do_subcxx . . $ do_sub(49f6e7a06ebc5aa8). () {
2930 /*
2931 result.. = x.. - y..
2932 */
2933 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = topOfStackcxx . . $ `sys/Formula.cpp:2388:9`!;
2934 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
2935 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
2936 /*@praat
2937 #
2938 # result = x - y
2939 #
2940 x = 5
2941 y = 6
2942 result = x - y
2943 assert result = -1
2944 @*/
2945 x->numbercxx . . $ structStackel#$anonymous_type_0#number. -= y->numbercxx . . $ structStackel#$anonymous_type_0#number.;
2946 //x->which = Stackel_NUMBER; // superfluous, as is cleaning up
2947 return;
2948 }
2949 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
2950 /*
2951 result# = x - y#
2952 */
2953 if (y->ownedcxx . . $ structStackel#owned.) {
2954 /*@praat
2955 #
2956 # result# = x - owned y#
2957 #
2958 result# = 5 - { 11, 13, 31 } ; numeric vector literals are owned
2959 assert result# = { -6, -8, -26 }
2960 @*/
2961 ycxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. <<=cxx . . $ `operator<<=`(67fe26be3e02301c). x->numbercxx . . $ structStackel#$anonymous_type_0#number. -cxx . . $ operator-(5ca753c8b12ea897). ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
2962 // x does not have to be cleaned up, because it was a number
2963 moveNumericVectorcxx . . $ moveNumericVector(b6d56f2f7b451283). (y, x);
2964 } else {
2965 /*@praat
2966 #
2967 # result# = x - unowned y#
2968 #
2969 y# = { 17, -11, 29 }
2970 result# = 30 - y# ; numeric vector variables are not owned
2971 assert result# = { 13, 41, 1 }
2972 @*/
2973 // x does not have to be cleaned up, because it was a number
2974 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(b5ebf627ac2fae1e). subtract_VECcxx . . $ subtract_VEC(aed2055afda63104). (x->numbercxx . . $ structStackel#$anonymous_type_0#number., ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.). releaseToAmbiguousOwnercxx . . $ autovector#releaseToAmbiguousOwner(b4260375df4b1a56).();
2975 x->ownedcxx . . $ structStackel#owned. = true;
2976 }
2977 x->whichcxx . . $ structStackel#which. = Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!;
2978 return;
2979 }
2980 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
2981 /*
2982 result## = x - y##
2983 */
2984 if (y->ownedcxx . . $ structStackel#owned.) {
2985 subtractReversed_MAT_inoutcxx . . $ subtractReversed_MAT_inout(50b469ae42a42f64). (ycxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., x->numbercxx . . $ structStackel#$anonymous_type_0#number.);
2986 // x does not have to be cleaned up, because it was a number
2987 moveNumericMatrixcxx . . $ moveNumericMatrix(b6d56f2f7b451283). (y, x);
2988 } else {
2989 // x does not have to be cleaned up, because it was a number
2990 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). subtract_MATcxx . . $ subtract_MAT(1da3dfb72ceffafb). (x->numbercxx . . $ structStackel#$anonymous_type_0#number., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
2991 x->ownedcxx . . $ structStackel#owned. = true;
2992 }
2993 x->whichcxx . . $ structStackel#which. = Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!;
2994 return;
2995 }
2996 }
2997 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
2998 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
2999 /*
3000 result# = x# - y#
3001 i.e.
3002 result# [i] = x# [i] - y# [i]
3003 */
3004 const integercxx . . $ integer# nx = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size., ny = y->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
3005 if (nx != ny) {
3006 /*@praat
3007 #
3008 # Error: unequal sizes.
3009 #
3010 x# = { 11, 13, 17 }
3011 y# = { 8, 90 }
3012 asserterror When subtracting vectors, their numbers of elements should be equal, instead of 3 and 2.
3013 result# = x# - y#
3014 @*/
3015 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"When subtracting vectors, their numbers of elements should be equal, instead of ", nx, U" and ", ny, U".");
3016 }
3017 if (x -> ownedcxx . . $ structStackel#owned.) {
3018 /*@praat
3019 #
3020 # result# = owned x# - y#
3021 #
3022 result# = { 11, 13, 17 } - { 44, 56, 67 } ; owned + owned
3023 assert result# = { -33, -43, -50 }
3024 y# = { 3, 2, 89.5 }
3025 result# = { 11, 13, 17 } - y# ; owned + unowned
3026 assert result# = { 8, 11, -72.5 }
3027 @*/
3028 xcxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. -=cxx . . $ `operator-=`(adea042513329390). ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
3029 } else if (y -> ownedcxx . . $ structStackel#owned.) {
3030 /*@praat
3031 #
3032 # result# = unowned x# + owned y#
3033 #
3034 x# = { 14, -3, 6.25 }
3035 result# = x# + { 55, 1, -89 }
3036 assert result# = { 69, -2, -82.75 }
3037 @*/
3038 ycxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. <<=cxx . . $ `operator<<=`(ce74bae6c180f663). xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. -cxx . . $ operator-(fcdbb1279f7b512e). ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
3039 // x does not have to be cleaned up, because it was not owned
3040 moveNumericVectorcxx . . $ moveNumericVector(b6d56f2f7b451283). (y, x);
3041 } else {
3042 /*@praat
3043 #
3044 # result# = unowned x# + unowned y#
3045 #
3046 x# = { 14, -33, 6.25 }
3047 y# = { -33, 17, 9 }
3048 result# = x# - y#
3049 assert result# = { 47, -50, -2.75 }
3050 @*/
3051 // no clean-up of x required, because x is not owned and has the right type
3052 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(b5ebf627ac2fae1e). subtract_VECcxx . . $ subtract_VEC(d5d92300b35dc604). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.). releaseToAmbiguousOwnercxx . . $ autovector#releaseToAmbiguousOwner(b4260375df4b1a56).();
3053 x->ownedcxx . . $ structStackel#owned. = true;
3054 }
3055 //x->which = Stackel_NUMERIC_VECTOR; // superfluous
3056 return;
3057 }
3058 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
3059 /*
3060 result## = x# - y##
3061 i.e.
3062 result## [i, j] = x# [i] - y## [i, j]
3063 */
3064 const integercxx . . $ integer# xsize = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
3065 const integercxx . . $ integer# ynrow = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.;
3066 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (ynrow == xsize,
3067 U"When subtracting a matrix from a vector, the matrix’s number of rows should be equal to the vector’s size, "
3068 "instead of ", ynrow, U" and ", xsize, U"."
3069 );
3070 if (x->ownedcxx . . $ structStackel#owned.) {
3071 /*@praat
3072 assert { 1, 2, 3 } - { { 1, 2 }, { 3, 4 }, { 5, 6 } } = { { 0, -1 }, { -1, -2 }, { -2, -3 } }
3073 @*/
3074 autoMATcxx . . $ autoMAT# newMatrix = subtract_MATcxx . . $ subtract_MAT(f284c9185690a20e). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
3075 x->resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
3076 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). newMatrix. releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
3077 } else {
3078 /*@praat
3079 a# = { 1, 2, 3 }
3080 assert a# - { { 1, 2 }, { 3, 4 }, { 5, 6 } } = { { 0, -1 }, { -1, -2 }, { -2, -3 } }
3081 @*/
3082 // x does not have to be cleaned up, because it was not owned
3083 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). subtract_MATcxx . . $ subtract_MAT(f284c9185690a20e). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
3084 x->ownedcxx . . $ structStackel#owned. = true;
3085 }
3086 x->whichcxx . . $ structStackel#which. = Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!;
3087 return;
3088 }
3089 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3090 /*
3091 result# = x# - y
3092 i.e.
3093 result# [i] = x# [i] - y
3094 */
3095 if (x->ownedcxx . . $ structStackel#owned.) {
3096 xcxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. -=cxx . . $ `operator-=`(c555d170d72ff256). y->numbercxx . . $ structStackel#$anonymous_type_0#number.;
3097 } else {
3098 // x does not have to be cleaned up, because it was not owned
3099 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(b5ebf627ac2fae1e). subtract_VECcxx . . $ subtract_VEC(61ade8de38ecf2c1). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., y->numbercxx . . $ structStackel#$anonymous_type_0#number.). releaseToAmbiguousOwnercxx . . $ autovector#releaseToAmbiguousOwner(b4260375df4b1a56).();
3100 x->ownedcxx . . $ structStackel#owned. = true;
3101 }
3102 //x->which = Stackel_NUMERIC_VECTOR; // superfluous
3103 return;
3104 }
3105 }
3106 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
3107 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
3108 const integercxx . . $ integer# xnrow = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow., xncol = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.;
3109 const integercxx . . $ integer# ynrow = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow., yncol = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.;
3110 if (xnrow != ynrow)
3111 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"When subtracting matrices, their numbers of rows should be equal, instead of ", xnrow, U" and ", ynrow, U".");
3112 if (xncol != yncol)
3113 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"When subtracting matrices, their numbers of columns should be equal, instead of ", xncol, U" and ", yncol, U".");
3114 if (x->ownedcxx . . $ structStackel#owned.) {
3115 xcxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. -=cxx . . $ `operator-=`(a7d93ba40fe22fe0). ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
3116 } else if (y->ownedcxx . . $ structStackel#owned.) {
3117 subtractReversed_MAT_inoutcxx . . $ subtractReversed_MAT_inout(a7d93ba40fe22fe0). (ycxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
3118 // x does not have to be cleaned up, because it was not owned
3119 moveNumericMatrixcxx . . $ moveNumericMatrix(b6d56f2f7b451283). (y, x);
3120 } else {
3121 // x does not have to be cleaned up, because it was not owned and has the right shape
3122 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). subtract_MATcxx . . $ subtract_MAT(341c1d932d99e4e3). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
3123 x->ownedcxx . . $ structStackel#owned. = true;
3124 }
3125 //x->which = Stackel_NUMERIC_MATRIX; // superfluous
3126 return;
3127 }
3128 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3129 /*
3130 result## = x## - y#
3131 i.e.
3132 result## [i, j] = x## [i, j] - y# [j]
3133 */
3134 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (y->numericVector.size == x->numericMatrix.ncol,
3135 U"Cannot subtract a vector with ", y->numericVector.size, U" elements "
3136 "from a matrix with ", x->numericMatrix.ncol, U" columns. "
3137 "These numbers should be equal."
3138 );
3139 if (x->ownedcxx . . $ structStackel#owned.) {
3140 /*@praat
3141 #
3142 # result## = owned x## - y#
3143 #
3144 y# = { -5, 6, -19 }
3145 result## = { { 14, -33, 6.25 }, { -33, 17, 9 } } - y#
3146 assert result## = { { 19, -39, 25.25 }, { -28, 11, 28 } }
3147 @*/
3148 xcxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. -=cxx . . $ `operator-=`(88779db6ac139909). ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
3149 } else {
3150 /*@praat
3151 #
3152 # result## = unowned x## - y#
3153 #
3154 x## = { { 14, -33, 6.25 }, { -33, 17, 9 } }
3155 y# = { -5, 6, -19 }
3156 result## = x## - y#
3157 assert result## = { { 19, -39, 25.25 }, { -28, 11, 28 } }
3158 @*/
3159 // x does not have to be cleaned up, because it was not owned
3160 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). subtract_MATcxx . . $ subtract_MAT(58a61c4ec227c4d). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
3161 x->ownedcxx . . $ structStackel#owned. = true;
3162 }
3163 //x->which = Stackel_NUMERIC_MATRIX;
3164 return;
3165 }
3166 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3167 /*
3168 result## = x## - y
3169 i.e.
3170 result## [i, j] = x## [i, j] - y
3171 */
3172 if (x->ownedcxx . . $ structStackel#owned.) {
3173 xcxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. -=cxx . . $ `operator-=`(50b469ae42a42f64). y->numbercxx . . $ structStackel#$anonymous_type_0#number.;
3174 } else {
3175 // x does not have to be cleaned up, because it was not owned
3176 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). subtract_MATcxx . . $ subtract_MAT(d05068067bdbbf5a). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., y->numbercxx . . $ structStackel#$anonymous_type_0#number.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
3177 x->ownedcxx . . $ structStackel#owned. = true;
3178 }
3179 //x->which = Stackel_NUMERIC_MATRIX; // superfluous
3180 return;
3181 }
3182 }
3183 if (x->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && y->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
3184 const integercxx . . $ integer# length1 = Melder_lengthcxx . . $ Melder_length(3fae411214b133ad). (x->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
3185 const integercxx . . $ integer# length2 = Melder_lengthcxx . . $ Melder_length(3fae411214b133ad). (y->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
3186 const integercxx . . $ integer# newlength = length1 - length2;
3187 autostring32cxx . . $ autostring32# resultcxx . . $ _autostring#_autostring(49f6e7a06ebc5aa8).;
3188 if (newlength >= 0 && str32nequcxx . . $ `melder/melder_str32.h:123:9`! (x->getStringcxx . . $ structStackel#getString(1912f6684645c851).() + newlength, y->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), length2)) {
3189 result =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). autostring32cxx . . $ autostring32# (newlength);
3190 str32ncpycxx . . $ str32ncpy(a0fb29e7f5bbd1dc). (result.getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), x->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), newlength);
3191 } else {
3192 result =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (x->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
3193 }
3194 x->setStringcxx . . $ structStackel#setString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
3195 return;
3196 }
3197 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot subtract (-) ", y->whichText(), U" from ", x->whichText(), U".");
3198 }
3199 static void do_mulcxx . . $ do_mul(49f6e7a06ebc5aa8). () {
3200 /*
3201 result.. = x.. * y..
3202 */
3203 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = topOfStackcxx . . $ `sys/Formula.cpp:2388:9`!;
3204 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3205 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3206 /*@praat
3207 #
3208 # result = x * y
3209 #
3210 x = 5
3211 y = 6
3212 result = x * y
3213 assert result = 30
3214 @*/
3215 x->numbercxx . . $ structStackel#$anonymous_type_0#number. *= y->numbercxx . . $ structStackel#$anonymous_type_0#number.;
3216 //x->which = Stackel_NUMBER; // superfluous, as is cleaning up
3217 return;
3218 }
3219 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3220 /*
3221 result# = x * y#
3222 */
3223 if (y->ownedcxx . . $ structStackel#owned.) {
3224 /*@praat
3225 #
3226 # result# = x * owned y#
3227 #
3228 result# = 5 * { 11, 13, 31 } ; numeric vector literals are owned
3229 assert result# = { 55, 65, 155 }
3230 @*/
3231 ycxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. *=cxx . . $ `operator*=`(c555d170d72ff256). x->numbercxx . . $ structStackel#$anonymous_type_0#number.;
3232 // x does not have to be cleaned up, because it was a number
3233 moveNumericVectorcxx . . $ moveNumericVector(b6d56f2f7b451283). (y, x);
3234 } else {
3235 /*@praat
3236 #
3237 # result# = x * unowned y#
3238 #
3239 y# = { 17, -11, 29 }
3240 result# = 30 * y# ; numeric vector variables are not owned
3241 assert result# = { 510, -330, 870 }
3242 @*/
3243 // x does not have to be cleaned up, because it was a number
3244 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(b5ebf627ac2fae1e). multiply_VECcxx . . $ multiply_VEC(61ade8de38ecf2c1). (ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., x->numbercxx . . $ structStackel#$anonymous_type_0#number.). releaseToAmbiguousOwnercxx . . $ autovector#releaseToAmbiguousOwner(b4260375df4b1a56).();
3245 x->ownedcxx . . $ structStackel#owned. = true;
3246 }
3247 x->whichcxx . . $ structStackel#which. = Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!;
3248 return;
3249 }
3250 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
3251 /*
3252 result## = x * y##
3253 */
3254 if (y->ownedcxx . . $ structStackel#owned.) {
3255 ycxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. *=cxx . . $ `operator*=`(50b469ae42a42f64). x->numbercxx . . $ structStackel#$anonymous_type_0#number.;
3256 // x does not have to be cleaned up, because it was a number
3257 moveNumericMatrixcxx . . $ moveNumericMatrix(b6d56f2f7b451283). (y, x);
3258 } else {
3259 // x does not have to be cleaned up, because it was a number
3260 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). multiply_MATcxx . . $ multiply_MAT(d05068067bdbbf5a). (ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., x->numbercxx . . $ structStackel#$anonymous_type_0#number.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
3261 x->ownedcxx . . $ structStackel#owned. = true;
3262 }
3263 x->whichcxx . . $ structStackel#which. = Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!;
3264 return;
3265 }
3266 }
3267 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3268 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3269 /*
3270 result# = x# * y#
3271 i.e.
3272 result# [i] = x# [i] * y# [i]
3273 */
3274 const integercxx . . $ integer# nx = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size., ny = y->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
3275 if (nx != ny) {
3276 /*@praat
3277 #
3278 # Error: unequal sizes.
3279 #
3280 x# = { 11, 13, 17 }
3281 y# = { 8, 90 }
3282 asserterror When multiplying vectors, their numbers of elements should be equal, instead of 3 and 2.
3283 result# = x# * y#
3284 @*/
3285 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"When multiplying vectors, their numbers of elements should be equal, instead of ", nx, U" and ", ny, U".");
3286 }
3287 if (x -> ownedcxx . . $ structStackel#owned.) {
3288 /*@praat
3289 #
3290 # result# = owned x# * y#
3291 #
3292 result# = { 11, 13, 17 } * { 44, 56, 67 } ; owned * owned
3293 assert result# = { 484, 728, 1139 }
3294 y# = { 3, 2, 89.5 }
3295 result# = { 11, 13, 17 } * y# ; owned * unowned
3296 assert result# = { 33, 26, 1521.5 }
3297 @*/
3298 xcxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. *=cxx . . $ `operator*=`(adea042513329390). ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
3299 } else if (y -> ownedcxx . . $ structStackel#owned.) {
3300 /*@praat
3301 #
3302 # result# = unowned x# * owned y#
3303 #
3304 x# = { 14, -3, 6.25 }
3305 result# = x# * { 55, 1, -89 }
3306 assert result# = { 770, -3, -556.25 }
3307 @*/
3308 ycxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. *=cxx . . $ `operator*=`(adea042513329390). xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
3309 // x does not have to be cleaned up, because it was not owned
3310 moveNumericVectorcxx . . $ moveNumericVector(b6d56f2f7b451283). (y, x);
3311 } else {
3312 /*@praat
3313 #
3314 # result# = unowned x# * unowned y#
3315 #
3316 x# = { 14, -33, 6.25 }
3317 y# = { -33, 17, 9 }
3318 result# = x# * y#
3319 assert result# = { -462, -561, 56.25 }
3320 @*/
3321 // x does not have to be cleaned up, because it was not owned
3322 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(b5ebf627ac2fae1e). multiply_VECcxx . . $ multiply_VEC(d5d92300b35dc604). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.). releaseToAmbiguousOwnercxx . . $ autovector#releaseToAmbiguousOwner(b4260375df4b1a56).();
3323 x->ownedcxx . . $ structStackel#owned. = true;
3324 }
3325 //x->which = Stackel_NUMERIC_VECTOR; // superfluous
3326 return;
3327 }
3328 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
3329 /*
3330 result## = x# * y##
3331 i.e.
3332 result## [i, j] = x# [i] * y## [i, j]
3333 */
3334 const integercxx . . $ integer# xsize = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
3335 const integercxx . . $ integer# ynrow = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.;
3336 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (ynrow == xsize,
3337 U"When multiplying a vector with a matrix, the matrix’s number of rows should be equal to the vector’s size, "
3338 "instead of ", ynrow, U" and ", xsize, U"."
3339 );
3340 if (x->ownedcxx . . $ structStackel#owned.) {
3341 /*@praat
3342 assert { 1, 2, 3 } * { { 1, 2 }, { 3, 4 }, { 5, 6 } } = { { 1, 2 }, { 6, 8 }, { 15, 18 } }
3343 @*/
3344 autoMATcxx . . $ autoMAT# newMatrix = multiply_MATcxx . . $ multiply_MAT(f284c9185690a20e). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
3345 x->resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
3346 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). newMatrix. releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
3347 } else {
3348 /*@praat
3349 a# = { 1, 2, 3 }
3350 assert a# * { { 1, 2 }, { 3, 4 }, { 5, 6 } } = { { 1, 2 }, { 6, 8 }, { 15, 18 } }
3351 @*/
3352 // x does not have to be cleaned up, because it was not owned
3353 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). multiply_MATcxx . . $ multiply_MAT(f284c9185690a20e). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
3354 x->ownedcxx . . $ structStackel#owned. = true;
3355 }
3356 x->whichcxx . . $ structStackel#which. = Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!;
3357 return;
3358 }
3359 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3360 /*
3361 result# = x# * y
3362 i.e.
3363 result# [i] = x# [i] * y
3364 */
3365 if (x->ownedcxx . . $ structStackel#owned.) {
3366 xcxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. *=cxx . . $ `operator*=`(c555d170d72ff256). y->numbercxx . . $ structStackel#$anonymous_type_0#number.;
3367 } else {
3368 // x does not have to be cleaned up, because it was not owned
3369 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(b5ebf627ac2fae1e). multiply_VECcxx . . $ multiply_VEC(61ade8de38ecf2c1). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., y->numbercxx . . $ structStackel#$anonymous_type_0#number.). releaseToAmbiguousOwnercxx . . $ autovector#releaseToAmbiguousOwner(b4260375df4b1a56).();
3370 x->ownedcxx . . $ structStackel#owned. = true;
3371 }
3372 //x->which = Stackel_NUMERIC_VECTOR; // superfluous
3373 return;
3374 }
3375 }
3376 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
3377 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
3378 /*
3379 result## = x## * y##
3380 i.e.
3381 result## [i, j] = x## [i, j] * y## [i, j]
3382 */
3383 const integercxx . . $ integer# xnrow = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow., xncol = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.;
3384 const integercxx . . $ integer# ynrow = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow., yncol = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.;
3385 if (xnrow != ynrow)
3386 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"When multiplying matrices, their numbers of rows should be equal, instead of ", xnrow, U" and ", ynrow, U".");
3387 if (xncol != yncol)
3388 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"When multiplying matrices, their numbers of columns should be equal, instead of ", xncol, U" and ", yncol, U".");
3389 if (x->ownedcxx . . $ structStackel#owned.) {
3390 xcxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. *=cxx . . $ `operator*=`(a7d93ba40fe22fe0). ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
3391 } else if (y->ownedcxx . . $ structStackel#owned.) {
3392 ycxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. *=cxx . . $ `operator*=`(a7d93ba40fe22fe0). xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
3393 // x does not have to be cleaned up, because it was not owned
3394 moveNumericMatrixcxx . . $ moveNumericMatrix(b6d56f2f7b451283). (y, x);
3395 } else {
3396 // x does not have to be cleaned up, because it was not owned
3397 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). multiply_MATcxx . . $ multiply_MAT(341c1d932d99e4e3). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
3398 x->ownedcxx . . $ structStackel#owned. = true;
3399 }
3400 //x->which = Stackel_NUMERIC_MATRIX;
3401 return;
3402 }
3403 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3404 /*
3405 result## = x## * y#
3406 i.e.
3407 result## [i, j] = x## [i, j] * y# [j]
3408 */
3409 const integercxx . . $ integer# xncol = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.;
3410 const integercxx . . $ integer# ysize = y->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
3411 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (xncol == ysize,
3412 U"When multiplying a matrix with a vector, the vector’s size should be equal to the matrix’s number of columns, "
3413 "instead of ", ysize, U" and ", xncol, U"."
3414 );
3415 if (x->ownedcxx . . $ structStackel#owned.) {
3416 xcxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. *=cxx . . $ `operator*=`(88779db6ac139909). ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
3417 } else {
3418 // x does not have to be cleaned up, because it was not owned
3419 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). multiply_MATcxx . . $ multiply_MAT(58a61c4ec227c4d). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
3420 x->ownedcxx . . $ structStackel#owned. = true;
3421 }
3422 //x->which = Stackel_NUMERIC_MATRIX;
3423 return;
3424 }
3425 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3426 /*
3427 result## = x## * y
3428 i.e.
3429 result## [i, j] = x## [i, j] * y
3430 */
3431 if (x->ownedcxx . . $ structStackel#owned.) {
3432 xcxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. *=cxx . . $ `operator*=`(50b469ae42a42f64). y->numbercxx . . $ structStackel#$anonymous_type_0#number.;
3433 } else {
3434 // x does not have to be cleaned up, because it was not owned
3435 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). multiply_MATcxx . . $ multiply_MAT(d05068067bdbbf5a). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., y->numbercxx . . $ structStackel#$anonymous_type_0#number.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
3436 x->ownedcxx . . $ structStackel#owned. = true;
3437 }
3438 //x->which = Stackel_NUMERIC_MATRIX; // superfluous
3439 return;
3440 }
3441 }
3442 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot multiply (*) ", x->whichText(), U" by ", y->whichText(), U".");
3443 }
3444 static void do_rdivcxx . . $ do_rdiv(49f6e7a06ebc5aa8). () {
3445 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3446 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3447 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (x->numbercxx . . $ structStackel#$anonymous_type_0#number. / y->numbercxx . . $ structStackel#$anonymous_type_0#number.); // result could be inf (1/0) or NaN (0/0), which is OK
3448 return;
3449 }
3450 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3451 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3452 const integercxx . . $ integer# nelem1 = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size., nelem2 = y->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
3453 if (nelem1 != nelem2)
3454 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"When dividing vectors, their numbers of elements should be equal, instead of ", nelem1, U" and ", nelem2, U".");
3455 autoVECcxx . . $ autoVEC# result = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (nelem1);
3456 for (integercxx . . $ integer# ielem = 1; ielem <= nelem1; ielem ++)
3457 result [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).ielem] = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).ielem] / y->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).ielem];
3458 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
3459 return;
3460 }
3461 if (y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3462 /*
3463 result# = x# / y
3464 */
3465 const integercxx . . $ integer# xn = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
3466 autoVECcxx . . $ autoVEC# result = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (xn);
3467 const double yvalue = y->numbercxx . . $ structStackel#$anonymous_type_0#number.;
3468 if (yvalue == 0.0) {
3469 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot divide (/) ", x->whichText(), U" by zero.");
3470 } else {
3471 for (integercxx . . $ integer# i = 1; i <= xn; i ++) {
3472 const double xvalue = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i];
3473 result [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).i] = xvalue / yvalue;
3474 }
3475 }
3476 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
3477 return;
3478 }
3479 }
3480 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot divide (/) ", x->whichText(), U" by ", y->whichText(), U".");
3481 }
3482 static void do_idivcxx . . $ do_idiv(49f6e7a06ebc5aa8). () {
3483 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3484 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3485 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (floorcxx . . $ floor(fee4f1d22bc8e617). (x->numbercxx . . $ structStackel#$anonymous_type_0#number. / y->numbercxx . . $ structStackel#$anonymous_type_0#number.));
3486 return;
3487 }
3488 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot divide (“div”) ", x->whichText(), U" by ", y->whichText(), U".");
3489 }
3490 static void do_modcxx . . $ do_mod(49f6e7a06ebc5aa8). () {
3491 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3492 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3493 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (x->numbercxx . . $ structStackel#$anonymous_type_0#number. - floorcxx . . $ floor(fee4f1d22bc8e617). (x->numbercxx . . $ structStackel#$anonymous_type_0#number. / y->numbercxx . . $ structStackel#$anonymous_type_0#number.) * y->numbercxx . . $ structStackel#$anonymous_type_0#number.);
3494 return;
3495 }
3496 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot divide (“mod”) ", x->whichText(), U" by ", y->whichText(), U".");
3497 }
3498 static void do_minuscxx . . $ do_minus(49f6e7a06ebc5aa8). () {
3499 const Stackelcxx . . $ Stackel# x = topOfStackcxx . . $ `sys/Formula.cpp:2388:9`!;
3500 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3501 x->numbercxx . . $ structStackel#$anonymous_type_0#number. = - x->numbercxx . . $ structStackel#$anonymous_type_0#number.;
3502 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3503 if (x->ownedcxx . . $ structStackel#owned.) {
3504 neg_VEC_inoutcxx . . $ neg_VEC_inout(41aeeb373bdabfed). (xcxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.);
3505 } else {
3506 autoVECcxx . . $ autoVEC# result = neg_VECcxx . . $ neg_VEC(d4415e68b25283a8). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.);
3507 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(b5ebf627ac2fae1e). result. releaseToAmbiguousOwnercxx . . $ autovector#releaseToAmbiguousOwner(b4260375df4b1a56).();
3508 x->ownedcxx . . $ structStackel#owned. = true;
3509 }
3510 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
3511 if (x->ownedcxx . . $ structStackel#owned.) {
3512 neg_MAT_inoutcxx . . $ neg_MAT_inout(5dd9f6ea610bc98c). (xcxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
3513 } else {
3514 autoMATcxx . . $ autoMAT# result = neg_MATcxx . . $ neg_MAT(a392b09ce3fc3972). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
3515 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). result. releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
3516 x->ownedcxx . . $ structStackel#owned. = true;
3517 }
3518 } else {
3519 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot take the opposite (-) of ", x->whichText(), U".");
3520 }
3521 }
3522 static void do_powercxx . . $ do_power(49f6e7a06ebc5aa8). () {
3523 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3524 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3525 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (isundefcxx . . $ isundef(f8197d536af80c96). (x->numbercxx . . $ structStackel#$anonymous_type_0#number.) || isundefcxx . . $ isundef(f8197d536af80c96). (y->numbercxx . . $ structStackel#$anonymous_type_0#number.) ? undefinedcxx . . $ undefined. : powcxx . . $ pow(b71928d39fde4295). (x->numbercxx . . $ structStackel#$anonymous_type_0#number., y->numbercxx . . $ structStackel#$anonymous_type_0#number.));
3526 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3527 /*@praat
3528 assert { 3, 4 } ^ 3 = { 27, 64 }
3529 assert { 3, -4 } ^ 3 = { 27, -64 }
3530 assert { -4 } ^ 2.3 = { undefined }
3531 @*/
3532 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (power_VECcxx . . $ power_VEC(61ade8de38ecf2c1). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., y->numbercxx . . $ structStackel#$anonymous_type_0#number.));
3533 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3534 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (power_MATcxx . . $ power_MAT(d05068067bdbbf5a). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., y->numbercxx . . $ structStackel#$anonymous_type_0#number.));
3535 } else {
3536 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot exponentiate (^) ", x->whichText(), U" to ", y->whichText(), U".");
3537 }
3538 }
3539 static void do_sqrcxx . . $ do_sqr(49f6e7a06ebc5aa8). () {
3540 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3541 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3542 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (isundefcxx . . $ isundef(f8197d536af80c96). (x->numbercxx . . $ structStackel#$anonymous_type_0#number.) ? undefinedcxx . . $ undefined. : x->numbercxx . . $ structStackel#$anonymous_type_0#number. * x->numbercxx . . $ structStackel#$anonymous_type_0#number.);
3543 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3544 /*@praat
3545 a# = zero# (10)
3546 a# ~ sum ({ 3, 4 } ^ 2)
3547 assert sum (a#) = 250
3548 a# ~ sum ({ col } ^ 2)
3549 assert sum (a#) = 385
3550 @*/
3551 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (power_VECcxx . . $ power_VEC(61ade8de38ecf2c1). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., 2.0));
3552 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
3553 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (power_MATcxx . . $ power_MAT(d05068067bdbbf5a). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., 2.0));
3554 } else {
3555 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot take the square (^ 2) of ", x->whichText(), U".");
3556 }
3557 }
3558 static void do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (double (*f) (double)) {
3559 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3560 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3561 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (isundefcxx . . $ isundef(f8197d536af80c96). (x->numbercxx . . $ structStackel#$anonymous_type_0#number.) ? undefinedcxx . . $ undefined. : f (x->numbercxx . . $ structStackel#$anonymous_type_0#number.));
3562 } else {
3563 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
3564 U" requires a numeric argument, not ", x->whichText(), U".");
3565 }
3566 }
3567 static void do_functionvec_n_ncxx . . $ do_functionvec_n_n(40db9e5e35a950bf). (double (*f) (double)) {
3568 const Stackelcxx . . $ Stackel# x = topOfStackcxx . . $ `sys/Formula.cpp:2388:9`!;
3569 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3570 const integercxx . . $ integer# n = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
3571 const VECcxx . . $ VEC# at = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
3572 if (x->ownedcxx . . $ structStackel#owned.) {
3573 for (integercxx . . $ integer# i = 1; i <= n; i ++)
3574 at [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i] = f (at [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i]);
3575 } else {
3576 autoVECcxx . . $ autoVEC# result = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (n);
3577 for (integercxx . . $ integer# i = 1; i <= n; i ++)
3578 result [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).i] = f (at [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i]);
3579 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(b5ebf627ac2fae1e). result. releaseToAmbiguousOwnercxx . . $ autovector#releaseToAmbiguousOwner(b4260375df4b1a56).();
3580 x->ownedcxx . . $ structStackel#owned. = true;
3581 }
3582 } else {
3583 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
3584 U" requires a numeric vector argument, not ", x->whichText(), U".");
3585 }
3586 }
3587 static void do_softmax_VECcxx . . $ do_softmax_VEC(49f6e7a06ebc5aa8). () {
3588 const Stackelcxx . . $ Stackel# x = topOfStackcxx . . $ `sys/Formula.cpp:2388:9`!;
3589 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3590 if (! x->ownedcxx . . $ structStackel#owned.) {
3591 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. =cxx . . $ vector#`operator=`(b5ebf627ac2fae1e). copy_VECcxx . . $ copy_VEC(d4415e68b25283a8). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.). releaseToAmbiguousOwnercxx . . $ autovector#releaseToAmbiguousOwner(b4260375df4b1a56).(); // TODO: no need to copy
3592 x->ownedcxx . . $ structStackel#owned. = true;
3593 }
3594 const integercxx . . $ integer# numberOfElements = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
3595 double maximum = -1e308;
3596 for (integercxx . . $ integer# i = 1; i <= numberOfElements; i ++) {
3597 if (x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i] > maximum)
3598 maximum = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i];
3599 }
3600 for (integercxx . . $ integer# i = 1; i <= numberOfElements; i ++)
3601 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i] -= maximum;
3602 longdoublecxx . . $ longdouble# sum = 0.0;
3603 for (integercxx . . $ integer# i = 1; i <= numberOfElements; i ++) {
3604 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i] = expcxx . . $ exp(fee4f1d22bc8e617). (x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i]);
3605 sum += x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i];
3606 }
3607 for (integercxx . . $ integer# i = 1; i <= numberOfElements; i ++)
3608 x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i] /= (double) sum;
3609 } else {
3610 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
3611 U" requires a numeric vector argument, not ", x->whichText(), U".");
3612 }
3613 }
3614 static void do_softmaxPerRow_MATcxx . . $ do_softmaxPerRow_MAT(49f6e7a06ebc5aa8). () {
3615 const Stackelcxx . . $ Stackel# x = topOfStackcxx . . $ `sys/Formula.cpp:2388:9`!;
3616 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
3617 if (! x->ownedcxx . . $ structStackel#owned.) {
3618 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). copy_MATcxx . . $ copy_MAT(a392b09ce3fc3972). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).(); // TODO: no need to copy
3619 x->ownedcxx . . $ structStackel#owned. = true;
3620 }
3621 const integercxx . . $ integer# nrow = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow., ncol = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.;
3622 for (integercxx . . $ integer# irow = 1; irow <= nrow; irow ++) {
3623 double maximum = -1e308;
3624 for (integercxx . . $ integer# icol = 1; icol <= ncol; icol ++) {
3625 if (x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. [cxx . . $ matrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol] > maximum)
3626 maximum = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. [cxx . . $ matrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol];
3627 }
3628 for (integercxx . . $ integer# icol = 1; icol <= ncol; icol ++)
3629 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. [cxx . . $ matrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol] -= maximum;
3630 longdoublecxx . . $ longdouble# sum = 0.0;
3631 for (integercxx . . $ integer# icol = 1; icol <= ncol; icol ++) {
3632 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. [cxx . . $ matrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol] = expcxx . . $ exp(fee4f1d22bc8e617). (x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. [cxx . . $ matrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol]);
3633 sum += x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. [cxx . . $ matrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol];
3634 }
3635 for (integercxx . . $ integer# icol = 1; icol <= ncol; icol ++)
3636 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. [cxx . . $ matrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol] /= (double) sum;
3637 }
3638 } else {
3639 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
3640 U" requires a numeric matrix argument, not ", x->whichText(), U".");
3641 }
3642 }
3643
3644 #define DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`!(function, formula, message) \
3645 static void do_##function () { \
3646 const Stackel x = popcxx . . $ `sys/Formula.cpp:2387:9`!; \
3647 if (x->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) { \
3648 const double xvalue = x->number; \
3649 pushNumber (formula); \
3650 } else if (x->which == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) { \
3651 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function " #function " requires a numeric argument, " \
3652 "not a vector. Did you mean to use " #function "# instead?"); \
3653 } else if (x->which == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) { \
3654 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function " #function " requires a numeric argument, " \
3655 "not a matrix. Did you mean to use " #function "## instead?"); \
3656 } else { \
3657 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (message, x->whichText(), \
3658 U". The function " #function " requires a numeric argument."); \
3659 } \
3660 } \
3661 static void do_##function##_VEC () { \
3662 const Stackel x = topOfStackcxx . . $ `sys/Formula.cpp:2388:9`!; \
3663 if (x->which == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) { \
3664 if (x->owned) { \
3665 const integer numberOfElements = x->numericVector.size; \
3666 for (integer i = 1; i <= numberOfElements; i ++) { \
3667 const double xvalue = x->numericVector [i]; \
3668 x->numericVector [i] = isundef (xvalue) ? undefined : formula; \
3669 } \
3670 } else { \
3671 (void) popcxx . . $ `sys/Formula.cpp:2387:9`!; \
3672 const integer numberOfElements = x->numericVector.size; \
3673 autoVEC result = raw_VEC (numberOfElements); \
3674 for (integer i = 1; i <= numberOfElements; i ++) { \
3675 const double xvalue = x->numericVector [i]; \
3676 result [i] = isundef (xvalue) ? undefined : formula; \
3677 } \
3678 pushNumericVector (result.move()); \
3679 } \
3680 } else { \
3681 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function " #function "# requires a vector argument, not ", \
3682 x->whichText(), U"."); \
3683 } \
3684 } \
3685 static void do_##function##_MAT () { \
3686 const Stackel x = topOfStackcxx . . $ `sys/Formula.cpp:2388:9`!; \
3687 if (x->which == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) { \
3688 if (x->owned) { \
3689 const integer nrow = x->numericMatrix.nrow, ncol = x->numericMatrix.ncol; \
3690 for (integer irow = 1; irow <= nrow; irow ++) { \
3691 for (integer icol = 1; icol <= ncol; icol ++) { \
3692 const double xvalue = x->numericMatrix [irow] [icol]; \
3693 x->numericMatrix [irow] [icol] = isundef (xvalue) ? undefined : formula; \
3694 } \
3695 } \
3696 } else { \
3697 (void) popcxx . . $ `sys/Formula.cpp:2387:9`!; \
3698 const integer nrow = x->numericMatrix.nrow, ncol = x->numericMatrix.ncol; \
3699 autoMAT result = raw_MAT (nrow, ncol); \
3700 for (integer irow = 1; irow <= nrow; irow ++) { \
3701 for (integer icol = 1; icol <= ncol; icol ++) { \
3702 const double xvalue = x->numericMatrix [irow] [icol]; \
3703 result [irow] [icol] = isundef (xvalue) ? undefined : formula; \
3704 } \
3705 } \
3706 pushNumericMatrix (result.move()); \
3707 } \
3708 } else { \
3709 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function " #function "## requires a matrix argument, not ", \
3710 x->whichText(), U"."); \
3711 } \
3712 }
3713 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (abs, fabs (xvalue), U"Cannot take the absolute value (abs) of ")
3714 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (round, floor (xvalue + 0.5), U"Cannot round ")
3715 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (floor, Melder_roundDown (xvalue), U"Cannot round down (floor) ")
3716 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (ceiling, Melder_roundUp (xvalue), U"Cannot round up (ceiling) ")
3717 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (rectify, xvalue < 0.0 ? 0.0 : xvalue, U"Cannot rectify ") // NaN-safe
3718 /*@praat
3719 assert rectify (-1.0) = 0.0
3720 assert rectify (0.0) = 0.0
3721 assert rectify (1.0) = 1.0
3722 assert rectify (undefined) = undefined
3723 assert rectify# ({ 1.2, -2.3, 4.5, 0, undefined, -44 }) = { 1.2, 0, 4.5, 0, undefined, 0 }
3724 @*/
3725 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (sqrt, sqrt (xvalue), U"Cannot take the square root (sqrt) of ")
3726 /*@praat
3727 assert sqrt (-1.0) = undefined
3728 assert sqrt (0.0) = 0.0
3729 assert sqrt (1.0) = 1.0
3730 assert sqrt (4.0) = 2.0
3731 assert sqrt (undefined) = undefined
3732 assert sqrt# ({ -1.0, 0.0, 1.0, 4.0, undefined }) = { undefined, 0.0, 1.0, 2.0, undefined }
3733 @*/
3734 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (sin, sin (xvalue), U"Cannot take the sine (sin) of ")
3735 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (cos, cos (xvalue), U"Cannot take the cosine (cos) of ")
3736 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (tan, tan (xvalue), U"Cannot take the tangent (tan) of ")
3737 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (arcsin, asin (xvalue), U"Cannot take the arcsine (arcsin) of ")
3738 /*@praat
3739 assert arcsin (-1.1) = undefined
3740 assert abs (arcsin (-1.0) - -pi/2) < 1e-17
3741 assert arcsin (0.0) = 0
3742 assert abs (arcsin (1.0) - pi/2) < 1e-17
3743 assert arcsin (1.1) = undefined
3744 assert arcsin (undefined) = undefined
3745 @*/
3746 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (arccos, acos (xvalue), U"Cannot take the arccosine (arccos) of ")
3747 /*@praat
3748 assert arccos (-1.1) = undefined
3749 assert abs (arccos (-1.0) - pi) < 1e-17
3750 assert abs (arccos (0.0) - pi/2) < 1e-17
3751 assert arccos (1.0) = 0
3752 assert arccos (1.1) = undefined
3753 assert arccos (undefined) = undefined
3754 @*/
3755 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (arctan, atan (xvalue), U"Cannot take the arctangent (arctan) of ")
3756 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (exp, exp (xvalue), U"Cannot exponentiate (exp) ")
3757 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (sinh, sinh (xvalue), U"Cannot take the hyperbolic sine (sinh) of ")
3758 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (cosh, cosh (xvalue), U"Cannot take the hyperbolic cosine (cosh) of ")
3759 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (tanh, tanh (xvalue), U"Cannot take the hyperbolic tangent (tanh) of ")
3760 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (arcsinh, asinh (xvalue), U"Cannot take the hyperbolic arcsine (arcsinh) of ")
3761 /*@praat
3762 assert arcsinh (-1.0) < 0
3763 assert arcsinh (0.0) = 0
3764 assert arcsinh (1.0) > 0
3765 assert arcsinh (undefined) = undefined
3766 @*/
3767 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (arccosh, acosh (xvalue), U"Cannot take the hyperbolic arccosine (arccosh) of ")
3768 /*@praat
3769 assert arccosh (1.0) = 0
3770 assert arccosh (0.9) = undefined
3771 assert arccosh (0.0) = undefined
3772 assert arccosh (-10.0) = undefined
3773 assert arccosh (undefined) = undefined
3774 @*/
3775 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (arctanh, atanh (xvalue), U"Cannot take the hyperbolic arctangent (arctanh) of ")
3776 /*@praat
3777 assert arctanh (-1.0) = undefined
3778 assert arctanh (0.0) = 0
3779 assert arctanh (1.0) = undefined
3780 assert arctanh (undefined) = undefined
3781 @*/
3782 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (log2, log (xvalue) * NUMlog2e, U"Cannot take the base-2 logarithm (log2) of ")
3783 /*@praat
3784 assert log2 (-1.0) = undefined
3785 assert log2 (0.0) = undefined
3786 assert log2 (1.0) = 0.0
3787 assert log2 (2.0) = 1.0
3788 assert log2 (10.0) > 3.0
3789 assert log2 (undefined) = undefined
3790 @*/
3791 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (ln, log (xvalue), U"Cannot take the natural logarithm (ln) of ")
3792 /*@praat
3793 assert ln (-1.0) = undefined
3794 assert ln (0.0) = undefined
3795 assert ln (1.0) = 0.0
3796 assert abs (ln (2.0) - 0.693) < 0.001
3797 assert ln (3.0) > 1.0
3798 assert ln (undefined) = undefined
3799 @*/
3800 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (log10, log10 (xvalue), U"Cannot take the base-10 logarithm (log10) of ")
3801 /*@praat
3802 assert log10 (-1.0) = undefined
3803 assert log10 (0.0) = undefined
3804 assert log10 (1.0) = 0.0
3805 assert abs (log10 (2.0) - 0.301) < 0.001
3806 assert log10 (10.0) = 1.0
3807 assert log10 (11.0) > 1.0
3808 assert log10 (undefined) = undefined
3809 @*/
3810 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (sigmoid, NUMsigmoid (xvalue), U"Cannot take the sigmoid of ")
3811 /*@praat
3812 assert sigmoid (0.0) = 0.5
3813 assert sigmoid (-1000) = 0
3814 assert arctanh (1000) = undefined
3815 @*/
3816 DO_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:3644:9`! (invSigmoid, NUMinvSigmoid (xvalue), U"Cannot take the inverse sigmoid of ")
3817 /*@praat
3818 assert invSigmoid (0.5) = 0.0
3819 assert invSigmoid (-1.0) = undefined ; not a number
3820 assert invSigmoid (0.0) = undefined ; minus infinity
3821 assert invSigmoid (1.0) = undefined ; plus infinity
3822 assert invSigmoid (2.0) = undefined ; not a number
3823 @*/
3824
3825 static void do_sumcxx . . $ do_sum(49f6e7a06ebc5aa8). () {
3826 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3827 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3828 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMsumcxx . . $ NUMsum(4bb9c3e3a8dd5442). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.));
3829 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
3830 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMsumcxx . . $ NUMsum(98ed2a492958fa8a). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.));
3831 } else {
3832 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the sum of ", x->whichText(), U".");
3833 }
3834 }
3835 static void do_meancxx . . $ do_mean(49f6e7a06ebc5aa8). () {
3836 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3837 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3838 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMmeancxx . . $ NUMmean(4bb9c3e3a8dd5442). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.));
3839 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
3840 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMmeancxx . . $ NUMmean(98ed2a492958fa8a). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.));
3841 } else {
3842 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the mean of ", x->whichText(), U".");
3843 }
3844 }
3845 static void do_stdevcxx . . $ do_stdev(49f6e7a06ebc5aa8). () {
3846 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3847 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3848 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMstdevcxx . . $ NUMstdev(4bb9c3e3a8dd5442). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.));
3849 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
3850 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMstdevcxx . . $ NUMstdev(98ed2a492958fa8a). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.));
3851 } else {
3852 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the standard deviation of ", x->whichText(), U".");
3853 }
3854 }
3855 static void do_centercxx . . $ do_center(49f6e7a06ebc5aa8). () {
3856 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3857 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3858 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMcenterOfGravitycxx . . $ NUMcenterOfGravity(4bb9c3e3a8dd5442). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.));
3859 } else {
3860 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the center of ", x->whichText(), U".");
3861 }
3862 }
3863 static void do_randomImaxcxx . . $ do_randomImax(49f6e7a06ebc5aa8). () {
3864 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3865 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
3866 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMrandomImaxcxx . . $ NUMrandomImax(fa513f1eb826a064). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.));
3867 } else {
3868 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute a random imax of ", x->whichText(), U".");
3869 }
3870 }
3871 static void do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (double (*f) (double, double)) {
3872 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3873 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3874 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (isundefcxx . . $ isundef(f8197d536af80c96). (x->numbercxx . . $ structStackel#$anonymous_type_0#number.) || isundefcxx . . $ isundef(f8197d536af80c96). (y->numbercxx . . $ structStackel#$anonymous_type_0#number.) ? undefinedcxx . . $ undefined. : f (x->numbercxx . . $ structStackel#$anonymous_type_0#number., y->numbercxx . . $ structStackel#$anonymous_type_0#number.));
3875 } else {
3876 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
3877 U" requires two numeric arguments, not ",
3878 x->whichText(), U" and ", y->whichText(), U".");
3879 }
3880 }
3881 static void do_function_VECdd_dcxx . . $ do_function_VECdd_d(bade7320795910d8). (double (*f) (double, double)) {
3882 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3883 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
3884 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 3,
3885 U"The function ", Formula_instructionNames [parse [programPointer]. symbol], U" requires three arguments.");
3886 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!, a = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3887 if ((a->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! || a->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) && x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3888 const integercxx . . $ integer# numberOfElements = ( a->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! ? Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (a->numbercxx . . $ structStackel#$anonymous_type_0#number.) : a->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size. );
3889 autoVECcxx . . $ autoVEC# newData = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (numberOfElements);
3890 for (integercxx . . $ integer# ielem = 1; ielem <= numberOfElements; ielem ++)
3891 newData [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).ielem] = f (x->numbercxx . . $ structStackel#$anonymous_type_0#number., y->numbercxx . . $ structStackel#$anonymous_type_0#number.);
3892 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (newDatacxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
3893 } else {
3894 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
3895 U" requires either three numeric arguments, or one vector argument and two numeric arguments, not ",
3896 a->whichText(), U", ", x->whichText(), U" and ", y->whichText(), U".");
3897 }
3898 }
3899 static void do_function_MATdd_dcxx . . $ do_function_MATdd_d(bade7320795910d8). (double (*f) (double, double)) {
3900 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3901 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
3902 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 3) {
3903 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!, model = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3904 if (model->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3905 const integercxx . . $ integer# numberOfRows = model->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.;
3906 const integercxx . . $ integer# numberOfColumns = model->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.;
3907 autoMATcxx . . $ autoMAT# newData = raw_MATcxx . . $ raw_MAT(3d09731056d2b97d). (numberOfRows, numberOfColumns);
3908 for (integercxx . . $ integer# irow = 1; irow <= numberOfRows; irow ++)
3909 for (integercxx . . $ integer# icol = 1; icol <= numberOfColumns; icol ++)
3910 newData [cxx . . $ automatrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol] = f (x->numbercxx . . $ structStackel#$anonymous_type_0#number., y->numbercxx . . $ structStackel#$anonymous_type_0#number.);
3911 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (newDatacxx . . $ automatrix#automatrix(a69681c49ef9c9eb)..movecxx . . $ automatrix#move(8771494f681de611).());
3912 } else {
3913 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
3914 U" requires one matrix argument and two numeric arguments, not ",
3915 model->whichText(), U", ", x->whichText(), U" and ", y->whichText(), U".");
3916 }
3917 } else if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 4) {
3918 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!, ncol = popcxx . . $ `sys/Formula.cpp:2387:9`!, nrow = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3919 if (nrow->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && ncol->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3920 const integercxx . . $ integer# numberOfRows = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (nrow->numbercxx . . $ structStackel#$anonymous_type_0#number.);
3921 const integercxx . . $ integer# numberOfColumns = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (ncol->numbercxx . . $ structStackel#$anonymous_type_0#number.);
3922 autoMATcxx . . $ autoMAT# newData = raw_MATcxx . . $ raw_MAT(3d09731056d2b97d). (numberOfRows, numberOfColumns);
3923 for (integercxx . . $ integer# irow = 1; irow <= numberOfRows; irow ++)
3924 for (integercxx . . $ integer# icol = 1; icol <= numberOfColumns; icol ++)
3925 newData [cxx . . $ automatrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol] = f (x->numbercxx . . $ structStackel#$anonymous_type_0#number., y->numbercxx . . $ structStackel#$anonymous_type_0#number.);
3926 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (newDatacxx . . $ automatrix#automatrix(a69681c49ef9c9eb)..movecxx . . $ automatrix#move(8771494f681de611).());
3927 } else {
3928 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
3929 U" requires four numeric arguments, not ",
3930 nrow->whichText(), U", ", ncol->whichText(), U", ", x->whichText(), U" and ", y->whichText(), U".");
3931 }
3932 } else
3933 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol], U" requires three or four arguments.");
3934 }
3935
3936 static void do_function_VECll_lcxx . . $ do_function_VECll_l(4a9476eac209e08c). (integercxx . . $ integer# (*f) (integercxx . . $ integer#, integercxx . . $ integer#)) {
3937 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3938 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
3939 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg-> number == 3,
3940 U"The function ", Formula_instructionNames [parse [programPointer]. symbol], U" requires three arguments.");
3941 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!, a = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3942 if ((a->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! || a->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) && x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3943 const integercxx . . $ integer# numberOfElements = ( a->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! ? Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (a->numbercxx . . $ structStackel#$anonymous_type_0#number.) : a->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size. );
3944 autoVECcxx . . $ autoVEC# newData = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (numberOfElements);
3945 for (integercxx . . $ integer# ielem = 1; ielem <= numberOfElements; ielem ++)
3946 newData [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).ielem] = f (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (x->numbercxx . . $ structStackel#$anonymous_type_0#number.), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (y->numbercxx . . $ structStackel#$anonymous_type_0#number.));
3947 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (newDatacxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
3948 } else {
3949 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
3950 U" requires either three numeric arguments, or one vector argument and two numeric arguments, not ",
3951 a->whichText(), U", ", x->whichText(), U" and ", y->whichText(), U".");
3952 }
3953 }
3954 static void do_function_MATll_lcxx . . $ do_function_MATll_l(4a9476eac209e08c). (integercxx . . $ integer# (*f) (integercxx . . $ integer#, integercxx . . $ integer#)) {
3955 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3956 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
3957 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 3,
3958 U"The function ", Formula_instructionNames [parse [programPointer]. symbol], U" requires three arguments.");
3959 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!, a = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3960 if (a->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3961 const integercxx . . $ integer# numberOfRows = a->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.;
3962 const integercxx . . $ integer# numberOfColumns = a->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.;
3963 autoMATcxx . . $ autoMAT# newData = raw_MATcxx . . $ raw_MAT(3d09731056d2b97d). (numberOfRows, numberOfColumns);
3964 for (integercxx . . $ integer# irow = 1; irow <= numberOfRows; irow ++)
3965 for (integercxx . . $ integer# icol = 1; icol <= numberOfColumns; icol ++)
3966 newData [cxx . . $ automatrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol] = f (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (x->numbercxx . . $ structStackel#$anonymous_type_0#number.), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (y->numbercxx . . $ structStackel#$anonymous_type_0#number.));
3967 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (newDatacxx . . $ automatrix#automatrix(a69681c49ef9c9eb)..movecxx . . $ automatrix#move(8771494f681de611).());
3968 } else {
3969 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
3970 U" requires one matrix argument and two numeric arguments, not ",
3971 a->whichText(), U", ", x->whichText(), U" and ", y->whichText(), U".");
3972 }
3973 }
3974 static void do_function_dl_dcxx . . $ do_function_dl_d(e8868729b2108f7f). (double (*f) (double, integercxx . . $ integer#)) {
3975 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3976 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3977 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (isundefcxx . . $ isundef(f8197d536af80c96). (x->numbercxx . . $ structStackel#$anonymous_type_0#number.) || isundefcxx . . $ isundef(f8197d536af80c96). (y->numbercxx . . $ structStackel#$anonymous_type_0#number.) ? undefinedcxx . . $ undefined. :
3978 f (x->numbercxx . . $ structStackel#$anonymous_type_0#number., Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (y->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
3979 } else {
3980 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
3981 U" requires two numeric arguments, not ",
3982 x->whichText(), U" and ", y->whichText(), U".");
3983 }
3984 }
3985 static void do_function_ld_dcxx . . $ do_function_ld_d(b7174d60ae04a31). (double (*f) (integercxx . . $ integer#, double)) {
3986 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3987 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3988 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (isundefcxx . . $ isundef(f8197d536af80c96). (x->numbercxx . . $ structStackel#$anonymous_type_0#number.) || isundefcxx . . $ isundef(f8197d536af80c96). (y->numbercxx . . $ structStackel#$anonymous_type_0#number.) ? undefinedcxx . . $ undefined. :
3989 f (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (x->numbercxx . . $ structStackel#$anonymous_type_0#number.), y->numbercxx . . $ structStackel#$anonymous_type_0#number.));
3990 } else {
3991 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
3992 U" requires two numeric arguments, not ",
3993 x->whichText(), U" and ", y->whichText(), U".");
3994 }
3995 }
3996 static void do_function_ll_lcxx . . $ do_function_ll_l(4a9476eac209e08c). (integercxx . . $ integer# (*f) (integercxx . . $ integer#, integercxx . . $ integer#)) {
3997 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
3998 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
3999 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (isundefcxx . . $ isundef(f8197d536af80c96). (x->numbercxx . . $ structStackel#$anonymous_type_0#number.) || isundefcxx . . $ isundef(f8197d536af80c96). (y->numbercxx . . $ structStackel#$anonymous_type_0#number.) ? undefinedcxx . . $ undefined. :
4000 f (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (x->numbercxx . . $ structStackel#$anonymous_type_0#number.), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (y->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
4001 } else {
4002 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
4003 U" requires two numeric arguments, not ",
4004 x->whichText(), U" and ", y->whichText(), U".");
4005 }
4006 }
4007 static void do_objects_are_identicalcxx . . $ do_objects_are_identical(49f6e7a06ebc5aa8). () {
4008 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4009 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4010 const integercxx . . $ integer# id1 = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (x->numbercxx . . $ structStackel#$anonymous_type_0#number.), id2 = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (y->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4011 integercxx . . $ integer# i = theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> ncxx . . $ structPraatObjects#n.;
4012 while (i > 0 && id1 != theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> listcxx . . $ structPraatObjects#list. [i]. idcxx . . $ structPraat_Object#id.)
4013 i --;
4014 if (i == 0)
4015 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Object #", id1, U" does not exist in function objectsAreIdentical.");
4016 const Daatacxx . . $ Daata# object1 = (Daatacxx . . $ Daata#) theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> listcxx . . $ structPraatObjects#list. [i]. objectcxx . . $ structPraat_Object#object.;
4017 i = theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> ncxx . . $ structPraatObjects#n.;
4018 while (i > 0 && id2 != theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> listcxx . . $ structPraatObjects#list. [i]. idcxx . . $ structPraat_Object#id.)
4019 i --;
4020 if (i == 0)
4021 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Object #", id2, U" does not exist in function objectsAreIdentical.");
4022 const Daatacxx . . $ Daata# object2 = (Daatacxx . . $ Daata#) theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> listcxx . . $ structPraatObjects#list. [i]. objectcxx . . $ structPraat_Object#object.;
4023 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (isundefcxx . . $ isundef(f8197d536af80c96). (x->numbercxx . . $ structStackel#$anonymous_type_0#number.) || isundefcxx . . $ isundef(f8197d536af80c96). (y->numbercxx . . $ structStackel#$anonymous_type_0#number.) ? undefinedcxx . . $ undefined. : Data_equalcxx . . $ Data_equal(6df46d860ee4054f). (object1, object2));
4024 } else {
4025 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function objectsAreIdentical requires two numeric arguments (object IDs), not ",
4026 x->whichText(), U" and ", y->whichText(), U".");
4027 }
4028 }
4029 static void do_function_ddd_dcxx . . $ do_function_ddd_d(9f374a7370847bbd). (double (*f) (double, double, double)) {
4030 const Stackelcxx . . $ Stackel# z = popcxx . . $ `sys/Formula.cpp:2387:9`!, y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4031 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && z->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4032 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (isundefcxx . . $ isundef(f8197d536af80c96). (x->numbercxx . . $ structStackel#$anonymous_type_0#number.) || isundefcxx . . $ isundef(f8197d536af80c96). (y->numbercxx . . $ structStackel#$anonymous_type_0#number.) || isundefcxx . . $ isundef(f8197d536af80c96). (z->numbercxx . . $ structStackel#$anonymous_type_0#number.) ? undefinedcxx . . $ undefined. :
4033 f (x->numbercxx . . $ structStackel#$anonymous_type_0#number., y->numbercxx . . $ structStackel#$anonymous_type_0#number., z->numbercxx . . $ structStackel#$anonymous_type_0#number.));
4034 } else {
4035 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
4036 U" requires three numeric arguments, not ", x->whichText(), U", ",
4037 y->whichText(), U", and ", z->whichText(), U".");
4038 }
4039 }
4040 static void do_docxx . . $ do_do(49f6e7a06ebc5aa8). () {
4041 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4042 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4043 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. < 1)
4044 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “do” requires at least one argument, namely a menu command.");
4045 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.) - 1;
4046 #define MAXNUM_FIELDScxx . . $ `sys/Formula.cpp:4046:10`! 40
4047 structStackelcxx . . $ structStackel# stackcxx . . $ structStackel#structStackel(49f6e7a06ebc5aa8). [1+MAXNUM_FIELDScxx . . $ `sys/Formula.cpp:4046:10`!];
4048 for (integercxx . . $ integer# iarg = numberOfArguments; iarg >= 0; iarg --) {
4049 const Stackelcxx . . $ Stackel# arg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4050 stack [iarg] =cxx . . $ structStackel#`operator=`(51a4fe52c0d81ef2). stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26). (*arg);
4051 }
4052 if (stack [0]. whichcxx . . $ structStackel#which. != Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
4053 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The first argument of the function “do” should be a string, namely a menu command, and not ", stack [0]. whichText(), U".");
4054 conststring32cxx . . $ conststring32# command = stack [0]. getStringcxx . . $ structStackel#getString(1912f6684645c851).();
4055 if (theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. == & theForegroundPraatObjectscxx . . $ theForegroundPraatObjects. && theInterpretercxx . . $ theInterpreter. -> hasDynamicEnvironmentEditorcxx . . $ structInterpreter#hasDynamicEnvironmentEditor(77ce49a7840d23c7).()) {
4056 autoMelderStringcxx . . $ autoMelderString# valueStringcxx . . $ autoMelderString#autoMelderString(49f6e7a06ebc5aa8).;
4057 MelderString_appendCharactercxx . . $ MelderString_appendCharacter(f4ab64866cffe712). (& valueString, 1); // TODO: check whether this is needed at all, or is just MelderString_empty enough?
4058 autoMelderDivertInfocxx . . $ autoMelderDivertInfo# divertcxx . . $ autoMelderDivertInfo#autoMelderDivertInfo(93db1090f27e5462). (& valueString);
4059 autostring32cxx . . $ autostring32# command2 = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (command); // allow the menu command to reuse the stack (?)
4060 Editor_doMenuCommandcxx . . $ Editor_doMenuCommand(11ddb24ea6d4513). (theInterpretercxx . . $ theInterpreter. -> optionalDynamicEnvironmentEditorcxx . . $ structInterpreter#optionalDynamicEnvironmentEditor(480fba2ddcd094f3).(), command2.getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), numberOfArguments, & stack [0], nullptr, theInterpretercxx . . $ theInterpreter.);
4061 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (Melder_atofcxx . . $ Melder_atof(13d725aae188c0cd). (valueString.stringcxx . . $ MelderString#string.));
4062 return;
4063 } else if (! praat_commandsWithExternalSideEffectsAreAllowedcxx . . $ praat_commandsWithExternalSideEffectsAreAllowed(c9857a73d68e59ba). () &&
4064 (str32nequcxx . . $ `melder/melder_str32.h:123:9`! (command, U"Save ", 5) || str32nequcxx . . $ `melder/melder_str32.h:123:9`! (command, U"Write ", 6) || str32nequcxx . . $ `melder/melder_str32.h:123:9`! (command, U"Append to ", 10) || str32nequcxx . . $ `melder/melder_str32.h:123:9`! (command, U"Quit", 4)))
4065 {
4066 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Commands that write files (including Quit) are not available inside manuals.");
4067 } else {
4068 autoMelderStringcxx . . $ autoMelderString# valueStringcxx . . $ autoMelderString#autoMelderString(49f6e7a06ebc5aa8).;
4069 MelderString_appendCharactercxx . . $ MelderString_appendCharacter(f4ab64866cffe712). (& valueString, 1); // a semaphor to check whether praat_doAction or praat_doMenuCommand wrote anything with MelderInfo
4070 autoMelderDivertInfocxx . . $ autoMelderDivertInfo# divertcxx . . $ autoMelderDivertInfo#autoMelderDivertInfo(93db1090f27e5462). (& valueString);
4071 autostring32cxx . . $ autostring32# command2 = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (command); // allow the menu command to reuse the stack (?)
4072 if (! praat_doActioncxx . . $ praat_doAction(738317ad6fa3f573). (command2.getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), numberOfArguments, & stack [0], theInterpretercxx . . $ theInterpreter.) &&
4073 ! praat_doMenuCommandcxx . . $ praat_doMenuCommand(738317ad6fa3f573). (command2.getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), numberOfArguments, & stack [0], theInterpretercxx . . $ theInterpreter.))
4074 {
4075 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Command “", command, U"” not available for current selection.");
4076 }
4077 //praat_updateSelection ();
4078 double value = undefinedcxx . . $ undefined.;
4079 if (valueString.stringcxx . . $ MelderString#string. [0] == 1) { // nothing written with MelderInfo by praat_doAction or praat_doMenuCommand? then the return value is the ID of the selected object
4080 integercxx . . $ integer# IOBJECT, result = 0, found = 0;
4081 WHEREcxx . . $ `sys/praat.h:198:9`! (SELECTEDcxx . . $ `sys/praat.h:200:9`!) {
4082 result = IOBJECT;
4083 found += 1;
4084 }
4085 if (found == 1)
4086 value = theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> listcxx . . $ structPraatObjects#list. [result]. idcxx . . $ structPraat_Object#id.;
4087 } else {
4088 value = Melder_atofcxx . . $ Melder_atof(13d725aae188c0cd). (valueString.stringcxx . . $ MelderString#string.); // including --undefined--
4089 }
4090 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (value);
4091 return;
4092 }
4093 praat_updateSelectioncxx . . $ praat_updateSelection(49f6e7a06ebc5aa8). (); // BUG: superfluous? flickering?
4094 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4095 }
4096 static void do_evaluatecxx . . $ do_evaluate(49f6e7a06ebc5aa8). () {
4097 const Stackelcxx . . $ Stackel# expression = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4098 if (expression->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
4099 double result;
4100 Interpreter_numericExpressioncxx . . $ Interpreter_numericExpression(8639512facf48b76). (theInterpretercxx . . $ theInterpreter., expression->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & result);
4101 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
4102 } else Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The argument of the function “evaluate” should be a string with a numeric expression, not ", expression->whichText());
4103 }
4104 static void do_evaluate_nocheckcxx . . $ do_evaluate_nocheck(49f6e7a06ebc5aa8). () {
4105 const Stackelcxx . . $ Stackel# expression = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4106 if (expression->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
4107 try {
4108 double result;
4109 Interpreter_numericExpressioncxx . . $ Interpreter_numericExpression(8639512facf48b76). (theInterpretercxx . . $ theInterpreter., expression->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & result);
4110 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
4111 } catch (MelderErrorcxx . . $ MelderError#) {
4112 Melder_clearErrorcxx . . $ Melder_clearError(49f6e7a06ebc5aa8). ();
4113 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (undefinedcxx . . $ undefined.);
4114 }
4115 } else Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The argument of the function “evaluate_nocheck” should be a string with a numeric expression, not ", expression->whichText());
4116 }
4117 static void do_evaluate_STRcxx . . $ do_evaluate_STR(49f6e7a06ebc5aa8). () {
4118 const Stackelcxx . . $ Stackel# expression = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4119 if (expression->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
4120 autostring32cxx . . $ autostring32# result = Interpreter_stringExpressioncxx . . $ Interpreter_stringExpression(ae2ff4958c59280d). (theInterpretercxx . . $ theInterpreter., expression->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
4121 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
4122 } else Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The argument of the function “evaluate$” should be a string with a string expression, not ", expression->whichText());
4123 }
4124 static void do_evaluate_nocheck_STRcxx . . $ do_evaluate_nocheck_STR(49f6e7a06ebc5aa8). () {
4125 const Stackelcxx . . $ Stackel# expression = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4126 if (expression->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
4127 try {
4128 autostring32cxx . . $ autostring32# result = Interpreter_stringExpressioncxx . . $ Interpreter_stringExpression(ae2ff4958c59280d). (theInterpretercxx . . $ theInterpreter., expression->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
4129 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
4130 } catch (MelderErrorcxx . . $ MelderError#) {
4131 Melder_clearErrorcxx . . $ Melder_clearError(49f6e7a06ebc5aa8). ();
4132 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (U""));
4133 }
4134 } else Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The argument of the function “evaluate_nocheck$” should be a string with a string expression, not ", expression->whichText());
4135 }
4136 static void do_do_STRcxx . . $ do_do_STR(49f6e7a06ebc5aa8). () {
4137 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4138 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4139 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. < 1)
4140 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “do$” requires at least one argument, namely a menu command.");
4141 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.) - 1;
4142 #define MAXNUM_FIELDScxx . . $ `sys/Formula.cpp:4142:10`! 40
4143 structStackelcxx . . $ structStackel# stackcxx . . $ structStackel#structStackel(49f6e7a06ebc5aa8). [1+MAXNUM_FIELDScxx . . $ `sys/Formula.cpp:4142:10`!];
4144 for (integercxx . . $ integer# iarg = numberOfArguments; iarg >= 0; iarg --) {
4145 const Stackelcxx . . $ Stackel# arg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4146 stack [iarg] =cxx . . $ structStackel#`operator=`(51a4fe52c0d81ef2). stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26). (*arg);
4147 }
4148 if (stack [0]. whichcxx . . $ structStackel#which. != Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
4149 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The first argument of the function “do$” should be a string, namely a menu command, and not ", stack [0]. whichText(), U".");
4150 conststring32cxx . . $ conststring32# command = stack [0]. getStringcxx . . $ structStackel#getString(1912f6684645c851).();
4151 if (theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. == & theForegroundPraatObjectscxx . . $ theForegroundPraatObjects. && theInterpretercxx . . $ theInterpreter. -> hasDynamicEnvironmentEditorcxx . . $ structInterpreter#hasDynamicEnvironmentEditor(77ce49a7840d23c7).()) {
4152 static MelderStringcxx . . $ MelderString# info;
4153 MelderString_emptycxx . . $ MelderString_empty(93db1090f27e5462). (& info);
4154 autoMelderDivertInfocxx . . $ autoMelderDivertInfo# divertcxx . . $ autoMelderDivertInfo#autoMelderDivertInfo(93db1090f27e5462). (& info);
4155 autostring32cxx . . $ autostring32# command2 = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (command);
4156 Editor_doMenuCommandcxx . . $ Editor_doMenuCommand(11ddb24ea6d4513). (theInterpretercxx . . $ theInterpreter. -> optionalDynamicEnvironmentEditorcxx . . $ structInterpreter#optionalDynamicEnvironmentEditor(480fba2ddcd094f3).(), command2.getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), numberOfArguments, & stack [0], nullptr, theInterpretercxx . . $ theInterpreter.);
4157 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (info.stringcxx . . $ MelderString#string.));
4158 return;
4159 } else if (! praat_commandsWithExternalSideEffectsAreAllowedcxx . . $ praat_commandsWithExternalSideEffectsAreAllowed(c9857a73d68e59ba). () &&
4160 (str32nequcxx . . $ `melder/melder_str32.h:123:9`! (command, U"Save ", 5) || str32nequcxx . . $ `melder/melder_str32.h:123:9`! (command, U"Write ", 6) || str32nequcxx . . $ `melder/melder_str32.h:123:9`! (command, U"Append to ", 10) || str32nequcxx . . $ `melder/melder_str32.h:123:9`! (command, U"Quit", 4)))
4161 {
4162 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Commands that write files (including Quit) are not available inside manuals.");
4163 } else {
4164 static MelderStringcxx . . $ MelderString# info;
4165 MelderString_emptycxx . . $ MelderString_empty(93db1090f27e5462). (& info);
4166 autoMelderDivertInfocxx . . $ autoMelderDivertInfo# divertcxx . . $ autoMelderDivertInfo#autoMelderDivertInfo(93db1090f27e5462). (& info);
4167 autostring32cxx . . $ autostring32# command2 = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (command);
4168 if (! praat_doActioncxx . . $ praat_doAction(738317ad6fa3f573). (command2.getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), numberOfArguments, & stack [0], theInterpretercxx . . $ theInterpreter.) &&
4169 ! praat_doMenuCommandcxx . . $ praat_doMenuCommand(738317ad6fa3f573). (command2.getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), numberOfArguments, & stack [0], theInterpretercxx . . $ theInterpreter.))
4170 {
4171 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Command “", command, U"” not available for current selection.");
4172 }
4173 praat_updateSelectioncxx . . $ praat_updateSelection(49f6e7a06ebc5aa8). ();
4174 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (info.stringcxx . . $ MelderString#string.));
4175 return;
4176 }
4177 praat_updateSelectioncxx . . $ praat_updateSelection(49f6e7a06ebc5aa8). (); // BUG: superfluous? flickering?
4178 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (U""));
4179 }
4180 static void shared_do_writeInfocxx . . $ shared_do_writeInfo(1624ee8275b10bda). (integercxx . . $ integer# numberOfArguments) {
4181 for (integercxx . . $ integer# iarg = 1; iarg <= numberOfArguments; iarg ++) {
4182 const Stackelcxx . . $ Stackel# arg = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + iarg];
4183 if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4184 MelderInfo_writecxx . . $ MelderInfo_write(3eb398314feba58b). (arg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4185 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
4186 MelderInfo_writecxx . . $ MelderInfo_write(3eb398314feba58b). (arg->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
4187 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
4188 for (integercxx . . $ integer# i = 1; i <= arg->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.; i ++)
4189 MelderInfo_writecxx . . $ MelderInfo_write(3eb398314feba58b). (arg->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i],
4190 i == arg->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size. ? U"" : U" ");
4191 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
4192 for (integercxx . . $ integer# irow = 1; irow <= arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.; irow ++) {
4193 for (integercxx . . $ integer# icol = 1; icol <= arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.; icol ++)
4194 MelderInfo_writecxx . . $ MelderInfo_write(3eb398314feba58b). (arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. [cxx . . $ matrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol],
4195 icol == arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol. ? U"" : U" ");
4196 MelderInfo_writecxx . . $ MelderInfo_write(3eb398314feba58b). (irow == arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow. ? U"" : U"\n");
4197 }
4198 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!) {
4199 for (integercxx . . $ integer# i = 1; i <= arg->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray..sizecxx . . $ _stringvector#size.; i ++)
4200 MelderInfo_writecxx . . $ MelderInfo_write(3eb398314feba58b). (arg->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray. [cxx . . $ _stringvector#`operator[]`(a7f36fee1ae21897).i],
4201 i == arg->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray..sizecxx . . $ _stringvector#size. ? U"" : U" ");
4202 }
4203 }
4204 }
4205 static void do_writeInfocxx . . $ do_writeInfo(49f6e7a06ebc5aa8). () {
4206 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4207 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4208 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4209 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4210 MelderInfo_opencxx . . $ MelderInfo_open(49f6e7a06ebc5aa8). ();
4211 shared_do_writeInfocxx . . $ shared_do_writeInfo(1624ee8275b10bda). (numberOfArguments);
4212 MelderInfo_draincxx . . $ MelderInfo_drain(49f6e7a06ebc5aa8). ();
4213 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4214 }
4215 static void do_writeInfoLinecxx . . $ do_writeInfoLine(49f6e7a06ebc5aa8). () {
4216 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4217 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4218 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4219 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4220 MelderInfo_opencxx . . $ MelderInfo_open(49f6e7a06ebc5aa8). ();
4221 shared_do_writeInfocxx . . $ shared_do_writeInfo(1624ee8275b10bda). (numberOfArguments);
4222 MelderInfo_writecxx . . $ MelderInfo_write(3eb398314feba58b). (U"\n");
4223 MelderInfo_draincxx . . $ MelderInfo_drain(49f6e7a06ebc5aa8). ();
4224 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4225 }
4226
4227 static void do_appendInfocxx . . $ do_appendInfo(49f6e7a06ebc5aa8). () {
4228 MELDER_ASSERT_NONREENTRANTcxx . . $ `melder/melder_assert.h:59:9`!
4229 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4230 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4231 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4232 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4233 shared_do_writeInfocxx . . $ shared_do_writeInfo(1624ee8275b10bda). (numberOfArguments);
4234 MelderInfo_draincxx . . $ MelderInfo_drain(49f6e7a06ebc5aa8). ();
4235 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4236 }
4237 static void do_appendInfoLinecxx . . $ do_appendInfoLine(49f6e7a06ebc5aa8). () {
4238 MELDER_ASSERT_NONREENTRANTcxx . . $ `melder/melder_assert.h:59:9`!
4239 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4240 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4241 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4242 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4243 shared_do_writeInfocxx . . $ shared_do_writeInfo(1624ee8275b10bda). (numberOfArguments);
4244 MelderInfo_writecxx . . $ MelderInfo_write(3eb398314feba58b). (U"\n");
4245 MelderInfo_draincxx . . $ MelderInfo_drain(49f6e7a06ebc5aa8). ();
4246 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4247 }
4248 static void shared_do_writeFilecxx . . $ shared_do_writeFile(599d97adb98911c2). (autoMelderStringcxx . . $ autoMelderString# *text, integercxx . . $ integer# numberOfArguments) {
4249 for (int iarg = 2; iarg <= numberOfArguments; iarg ++) {
4250 const Stackelcxx . . $ Stackel# arg = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + iarg];
4251 if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4252 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (text, arg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4253 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
4254 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (text, arg->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
4255 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
4256 for (integercxx . . $ integer# i = 1; i <= arg->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.; i ++)
4257 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (text, arg->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i],
4258 i == arg->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size. ? U"" : U" ");
4259 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
4260 for (integercxx . . $ integer# irow = 1; irow <= arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.; irow ++) {
4261 for (integercxx . . $ integer# icol = 1; icol <= arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.; icol ++)
4262 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (text, arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. [cxx . . $ matrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol],
4263 icol == arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol. ? U"" : U" ");
4264 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (text, irow == arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow. ? U"" : U"\n");
4265 }
4266 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!) {
4267 for (integercxx . . $ integer# i = 1; i <= arg->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray..sizecxx . . $ _stringvector#size.; i ++)
4268 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (text, arg->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray. [cxx . . $ _stringvector#`operator[]`(a7f36fee1ae21897).i],
4269 i == arg->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray..sizecxx . . $ _stringvector#size. ? U"" : U" ");
4270 }
4271 }
4272 }
4273 static void do_writeFilecxx . . $ do_writeFile(49f6e7a06ebc5aa8). () {
4274 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
4275 U"The function “writeFile” is not available inside manuals.");
4276 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4277 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4278 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4279 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4280 const Stackelcxx . . $ Stackel# fileName = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + 1];
4281 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (fileName->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
4282 U"The first argument of “writeFile” should be a string (a file name), not ", fileName->whichText(), U".");
4283 autoMelderStringcxx . . $ autoMelderString# textcxx . . $ autoMelderString#autoMelderString(49f6e7a06ebc5aa8).;
4284 shared_do_writeFilecxx . . $ shared_do_writeFile(599d97adb98911c2). (& text, numberOfArguments);
4285 structMelderFilecxx . . $ structMelderFile# file { };
4286 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (fileName->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & file);
4287 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"save some text to the file\n", & file);
4288 MelderFile_writeText_ecxx . . $ MelderFile_writeText_e(4f26204211a3b413). (& file, text.stringcxx . . $ MelderString#string., Melder_getOutputEncodingcxx . . $ Melder_getOutputEncoding(581d0d572cba43d7). ());
4289 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4290 }
4291 static void do_writeFileLinecxx . . $ do_writeFileLine(49f6e7a06ebc5aa8). () {
4292 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
4293 U"The function “writeFileLine” is not available inside manuals.");
4294 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4295 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4296 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4297 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4298 const Stackelcxx . . $ Stackel# fileName = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + 1];
4299 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (fileName->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
4300 U"The first argument of “writeFileLine” should be a string (a file name), not ", fileName->whichText(), U".");
4301 autoMelderStringcxx . . $ autoMelderString# textcxx . . $ autoMelderString#autoMelderString(49f6e7a06ebc5aa8).;
4302 shared_do_writeFilecxx . . $ shared_do_writeFile(599d97adb98911c2). (& text, numberOfArguments);
4303 MelderString_appendCharactercxx . . $ MelderString_appendCharacter(f4ab64866cffe712). (& text, U'\n');
4304 structMelderFilecxx . . $ structMelderFile# file { };
4305 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (fileName->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & file);
4306 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"save a line of text to the file\n", & file);
4307 MelderFile_writeText_ecxx . . $ MelderFile_writeText_e(4f26204211a3b413). (& file, text.stringcxx . . $ MelderString#string., Melder_getOutputEncodingcxx . . $ Melder_getOutputEncoding(581d0d572cba43d7). ());
4308 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4309 }
4310 static void do_appendFilecxx . . $ do_appendFile(49f6e7a06ebc5aa8). () {
4311 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
4312 U"The function “appendFile” is not available inside manuals.");
4313 const Stackelcxx . . $ Stackel# elNumberOfArguments = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4314 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (elNumberOfArguments->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4315 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (elNumberOfArguments->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4316 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4317 const Stackelcxx . . $ Stackel# elFileName = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + 1];
4318 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (elFileName->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
4319 U"The first argument of “appendFile” should be a string (a file name), not ", elFileName->whichText(), U".");
4320 autoMelderStringcxx . . $ autoMelderString# textcxx . . $ autoMelderString#autoMelderString(49f6e7a06ebc5aa8).;
4321 shared_do_writeFilecxx . . $ shared_do_writeFile(599d97adb98911c2). (& text, numberOfArguments);
4322 structMelderFilecxx . . $ structMelderFile# file { };
4323 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (elFileName->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & file);
4324 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"append some text to the file\n", & file);
4325 MelderFile_appendText_ecxx . . $ MelderFile_appendText_e(8fa576db0692df65). (& file, text.stringcxx . . $ MelderString#string.);
4326 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4327 }
4328 static void do_appendFileLinecxx . . $ do_appendFileLine(49f6e7a06ebc5aa8). () {
4329 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
4330 U"The function “appendFileLine” is not available inside manuals.");
4331 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4332 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4333 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4334 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4335 const Stackelcxx . . $ Stackel# fileName = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + 1];
4336 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (fileName->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
4337 U"The first argument of “appendFileLine” should be a string (a file name), not ", fileName->whichText(), U".");
4338 autoMelderStringcxx . . $ autoMelderString# textcxx . . $ autoMelderString#autoMelderString(49f6e7a06ebc5aa8).;
4339 shared_do_writeFilecxx . . $ shared_do_writeFile(599d97adb98911c2). (& text, numberOfArguments);
4340 MelderString_appendCharactercxx . . $ MelderString_appendCharacter(f4ab64866cffe712). (& text, '\n');
4341 structMelderFilecxx . . $ structMelderFile# file { };
4342 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (fileName->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & file);
4343 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"append a line of text to the file\n", & file);
4344 MelderFile_appendText_ecxx . . $ MelderFile_appendText_e(8fa576db0692df65). (& file, text.stringcxx . . $ MelderString#string.);
4345 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4346 }
4347 static void do_pauseScriptcxx . . $ do_pauseScript(49f6e7a06ebc5aa8). () {
4348 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
4349 U"The function “pauseScript” is not available inside manuals.");
4350 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4351 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4352 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4353 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4354 if (! theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> batchcxx . . $ structPraatApplication#batch.) { // in batch we ignore pause statements
4355 autoMelderStringcxx . . $ autoMelderString# buffercxx . . $ autoMelderString#autoMelderString(49f6e7a06ebc5aa8).;
4356 for (int iarg = 1; iarg <= numberOfArguments; iarg ++) {
4357 const Stackelcxx . . $ Stackel# arg = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + iarg];
4358 if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4359 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& buffer, arg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4360 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
4361 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& buffer, arg->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
4362 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
4363 for (integercxx . . $ integer# i = 1; i <= arg->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.; i ++)
4364 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& buffer, arg->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i],
4365 i == arg->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size. ? U"" : U" ");
4366 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
4367 for (integercxx . . $ integer# irow = 1; irow <= arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.; irow ++) {
4368 for (integercxx . . $ integer# icol = 1; icol <= arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.; icol ++)
4369 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& buffer, arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. [cxx . . $ matrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol],
4370 icol == arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol. ? U"" : U" ");
4371 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& buffer, irow == arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow. ? U"" : U"\n");
4372 }
4373 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!) {
4374 for (integercxx . . $ integer# i = 1; i <= arg->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray..sizecxx . . $ _stringvector#size.; i ++)
4375 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& buffer, arg->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray. [cxx . . $ _stringvector#`operator[]`(a7f36fee1ae21897).i],
4376 i == arg->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray..sizecxx . . $ _stringvector#size. ? U"" : U" ");
4377 }
4378 }
4379 const Editorcxx . . $ Editor# optionalPauseWindowOwningEditor = theInterpretercxx . . $ theInterpreter. -> optionalDynamicEnvironmentEditorcxx . . $ structInterpreter#optionalDynamicEnvironmentEditor(480fba2ddcd094f3).();
4380 const GuiWindowcxx . . $ GuiWindow# parentShell = ( optionalPauseWindowOwningEditor ? optionalPauseWindowOwningEditor -> windowFormcxx . . $ structEditor#windowForm. : theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> topShellcxx . . $ structPraatApplication#topShell. );
4381 UiPause_pauseScriptcxx . . $ UiPause_pauseScript(2569ff2ad22a95d). (parentShell, optionalPauseWindowOwningEditor, theInterpretercxx . . $ theInterpreter., numberOfArguments == 0 ? U"..." : buffer.stringcxx . . $ MelderString#string.);
4382 }
4383 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4384 }
4385 static void do_exitScriptcxx . . $ do_exitScript(49f6e7a06ebc5aa8). () {
4386 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4387 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4388 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4389 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4390 for (int iarg = 1; iarg <= numberOfArguments; iarg ++) {
4391 const Stackelcxx . . $ Stackel# arg = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + iarg];
4392 if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4393 Melder_appendError_noLinecxx . . $ Melder_appendError_noLine(afb30bc799649a62). (argcxx . . $ MelderArg#MelderArg(ba8836b59fb42830).->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4394 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
4395 Melder_appendError_noLinecxx . . $ Melder_appendError_noLine(afb30bc799649a62). (argcxx . . $ MelderArg#MelderArg(ff00d524ab0355ec).->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
4396 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
4397 for (integercxx . . $ integer# i = 1; i <= arg->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.; i ++) {
4398 Melder_appendError_noLinecxx . . $ Melder_appendError_noLine(afb30bc799649a62). (argcxx . . $ MelderArg#MelderArg(ba8836b59fb42830).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i]);
4399 Melder_appendError_noLinecxx . . $ Melder_appendError_noLine(afb30bc799649a62). (icxx . . $ MelderArg#MelderArg(ff00d524ab0355ec). == arg->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size. ? U"" : U" ");
4400 }
4401 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
4402 for (integercxx . . $ integer# irow = 1; irow <= arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.; irow ++) {
4403 for (integercxx . . $ integer# icol = 1; icol <= arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.; icol ++) {
4404 Melder_appendError_noLinecxx . . $ Melder_appendError_noLine(afb30bc799649a62). (argcxx . . $ MelderArg#MelderArg(ba8836b59fb42830).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. [cxx . . $ matrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol]);
4405 Melder_appendError_noLinecxx . . $ Melder_appendError_noLine(afb30bc799649a62). (icolcxx . . $ MelderArg#MelderArg(ff00d524ab0355ec). == arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol. ? U"" : U" ");
4406 }
4407 Melder_appendError_noLinecxx . . $ Melder_appendError_noLine(afb30bc799649a62). (irowcxx . . $ MelderArg#MelderArg(ff00d524ab0355ec). == arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow. ? U"" : U"\n");
4408 }
4409 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!) {
4410 for (integercxx . . $ integer# i = 1; i <= arg->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray..sizecxx . . $ _stringvector#size.; i ++) {
4411 Melder_appendError_noLinecxx . . $ Melder_appendError_noLine(afb30bc799649a62). (argcxx . . $ MelderArg#MelderArg(ff00d524ab0355ec).->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray. [cxx . . $ _stringvector#`operator[]`(a7f36fee1ae21897).i]);
4412 Melder_appendError_noLinecxx . . $ Melder_appendError_noLine(afb30bc799649a62). (icxx . . $ MelderArg#MelderArg(ff00d524ab0355ec). == arg->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray..sizecxx . . $ _stringvector#size. ? U"" : U" ");
4413 }
4414 }
4415 }
4416 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"\nScript exited.");
4417 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4418 }
4419 static void do_runScriptcxx . . $ do_runScript(49f6e7a06ebc5aa8). () {
4420 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4421 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4422 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4423 if (numberOfArguments < 1)
4424 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “runScript” requires at least one argument, namely the file name.");
4425 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4426 const Stackelcxx . . $ Stackel# fileName = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + 1];
4427 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (fileName->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
4428 U"The first argument to “runScript” should be a string (the file name), not ", fileName->whichText());
4429 theLevelcxx . . $ theLevel. += 1;
4430 if (theLevelcxx . . $ theLevel. > MAXIMUM_NUMBER_OF_LEVELScxx . . $ `sys/Formula.cpp:41:9`!) { // TODO: remove
4431 theLevelcxx . . $ theLevel. -= 1;
4432 //Melder_throw (U"Cannot call runScript() more than ", MAXIMUM_NUMBER_OF_LEVELS, U" levels deep.");
4433 }
4434 try {
4435 const Editorcxx . . $ Editor# optionalNewInterpreterOwningWindow = theInterpretercxx . . $ theInterpreter. -> optionalDynamicEnvironmentEditorcxx . . $ structInterpreter#optionalDynamicEnvironmentEditor(480fba2ddcd094f3).();
4436 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (theInterpreter -> owningInterpreterStack);
4437 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (theInterpreter -> owningInterpreterStack -> current_a() == theInterpreter); // the parent interpreter
4438 praat_runScriptcxx . . $ praat_runScript(3d0e5aa21c8672cd). (theInterpretercxx . . $ theInterpreter. -> owningInterpreterStackcxx . . $ structInterpreter#owningInterpreterStack., fileName->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), numberOfArguments - 1, & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + 1], optionalNewInterpreterOwningWindow);
4439 theLevelcxx . . $ theLevel. -= 1;
4440 } catch (MelderErrorcxx . . $ MelderError#) {
4441 theLevelcxx . . $ theLevel. -= 1;
4442 throw;
4443 }
4444 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4445 }
4446 static void do_runScriptWithFormcxx . . $ do_runScriptWithForm(49f6e7a06ebc5aa8). () {
4447 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4448 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4449 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4450 if (numberOfArguments != 1)
4451 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “runScriptWithForm” requires precisely one argument, namely the file name.");
4452 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4453 const Stackelcxx . . $ Stackel# fileName = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + 1];
4454 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (fileName->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
4455 U"The first argument to “runScript” should be a string (the file name), not ", fileName->whichText());
4456 theLevelcxx . . $ theLevel. += 1;
4457 if (theLevelcxx . . $ theLevel. > MAXIMUM_NUMBER_OF_LEVELScxx . . $ `sys/Formula.cpp:41:9`!) {
4458 theLevelcxx . . $ theLevel. -= 1;
4459 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot call runScriptWithForm() more than ", MAXIMUM_NUMBER_OF_LEVELScxx . . $ `sys/Formula.cpp:41:9`!, U" levels deep.");
4460 }
4461 try {
4462 praat_runScriptWithFormcxx . . $ praat_runScriptWithForm(7004b68cc6c23ea2). (fileName->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), false); // TODO: inherit trust
4463 theLevelcxx . . $ theLevel. -= 1;
4464 } catch (MelderErrorcxx . . $ MelderError#) {
4465 theLevelcxx . . $ theLevel. -= 1;
4466 throw;
4467 }
4468 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4469 }
4470 static void do_runNotebookcxx . . $ do_runNotebook(49f6e7a06ebc5aa8). () {
4471 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4472 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4473 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4474 if (numberOfArguments < 1)
4475 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “runNotebook” requires at least one argument, namely the file name.");
4476 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4477 const Stackelcxx . . $ Stackel# fileName = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + 1];
4478 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (fileName->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
4479 U"The first argument to “runNotebook” should be a string (the file name), not ", fileName->whichText());
4480 theLevelcxx . . $ theLevel. += 1;
4481 if (theLevelcxx . . $ theLevel. > MAXIMUM_NUMBER_OF_LEVELScxx . . $ `sys/Formula.cpp:41:9`!) {
4482 theLevelcxx . . $ theLevel. -= 1;
4483 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot call runNotebook() more than ", MAXIMUM_NUMBER_OF_LEVELScxx . . $ `sys/Formula.cpp:41:9`!, U" levels deep.");
4484 }
4485 try {
4486 const Editorcxx . . $ Editor# optionalNewInterpreterOwningWindow = theInterpretercxx . . $ theInterpreter. -> optionalDynamicEnvironmentEditorcxx . . $ structInterpreter#optionalDynamicEnvironmentEditor(480fba2ddcd094f3).();
4487 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (theInterpreter -> owningInterpreterStack);
4488 praat_runNotebookcxx . . $ praat_runNotebook(3d0e5aa21c8672cd). (theInterpretercxx . . $ theInterpreter. -> owningInterpreterStackcxx . . $ structInterpreter#owningInterpreterStack., fileName->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), numberOfArguments - 1, & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + 1], optionalNewInterpreterOwningWindow);
4489 theLevelcxx . . $ theLevel. -= 1;
4490 } catch (MelderErrorcxx . . $ MelderError#) {
4491 theLevelcxx . . $ theLevel. -= 1;
4492 throw;
4493 }
4494 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4495 }
4496 static void do_runSystemcxx . . $ do_runSystem(49f6e7a06ebc5aa8). () {
4497 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
4498 U"The function “runSystem” is not available inside manuals.");
4499 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4500 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4501 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4502 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4503 autoMelderStringcxx . . $ autoMelderString# textcxx . . $ autoMelderString#autoMelderString(49f6e7a06ebc5aa8).;
4504 for (integercxx . . $ integer# iarg = 1; iarg <= numberOfArguments; iarg ++) {
4505 const Stackelcxx . . $ Stackel# arg = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + iarg];
4506 if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
4507 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& text, arg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4508 else if (arg->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
4509 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& text, arg->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
4510 }
4511 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"run the system command:\n“", text.stringcxx . . $ MelderString#string., U"”");
4512 try {
4513 Melder_runSystemcxx . . $ Melder_runSystem(ff00d524ab0355ec). (text.stringcxx . . $ MelderString#string.);
4514 } catch (MelderErrorcxx . . $ MelderError#) {
4515 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"System command <<", text.string, U">> returned error status;\n"
4516 U"if you want to ignore this, use `runSystem_nocheck` instead of `runSystem`.");
4517 }
4518 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4519 }
4520 static void do_runSystem_STRcxx . . $ do_runSystem_STR(49f6e7a06ebc5aa8). () {
4521 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
4522 U"The function “runSystem$” is not available inside manuals.");
4523 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4524 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4525 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4526 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4527 autoMelderStringcxx . . $ autoMelderString# textcxx . . $ autoMelderString#autoMelderString(49f6e7a06ebc5aa8).;
4528 for (integercxx . . $ integer# iarg = 1; iarg <= numberOfArguments; iarg ++) {
4529 const Stackelcxx . . $ Stackel# arg = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + iarg];
4530 if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
4531 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& text, arg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4532 else if (arg->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
4533 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& text, arg->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
4534 }
4535 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"run the system command:\n“", text.stringcxx . . $ MelderString#string., U"”");
4536 autostring32cxx . . $ autostring32# resultcxx . . $ _autostring#_autostring(49f6e7a06ebc5aa8).;
4537 try {
4538 result =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). runSystem_STRcxx . . $ runSystem_STR(87bf156b1f548402). (text.stringcxx . . $ MelderString#string.);
4539 } catch (MelderErrorcxx . . $ MelderError#) {
4540 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"System command <<", text.string, U">> returned error status;\n"
4541 U"if you want to ignore this, use `runSystem_nocheck$` instead of `runSystem$`.");
4542 }
4543 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
4544 }
4545 static void do_runSystem_nocheckcxx . . $ do_runSystem_nocheck(49f6e7a06ebc5aa8). () {
4546 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
4547 U"The function “runSystem” is not available inside manuals.");
4548 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4549 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4550 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4551 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4552 autoMelderStringcxx . . $ autoMelderString# textcxx . . $ autoMelderString#autoMelderString(49f6e7a06ebc5aa8).;
4553 for (int iarg = 1; iarg <= numberOfArguments; iarg ++) {
4554 const Stackelcxx . . $ Stackel# arg = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + iarg];
4555 if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
4556 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& text, arg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4557 else if (arg->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
4558 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& text, arg->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
4559 }
4560 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"run the system command:\n“", text.stringcxx . . $ MelderString#string., U"”");
4561 try {
4562 Melder_runSystemcxx . . $ Melder_runSystem(ff00d524ab0355ec). (text.stringcxx . . $ MelderString#string.);
4563 } catch (MelderErrorcxx . . $ MelderError#) {
4564 Melder_clearErrorcxx . . $ Melder_clearError(49f6e7a06ebc5aa8). ();
4565 }
4566 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4567 }
4568 static void do_runSubprocesscxx . . $ do_runSubprocess(49f6e7a06ebc5aa8). () {
4569 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
4570 U"The function “runSubprocess” is not available inside manuals.");
4571 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4572 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4573 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4574 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4575 const Stackelcxx . . $ Stackel# commandFile = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + 1];
4576 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (commandFile->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
4577 U"The first argument to “runSubprocess” should be a command name.");
4578 autoSTRVECcxx . . $ autoSTRVEC# argumentscxx . . $ _autostringautovector#_autostringautovector(1624ee8275b10bda). (numberOfArguments - 1);
4579 for (int iarg = 1; iarg < numberOfArguments; iarg ++) {
4580 const Stackelcxx . . $ Stackel# arg = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + 1 + iarg];
4581 if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
4582 arguments [cxx . . $ _autostringautovector#`operator[]`(f191be2b65019068).iarg] =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_doublecxx . . $ Melder_double(f05d861d9dbec9b2). (arg->numbercxx . . $ structStackel#$anonymous_type_0#number.));
4583 else if (arg->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
4584 arguments [cxx . . $ _autostringautovector#`operator[]`(f191be2b65019068).iarg] =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (arg->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
4585 }
4586 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"run the subprocess command:\n“", commandFile->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), U" ", flatten_STRcxx . . $ flatten_STR(50b64ba3cdc027dd). (argumentscxx . . $ _conststringvector#_conststringvector(93d9e701af42cb0d)..getcxx . . $ _autostringautovector#get(9d56076a9ef7dd02).(), U"˰").getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), U"”");
4587 try {
4588 Melder_runSubprocesscxx . . $ Melder_runSubprocess(daddfa367acd8092). (commandFile->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), numberOfArguments - 1, arguments.peek2cxx . . $ _autostringautovector#peek2(3871cfe815cb200).());
4589 } catch (MelderErrorcxx . . $ MelderError#) {
4590 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Command “", commandFile->getString(), U"” returned error status.");
4591 }
4592 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
4593 }
4594 static void do_runSubprocess_STRcxx . . $ do_runSubprocess_STR(49f6e7a06ebc5aa8). () {
4595 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
4596 U"The function “runSubprocess$” is not available inside manuals.");
4597 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4598 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4599 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4600 stackPointercxx . . $ stackPointer. -= numberOfArguments;
4601 const Stackelcxx . . $ Stackel# commandFile = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + 1];
4602 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (commandFile->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
4603 U"The first argument to “runSubprocess$” should be a command name.");
4604 autoSTRVECcxx . . $ autoSTRVEC# argumentscxx . . $ _autostringautovector#_autostringautovector(1624ee8275b10bda). (numberOfArguments - 1);
4605 for (int iarg = 1; iarg < numberOfArguments; iarg ++) {
4606 const Stackelcxx . . $ Stackel# arg = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + 1 + iarg];
4607 if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
4608 arguments [cxx . . $ _autostringautovector#`operator[]`(f191be2b65019068).iarg] =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_doublecxx . . $ Melder_double(f05d861d9dbec9b2). (arg->numbercxx . . $ structStackel#$anonymous_type_0#number.));
4609 else if (arg->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
4610 arguments [cxx . . $ _autostringautovector#`operator[]`(f191be2b65019068).iarg] =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (arg->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
4611 }
4612 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"run the subprocess command:\n“", commandFile->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), U" ", flatten_STRcxx . . $ flatten_STR(50b64ba3cdc027dd). (argumentscxx . . $ _conststringvector#_conststringvector(93d9e701af42cb0d)..getcxx . . $ _autostringautovector#get(9d56076a9ef7dd02).(), U"˰").getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), U"”");
4613 autostring32cxx . . $ autostring32# resultcxx . . $ _autostring#_autostring(49f6e7a06ebc5aa8).;
4614 try {
4615 result =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). runSubprocess_STRcxx . . $ runSubprocess_STR(8979b6aada8ea3b7). (commandFile->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), numberOfArguments - 1, arguments.peek2cxx . . $ _autostringautovector#peek2(3871cfe815cb200).());
4616 } catch (MelderErrorcxx . . $ MelderError#) {
4617 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Command “", commandFile->getString(), U"” returned error status.");
4618 }
4619 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
4620 }
4621 static void do_mincxx . . $ do_min(49f6e7a06ebc5aa8). () {
4622 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4623 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4624 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 1,
4625 U"The function “min” requires at least one argument.");
4626 const Stackelcxx . . $ Stackel# last = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4627 if (last->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4628 /*@praat
4629 assert min (5, 6, 1, 7) = 1
4630 assert min (undefined, 6, 1, 7) = undefined
4631 assert min (5, undefined, 1, 7) = undefined
4632 assert min (5, 6, undefined, 7) = undefined
4633 assert min (5, 6, 1, undefined) = undefined
4634 assert min (undefined, undefined) = undefined
4635 assert min (undefined) = undefined
4636 assert min (5) = 5
4637 @*/
4638 integercxx . . $ integer# size = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4639 autoVECcxx . . $ autoVEC# numericVector = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (size);
4640 numericVector [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).size] = last->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4641 for (integercxx . . $ integer# i = size - 1; i > 0; i --) {
4642 const Stackelcxx . . $ Stackel# element = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4643 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (element->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
4644 U"The function “min” cannot mix a numeric argument with ", element->whichText(), U".");
4645 numericVector [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).i] = element->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4646 }
4647 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMmin_ucxx . . $ NUMmin_u(4bb9c3e3a8dd5442). (numericVectorcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd)..getcxx . . $ autovector#get(e8d1da7fe68a6585).()));
4648 } else if (last->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
4649 /*@praat
4650 assert min ({ 5, 6, 1, 7 }) = 1
4651 assert min ({ undefined, 6, 1, 7 }) = undefined
4652 assert min ({ 5, undefined, 1, 7 }) = undefined
4653 assert min ({ 5, 6, undefined, 7 }) = undefined
4654 assert min ({ 5, 6, 1, undefined }) = undefined
4655 assert min ({ undefined, undefined }) = undefined
4656 assert min ({ undefined }) = undefined
4657 assert min (zero# (0)) = undefined
4658 assert min ({ }) = undefined
4659 @*/
4660 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
4661 U"The function “min” requires exactly one vector argument.");
4662 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMmin_ucxx . . $ NUMmin_u(4bb9c3e3a8dd5442). (lastcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.));
4663 } else {
4664 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the minimum of ", last->whichText(), U".");
4665 }
4666 }
4667 static void do_min_ecxx . . $ do_min_e(49f6e7a06ebc5aa8). () {
4668 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4669 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4670 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 1,
4671 U"The function “min_e” requires at least one argument.");
4672 const Stackelcxx . . $ Stackel# last = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4673 if (last->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4674 /*@praat
4675 assert min_e (5, 6, 1, 7) = 1
4676 asserterror cannot determine the minimum of a vector: element 1 is undefined.
4677 pos = min_e (undefined, 6, 1, 7)
4678 asserterror cannot determine the minimum of a vector: element 2 is undefined.
4679 pos = min_e (5, undefined, 1, 7)
4680 asserterror cannot determine the minimum of a vector: element 3 is undefined.
4681 pos = min_e (5, 6, undefined, 7)
4682 asserterror cannot determine the minimum of a vector: element 4 is undefined.
4683 pos = min_e (5, 6, 1, undefined)
4684 asserterror cannot determine the minimum of a vector: element 1 is undefined.
4685 pos = min_e (undefined, undefined)
4686 asserterror cannot determine the minimum of a vector: element 1 is undefined.
4687 pos = min_e (undefined)
4688 assert min_e (5) = 5
4689 @*/
4690 integercxx . . $ integer# size = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4691 autoVECcxx . . $ autoVEC# numericVector = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (size);
4692 numericVector [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).size] = last->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4693 for (integercxx . . $ integer# i = size - 1; i > 0; i --) {
4694 const Stackelcxx . . $ Stackel# element = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4695 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (element->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
4696 U"The function “min_e” cannot mix a numeric argument with ", element->whichText(), U".");
4697 numericVector [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).i] = element->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4698 }
4699 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMmin_ecxx . . $ NUMmin_e(fa513f1eb826a064). (numericVectorcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd)..getcxx . . $ autovector#get(e8d1da7fe68a6585).()));
4700 } else if (last->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
4701 /*@praat
4702 assert min_e ({ 5, 6, 1, 7 }) = 1
4703 asserterror cannot determine the minimum of a vector: element 1 is undefined.
4704 pos = min_e ({ undefined, 6, 1, 7 })
4705 asserterror cannot determine the minimum of a vector: element 2 is undefined.
4706 pos = min_e ({ 5, undefined, 1, 7 })
4707 asserterror cannot determine the minimum of a vector: element 3 is undefined.
4708 pos = min_e ({ 5, 6, undefined, 7 })
4709 asserterror cannot determine the minimum of a vector: element 4 is undefined.
4710 pos = min_e ({ 5, 6, 1, undefined })
4711 asserterror cannot determine the minimum of a vector: element 1 is undefined.
4712 pos = min_e ({ undefined, undefined })
4713 asserterror cannot determine the minimum of a vector: element 1 is undefined.
4714 pos = min_e ({ undefined })
4715 asserterror cannot determine the minimum of an empty vector.
4716 pos = min_e (zero# (0))
4717 asserterror cannot determine the minimum of an empty vector.
4718 pos = min_e ({})
4719 @*/
4720 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
4721 U"The function “min_e” requires exactly one vector argument.");
4722 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMmin_ecxx . . $ NUMmin_e(fa513f1eb826a064). (lastcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.));
4723 } else {
4724 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the minimum of ", last->whichText(), U".");
4725 }
4726 }
4727 static void do_min_removeUndefinedcxx . . $ do_min_removeUndefined(49f6e7a06ebc5aa8). () {
4728 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4729 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4730 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 1,
4731 U"The function “min_removeUndefined” requires at least one argument.");
4732 const Stackelcxx . . $ Stackel# last = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4733 if (last->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4734 /*@praat
4735 assert min_removeUndefined (5, 6, 1, 7) = 1
4736 assert min_removeUndefined (undefined, 6, 1, 7) = 1
4737 assert min_removeUndefined (5, undefined, 1, 7) = 1
4738 assert min_removeUndefined (5, 6, undefined, 7) = 5
4739 assert min_removeUndefined (5, 6, 1, undefined) = 1
4740 assert min_removeUndefined (undefined, undefined) = undefined
4741 assert min_removeUndefined (undefined) = undefined
4742 assert min_removeUndefined (5) = 5
4743 @*/
4744 integercxx . . $ integer# size = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4745 autoVECcxx . . $ autoVEC# numericVector = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (size);
4746 numericVector [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).size] = last->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4747 for (integercxx . . $ integer# i = size - 1; i > 0; i --) {
4748 const Stackelcxx . . $ Stackel# element = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4749 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (element->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
4750 U"The function “min_removeUndefined” cannot mix a numeric argument with ", element->whichText(), U".");
4751 numericVector [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).i] = element->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4752 }
4753 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMmin_removeUndefined_ucxx . . $ NUMmin_removeUndefined_u(4bb9c3e3a8dd5442). (numericVectorcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd)..getcxx . . $ autovector#get(e8d1da7fe68a6585).()));
4754 } else if (last->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
4755 /*@praat
4756 assert min_removeUndefined ({ 5, 6, 1, 7 }) = 1
4757 assert min_removeUndefined ({ undefined, 6, 1, 7 }) = 1
4758 assert min_removeUndefined ({ 5, undefined, 1, 7 }) = 1
4759 assert min_removeUndefined ({ 5, 6, undefined, 7 }) = 5
4760 assert min_removeUndefined ({ 5, 6, 1, undefined }) = 1
4761 assert min_removeUndefined ({ undefined, undefined }) = undefined
4762 assert min_removeUndefined ({ undefined }) = undefined
4763 assert min_removeUndefined (zero# (0)) = undefined
4764 assert min_removeUndefined ({ }) = undefined
4765 @*/
4766 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
4767 U"The function “min_removeUndefined” requires exactly one vector argument.");
4768 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMmin_removeUndefined_ucxx . . $ NUMmin_removeUndefined_u(4bb9c3e3a8dd5442). (lastcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.));
4769 } else {
4770 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the minimum of ", last->whichText(), U".");
4771 }
4772 }
4773 static void do_maxcxx . . $ do_max(49f6e7a06ebc5aa8). () {
4774 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4775 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4776 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 1,
4777 U"The function “max” requires at least one argument.");
4778 const Stackelcxx . . $ Stackel# last = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4779 if (last->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4780 integercxx . . $ integer# size = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4781 autoVECcxx . . $ autoVEC# numericVector = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (size);
4782 numericVector [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).size] = last->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4783 for (integercxx . . $ integer# i = size - 1; i > 0; i --) {
4784 const Stackelcxx . . $ Stackel# element = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4785 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (element->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
4786 U"The function “max_removeUndefined” cannot mix a numeric argument with ", element->whichText(), U".");
4787 numericVector [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).i] = element->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4788 }
4789 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMmax_ucxx . . $ NUMmax_u(4bb9c3e3a8dd5442). (numericVectorcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd)..getcxx . . $ autovector#get(e8d1da7fe68a6585).()));
4790 } else if (last->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
4791 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
4792 U"The function “max” requires exactly one vector argument.");
4793 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMmax_ucxx . . $ NUMmax_u(4bb9c3e3a8dd5442). (lastcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.));
4794 } else {
4795 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the maximum of ", last->whichText(), U".");
4796 }
4797 }
4798 static void do_max_ecxx . . $ do_max_e(49f6e7a06ebc5aa8). () {
4799 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4800 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4801 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 1,
4802 U"The function “max_e” requires at least one argument.");
4803 const Stackelcxx . . $ Stackel# last = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4804 if (last->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4805 integercxx . . $ integer# size = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4806 autoVECcxx . . $ autoVEC# numericVector = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (size);
4807 numericVector [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).size] = last->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4808 for (integercxx . . $ integer# i = size - 1; i > 0; i --) {
4809 const Stackelcxx . . $ Stackel# element = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4810 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (element->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
4811 U"The function “max_e” cannot mix a numeric argument with ", element->whichText(), U".");
4812 numericVector [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).i] = element->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4813 }
4814 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMmax_ecxx . . $ NUMmax_e(fa513f1eb826a064). (numericVectorcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd)..getcxx . . $ autovector#get(e8d1da7fe68a6585).()));
4815 } else if (last->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
4816 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
4817 U"The function “max_e” requires exactly one vector argument.");
4818 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMmax_ecxx . . $ NUMmax_e(fa513f1eb826a064). (lastcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.));
4819 } else {
4820 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the maximum of ", last->whichText(), U".");
4821 }
4822 }
4823 static void do_max_removeUndefinedcxx . . $ do_max_removeUndefined(49f6e7a06ebc5aa8). () {
4824 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4825 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4826 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 1,
4827 U"The function “max_removeUndefined” requires at least one argument.");
4828 const Stackelcxx . . $ Stackel# last = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4829 if (last->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4830 integercxx . . $ integer# size = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.);
4831 autoVECcxx . . $ autoVEC# numericVector = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (size);
4832 numericVector [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).size] = last->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4833 for (integercxx . . $ integer# i = size - 1; i > 0; i --) {
4834 const Stackelcxx . . $ Stackel# element = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4835 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (element->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
4836 U"The function “max_removeUndefined” cannot mix a numeric argument with ", element->whichText(), U".");
4837 numericVector [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).i] = element->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4838 }
4839 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMmax_removeUndefined_ucxx . . $ NUMmax_removeUndefined_u(4bb9c3e3a8dd5442). (numericVectorcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd)..getcxx . . $ autovector#get(e8d1da7fe68a6585).()));
4840 } else if (last->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
4841 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
4842 U"The function “max_removeUndefined” requires exactly one vector argument.");
4843 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMmax_removeUndefined_ucxx . . $ NUMmax_removeUndefined_u(4bb9c3e3a8dd5442). (lastcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.));
4844 } else {
4845 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the maximum of ", last->whichText(), U".");
4846 }
4847 }
4848 static void do_imincxx . . $ do_imin(49f6e7a06ebc5aa8). () {
4849 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4850 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4851 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 1,
4852 U"The function “imin” requires at least one argument.");
4853 const Stackelcxx . . $ Stackel# last = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4854 if (last->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4855 double minimum = last->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4856 double result = n->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4857 for (integercxx . . $ integer# j = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.) - 1; j > 0; j --) {
4858 Stackelcxx . . $ Stackel# previous = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4859 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (previous->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
4860 U"The function “imin” cannot mix a numeric argument with ", previous->whichText(), U".");
4861 if (isundefcxx . . $ isundef(f8197d536af80c96). (minimum) || isundefcxx . . $ isundef(f8197d536af80c96). (previous->numbercxx . . $ structStackel#$anonymous_type_0#number.)) {
4862 minimum = undefinedcxx . . $ undefined.;
4863 result = undefinedcxx . . $ undefined.;
4864 } else if (previous->numbercxx . . $ structStackel#$anonymous_type_0#number. < minimum) {
4865 minimum = previous->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4866 result = j;
4867 }
4868 }
4869 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
4870 } else if (last->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
4871 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
4872 U"The function “imin” requires exactly one vector argument.");
4873 const integercxx . . $ integer# numberOfElements = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
4874 integercxx . . $ integer# result = 1;
4875 double minimum = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).1];
4876 for (integercxx . . $ integer# i = 2; i <= numberOfElements; i ++) {
4877 if (last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i] < minimum) {
4878 result = i;
4879 minimum = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i];
4880 }
4881 }
4882 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
4883 } else {
4884 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the imin of ", last->whichText(), U".");
4885 }
4886 }
4887 static void do_imin_ecxx . . $ do_imin_e(49f6e7a06ebc5aa8). () {
4888 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4889 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4890 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 1,
4891 U"The function “imin_e” requires at least one argument.");
4892 const Stackelcxx . . $ Stackel# last = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4893 if (last->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4894 double minimum = last->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4895 double result = n->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4896 for (integercxx . . $ integer# j = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.) - 1; j > 0; j --) {
4897 Stackelcxx . . $ Stackel# previous = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4898 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (previous->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
4899 U"The function “imin_e” cannot mix a numeric argument with ", previous->whichText(), U".");
4900 if (isundefcxx . . $ isundef(f8197d536af80c96). (minimum) || isundefcxx . . $ isundef(f8197d536af80c96). (previous->numbercxx . . $ structStackel#$anonymous_type_0#number.)) {
4901 minimum = undefinedcxx . . $ undefined.;
4902 result = undefinedcxx . . $ undefined.;
4903 } else if (previous->numbercxx . . $ structStackel#$anonymous_type_0#number. < minimum) {
4904 minimum = previous->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4905 result = j;
4906 }
4907 }
4908 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
4909 } else if (last->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
4910 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
4911 U"The function “imin_e” requires exactly one vector argument.");
4912 const integercxx . . $ integer# numberOfElements = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
4913 integercxx . . $ integer# result = 1;
4914 double minimum = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).1];
4915 for (integercxx . . $ integer# i = 2; i <= numberOfElements; i ++) {
4916 if (last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i] < minimum) {
4917 result = i;
4918 minimum = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i];
4919 }
4920 }
4921 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
4922 } else {
4923 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the imin of ", last->whichText(), U".");
4924 }
4925 }
4926 static void do_imin_removeUndefinedcxx . . $ do_imin_removeUndefined(49f6e7a06ebc5aa8). () {
4927 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4928 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4929 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 1,
4930 U"The function “imin_removeUndefined” requires at least one argument.");
4931 const Stackelcxx . . $ Stackel# last = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4932 if (last->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4933 double minimum = last->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4934 double result = n->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4935 for (integercxx . . $ integer# j = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.) - 1; j > 0; j --) {
4936 Stackelcxx . . $ Stackel# previous = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4937 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (previous->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
4938 U"The function “imin_removeUndefined” cannot mix a numeric argument with ", previous->whichText(), U".");
4939 if (isundefcxx . . $ isundef(f8197d536af80c96). (minimum) || isundefcxx . . $ isundef(f8197d536af80c96). (previous->numbercxx . . $ structStackel#$anonymous_type_0#number.)) {
4940 minimum = undefinedcxx . . $ undefined.;
4941 result = undefinedcxx . . $ undefined.;
4942 } else if (previous->numbercxx . . $ structStackel#$anonymous_type_0#number. < minimum) {
4943 minimum = previous->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4944 result = j;
4945 }
4946 }
4947 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
4948 } else if (last->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
4949 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
4950 U"The function “imin_removeUndefined” requires exactly one vector argument.");
4951 const integercxx . . $ integer# numberOfElements = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
4952 integercxx . . $ integer# result = 1;
4953 double minimum = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).1];
4954 for (integercxx . . $ integer# i = 2; i <= numberOfElements; i ++) {
4955 if (last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i] < minimum) {
4956 result = i;
4957 minimum = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i];
4958 }
4959 }
4960 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
4961 } else {
4962 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the imin of ", last->whichText(), U".");
4963 }
4964 }
4965 static void do_imaxcxx . . $ do_imax(49f6e7a06ebc5aa8). () {
4966 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4967 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
4968 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 1,
4969 U"The function “imax” requires at least one argument.");
4970 const Stackelcxx . . $ Stackel# last = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4971 if (last->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
4972 double maximum = last->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4973 double result = n->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4974 for (integercxx . . $ integer# j = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.) - 1; j > 0; j --) {
4975 const Stackelcxx . . $ Stackel# previous = popcxx . . $ `sys/Formula.cpp:2387:9`!;
4976 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (previous->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
4977 U"The function “imax” cannot mix a numeric argument with ", previous->whichText(), U".");
4978 if (isundefcxx . . $ isundef(f8197d536af80c96). (maximum) || isundefcxx . . $ isundef(f8197d536af80c96). (previous->numbercxx . . $ structStackel#$anonymous_type_0#number.)) {
4979 maximum = undefinedcxx . . $ undefined.;
4980 result = undefinedcxx . . $ undefined.;
4981 } else if (previous->numbercxx . . $ structStackel#$anonymous_type_0#number. > maximum) {
4982 maximum = previous->numbercxx . . $ structStackel#$anonymous_type_0#number.;
4983 result = j;
4984 }
4985 }
4986 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
4987 } else if (last->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
4988 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
4989 U"The function “imax” requires exactly one vector argument.");
4990 const integercxx . . $ integer# numberOfElements = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
4991 integercxx . . $ integer# result = 1;
4992 double maximum = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).1];
4993 for (integercxx . . $ integer# i = 2; i <= numberOfElements; i ++) {
4994 if (last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i] > maximum) {
4995 result = i;
4996 maximum = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i];
4997 }
4998 }
4999 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
5000 } else {
5001 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the imax of ", last->whichText(), U".");
5002 }
5003 }
5004 static void do_imax_ecxx . . $ do_imax_e(49f6e7a06ebc5aa8). () {
5005 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5006 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5007 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 1,
5008 U"The function “imax_e” requires at least one argument.");
5009 const Stackelcxx . . $ Stackel# last = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5010 if (last->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
5011 double maximum = last->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5012 double result = n->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5013 for (integercxx . . $ integer# j = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.) - 1; j > 0; j --) {
5014 const Stackelcxx . . $ Stackel# previous = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5015 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (previous->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5016 U"The function “imax_e” cannot mix a numeric argument with ", previous->whichText(), U".");
5017 if (isundefcxx . . $ isundef(f8197d536af80c96). (maximum) || isundefcxx . . $ isundef(f8197d536af80c96). (previous->numbercxx . . $ structStackel#$anonymous_type_0#number.)) {
5018 maximum = undefinedcxx . . $ undefined.;
5019 result = undefinedcxx . . $ undefined.;
5020 } else if (previous->numbercxx . . $ structStackel#$anonymous_type_0#number. > maximum) {
5021 maximum = previous->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5022 result = j;
5023 }
5024 }
5025 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
5026 } else if (last->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
5027 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
5028 U"The function “imax_e” requires exactly one vector argument.");
5029 const integercxx . . $ integer# numberOfElements = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
5030 integercxx . . $ integer# result = 1;
5031 double maximum = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).1];
5032 for (integercxx . . $ integer# i = 2; i <= numberOfElements; i ++) {
5033 if (last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i] > maximum) {
5034 result = i;
5035 maximum = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i];
5036 }
5037 }
5038 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
5039 } else {
5040 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the imax of ", last->whichText(), U".");
5041 }
5042 }
5043 static void do_imax_removeUndefinedcxx . . $ do_imax_removeUndefined(49f6e7a06ebc5aa8). () {
5044 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5045 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5046 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 1,
5047 U"The function “imax_removeUndefined” requires at least one argument.");
5048 const Stackelcxx . . $ Stackel# last = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5049 if (last->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
5050 double maximum = last->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5051 double result = n->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5052 for (integercxx . . $ integer# j = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.) - 1; j > 0; j --) {
5053 const Stackelcxx . . $ Stackel# previous = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5054 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (previous->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5055 U"The function “imax_removeUndefined” cannot mix a numeric argument with ", previous->whichText(), U".");
5056 if (isundefcxx . . $ isundef(f8197d536af80c96). (maximum) || isundefcxx . . $ isundef(f8197d536af80c96). (previous->numbercxx . . $ structStackel#$anonymous_type_0#number.)) {
5057 maximum = undefinedcxx . . $ undefined.;
5058 result = undefinedcxx . . $ undefined.;
5059 } else if (previous->numbercxx . . $ structStackel#$anonymous_type_0#number. > maximum) {
5060 maximum = previous->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5061 result = j;
5062 }
5063 }
5064 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
5065 } else if (last->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
5066 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
5067 U"The function “imax_removeUndefined” requires exactly one vector argument.");
5068 const integercxx . . $ integer# numberOfElements = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
5069 integercxx . . $ integer# result = 1;
5070 double maximum = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).1];
5071 for (integercxx . . $ integer# i = 2; i <= numberOfElements; i ++) {
5072 if (last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i] > maximum) {
5073 result = i;
5074 maximum = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i];
5075 }
5076 }
5077 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
5078 } else {
5079 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the imax of ", last->whichText(), U".");
5080 }
5081 }
5082 static void do_quantilecxx . . $ do_quantile(49f6e7a06ebc5aa8). () {
5083 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5084 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5085 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 2,
5086 U"The function “quantile” requires two arguments, not ", n->number, U".");
5087 const Stackelcxx . . $ Stackel# quantile = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5088 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (quantile->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5089 U"The second argument to “quantile” should be a number, not ", quantile->which, U".");
5090 const Stackelcxx . . $ Stackel# vec = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5091 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (vec->which == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!,
5092 U"The first argument to “quantile” should be a numeric vector, not ", vec->which, U".");
5093 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMquantilecxx . . $ NUMquantile(885a97927582bd48). (veccxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., quantile->numbercxx . . $ structStackel#$anonymous_type_0#number.));
5094 }
5095 static void do_normcxx . . $ do_norm(49f6e7a06ebc5aa8). () {
5096 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5097 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5098 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1 || n->number == 2,
5099 U"The function “norm” requires one or two arguments.");
5100 double powerNumber = 2.0;
5101 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 2) {
5102 const Stackelcxx . . $ Stackel# power = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5103 if (power->whichcxx . . $ structStackel#which. != Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
5104 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The second argument to “norm” should be a number, not ", power->whichText(), U".");
5105 powerNumber = power->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5106 }
5107 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5108 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
5109 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMnormcxx . . $ NUMnorm(885a97927582bd48). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., powerNumber));
5110 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
5111 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMnormcxx . . $ NUMnorm(e5abd6d02bcd8f8). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., powerNumber));
5112 } else {
5113 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot compute the norm of ", x->whichText(), U".");
5114 }
5115 }
5116 static void do_zero_VECcxx . . $ do_zero_VEC(49f6e7a06ebc5aa8). () {
5117 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5118 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5119 const integercxx . . $ integer# rank = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5120 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (rank >= 1,
5121 U"The function “zero#” requires an argument.");
5122 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (rank <= 1,
5123 U"The function “zero#” cannot have more than one argument (consider using zero##).");
5124 const Stackelcxx . . $ Stackel# nelem = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5125 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (nelem->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5126 U"In the function “zero#”, the number of elements should be a number, not ", nelem->whichText(), U".");
5127 const double numberOfElements = nelem->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5128 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (isdefined (numberOfElements),
5129 U"In the function “zero#”, the number of elements is undefined.");
5130 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (numberOfElements >= 0.0,
5131 U"In the function “zero#”, the number of elements should not be negative.");
5132 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (zero_VECcxx . . $ zero_VEC(e4395f764b859b1e). (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (numberOfElements)));
5133 }
5134 static void do_zero_MATcxx . . $ do_zero_MAT(49f6e7a06ebc5aa8). () {
5135 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5136 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5137 const integercxx . . $ integer# rank = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5138 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (rank == 2,
5139 U"The function “zero##” requires two arguments.");
5140 const Stackelcxx . . $ Stackel# ncol = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5141 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (ncol->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5142 U"In the function “zero##”, the number of columns should be a number, not ", ncol->whichText(), U".");
5143 const double numberOfColumns = ncol->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5144 const Stackelcxx . . $ Stackel# nrow = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5145 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (nrow->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5146 U"In the function “zero##”, the number of rows should be a number, not ", nrow->whichText(), U".");
5147 const double numberOfRows = nrow->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5148 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (isdefined (numberOfRows),
5149 U"In the function “zero##”, the number of rows is undefined.");
5150 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (isdefined (numberOfColumns),
5151 U"In the function “zero##”, the number of columns is undefined.");
5152 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (numberOfRows >= 0.0,
5153 U"In the function “zero##”, the number of rows should not be negative.");
5154 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (numberOfColumns >= 0.0,
5155 U"In the function “zero##”, the number of columns should not be negative.");
5156 autoMATcxx . . $ autoMAT# result = zero_MATcxx . . $ zero_MAT(3d09731056d2b97d). (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (numberOfRows), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (numberOfColumns));
5157 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (resultcxx . . $ automatrix#automatrix(a69681c49ef9c9eb)..movecxx . . $ automatrix#move(8771494f681de611).());
5158 }
5159 static void do_linear_VECcxx . . $ do_linear_VEC(49f6e7a06ebc5aa8). () {
5160 const Stackelcxx . . $ Stackel# stackel_narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5161 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (stackel_narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5162 const integercxx . . $ integer# narg = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (stackel_narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5163 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg == 3 || narg == 4,
5164 U"The function “linear#” requires three or four arguments.");
5165 bool excludeEdges = false; // default
5166 if (narg == 4) {
5167 Stackelcxx . . $ Stackel# stack_excludeEdges = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5168 if (stack_excludeEdges->whichcxx . . $ structStackel#which. != Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
5169 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"In the function “linear#”, the edge exclusion flag (fourth argument) should be a number, not ", stack_excludeEdges->whichText(), U".");
5170 excludeEdges = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (stack_excludeEdges->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5171 }
5172 const Stackelcxx . . $ Stackel# stack_numberOfSteps = popcxx . . $ `sys/Formula.cpp:2387:9`!, stack_maximum = popcxx . . $ `sys/Formula.cpp:2387:9`!, stack_minimum = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5173 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (stack_minimum -> which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5174 U"In the function “linear#”, the minimum (first argument) should be a number, not ", stack_minimum->whichText(), U".");
5175 const double minimum = stack_minimum->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5176 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (isdefined (minimum),
5177 U"Undefined minimum in the function “linear#” (first argument).");
5178 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (stack_maximum->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5179 U"In the function “linear#”, the maximum (second argument) should be a number, not ", stack_maximum->whichText(), U".");
5180 const double maximum = stack_maximum->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5181 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (isdefined (maximum),
5182 U"Undefined maximum in the function “linear#” (second argument).");
5183 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (maximum >= minimum,
5184 U"Maximum (", maximum, U") smaller than minimum (", minimum, U") in function “linear#”.");
5185 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (stack_numberOfSteps -> which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5186 U"In the function “linear#”, the number of steps (third argument) should be a number, not ", stack_numberOfSteps->whichText(), U".");
5187 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (isdefined (stack_numberOfSteps->number),
5188 U"Undefined number of steps in the function “linear#” (third argument).");
5189 const integercxx . . $ integer# numberOfSteps = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (stack_numberOfSteps->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5190 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (numberOfSteps > 0,
5191 U"In the function “linear#”, the number of steps (third argument) should be positive, not ", numberOfSteps, U".");
5192 autoVECcxx . . $ autoVEC# result = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (numberOfSteps);
5193 for (integercxx . . $ integer# ielem = 1; ielem <= numberOfSteps; ielem ++) {
5194 result [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).ielem] = excludeEdges ?
5195 minimum + (ielem - 0.5) * (maximum - minimum) / numberOfSteps :
5196 minimum + (ielem - 1) * (maximum - minimum) / (numberOfSteps - 1);
5197 }
5198 if (! excludeEdges)
5199 result [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).numberOfSteps] = maximum; // remove rounding problems
5200 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
5201 }
5202 static void do_to_VECcxx . . $ do_to_VEC(49f6e7a06ebc5aa8). () {
5203 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5204 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5205 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5206 U"The function to#() requires one argument.");
5207 const Stackelcxx . . $ Stackel# to = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5208 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (to->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5209 U"In the function “to#”, the argument should be a number, not ", to->whichText(), U".");
5210 autoVECcxx . . $ autoVEC# result = to_VECcxx . . $ to_VEC(5c642365c0b1e00d). (to->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5211 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
5212 }
5213 static void do_from_to_VECcxx . . $ do_from_to_VEC(49f6e7a06ebc5aa8). () {
5214 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5215 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5216 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 2,
5217 U"The function “from_to#” requires two arguments.");
5218 const Stackelcxx . . $ Stackel# to = popcxx . . $ `sys/Formula.cpp:2387:9`!, from = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5219 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (from->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5220 U"In the function “from_to#”, the first argument should be a number, not ", from->whichText(), U".");
5221 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (to->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5222 U"In the function “from_to#”, the second argument should be a number, not ", to->whichText(), U".");
5223 autoVECcxx . . $ autoVEC# result = from_to_VECcxx . . $ from_to_VEC(bb39e454971b6b6b). (from->numbercxx . . $ structStackel#$anonymous_type_0#number., to->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5224 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
5225 }
5226 static void do_from_to_by_VECcxx . . $ do_from_to_by_VEC(49f6e7a06ebc5aa8). () {
5227 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5228 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5229 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 3,
5230 U"The function “from_to_by#” requires three arguments.");
5231 const Stackelcxx . . $ Stackel# by = popcxx . . $ `sys/Formula.cpp:2387:9`!, to = popcxx . . $ `sys/Formula.cpp:2387:9`!, from = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5232 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (from->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5233 U"In the function “from_to_by#”, the first argument should be a number, not ", from->whichText(), U".");
5234 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (to->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5235 U"In the function “from_to_by#”, the second argument should be a number, not ", to->whichText(), U".");
5236 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (by->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5237 U"In the function “from_to_by#”, the third argument should be a number (the step), not ", by->whichText(), U".");
5238 autoVECcxx . . $ autoVEC# result = from_to_by_VECcxx . . $ from_to_by_VEC(c9230c0f16871aa6). (from->numbercxx . . $ structStackel#$anonymous_type_0#number., to->numbercxx . . $ structStackel#$anonymous_type_0#number., by->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5239 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
5240 }
5241 static void do_from_to_count_VECcxx . . $ do_from_to_count_VEC(49f6e7a06ebc5aa8). () {
5242 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5243 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5244 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 3,
5245 U"The function “from_to_count#” requires three arguments.");
5246 const Stackelcxx . . $ Stackel# count = popcxx . . $ `sys/Formula.cpp:2387:9`!, to = popcxx . . $ `sys/Formula.cpp:2387:9`!, from = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5247 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (from->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5248 U"In the function “from_to_count#”, the first argument should be a number, not ", from->whichText(), U".");
5249 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (to->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5250 U"In the function “from_to_count#”, the second argument should be a number, not ", to->whichText(), U".");
5251 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (count->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5252 U"In the function “from_to_count#”, the third argument should be a number (the count), not ", count->whichText(), U".");
5253 autoVECcxx . . $ autoVEC# result = from_to_count_VECcxx . . $ from_to_count_VEC(628d1e52f0365a5a). (from->numbercxx . . $ structStackel#$anonymous_type_0#number., to->numbercxx . . $ structStackel#$anonymous_type_0#number., Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (count->numbercxx . . $ structStackel#$anonymous_type_0#number.));
5254 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
5255 }
5256 static void do_between_by_VECcxx . . $ do_between_by_VEC(49f6e7a06ebc5aa8). () {
5257 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5258 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5259 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 3,
5260 U"The function “between_by#” requires three arguments.");
5261 const Stackelcxx . . $ Stackel# by = popcxx . . $ `sys/Formula.cpp:2387:9`!, to = popcxx . . $ `sys/Formula.cpp:2387:9`!, from = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5262 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (from->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5263 U"In the function “between_by#”, the first argument should be a number, not ", from->whichText(), U".");
5264 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (to->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5265 U"In the function “between_by#”, the second argument should be a number, not ", to->whichText(), U".");
5266 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (by->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5267 U"In the function “between_by#”, the third argument should be a number (the step), not ", by->whichText(), U".");
5268 autoVECcxx . . $ autoVEC# result = between_by_VECcxx . . $ between_by_VEC(c9230c0f16871aa6). (from->numbercxx . . $ structStackel#$anonymous_type_0#number., to->numbercxx . . $ structStackel#$anonymous_type_0#number., by->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5269 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
5270 }
5271 static void do_between_count_VECcxx . . $ do_between_count_VEC(49f6e7a06ebc5aa8). () {
5272 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5273 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5274 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 3,
5275 U"The function “between_count#” requires three arguments.");
5276 const Stackelcxx . . $ Stackel# count = popcxx . . $ `sys/Formula.cpp:2387:9`!, to = popcxx . . $ `sys/Formula.cpp:2387:9`!, from = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5277 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (from->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5278 U"In the function “between_count#”, the first argument should be a number, not ", from->whichText(), U".");
5279 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (to->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5280 U"In the function “between_count#”, the second argument should be a number, not ", to->whichText(), U".");
5281 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (count->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5282 U"In the function “between_count#”, the third argument should be a number (the count), not ", count->whichText(), U".");
5283 autoVECcxx . . $ autoVEC# result = between_count_VECcxx . . $ between_count_VEC(628d1e52f0365a5a). (from->numbercxx . . $ structStackel#$anonymous_type_0#number., to->numbercxx . . $ structStackel#$anonymous_type_0#number., Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (count->numbercxx . . $ structStackel#$anonymous_type_0#number.));
5284 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
5285 }
5286 static void do_sort_VECcxx . . $ do_sort_VEC(49f6e7a06ebc5aa8). () {
5287 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5288 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5289 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5290 U"The function “sort#” requires one argument, namely a vector.");
5291 const Stackelcxx . . $ Stackel# vec = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5292 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (vec->which == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!,
5293 U"The argument of the function “sort#” should be a numeric vector, not ", vec->whichText(), U".");
5294 autoVECcxx . . $ autoVEC# result = sort_e_VECcxx . . $ sort_e_VEC(d4415e68b25283a8). (veccxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.);
5295 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
5296 }
5297 static void do_sort_removeUndefined_VECcxx . . $ do_sort_removeUndefined_VEC(49f6e7a06ebc5aa8). () {
5298 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5299 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5300 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5301 U"The function “sort_removeUndefined#” requires one argument, namely a vector.");
5302 const Stackelcxx . . $ Stackel# vec = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5303 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (vec->which == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!,
5304 U"The argument of the function “sort_removeUndefined#” should be a numeric vector, not ", vec->whichText(), U".");
5305 autoVECcxx . . $ autoVEC# result = sort_removeUndefined_VECcxx . . $ sort_removeUndefined_VEC(d4415e68b25283a8). (veccxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.);
5306 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
5307 }
5308 static void do_sort_STRVECcxx . . $ do_sort_STRVEC(49f6e7a06ebc5aa8). () {
5309 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5310 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5311 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5312 U"The function “sort$#” requires one argument, namely a string array.");
5313 const Stackelcxx . . $ Stackel# strvec = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5314 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (strvec->which == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!,
5315 U"The argument of the function “sort$#” should be a string array, not ", strvec->whichText(), U".");
5316 autoSTRVECcxx . . $ autoSTRVEC# result = sort_STRVECcxx . . $ sort_STRVEC(6a8a775aea9c867b). (strvec->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray.);
5317 pushStringVectorcxx . . $ pushStringVector(c1f8ac1f3abfc6e2). (resultcxx . . $ _autostringautovector#_autostringautovector(f820baba8b4ac957)..movecxx . . $ _autostringautovector#move(5fcb5f1929a10d2a).());
5318 }
5319 static void do_sort_numberAware_STRVECcxx . . $ do_sort_numberAware_STRVEC(49f6e7a06ebc5aa8). () {
5320 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5321 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5322 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5323 U"The function “sort_numberAware$#” requires one argument, namely a string array.");
5324 const Stackelcxx . . $ Stackel# strvec = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5325 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (strvec->which == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!,
5326 U"The argument of the function “sort_numberAware$#” should be a string array, not ", strvec->whichText(), U".");
5327 autoSTRVECcxx . . $ autoSTRVEC# result = sort_numberAware_STRVECcxx . . $ sort_numberAware_STRVEC(6a8a775aea9c867b). (strvec->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray.);
5328 pushStringVectorcxx . . $ pushStringVector(c1f8ac1f3abfc6e2). (resultcxx . . $ _autostringautovector#_autostringautovector(f820baba8b4ac957)..movecxx . . $ _autostringautovector#move(5fcb5f1929a10d2a).());
5329 }
5330 static void do_shuffle_VECcxx . . $ do_shuffle_VEC(49f6e7a06ebc5aa8). () {
5331 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5332 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5333 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5334 U"The function “shuffle#” requires one argument, namely a vector.");
5335 const Stackelcxx . . $ Stackel# vec = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5336 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (vec->which == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!,
5337 U"The argument of the function “shuffle#” should be a numeric vector, not ", vec->whichText(), U".");
5338 autoVECcxx . . $ autoVEC# result = shuffle_VECcxx . . $ shuffle_VEC(d4415e68b25283a8). (veccxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.);
5339 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
5340 }
5341 static void do_shuffle_STRVECcxx . . $ do_shuffle_STRVEC(49f6e7a06ebc5aa8). () {
5342 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5343 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5344 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5345 U"The function “shuffle$#” requires one argument, namely a string array.");
5346 const Stackelcxx . . $ Stackel# strvec = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5347 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (strvec->which == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!,
5348 U"The argument of the function “shuffle$#” should be a string array, not ", strvec->whichText(), U".");
5349 autoSTRVECcxx . . $ autoSTRVEC# result = shuffle_STRVECcxx . . $ shuffle_STRVEC(6a8a775aea9c867b). (strvec->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray.);
5350 pushStringVectorcxx . . $ pushStringVector(c1f8ac1f3abfc6e2). (resultcxx . . $ _autostringautovector#_autostringautovector(f820baba8b4ac957)..movecxx . . $ _autostringautovector#move(5fcb5f1929a10d2a).());
5351 }
5352 static void do_peaks_MATcxx . . $ do_peaks_MAT(49f6e7a06ebc5aa8). () {
5353 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5354 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5355 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 4,
5356 U"The function peaks## requires four arguments (vector, edges, interpolation, sortByHeight).");
5357 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5358 if (s->whichcxx . . $ structStackel#which. != Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
5359 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The fourth argument to peaks## should be a number, not ", s->whichText(), U".");
5360 bool sortByHeight = s->numbercxx . . $ structStackel#$anonymous_type_0#number. != 0.0;
5361 const Stackelcxx . . $ Stackel# i = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5362 if (i->whichcxx . . $ structStackel#which. != Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
5363 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The third argument to peaks## should be a number, not ", i->whichText(), U".");
5364 integercxx . . $ integer# interpolation = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (i->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5365 const Stackelcxx . . $ Stackel# e = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5366 if (e->whichcxx . . $ structStackel#which. != Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
5367 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The second argument to peaks## should be a number, not ", e->whichText(), U".");
5368 bool includeEdges = e->numbercxx . . $ structStackel#$anonymous_type_0#number. != 0.0;
5369 const Stackelcxx . . $ Stackel# vec = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5370 if (vec->whichcxx . . $ structStackel#which. != Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!)
5371 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The first argument to peaks## should be a numeric vector, not ", vec->whichText(), U".");
5372 autoMATcxx . . $ autoMAT# result = peaks_MATcxx . . $ peaks_MAT(b652fed2c7f40ff3). (veccxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., includeEdges, interpolation, sortByHeight);
5373 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (resultcxx . . $ automatrix#automatrix(a69681c49ef9c9eb)..movecxx . . $ automatrix#move(8771494f681de611).());
5374 }
5375 static void do_sizecxx . . $ do_size(49f6e7a06ebc5aa8). () {
5376 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5377 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5378 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5379 U"The function “size” requires one (vector) argument.");
5380 const Stackelcxx . . $ Stackel# array = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5381 if (array->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
5382 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (array->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.);
5383 } else if (array->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!) {
5384 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (array->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray..sizecxx . . $ _stringvector#size.);
5385 } else {
5386 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function size requires a vector argument, not ", array->whichText(), U".");
5387 }
5388 }
5389 static void do_numberOfRowscxx . . $ do_numberOfRows(49f6e7a06ebc5aa8). () {
5390 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5391 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5392 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5393 U"The function “numberOfRows” requires one argument, namely a matrix.");
5394 const Stackelcxx . . $ Stackel# array = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5395 if (array->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
5396 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (array->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.);
5397 } else {
5398 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
5399 U" requires a matrix argument, not ", array->whichText(), U".");
5400 }
5401 }
5402 static void do_numberOfColumnscxx . . $ do_numberOfColumns(49f6e7a06ebc5aa8). () {
5403 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5404 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5405 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5406 U"The function “numberOfColumns” requires one argument, namely a matrix.");
5407 const Stackelcxx . . $ Stackel# array = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5408 if (array->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
5409 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (array->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.);
5410 } else {
5411 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function ", Formula_instructionNames [parse [programPointer]. symbol],
5412 U" requires a matrix argument, not ", array->whichText(), U".");
5413 }
5414 }
5415 static void do_combine_VECcxx . . $ do_combine_VEC(49f6e7a06ebc5aa8). () {
5416 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5417 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5418 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5419 stackPointercxx . . $ stackPointer. -= numberOfArguments;
5420 integercxx . . $ integer# elementCounter = 0;
5421 for (integercxx . . $ integer# iarg = 1; iarg <= numberOfArguments; iarg ++) {
5422 const Stackelcxx . . $ Stackel# arg = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + iarg];
5423 if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
5424 elementCounter += 1;
5425 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
5426 elementCounter += arg->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
5427 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
5428 elementCounter += arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow. * arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.;
5429 } else {
5430 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “combine#” only takes numbers, vectors and matrices,"
5431 " not ", arg->whichText(), U".");
5432 }
5433 }
5434 autoVECcxx . . $ autoVEC# result = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (elementCounter);
5435 integercxx . . $ integer# elementIterator = 0;
5436 for (integercxx . . $ integer# iarg = 1; iarg <= numberOfArguments; iarg ++) {
5437 const Stackelcxx . . $ Stackel# arg = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + iarg];
5438 if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
5439 result [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).++ elementIterator] = arg->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5440 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
5441 for (integercxx . . $ integer# i = 1; i <= arg->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.; i ++)
5442 result [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).++ elementIterator] = arg->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).i];
5443 } else if (arg->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
5444 for (integercxx . . $ integer# irow = 1; irow <= arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.; irow ++)
5445 for (integercxx . . $ integer# icol = 1; icol <= arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.; icol ++)
5446 result [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).++ elementIterator] = arg->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. [cxx . . $ matrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icol];
5447 } else {
5448 Melder_crashcxx . . $ `melder/melder_error.h:98:9`! (U"do_combine_VEC should never arrive here.");
5449 }
5450 }
5451 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
5452 }
5453 static void do_blake3_VECcxx . . $ do_blake3_VEC(49f6e7a06ebc5aa8). () {
5454 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5455 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5456 const integercxx . . $ integer# numberOfArguments = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5457 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5458 U"The function “blake3#” requires exactly one argument (namely a matrix), not the ", narg->number, U" given.");
5459 const Stackelcxx . . $ Stackel# arg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5460 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (arg->which == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!,
5461 U"The argument of the function “blake3#” should be a numeric matrix, not ", arg->whichText(), U".");
5462 const constMATcxx . . $ constMAT# mat = argcxx . . $ constmatrix#constmatrix(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
5463 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (blake3_VECcxx . . $ blake3_VEC(81359d2d5440d947). (matcxx . . $ constmatrixview#constmatrixview(5fba671ea590c05b).));
5464 }
5465 static void do_part_VECcxx . . $ do_part_VEC(49f6e7a06ebc5aa8). () {
5466 /*
5467 Check the number of arguments: always 3.
5468 */
5469 const Stackelcxx . . $ Stackel# s_narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5470 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (s_narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5471 const integercxx . . $ integer# narg = s_narg->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5472 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg == 3,
5473 U"The function “part#” requires exactly three arguments (namely a vector, a starting index, and an end index), not the ", narg, U" given.");
5474 /*
5475 Check the types of the arguments: always vector, number, number.
5476 */
5477 const Stackelcxx . . $ Stackel# s_last = popcxx . . $ `sys/Formula.cpp:2387:9`!, s_first = popcxx . . $ `sys/Formula.cpp:2387:9`!, s_vec = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5478 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (s_vec->which == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!,
5479 U"The first argument of the function “part#” should be a numeric vector, not ", s_vec->whichText(), U".");
5480 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (s_first->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5481 U"The second argument of the function “part#” should be a number (the starting index), not ", s_first->whichText(), U".");
5482 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (s_last->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5483 U"The third argument of the function “part#” should be a number (the end index), not ", s_last->whichText(), U".");
5484 /*
5485 Check the preconditions of the arguments.
5486 */
5487 const constVECcxx . . $ constVEC# vec = s_veccxx . . $ constvector#constvector(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
5488 const integercxx . . $ integer# numberOfElements = vec.sizecxx . . $ constvector#size.;
5489 const integercxx . . $ integer# first = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (s_first->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5490 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (first > 0,
5491 U"The second argument of the function “part#” (the starting index) should (after rounding) be a positive whole number, not ", first, U".");
5492 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (first <= numberOfElements,
5493 U"The second argument of the function “part#” (the starting index) should (after rounding) be at most the number of elements (",
5494 numberOfElements, U"), not ", first, U"."
5495 );
5496 const integercxx . . $ integer# last = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (s_last->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5497 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (last > 0,
5498 U"The third argument of the function “part#” (the end index) should (after rounding) be a positive whole number, not ", last, U".");
5499 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (last <= numberOfElements,
5500 U"The third argument of the function “part#” (the end index) should (after rounding) be at most the number of elements (",
5501 numberOfElements, U"), not ", last, U"."
5502 );
5503
5504 const integercxx . . $ integer# newSize = last - (first - 1);
5505 if (newSize > 0)
5506 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (copy_VECcxx . . $ copy_VEC(d4415e68b25283a8). (veccxx . . $ constvectorview#constvectorview(fc39adb4395e9baf)..partcxx . . $ constvector#part(e8ca93054b46a634). (first, last)));
5507 else
5508 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (autoVECcxx . . $ autovector#autovector(49f6e7a06ebc5aa8). ());
5509 }
5510 static void do_part_MATcxx . . $ do_part_MAT(49f6e7a06ebc5aa8). () {
5511 /*
5512 Check the number of arguments: always 5.
5513 */
5514 const Stackelcxx . . $ Stackel# s_narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5515 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (s_narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5516 const integercxx . . $ integer# narg = s_narg->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5517 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg == 5,
5518 U"The function “part##” requires exactly five arguments (namely a matrix, a starting row, an end row, a starting column, and an end column), not the ", narg, U" given..");
5519 /*
5520 Check the types of the arguments: always matrix, number, number, number, number.
5521 */
5522 const Stackelcxx . . $ Stackel# s_endColumn = popcxx . . $ `sys/Formula.cpp:2387:9`!, s_startingColumn = popcxx . . $ `sys/Formula.cpp:2387:9`!, s_endRow = popcxx . . $ `sys/Formula.cpp:2387:9`!, s_startingRow = popcxx . . $ `sys/Formula.cpp:2387:9`!, s_mat = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5523 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (s_mat->which == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!,
5524 U"The first argument of the function “part##” should be a numeric matrix, not ", s_mat->whichText(), U".");
5525 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (s_startingRow->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5526 U"The second argument of the function “part##” should be a number (the starting row), not ", s_startingRow->whichText(), U".");
5527 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (s_endRow->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5528 U"The third argument of the function “part##” should be a number (the end row), not ", s_endRow->whichText(), U".");
5529 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (s_startingColumn->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5530 U"The fourth argument of the function “part##” should be a number (the starting column), not ", s_startingColumn->whichText(), U".");
5531 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (s_endColumn->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5532 U"The fifth argument of the function “part##” should be a number (the end column), not ", s_endColumn->whichText(), U".");
5533 /*
5534 Check the preconditions of the arguments.
5535 */
5536 const constMATcxx . . $ constMAT# mat = s_matcxx . . $ constmatrix#constmatrix(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
5537 const integercxx . . $ integer# numberOfRows = mat.nrowcxx . . $ constmatrix#nrow., numberOfColumns = mat.ncolcxx . . $ constmatrix#ncol.;
5538 const integercxx . . $ integer# startingRow = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (s_startingRow->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5539 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (startingRow > 0,
5540 U"The second argument of the function “part##” (the starting row) should (after rounding) be a positive whole number, not ", startingRow, U".");
5541 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (startingRow <= numberOfRows,
5542 U"The second argument of the function “part##” (the starting row) should (after rounding) be at most the number of rows (",
5543 numberOfRows, U"), not ", startingRow, U"."
5544 );
5545 const integercxx . . $ integer# endRow = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (s_endRow->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5546 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (endRow > 0,
5547 U"The third argument of the function “part##” (the end row) should (after rounding) be a positive whole number, not ", endRow, U".");
5548 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (endRow <= numberOfRows,
5549 U"The third argument of the function “part##” (the end row) should (after rounding) be at most the number of rows (",
5550 numberOfRows, U"), not ", endRow, U"."
5551 );
5552 const integercxx . . $ integer# startingColumn = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (s_startingColumn->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5553 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (startingColumn > 0,
5554 U"The fourth argument of the function “part##” (the starting column) should (after rounding) be a positive whole number, not ", startingColumn, U".");
5555 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (startingColumn <= numberOfColumns,
5556 U"The fourth argument of the function “part##” (the starting column) should (after rounding) be at most the number of columns (",
5557 numberOfColumns, U"), not ", startingColumn, U"."
5558 );
5559 const integercxx . . $ integer# endColumn = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (s_endColumn->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5560 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (endColumn > 0,
5561 U"The fifth argument of the function “part##” (the end column) should (after rounding) be a positive whole number, not ", endColumn, U".");
5562 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (endColumn <= numberOfColumns,
5563 U"The fifth argument of the function “part##” (the end column) should (after rounding) be at most the number of columns (",
5564 numberOfColumns, U"), not ", endColumn, U"."
5565 );
5566 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (copy_MATcxx . . $ copy_MAT(a392b09ce3fc3972). (mat.partcxx . . $ constmatrix#part(9d55c0ae14ebef75). (startingRow, endRow, startingColumn, endColumn)));
5567 }
5568 static void do_editorcxx . . $ do_editor(49f6e7a06ebc5aa8). () {
5569 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5570 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5571 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 0) {
5572 /*
5573 No editor mentioned, so switch back to the already existing editor.
5574 */
5575 if (theInterpretercxx . . $ theInterpreter. && theInterpretercxx . . $ theInterpreter. -> wasStartedFromEditorEnvironmentcxx . . $ structInterpreter#wasStartedFromEditorEnvironment(77ce49a7840d23c7).())
5576 theInterpretercxx . . $ theInterpreter. -> setDynamicFromOwningEditorEnvironmentcxx . . $ structInterpreter#setDynamicFromOwningEditorEnvironment(ced63f7c635d850d). ();
5577 else
5578 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “editor” requires an argument when called from outside an editor.");
5579 } else if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
5580 const Stackelcxx . . $ Stackel# editor = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5581 if (editor->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
5582 theInterpretercxx . . $ theInterpreter. -> setDynamicEditorEnvironmentFromEditorcxx . . $ structInterpreter#setDynamicEditorEnvironmentFromEditor(804f629ae7a06da5). (praat_findEditorFromStringcxx . . $ praat_findEditorFromString(2ddda295cd13730e). (editor->getStringcxx . . $ structStackel#getString(1912f6684645c851).()));
5583 } else if (editor->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
5584 theInterpretercxx . . $ theInterpreter. -> setDynamicEditorEnvironmentFromEditorcxx . . $ structInterpreter#setDynamicEditorEnvironmentFromEditor(804f629ae7a06da5). (praat_findEditorByIdcxx . . $ praat_findEditorById(bbc190b40656db0d). (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (editor->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
5585 } else {
5586 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “editor” requires a numeric or string argument, not ", editor->whichText(), U".");
5587 }
5588 } else {
5589 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “editor” requires 0 or 1 arguments, not ", narg->number, U".");
5590 }
5591 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
5592 }
5593 static void do_random_initializeWithSeedUnsafelyButPredictablycxx . . $ do_random_initializeWithSeedUnsafelyButPredictably(49f6e7a06ebc5aa8). () {
5594 /*@praat
5595 #
5596 # A published test: the 10,000th element of the default 64-bit Mersenne Twister random sequence
5597 # should be 9'981'545'732'273'789'042.
5598 #
5599 random_initializeWithSeedUnsafelyButPredictably (5489)
5600 for i to 10000
5601 a = randomUniform (0, 1)
5602 endfor
5603 random_initializeSafelyAndUnpredictably ()
5604 a *= 2 ^ 64
5605 roundingError = a - 9981545732273789042
5606 writeInfoLine: fixed$ (a, 0), " ", roundingError
5607 assert roundingError <= 2048 ; actually usually zero
5608 @*/
5609 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5610 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
5611 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5612 if (s->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
5613 const double seed = s->numbercxx . . $ structStackel#$anonymous_type_0#number.;
5614 if (seed < 0.0 || seed > double (INT54_MAXcxx . . $ `melder/melder_int.h:60:10`!))
5615 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"For the function “random_initializeWithSeedUnsafelyButPredictably”, "
5616 "the seed should be between 0 and ", double (INT54_MAXcxx . . $ `melder/melder_int.h:60:10`!), U".");
5617 NUMrandom_initializeWithSeedUnsafelyButPredictablycxx . . $ NUMrandom_initializeWithSeedUnsafelyButPredictably(2c44cd906ae4e829). (uint64cxx . . $ uint64# (roundcxx . . $ round(fee4f1d22bc8e617). (seed)));
5618 } else {
5619 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “hash” requires a string, not ", s->whichText(), U".");
5620 }
5621 } else {
5622 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “random_initializeWithSeedUnsafelyButPredictably” requires 1 argument (the seed), not ", narg->number, U".");
5623 }
5624 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
5625 }
5626 static void do_random_initializeSafelyAndUnpredictablycxx . . $ do_random_initializeSafelyAndUnpredictably(49f6e7a06ebc5aa8). () {
5627 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5628 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 0,
5629 U"The function “random_initializeSafelyAndUnpredictably” requires 0 arguments, not ", narg->number, U".");
5630 NUMrandom_initializeSafelyAndUnpredictablycxx . . $ NUMrandom_initializeSafelyAndUnpredictably(49f6e7a06ebc5aa8). ();
5631 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
5632 }
5633 static void do_hashcxx . . $ do_hash(49f6e7a06ebc5aa8). () {
5634 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5635 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5636 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
5637 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5638 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
5639 const double result = NUMhashStringcxx . . $ NUMhashString(b796fbb641f7a7a8). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5640 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
5641 } else {
5642 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “hash” requires a string, not ", s->whichText(), U".");
5643 }
5644 } else {
5645 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “hash” requires 1 argument, not ", narg->number, U".");
5646 }
5647 }
5648 static void do_hex_STRcxx . . $ do_hex_STR(49f6e7a06ebc5aa8). () {
5649 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5650 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5651 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
5652 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5653 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
5654 autostring32cxx . . $ autostring32# result = hex_STRcxx . . $ hex_STR(f3b5e12a66e309ab). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5655 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
5656 } else {
5657 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “hex$” requires a string, not ", s->whichText(), U".");
5658 }
5659 } else if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 2) {
5660 const Stackelcxx . . $ Stackel# k = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5661 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && k->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
5662 autostring32cxx . . $ autostring32# result = hex_STRcxx . . $ hex_STR(f3b5e12a66e309ab). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), uint64cxx . . $ uint64# (roundcxx . . $ round(fee4f1d22bc8e617). (k->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
5663 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
5664 } else {
5665 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “hex$” requires a string and a number, not ", s->whichText(), U".");
5666 }
5667 } else {
5668 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “hex$” requires 1 or 2 arguments, not ", narg->number, U".");
5669 }
5670 }
5671 static void do_unhex_STRcxx . . $ do_unhex_STR(49f6e7a06ebc5aa8). () {
5672 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5673 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5674 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
5675 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5676 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
5677 autostring32cxx . . $ autostring32# result = unhex_STRcxx . . $ unhex_STR(f3b5e12a66e309ab). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5678 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
5679 } else {
5680 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “unhex$” requires a string, not ", s->whichText(), U".");
5681 }
5682 } else if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 2) {
5683 const Stackelcxx . . $ Stackel# k = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5684 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && k->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
5685 autostring32cxx . . $ autostring32# result = unhex_STRcxx . . $ unhex_STR(f3b5e12a66e309ab). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), uint64cxx . . $ uint64# (roundcxx . . $ round(fee4f1d22bc8e617). (k->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
5686 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
5687 } else {
5688 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “unhex$” requires a string and a number, not ", s->whichText(), U".");
5689 }
5690 } else {
5691 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “unhex$” requires 1 or 2 arguments, not ", narg->number, U".");
5692 }
5693 }
5694 static void do_empty_STRVECcxx . . $ do_empty_STRVEC(49f6e7a06ebc5aa8). () {
5695 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5696 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5697 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5698 U"The function “empty$#” requires one argument, namely the number of elements.");
5699 const Stackelcxx . . $ Stackel# numberOfElements = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5700 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (numberOfElements->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5701 U"The argument of the function “empty$#” should be a number (namely the number of elements), not ", numberOfElements->whichText(), U".");
5702 autoSTRVECcxx . . $ autoSTRVEC# resultcxx . . $ _autostringautovector#_autostringautovector(1624ee8275b10bda). { Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (numberOfElements->numbercxx . . $ structStackel#$anonymous_type_0#number.) };
5703 pushStringVectorcxx . . $ pushStringVector(c1f8ac1f3abfc6e2). (resultcxx . . $ _autostringautovector#_autostringautovector(f820baba8b4ac957)..movecxx . . $ _autostringautovector#move(5fcb5f1929a10d2a).());
5704 }
5705 static void do_readLinesFromFile_STRVECcxx . . $ do_readLinesFromFile_STRVEC(49f6e7a06ebc5aa8). () {
5706 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5707 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5708 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5709 U"The function “readLinesFromFile$#” requires one argument, namely the file pattern.");
5710 const Stackelcxx . . $ Stackel# fileName = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5711 if (fileName->whichcxx . . $ structStackel#which. != Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
5712 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The argument of the function “readLinesFromFile$#” should be a string (namely the file pattern), not ", fileName->whichText(), U".");
5713 structMelderFilecxx . . $ structMelderFile# file { };
5714 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (fileName->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & file);
5715 autoSTRVECcxx . . $ autoSTRVEC# result = readLinesFromFile_STRVECcxx . . $ readLinesFromFile_STRVEC(963377c6631bedd0). (& file);
5716 pushStringVectorcxx . . $ pushStringVector(c1f8ac1f3abfc6e2). (resultcxx . . $ _autostringautovector#_autostringautovector(f820baba8b4ac957)..movecxx . . $ _autostringautovector#move(5fcb5f1929a10d2a).());
5717 }
5718 static void do_fileNames_STRVECcxx . . $ do_fileNames_STRVEC(49f6e7a06ebc5aa8). () {
5719 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5720 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5721 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5722 U"The function “fileNames$#” requires one argument, namely the file pattern.");
5723 const Stackelcxx . . $ Stackel# filePattern = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5724 if (filePattern->whichcxx . . $ structStackel#which. != Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
5725 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The argument of the function “fileNames$#” should be a string (namely the file path and pattern), not ", filePattern->whichText(), U".");
5726 autoSTRVECcxx . . $ autoSTRVEC# result = fileNames_STRVECcxx . . $ fileNames_STRVEC(d3c03a92d990d008). (filePattern->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5727 pushStringVectorcxx . . $ pushStringVector(c1f8ac1f3abfc6e2). (resultcxx . . $ _autostringautovector#_autostringautovector(f820baba8b4ac957)..movecxx . . $ _autostringautovector#move(5fcb5f1929a10d2a).());
5728 }
5729 static void do_folderNames_STRVECcxx . . $ do_folderNames_STRVEC(49f6e7a06ebc5aa8). () {
5730 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5731 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5732 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5733 U"The function “folderNames$#” requires one argument, namely the file pattern.");
5734 const Stackelcxx . . $ Stackel# folderPattern = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5735 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (folderPattern->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
5736 U"The argument of the function “folderNames$#” should be a string (namely the folder path), not ", folderPattern->whichText(), U".");
5737 autoSTRVECcxx . . $ autoSTRVEC# result = folderNames_STRVECcxx . . $ folderNames_STRVEC(d3c03a92d990d008). (folderPattern->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5738 pushStringVectorcxx . . $ pushStringVector(c1f8ac1f3abfc6e2). (resultcxx . . $ _autostringautovector#_autostringautovector(f820baba8b4ac957)..movecxx . . $ _autostringautovector#move(5fcb5f1929a10d2a).());
5739 }
5740 static void do_fileNames_caseInsensitive_STRVECcxx . . $ do_fileNames_caseInsensitive_STRVEC(49f6e7a06ebc5aa8). () {
5741 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5742 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5743 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5744 U"The function “fileNames_caseInsensitive$#” requires one argument, namely the file pattern.");
5745 const Stackelcxx . . $ Stackel# filePattern = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5746 if (filePattern->whichcxx . . $ structStackel#which. != Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
5747 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The argument of the function “fileNames_caseInsensitive$#” should be a string (namely the file path and pattern), not ", filePattern->whichText(), U".");
5748 autoSTRVECcxx . . $ autoSTRVEC# result = fileNames_caseInsensitive_STRVECcxx . . $ fileNames_caseInsensitive_STRVEC(d3c03a92d990d008). (filePattern->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5749 pushStringVectorcxx . . $ pushStringVector(c1f8ac1f3abfc6e2). (resultcxx . . $ _autostringautovector#_autostringautovector(f820baba8b4ac957)..movecxx . . $ _autostringautovector#move(5fcb5f1929a10d2a).());
5750 }
5751 static void do_folderNames_caseInsensitive_STRVECcxx . . $ do_folderNames_caseInsensitive_STRVEC(49f6e7a06ebc5aa8). () {
5752 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5753 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5754 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5755 U"The function “folderNames_caseInsensitive$#” requires one argument, namely the file pattern.");
5756 const Stackelcxx . . $ Stackel# folderPattern = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5757 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (folderPattern->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
5758 U"The argument of the function “folderNames_caseInsensitive$#” should be a string (namely the folder path), not ", folderPattern->whichText(), U".");
5759 autoSTRVECcxx . . $ autoSTRVEC# result = folderNames_caseInsensitive_STRVECcxx . . $ folderNames_caseInsensitive_STRVEC(d3c03a92d990d008). (folderPattern->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5760 pushStringVectorcxx . . $ pushStringVector(c1f8ac1f3abfc6e2). (resultcxx . . $ _autostringautovector#_autostringautovector(f820baba8b4ac957)..movecxx . . $ _autostringautovector#move(5fcb5f1929a10d2a).());
5761 }
5762 static void do_splitByWhitespace_STRVECcxx . . $ do_splitByWhitespace_STRVEC(49f6e7a06ebc5aa8). () {
5763 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5764 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg -> which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5765 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 1,
5766 U"The function “splitByWhitespace$#” requires one argument, namely the string to split.");
5767 const Stackelcxx . . $ Stackel# string = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5768 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (string->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
5769 U"The argument of the function “splitByWhitespace$#” should be a string, not ", string->whichText(), U".");
5770 autoSTRVECcxx . . $ autoSTRVEC# result = splitByWhitespace_STRVECcxx . . $ splitByWhitespace_STRVEC(d3c03a92d990d008). (string->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5771 pushStringVectorcxx . . $ pushStringVector(c1f8ac1f3abfc6e2). (resultcxx . . $ _autostringautovector#_autostringautovector(f820baba8b4ac957)..movecxx . . $ _autostringautovector#move(5fcb5f1929a10d2a).());
5772 }
5773 static void do_splitBy_STRVECcxx . . $ do_splitBy_STRVEC(49f6e7a06ebc5aa8). () {
5774 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5775 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg -> which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5776 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (narg->number == 2,
5777 U"The function “splitBy$#” requires two arguments, namely the string to split and the separator.");
5778 const Stackelcxx . . $ Stackel# separator = popcxx . . $ `sys/Formula.cpp:2387:9`!, string = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5779 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (string->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
5780 U"The first argument of the function “splitBy$#” should be a string, not ", string->whichText(), U".");
5781 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (separator->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
5782 U"The second argument of the function “splitBy$#” (the separator) should be a string, not ", string->whichText(), U".");
5783 autoSTRVECcxx . . $ autoSTRVEC# result = splitBy_STRVECcxx . . $ splitBy_STRVEC(7166cd7864177c8). (string->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), separator->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5784 pushStringVectorcxx . . $ pushStringVector(c1f8ac1f3abfc6e2). (resultcxx . . $ _autostringautovector#_autostringautovector(f820baba8b4ac957)..movecxx . . $ _autostringautovector#move(5fcb5f1929a10d2a).());
5785 }
5786 static void do_lowerCase_STRcxx . . $ do_lowerCase_STR(49f6e7a06ebc5aa8). () {
5787 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5788 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5789 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
5790 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5791 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
5792 autostring32cxx . . $ autostring32# result = lowerCase_STRcxx . . $ lowerCase_STR(87bf156b1f548402). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5793 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
5794 } else {
5795 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “lowerCase$” requires a string, not ", s->whichText(), U".");
5796 }
5797 } else {
5798 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “lowerCase$” requires 1 argument, not ", narg->number, U".");
5799 }
5800 }
5801 static void do_lowerCamelCase_STRcxx . . $ do_lowerCamelCase_STR(49f6e7a06ebc5aa8). () {
5802 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5803 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5804 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
5805 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5806 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
5807 autostring32cxx . . $ autostring32# result = lowerCamelCase_STRcxx . . $ lowerCamelCase_STR(87bf156b1f548402). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5808 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
5809 } else {
5810 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “lowerCamelCase$” requires a string, not ", s->whichText(), U".");
5811 }
5812 } else {
5813 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “lowerCamelCase$” requires 1 argument, not ", narg->number, U".");
5814 }
5815 }
5816 static void do_lowerSnakeCase_STRcxx . . $ do_lowerSnakeCase_STR(49f6e7a06ebc5aa8). () {
5817 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5818 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5819 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
5820 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5821 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
5822 autostring32cxx . . $ autostring32# result = lowerSnakeCase_STRcxx . . $ lowerSnakeCase_STR(87bf156b1f548402). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5823 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
5824 } else {
5825 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “lowerSnakeCase$” requires a string, not ", s->whichText(), U".");
5826 }
5827 } else {
5828 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “lowerSnakeCase$” requires 1 argument, not ", narg->number, U".");
5829 }
5830 }
5831 static void do_upperCase_STRcxx . . $ do_upperCase_STR(49f6e7a06ebc5aa8). () {
5832 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5833 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5834 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
5835 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5836 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
5837 autostring32cxx . . $ autostring32# result = upperCase_STRcxx . . $ upperCase_STR(87bf156b1f548402). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5838 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
5839 } else {
5840 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “upperCase$” requires a string, not ", s->whichText(), U".");
5841 }
5842 } else {
5843 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “upperCase$” requires 1 argument, not ", narg->number, U".");
5844 }
5845 }
5846 static void do_upperCamelCase_STRcxx . . $ do_upperCamelCase_STR(49f6e7a06ebc5aa8). () {
5847 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5848 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5849 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
5850 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5851 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
5852 autostring32cxx . . $ autostring32# result = upperCamelCase_STRcxx . . $ upperCamelCase_STR(87bf156b1f548402). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5853 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
5854 } else {
5855 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “upperCamelCase$” requires a string, not ", s->whichText(), U".");
5856 }
5857 } else {
5858 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “upperCamelCase$” requires 1 argument, not ", narg->number, U".");
5859 }
5860 }
5861 static void do_upperSnakeCase_STRcxx . . $ do_upperSnakeCase_STR(49f6e7a06ebc5aa8). () {
5862 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5863 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5864 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
5865 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5866 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
5867 autostring32cxx . . $ autostring32# result = upperSnakeCase_STRcxx . . $ upperSnakeCase_STR(87bf156b1f548402). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5868 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
5869 } else {
5870 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “upperSnakeCase$” requires a string, not ", s->whichText(), U".");
5871 }
5872 } else {
5873 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “upperSnakeCase$” requires 1 argument, not ", narg->number, U".");
5874 }
5875 }
5876 static void do_numericVectorElementcxx . . $ do_numericVectorElement(49f6e7a06ebc5aa8). () {
5877 InterpreterVariablecxx . . $ InterpreterVariable# vector = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.;
5878 const Stackelcxx . . $ Stackel# element = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5879 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (element->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5880 U"In vector indexing, the index should be a number, not ", element->whichText(), U".");
5881 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (isdefined (element->number),
5882 U"The element index is undefined.");
5883 const integercxx . . $ integer# ielement = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (element->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5884 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (ielement > 0,
5885 U"In vector indexing, the element index should be positive.");
5886 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (ielement <= vector->numericVectorValue.size,
5887 U"Element index out of bounds. Looking for element ", ielement,
5888 U", but there are only ", vector->numericVectorValue.size, U" elements."
5889 );
5890 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (vector->numericVectorValuecxx . . $ structInterpreterVariable#numericVectorValue. [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).ielement]);
5891 }
5892 static void do_numericMatrixElementcxx . . $ do_numericMatrixElement(49f6e7a06ebc5aa8). () {
5893 InterpreterVariablecxx . . $ InterpreterVariable# matrix = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.;
5894 const Stackelcxx . . $ Stackel# column = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5895 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (column->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5896 U"In matrix indexing, the column index should be a number, not ", column->whichText(), U".");
5897 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (isdefined (column->number),
5898 U"The column index is undefined.");
5899 const integercxx . . $ integer# icolumn = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (column->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5900 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (icolumn > 0,
5901 U"In matrix indexing, the column index should be positive.");
5902 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (icolumn <= matrix->numericMatrixValue. ncol,
5903 U"Column index out of bounds. Looking for column ", icolumn,
5904 U", but there are only ", matrix->numericMatrixValue. ncol, U" columns."
5905 );
5906 const Stackelcxx . . $ Stackel# row = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5907 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (row->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5908 U"In matrix indexing, the row index should be a number, not ", row->whichText(), U".");
5909 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (isdefined (row->number),
5910 U"The row index is undefined.");
5911 const integercxx . . $ integer# irow = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (row->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5912 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (irow > 0,
5913 U"In matrix indexing, the row index should be positive.");
5914 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (irow <= matrix->numericMatrixValue. nrow,
5915 U"Row index out of bounds. Looking for row ", irow,
5916 U", but there are only ", matrix->numericMatrixValue. nrow, U" rows."
5917 );
5918 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (matrix->numericMatrixValuecxx . . $ structInterpreterVariable#numericMatrixValue. [cxx . . $ automatrix#`operator[]`(2d545b3cb3f8e666).irow] [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).icolumn]);
5919 }
5920 static void do_stringVectorElementcxx . . $ do_stringVectorElement(49f6e7a06ebc5aa8). () {
5921 InterpreterVariablecxx . . $ InterpreterVariable# vector = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.;
5922 const Stackelcxx . . $ Stackel# element = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5923 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (element->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
5924 U"In vector indexing, the index should be a number, not ", element->whichText(), U".");
5925 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (isdefined (element->number),
5926 U"The element index is undefined.");
5927 const integercxx . . $ integer# ielement = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (element->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5928 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (ielement > 0,
5929 U"In vector indexing, the element index should be positive.");
5930 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (ielement <= vector->stringArrayValue.size,
5931 U"Element index out of bounds. Looking for element ", ielement,
5932 U", but there are only ", vector->stringArrayValue.size, U" elements."
5933 );
5934 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (vector->stringArrayValuecxx . . $ structInterpreterVariable#stringArrayValue. [cxx . . $ _autostringautovector#`operator[]`(f191be2b65019068).ielement].getcxx . . $ _autostring#get(5a2a78a048fb49a8).()));
5935 }
5936 static void do_indexedNumericVariablecxx . . $ do_indexedNumericVariable(49f6e7a06ebc5aa8). () {
5937 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5938 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5939 const integercxx . . $ integer# nindex = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5940 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (nindex >= 1,
5941 U"Indexed variables require at least one index.");
5942 char32cxx . . $ char32# *indexedVariableName = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string.;
5943 static MelderStringcxx . . $ MelderString# totalVariableName;
5944 MelderString_copycxx . . $ MelderString_copy(65be51a793e0ff96). (& totalVariableName, indexedVariableName, U"[");
5945 stackPointercxx . . $ stackPointer. -= nindex;
5946 for (int iindex = 1; iindex <= nindex; iindex ++) {
5947 const Stackelcxx . . $ Stackel# index = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + iindex];
5948 if (index->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
5949 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& totalVariableName, index->numbercxx . . $ structStackel#$anonymous_type_0#number., iindex == nindex ? U"]" : U",");
5950 } else if (index -> whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
5951 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& totalVariableName, U"\"", index->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), U"\"", iindex == nindex ? U"]" : U",");
5952 } else {
5953 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"In indexed variables, the index should be a number or a string, not ", index->whichText(), U".");
5954 }
5955 }
5956 InterpreterVariablecxx . . $ InterpreterVariable# var = Interpreter_hasVariablecxx . . $ Interpreter_hasVariable(17b277cbad23fdab). (theInterpretercxx . . $ theInterpreter., totalVariableName.stringcxx . . $ MelderString#string.);
5957 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (!! var,
5958 U"Undefined indexed variable «", totalVariableName.string, U"».");
5959 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (var -> numericValuecxx . . $ structInterpreterVariable#numericValue.);
5960 }
5961 static void do_indexedStringVariablecxx . . $ do_indexedStringVariable(49f6e7a06ebc5aa8). () {
5962 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5963 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (narg->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
5964 const integercxx . . $ integer# nindex = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (narg->numbercxx . . $ structStackel#$anonymous_type_0#number.);
5965 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (nindex >= 1,
5966 U"Indexed variables require at least one index.");
5967 char32cxx . . $ char32# *indexedVariableName = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string.;
5968 static MelderStringcxx . . $ MelderString# totalVariableName;
5969 MelderString_copycxx . . $ MelderString_copy(65be51a793e0ff96). (& totalVariableName, indexedVariableName, U"[");
5970 stackPointercxx . . $ stackPointer. -= nindex;
5971 for (int iindex = 1; iindex <= nindex; iindex ++) {
5972 const Stackelcxx . . $ Stackel# index = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. + iindex];
5973 if (index->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
5974 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& totalVariableName, index -> numbercxx . . $ structStackel#$anonymous_type_0#number., iindex == nindex ? U"]" : U",");
5975 } else if (index -> whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
5976 MelderString_appendcxx . . $ MelderString_append(65be51a793e0ff96). (& totalVariableName, U"\"", index -> getStringcxx . . $ structStackel#getString(1912f6684645c851).(), U"\"", iindex == nindex ? U"]" : U",");
5977 } else {
5978 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"In indexed variables, the index should be a number or a string, not ", index->whichText(), U".");
5979 }
5980 }
5981 InterpreterVariablecxx . . $ InterpreterVariable# var = Interpreter_hasVariablecxx . . $ Interpreter_hasVariable(17b277cbad23fdab). (theInterpretercxx . . $ theInterpreter., totalVariableName.stringcxx . . $ MelderString#string.);
5982 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (!! var,
5983 U"Undefined indexed variable «", totalVariableName.string, U"».");
5984 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (var -> stringValuecxx . . $ structInterpreterVariable#stringValue..getcxx . . $ _autostring#get(5a2a78a048fb49a8).());
5985 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
5986 }
5987 static void do_lengthcxx . . $ do_length(49f6e7a06ebc5aa8). () {
5988 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5989 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
5990 const double result = NUMlengthcxx . . $ NUMlength(d232a409a91fe966). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
5991 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
5992 } else {
5993 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “length” requires a string, not ", s->whichText(), U".");
5994 }
5995 }
5996 static void do_numbercxx . . $ do_number(49f6e7a06ebc5aa8). () {
5997 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
5998 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
5999 double result = Melder_atofcxx . . $ Melder_atof(13d725aae188c0cd). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6000 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
6001 } else {
6002 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “number” requires a string, not ", s->whichText(), U".");
6003 }
6004 }
6005 static void do_fileReadablecxx . . $ do_fileReadable(49f6e7a06ebc5aa8). () {
6006 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6007 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6008 structMelderFilecxx . . $ structMelderFile# file { };
6009 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & file);
6010 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (MelderFile_readablecxx . . $ MelderFile_readable(8f92cdf95b27d908). (& file));
6011 } else {
6012 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “fileReadable” requires a string, not ", s->whichText(), U".");
6013 }
6014 }
6015 static void do_folderExistscxx . . $ do_folderExists(49f6e7a06ebc5aa8). () {
6016 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6017 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6018 structMelderFoldercxx . . $ structMelderFolder# folder { };
6019 Melder_relativePathToFoldercxx . . $ Melder_relativePathToFolder(f9a4643b225086b8). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & folder);
6020 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (MelderFolder_existscxx . . $ MelderFolder_exists(f2f3cbeb84a71ab3). (& folder));
6021 } else {
6022 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “folderExists” requires a string, not ", s->whichText(), U".");
6023 }
6024 }
6025 static void do_tryToWriteFilecxx . . $ do_tryToWriteFile(49f6e7a06ebc5aa8). () {
6026 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
6027 U"The function “tryToWriteFile” is not available inside manuals.");
6028 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6029 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6030 structMelderFilecxx . . $ structMelderFile# file { };
6031 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & file);
6032 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"try to write to the file\n", & file);
6033 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (Melder_tryToWriteFilecxx . . $ Melder_tryToWriteFile(8f92cdf95b27d908). (& file));
6034 } else {
6035 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “tryToWriteFile” requires a string, not ", s->whichText(), U".");
6036 }
6037 }
6038 static void do_tryToAppendFilecxx . . $ do_tryToAppendFile(49f6e7a06ebc5aa8). () {
6039 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
6040 U"The function “tryToAppendFile” is not available inside manuals.");
6041 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6042 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6043 structMelderFilecxx . . $ structMelderFile# file { };
6044 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & file);
6045 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"try to append to the file\n", & file);
6046 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (Melder_tryToAppendFilecxx . . $ Melder_tryToAppendFile(8f92cdf95b27d908). (& file));
6047 } else {
6048 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “tryToAppendFile” requires a string, not ", s->whichText(), U".");
6049 }
6050 }
6051 static void do_date_STRcxx . . $ do_date_STR(49f6e7a06ebc5aa8). () {
6052 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (date_STRcxx . . $ date_STR(19b925b58261db21). ());
6053 }
6054 static void do_date_utc_STRcxx . . $ do_date_utc_STR(49f6e7a06ebc5aa8). () {
6055 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (date_utc_STRcxx . . $ date_utc_STR(19b925b58261db21). ());
6056 }
6057 static void do_date_iso_STRcxx . . $ do_date_iso_STR(49f6e7a06ebc5aa8). () {
6058 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (date_iso_STRcxx . . $ date_iso_STR(19b925b58261db21). ());
6059 }
6060 static void do_date_utc_iso_STRcxx . . $ do_date_utc_iso_STR(49f6e7a06ebc5aa8). () {
6061 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (date_utc_iso_STRcxx . . $ date_utc_iso_STR(19b925b58261db21). ());
6062 }
6063 static void do_date_VECcxx . . $ do_date_VEC(49f6e7a06ebc5aa8). () {
6064 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (date_VECcxx . . $ date_VEC(dc54b7e5180588ba). ());
6065 }
6066 static void do_date_utc_VECcxx . . $ do_date_utc_VEC(49f6e7a06ebc5aa8). () {
6067 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (date_utc_VECcxx . . $ date_utc_VEC(dc54b7e5180588ba). ());
6068 }
6069 static void do_info_STRcxx . . $ do_info_STR(49f6e7a06ebc5aa8). () {
6070 autostring32cxx . . $ autostring32# info = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_getInfocxx . . $ Melder_getInfo(1912f6684645c851). ());
6071 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (infocxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6072 }
6073 static void do_left_STRcxx . . $ do_left_STR(49f6e7a06ebc5aa8). () {
6074 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6075 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
6076 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6077 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6078 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (left_STRcxx . . $ left_STR(c02f217f21fae7fe). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).()));
6079 } else {
6080 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “left$” requires a string (or a string and a number).");
6081 }
6082 } else if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 2) {
6083 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6084 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && n->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6085 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (left_STRcxx . . $ left_STR(c02f217f21fae7fe). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6086 } else {
6087 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “left$” requires a string and a number (or a string only).");
6088 }
6089 } else {
6090 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “left$” requires one or two arguments: a string and optionally a number.");
6091 }
6092 tracecxx . . $ `melder/melder_debug.h:60:10`! (U"exit");
6093 }
6094 static void do_right_STRcxx . . $ do_right_STR(49f6e7a06ebc5aa8). () {
6095 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6096 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
6097 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6098 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6099 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (right_STRcxx . . $ right_STR(c02f217f21fae7fe). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).()));
6100 } else {
6101 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “right$” requires a string (or a string and a number).");
6102 }
6103 } else if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 2) {
6104 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6105 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && n->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6106 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (right_STRcxx . . $ right_STR(c02f217f21fae7fe). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6107 } else {
6108 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “right$” requires a string and a number (or a string only).");
6109 }
6110 } else {
6111 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “right$” requires one or two arguments: a string and optionally a number.");
6112 }
6113 }
6114 static void do_mid_STRcxx . . $ do_mid_STR(49f6e7a06ebc5aa8). () {
6115 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6116 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 2) {
6117 const Stackelcxx . . $ Stackel# position = popcxx . . $ `sys/Formula.cpp:2387:9`!, str = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6118 if (str->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && position->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6119 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (mid_STRcxx . . $ mid_STR(190ff3abf8d9ea16). (str->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (position->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6120 } else {
6121 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “mid$” requires a string and a number (or two).");
6122 }
6123 } else if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 3) {
6124 const Stackelcxx . . $ Stackel# numberOfCharacters = popcxx . . $ `sys/Formula.cpp:2387:9`!, startingPosition = popcxx . . $ `sys/Formula.cpp:2387:9`!, str = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6125 if (str->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && startingPosition->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && numberOfCharacters->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6126 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (mid_STRcxx . . $ mid_STR(190ff3abf8d9ea16). (str->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (startingPosition->numbercxx . . $ structStackel#$anonymous_type_0#number.), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (numberOfCharacters->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6127 } else {
6128 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “mid$” requires a string and two numbers (or one).");
6129 }
6130 } else {
6131 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “mid$” requires two or three arguments.");
6132 }
6133 }
6134 static void do_padLeft_STRcxx . . $ do_padLeft_STR(49f6e7a06ebc5aa8). () {
6135 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6136 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 2) {
6137 const Stackelcxx . . $ Stackel# width = popcxx . . $ `sys/Formula.cpp:2387:9`!, str = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6138 if (str->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && width->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
6139 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (padLeft_STRcxx . . $ padLeft_STR(b76faa58d5a4b3dc). (str->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (width->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6140 else
6141 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The two arguments to “padLeft$” should be a string and a number (the desired width), not ",
6142 str->whichText(), U" and ", width->whichText(), U".");
6143 } else if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 3) {
6144 const Stackelcxx . . $ Stackel# pad = popcxx . . $ `sys/Formula.cpp:2387:9`!, width = popcxx . . $ `sys/Formula.cpp:2387:9`!, str = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6145 if (str->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && width->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && pad->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
6146 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (padLeft_STRcxx . . $ padLeft_STR(b76faa58d5a4b3dc). (str->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (width->numbercxx . . $ structStackel#$anonymous_type_0#number.), pad->getStringcxx . . $ structStackel#getString(1912f6684645c851).()));
6147 else
6148 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The three arguments to “padLeft$” should be a string, a number (the desired width),"
6149 U" and a string (the pad), not ", str->whichText(), U", ", width->whichText(),
6150 U" and ", pad->whichText(), U"."
6151 );
6152 } else
6153 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “padLeft$” requires two or three arguments (a string, a number, and an optional pad string).");
6154 }
6155 static void do_padRight_STRcxx . . $ do_padRight_STR(49f6e7a06ebc5aa8). () {
6156 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6157 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 2) {
6158 const Stackelcxx . . $ Stackel# width = popcxx . . $ `sys/Formula.cpp:2387:9`!, str = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6159 if (str->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && width->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
6160 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (padRight_STRcxx . . $ padRight_STR(b76faa58d5a4b3dc). (str->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (width->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6161 else
6162 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The two arguments to “padRight$” should be a string and a number (the desired width), not ",
6163 str->whichText(), U" and ", width->whichText(), U".");
6164 } else if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 3) {
6165 const Stackelcxx . . $ Stackel# pad = popcxx . . $ `sys/Formula.cpp:2387:9`!, width = popcxx . . $ `sys/Formula.cpp:2387:9`!, str = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6166 if (str->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && width->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && pad->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
6167 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (padRight_STRcxx . . $ padRight_STR(b76faa58d5a4b3dc). (str->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (width->numbercxx . . $ structStackel#$anonymous_type_0#number.), pad->getStringcxx . . $ structStackel#getString(1912f6684645c851).()));
6168 else
6169 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The three arguments to “padRight$” should be a string, a number (the desired width),"
6170 U" and a string (the pad), not ", str->whichText(), U", ", width->whichText(),
6171 U" and ", pad->whichText(), U"."
6172 );
6173 } else
6174 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “padRight$” requires two or three arguments (a string, a number, and an optional pad string).");
6175 }
6176 static void do_truncateLeft_STRcxx . . $ do_truncateLeft_STR(49f6e7a06ebc5aa8). () {
6177 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6178 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 2) {
6179 const Stackelcxx . . $ Stackel# width = popcxx . . $ `sys/Formula.cpp:2387:9`!, str = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6180 if (str->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && width->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
6181 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (truncateLeft_STRcxx . . $ truncateLeft_STR(c02f217f21fae7fe). (str->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (width->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6182 else
6183 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The two arguments to “truncateLeft$” should be a string and a number (the desired width), not ",
6184 str->whichText(), U" and ", width->whichText(), U".");
6185 } else
6186 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “truncateLeft$” requires two arguments: a string and a number (the desired width).");
6187 }
6188 static void do_truncateRight_STRcxx . . $ do_truncateRight_STR(49f6e7a06ebc5aa8). () {
6189 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6190 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 2) {
6191 const Stackelcxx . . $ Stackel# width = popcxx . . $ `sys/Formula.cpp:2387:9`!, str = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6192 if (str->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && width->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
6193 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (truncateRight_STRcxx . . $ truncateRight_STR(c02f217f21fae7fe). (str->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (width->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6194 else
6195 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The two arguments to “truncateRight$” should be a string and a number (the desired width), not ",
6196 str->whichText(), U" and ", width->whichText(), U".");
6197 } else
6198 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “truncateRight$” requires two arguments: a string and a number (the desired width).");
6199 }
6200 static void do_padOrTruncateLeft_STRcxx . . $ do_padOrTruncateLeft_STR(49f6e7a06ebc5aa8). () {
6201 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6202 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 2) {
6203 const Stackelcxx . . $ Stackel# width = popcxx . . $ `sys/Formula.cpp:2387:9`!, str = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6204 if (str->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && width->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
6205 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (padOrTruncateLeft_STRcxx . . $ padOrTruncateLeft_STR(b76faa58d5a4b3dc). (str->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (width->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6206 else
6207 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The two arguments to “padOrTruncateLeft$” should be a string and a number (the desired width), not ",
6208 str->whichText(), U" and ", width->whichText(), U".");
6209 } else if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 3) {
6210 const Stackelcxx . . $ Stackel# pad = popcxx . . $ `sys/Formula.cpp:2387:9`!, width = popcxx . . $ `sys/Formula.cpp:2387:9`!, str = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6211 if (str->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && width->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && pad->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
6212 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (padOrTruncateLeft_STRcxx . . $ padOrTruncateLeft_STR(b76faa58d5a4b3dc). (str->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (width->numbercxx . . $ structStackel#$anonymous_type_0#number.), pad->getStringcxx . . $ structStackel#getString(1912f6684645c851).()));
6213 else
6214 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The three arguments to “padOrTruncateLeft$” should be a string, a number (the desired width),"
6215 U" and a string (the pad), not ", str->whichText(), U", ", width->whichText(),
6216 U" and ", pad->whichText(), U"."
6217 );
6218 } else
6219 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “padOrTruncateLeft$” requires two or three arguments (a string, a number, and an optional pad string).");
6220 }
6221 static void do_padOrTruncateRight_STRcxx . . $ do_padOrTruncateRight_STR(49f6e7a06ebc5aa8). () {
6222 const Stackelcxx . . $ Stackel# narg = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6223 if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 2) {
6224 const Stackelcxx . . $ Stackel# width = popcxx . . $ `sys/Formula.cpp:2387:9`!, str = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6225 if (str->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && width->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
6226 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (padOrTruncateRight_STRcxx . . $ padOrTruncateRight_STR(b76faa58d5a4b3dc). (str->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (width->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6227 else
6228 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The two arguments to “padOrTruncateRight$” should be a string and a number (the desired width), not ",
6229 str->whichText(), U" and ", width->whichText(), U".");
6230 } else if (narg->numbercxx . . $ structStackel#$anonymous_type_0#number. == 3) {
6231 const Stackelcxx . . $ Stackel# pad = popcxx . . $ `sys/Formula.cpp:2387:9`!, width = popcxx . . $ `sys/Formula.cpp:2387:9`!, str = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6232 if (str->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && width->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && pad->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
6233 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (padOrTruncateRight_STRcxx . . $ padOrTruncateRight_STR(b76faa58d5a4b3dc). (str->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (width->numbercxx . . $ structStackel#$anonymous_type_0#number.), pad->getStringcxx . . $ structStackel#getString(1912f6684645c851).()));
6234 else
6235 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The three arguments to “padOrTruncateRight$” should be a string, a number (the desired width),"
6236 U" and a string (the pad), not ", str->whichText(), U", ", width->whichText(),
6237 U" and ", pad->whichText(), U"."
6238 );
6239 } else
6240 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “padOrTruncateRight$” requires two or three arguments (a string, a number, and an optional pad string).");
6241 }
6242 static void do_unicodeToBackslashTrigraphs_STRcxx . . $ do_unicodeToBackslashTrigraphs_STR(49f6e7a06ebc5aa8). () {
6243 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6244 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6245 const integercxx . . $ integer# length = Melder_lengthcxx . . $ Melder_length(3fae411214b133ad). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6246 autostring32cxx . . $ autostring32# trigraphscxx . . $ _autostring#_autostring(f153f132b2bc41c2). (3 * length);
6247 Longchar_genericizecxx . . $ Longchar_genericize(329c6326171b971e). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), trigraphs.getcxx . . $ _autostring#get(5a2a78a048fb49a8).());
6248 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (trigraphscxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6249 } else {
6250 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “unicodeToBackslashTrigraphs$” requires a string, not ", s->whichText(), U".");
6251 }
6252 }
6253 static void do_backslashTrigraphsToUnicode_STRcxx . . $ do_backslashTrigraphsToUnicode_STR(49f6e7a06ebc5aa8). () {
6254 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6255 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6256 const integercxx . . $ integer# length = Melder_lengthcxx . . $ Melder_length(3fae411214b133ad). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6257 autostring32cxx . . $ autostring32# unicodecxx . . $ _autostring#_autostring(f153f132b2bc41c2). (length);
6258 Longchar_nativizecxx . . $ Longchar_nativize(35d477e2649d0789). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), unicode.getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), false); // noexcept
6259 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (unicodecxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6260 } else {
6261 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “unicodeToBackslashTrigraphs$” requires a string, not ", s->whichText(), U".");
6262 }
6263 }
6264 static void do_environment_STRcxx . . $ do_environment_STR(49f6e7a06ebc5aa8). () {
6265 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6266 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6267 const conststring32cxx . . $ conststring32# value = Melder_getenvcxx . . $ Melder_getenv(5553299aa8c4fee9). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6268 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (value ? value : U"");
6269 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6270 } else {
6271 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “environment$” requires a string, not ", s->whichText(), U".");
6272 }
6273 }
6274 static void do_indexcxx . . $ do_index(49f6e7a06ebc5aa8). () {
6275 const Stackelcxx . . $ Stackel# t = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6276 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && t->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6277 char32cxx . . $ char32# *substring = str32strcxx . . $ str32str(2de17cd8f7c584a6). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), t->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6278 const integercxx . . $ integer# result = ( substring ? substring - s->getStringcxx . . $ structStackel#getString(1912f6684645c851).() + 1 : 0 ); // 0 is the special case, meaning "not found"
6279 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
6280 } else if (s->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`! && t->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6281 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMfindFirstcxx . . $ NUMfindFirst(5bcfdb87a5d5128). (scxx . . $ _conststringvector#_conststringvector(93d9e701af42cb0d).->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray., t->getStringcxx . . $ structStackel#getString(1912f6684645c851).()));
6282 } else {
6283 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “index” requires two strings, not ",
6284 s->whichText(), U" and ", t->whichText(), U".");
6285 }
6286 }
6287 static void do_index_caseInsensitivecxx . . $ do_index_caseInsensitive(49f6e7a06ebc5aa8). () {
6288 const Stackelcxx . . $ Stackel# t = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6289 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && t->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6290 char32cxx . . $ char32# *substring = str32str_caseInsensitivecxx . . $ str32str_caseInsensitive(2de17cd8f7c584a6). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), t->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6291 const integercxx . . $ integer# result = ( substring ? substring - s->getStringcxx . . $ structStackel#getString(1912f6684645c851).() + 1 : 0 ); // 0 is the special case, meaning "not found"
6292 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
6293 } else if (s->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`! && t->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6294 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMfindFirst_caseInsensitivecxx . . $ NUMfindFirst_caseInsensitive(5bcfdb87a5d5128). (scxx . . $ _conststringvector#_conststringvector(93d9e701af42cb0d).->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray., t->getStringcxx . . $ structStackel#getString(1912f6684645c851).()));
6295 } else {
6296 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “index_caseInsensitive” requires two strings, not ",
6297 s->whichText(), U" and ", t->whichText(), U".");
6298 }
6299 }
6300 static void do_rindexcxx . . $ do_rindex(49f6e7a06ebc5aa8). () {
6301 const Stackelcxx . . $ Stackel# part = popcxx . . $ `sys/Formula.cpp:2387:9`!, whole = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6302 if (whole->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && part->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6303 char32cxx . . $ char32# *lastSubstring = str32strcxx . . $ str32str(2de17cd8f7c584a6). (whole->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), part->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6304 if (part->getStringcxx . . $ structStackel#getString(1912f6684645c851).() [0] == U'\0') {
6305 const integercxx . . $ integer# result = Melder_lengthcxx . . $ Melder_length(3fae411214b133ad). (whole->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6306 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
6307 } else if (lastSubstring) {
6308 for (;;) {
6309 char32cxx . . $ char32# *substring = str32strcxx . . $ str32str(2de17cd8f7c584a6). (lastSubstring + 1, part->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6310 if (! substring)
6311 break;
6312 lastSubstring = substring;
6313 }
6314 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (lastSubstring - whole->getStringcxx . . $ structStackel#getString(1912f6684645c851).() + 1);
6315 } else {
6316 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (0); // 0 is the special case, meaning "not found"
6317 }
6318 } else if (whole->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`! && part->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6319 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMfindLastcxx . . $ NUMfindLast(5bcfdb87a5d5128). (wholecxx . . $ _conststringvector#_conststringvector(93d9e701af42cb0d).->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray., part->getStringcxx . . $ structStackel#getString(1912f6684645c851).()));
6320 } else {
6321 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “rindex” requires two strings, not ",
6322 whole->whichText(), U" and ", part->whichText(), U".");
6323 }
6324 }
6325 static void do_rindex_caseInsensitivecxx . . $ do_rindex_caseInsensitive(49f6e7a06ebc5aa8). () {
6326 const Stackelcxx . . $ Stackel# part = popcxx . . $ `sys/Formula.cpp:2387:9`!, whole = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6327 if (whole->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && part->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6328 char32cxx . . $ char32# *lastSubstring = str32str_caseInsensitivecxx . . $ str32str_caseInsensitive(2de17cd8f7c584a6). (whole->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), part->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6329 if (part->getStringcxx . . $ structStackel#getString(1912f6684645c851).() [0] == U'\0') {
6330 const integercxx . . $ integer# result = Melder_lengthcxx . . $ Melder_length(3fae411214b133ad). (whole->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6331 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
6332 } else if (lastSubstring) {
6333 for (;;) {
6334 char32cxx . . $ char32# *substring = str32str_caseInsensitivecxx . . $ str32str_caseInsensitive(2de17cd8f7c584a6). (lastSubstring + 1, part->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6335 if (! substring)
6336 break;
6337 lastSubstring = substring;
6338 }
6339 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (lastSubstring - whole->getStringcxx . . $ structStackel#getString(1912f6684645c851).() + 1);
6340 } else {
6341 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (0); // 0 is the special case, meaning "not found"
6342 }
6343 } else if (whole->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`! && part->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6344 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMfindLast_caseInsensitivecxx . . $ NUMfindLast_caseInsensitive(5bcfdb87a5d5128). (wholecxx . . $ _conststringvector#_conststringvector(93d9e701af42cb0d).->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray., part->getStringcxx . . $ structStackel#getString(1912f6684645c851).()));
6345 } else {
6346 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “rindex_caseInsensitive” requires two strings, not ",
6347 whole->whichText(), U" and ", part->whichText(), U".");
6348 }
6349 }
6350 static void do_index_regexcxx . . $ do_index_regex(d4f767463ce0a6b3). (int backward) {
6351 const Stackelcxx . . $ Stackel# t = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6352 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && t->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6353 conststring32cxx . . $ conststring32# errorMessage;
6354 regexpcxx . . $ regexp# *compiled_regexp = CompileREcxx . . $ CompileRE(5071b94b786a4c4b). (t->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & errorMessage, 0);
6355 if (! compiled_regexp) {
6356 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"index_regex(): ", errorMessage, U".");
6357 } else {
6358 if (ExecREcxx . . $ ExecRE(adb1c5d556f61044). (compiled_regexp, nullptr, s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), nullptr, backward, U'\0', U'\0', nullptr, nullptr)) {
6359 char32cxx . . $ char32# *location = (char32cxx . . $ char32# *) compiled_regexp -> startpcxx . . $ regexp#startp. [0];
6360 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (location - s->getStringcxx . . $ structStackel#getString(1912f6684645c851).() + 1);
6361 freecxx . . $ free(bd21765a0afc8e3c). (compiled_regexp);
6362 } else {
6363 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (false);
6364 }
6365 }
6366 } else {
6367 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “", Formula_instructionNames [parse [programPointer]. symbol],
6368 U"” requires two strings, not ", s->whichText(), U" and ", t->whichText(), U".");
6369 }
6370 }
6371 static void do_stringMatchesCriterioncxx . . $ do_stringMatchesCriterion(925fbc6ea24b1276). (kMelder_stringcxx . . $ kMelder_string# criterion, bool caseSensitive) {
6372 const Stackelcxx . . $ Stackel# t = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6373 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && t->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6374 const bool result = Melder_stringMatchesCriterioncxx . . $ Melder_stringMatchesCriterion(3e677ada61cce709). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), criterion, t->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), caseSensitive);
6375 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
6376 } else {
6377 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “", Formula_instructionNames [parse [programPointer]. symbol],
6378 U"” requires two strings, not ", s->whichText(), U" and ", t->whichText(), U".");
6379 }
6380 }
6381 static void do_extractNumbercxx . . $ do_extractNumber(49f6e7a06ebc5aa8). () {
6382 const Stackelcxx . . $ Stackel# t = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6383 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && t->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6384 char32cxx . . $ char32# *substring = str32strcxx . . $ str32str(2de17cd8f7c584a6). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), t->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6385 if (! substring) {
6386 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (undefinedcxx . . $ undefined.);
6387 } else {
6388 /* Skip the prompt. */
6389 substring += Melder_lengthcxx . . $ Melder_length(3fae411214b133ad). (t->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6390 /* Skip white space. */
6391 while (Melder_isHorizontalOrVerticalSpacecxx . . $ Melder_isHorizontalOrVerticalSpace(b8d0204ce8416907). (*substring)) substring ++;
6392 if (substring [0] == U'\0' || str32nequcxx . . $ `melder/melder_str32.h:123:9`! (substring, U"--undefined--", 13)) {
6393 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (undefinedcxx . . $ undefined.);
6394 } else {
6395 char32cxx . . $ char32# buffer [101];
6396 int i = 0;
6397 for (; i < 100; i ++) {
6398 buffer [i] = *substring;
6399 substring ++;
6400 if (*substring == U'\0' || Melder_isHorizontalOrVerticalSpacecxx . . $ Melder_isHorizontalOrVerticalSpace(b8d0204ce8416907). (*substring))
6401 break;
6402 }
6403 if (i >= 100) {
6404 buffer [100] = U'\0';
6405 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (Melder_atofcxx . . $ Melder_atof(13d725aae188c0cd). (buffer));
6406 } else {
6407 buffer [i + 1] = U'\0';
6408 char32cxx . . $ char32# *slash = str32chrcxx . . $ str32chr(328a9ede0fba853a). (buffer, U'/');
6409 if (slash) {
6410 *slash = U'\0';
6411 double numerator = Melder_atofcxx . . $ Melder_atof(13d725aae188c0cd). (buffer), denominator = Melder_atofcxx . . $ Melder_atof(13d725aae188c0cd). (slash + 1);
6412 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (numerator / denominator);
6413 } else {
6414 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (Melder_atofcxx . . $ Melder_atof(13d725aae188c0cd). (buffer));
6415 }
6416 }
6417 }
6418 }
6419 } else {
6420 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “", Formula_instructionNames [parse [programPointer]. symbol],
6421 U"” requires two strings, not ", s->whichText(), U" and ", t->whichText(), U".");
6422 }
6423 }
6424 static void do_extractText_STRcxx . . $ do_extractText_STR(b45ddcbc8423892c). (bool singleWord) {
6425 const Stackelcxx . . $ Stackel# t = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6426 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && t->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6427 char32cxx . . $ char32# *substring = str32strcxx . . $ str32str(2de17cd8f7c584a6). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), t->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6428 autostring32cxx . . $ autostring32# resultcxx . . $ _autostring#_autostring(49f6e7a06ebc5aa8).;
6429 if (! substring) {
6430 result =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (U"");
6431 } else {
6432 integercxx . . $ integer# length;
6433 /* Skip the prompt. */
6434 substring += Melder_lengthcxx . . $ Melder_length(3fae411214b133ad). (t->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6435 if (singleWord) {
6436 /* Skip white space. */
6437 while (Melder_isHorizontalOrVerticalSpacecxx . . $ Melder_isHorizontalOrVerticalSpace(b8d0204ce8416907). (*substring)) substring ++;
6438 }
6439 char32cxx . . $ char32# *p = substring;
6440 if (singleWord) {
6441 /* Proceed until next white space. */
6442 while (Melder_staysWithinInkcxx . . $ Melder_staysWithinInk(b8d0204ce8416907). (*p)) p ++;
6443 } else {
6444 /* Proceed until end of line. */
6445 while (Melder_staysWithinLinecxx . . $ Melder_staysWithinLine(b8d0204ce8416907). (*p)) p ++;
6446 }
6447 length = p - substring;
6448 result =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). autostring32cxx . . $ autostring32# (length);
6449 str32ncpycxx . . $ str32ncpy(a0fb29e7f5bbd1dc). (result.getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), substring, length);
6450 }
6451 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6452 } else {
6453 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “", Formula_instructionNames [parse [programPointer]. symbol],
6454 U"” requires two strings, not ", s->whichText(), U" and ", t->whichText(), U".");
6455 }
6456 }
6457 static void do_replace_STRcxx . . $ do_replace_STR(49f6e7a06ebc5aa8). () {
6458 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!, u = popcxx . . $ `sys/Formula.cpp:2387:9`!, t = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6459 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && t->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && u->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6460 autostring32cxx . . $ autostring32# result = replace_STRcxx . . $ replace_STR(58ee6b7335d69803). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), t->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), u->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (x->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6461 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6462 } else {
6463 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “replace$” requires three strings and a number.");
6464 }
6465 }
6466 static void do_replace_regex_STRcxx . . $ do_replace_regex_STR(49f6e7a06ebc5aa8). () {
6467 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!, u = popcxx . . $ `sys/Formula.cpp:2387:9`!, t = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6468 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && t->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && u->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6469 conststring32cxx . . $ conststring32# errorMessage;
6470 regexpcxx . . $ regexp# *compiled_regexp = CompileREcxx . . $ CompileRE(5071b94b786a4c4b). (t->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & errorMessage, 0);
6471 if (! compiled_regexp) {
6472 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"replace_regex$(): ", errorMessage, U".");
6473 } else {
6474 autostring32cxx . . $ autostring32# result = replace_regex_STRcxx . . $ replace_regex_STR(8c698ee9a707cbfd). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), compiled_regexp, u->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (x->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6475 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6476 }
6477 } else {
6478 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “replace_regex$” requires three strings and a number.");
6479 }
6480 }
6481 static void do_selectedcxx . . $ do_selected(49f6e7a06ebc5aa8). () {
6482 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6483 integercxx . . $ integer# result = 0;
6484 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 0) {
6485 result = praat_idOfSelectedcxx . . $ praat_idOfSelected(b92ee5db4de9c66b). (nullptr, 0);
6486 } else if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
6487 const Stackelcxx . . $ Stackel# a = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6488 if (a->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6489 ClassInfocxx . . $ ClassInfo# klas = Thing_classFromClassNamecxx . . $ Thing_classFromClassName(8643cf72d5cb42e3). (a->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), nullptr);
6490 result = praat_idOfSelectedcxx . . $ praat_idOfSelected(b92ee5db4de9c66b). (klas, 0);
6491 } else if (a->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6492 result = praat_idOfSelectedcxx . . $ praat_idOfSelected(b92ee5db4de9c66b). (nullptr, Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (a->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6493 } else {
6494 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “selected” requires a string (an object type name) and/or a number.");
6495 }
6496 } else if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 2) {
6497 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6498 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6499 const ClassInfocxx . . $ ClassInfo# klas = Thing_classFromClassNamecxx . . $ Thing_classFromClassName(8643cf72d5cb42e3). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), nullptr);
6500 result = praat_idOfSelectedcxx . . $ praat_idOfSelected(b92ee5db4de9c66b). (klas, Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (x->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6501 } else {
6502 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “selected” requires a string (an object type name) and/or a number.");
6503 }
6504 } else {
6505 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “selected” requires 0, 1, or 2 arguments, not ", n->number, U".");
6506 }
6507 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
6508 }
6509 static void do_selected_STRcxx . . $ do_selected_STR(49f6e7a06ebc5aa8). () {
6510 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6511 char32cxx . . $ char32# *resultSource; // purposefully don't initialize, so that the compiler can check that has been assigned to when used
6512 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 0) {
6513 resultSource = praat_nameOfSelectedcxx . . $ praat_nameOfSelected(4d3fbba0fc83dc8c). (nullptr, 0);
6514 } else if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
6515 const Stackelcxx . . $ Stackel# a = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6516 if (a->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6517 const ClassInfocxx . . $ ClassInfo# klas = Thing_classFromClassNamecxx . . $ Thing_classFromClassName(8643cf72d5cb42e3). (a->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), nullptr);
6518 resultSource = praat_nameOfSelectedcxx . . $ praat_nameOfSelected(4d3fbba0fc83dc8c). (klas, 0);
6519 } else if (a->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6520 resultSource = praat_nameOfSelectedcxx . . $ praat_nameOfSelected(4d3fbba0fc83dc8c). (nullptr, Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (a->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6521 } else {
6522 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “selected$” requires a string (an object type name) and/or a number.");
6523 }
6524 } else if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 2) {
6525 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6526 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6527 ClassInfocxx . . $ ClassInfo# klas = Thing_classFromClassNamecxx . . $ Thing_classFromClassName(8643cf72d5cb42e3). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), nullptr);
6528 resultSource = praat_nameOfSelectedcxx . . $ praat_nameOfSelected(4d3fbba0fc83dc8c). (klas, Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (x->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6529 } else {
6530 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “selected$” requires a string (an object type name) and a number.");
6531 }
6532 } else {
6533 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “selected$” requires 0, 1, or 2 arguments, not ", n->number, U".");
6534 }
6535 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (resultSource));
6536 }
6537 static void do_numberOfSelectedcxx . . $ do_numberOfSelected(49f6e7a06ebc5aa8). () {
6538 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6539 integercxx . . $ integer# result = 0;
6540 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 0) {
6541 result = praat_numberOfSelectedcxx . . $ praat_numberOfSelected(33e8b4a553c0cc95). (nullptr);
6542 } else if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
6543 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6544 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6545 const ClassInfocxx . . $ ClassInfo# klas = Thing_classFromClassNamecxx . . $ Thing_classFromClassName(8643cf72d5cb42e3). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), nullptr);
6546 result = praat_numberOfSelectedcxx . . $ praat_numberOfSelected(33e8b4a553c0cc95). (klas);
6547 } else {
6548 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “numberOfSelected” requires a string (an object type name), not ", s->whichText(), U".");
6549 }
6550 } else {
6551 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “numberOfSelected” requires 0 or 1 arguments, not ", n->number, U".");
6552 }
6553 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
6554 }
6555 static void do_selected_VECcxx . . $ do_selected_VEC(49f6e7a06ebc5aa8). () {
6556 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6557 autoVECcxx . . $ autoVEC# resultcxx . . $ autovector#autovector(49f6e7a06ebc5aa8).;
6558 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 0) {
6559 result =cxx . . $ autovector#`operator=`(f4f0443dbfdd1e40). praat_idsOfAllSelectedcxx . . $ praat_idsOfAllSelected(85815b18a910bd48). (nullptr);
6560 } else if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
6561 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6562 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6563 const ClassInfocxx . . $ ClassInfo# klas = Thing_classFromClassNamecxx . . $ Thing_classFromClassName(8643cf72d5cb42e3). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), nullptr);
6564 result =cxx . . $ autovector#`operator=`(f4f0443dbfdd1e40). praat_idsOfAllSelectedcxx . . $ praat_idsOfAllSelected(85815b18a910bd48). (klas);
6565 } else {
6566 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “selected#” requires a string (an object type name), not ", s->whichText(), U".");
6567 }
6568 } else {
6569 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “selected#” requires 0 or 1 arguments, not ", n->number, U".");
6570 }
6571 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
6572 }
6573 static void do_selected_STRVECcxx . . $ do_selected_STRVEC(49f6e7a06ebc5aa8). () {
6574 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6575 autoSTRVECcxx . . $ autoSTRVEC# resultcxx . . $ _autostringautovector#_autostringautovector(49f6e7a06ebc5aa8).;
6576 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 0) {
6577 result =cxx . . $ _autostringautovector#`operator=`(150f7ba7aac25b7e). praat_namesOfAllSelectedcxx . . $ praat_namesOfAllSelected(71fc934e5b24e4c0). (nullptr);
6578 } else if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
6579 const Stackelcxx . . $ Stackel# s = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6580 if (s->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6581 const ClassInfocxx . . $ ClassInfo# klas = Thing_classFromClassNamecxx . . $ Thing_classFromClassName(8643cf72d5cb42e3). (s->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), nullptr);
6582 result =cxx . . $ _autostringautovector#`operator=`(150f7ba7aac25b7e). praat_namesOfAllSelectedcxx . . $ praat_namesOfAllSelected(71fc934e5b24e4c0). (klas);
6583 } else {
6584 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “selected$#” requires a string (an object type name), not ", s->whichText(), U".");
6585 }
6586 } else {
6587 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “selected$#” requires 0 or 1 arguments, not ", n->number, U".");
6588 }
6589 pushStringVectorcxx . . $ pushStringVector(c1f8ac1f3abfc6e2). (resultcxx . . $ _autostringautovector#_autostringautovector(f820baba8b4ac957)..movecxx . . $ _autostringautovector#move(5fcb5f1929a10d2a).());
6590 }
6591 static void do_selectObjectcxx . . $ do_selectObject(49f6e7a06ebc5aa8). () {
6592 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6593 praat_deselectAllcxx . . $ praat_deselectAll(49f6e7a06ebc5aa8). ();
6594 for (int iobject = 1; iobject <= n -> numbercxx . . $ structStackel#$anonymous_type_0#number.; iobject ++) {
6595 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6596 if (object -> whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6597 const integercxx . . $ integer# IOBJECT = praat_findObjectByIdcxx . . $ praat_findObjectById(8ce0d1b217db7fd1). (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (object -> numbercxx . . $ structStackel#$anonymous_type_0#number.));
6598 praat_selectcxx . . $ praat_select(1624ee8275b10bda). (IOBJECT);
6599 } else if (object -> whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6600 const integercxx . . $ integer# IOBJECT = praat_findObjectByNamecxx . . $ praat_findObjectByName(c94c67ff4219bf83). (object -> getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6601 praat_selectcxx . . $ praat_select(1624ee8275b10bda). (IOBJECT);
6602 } else if (object -> whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
6603 const VECcxx . . $ VEC# vec = object -> numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
6604 for (integercxx . . $ integer# ielm = 1; ielm <= vec.sizecxx . . $ vector#size.; ielm ++) {
6605 const integercxx . . $ integer# IOBJECT = praat_findObjectByIdcxx . . $ praat_findObjectById(8ce0d1b217db7fd1). (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (vec [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).ielm]));
6606 praat_selectcxx . . $ praat_select(1624ee8275b10bda). (IOBJECT);
6607 }
6608 } else {
6609 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “selectObject” takes numbers, strings, or numeric vectors, not ", object->whichText());
6610 }
6611 }
6612 praat_showcxx . . $ praat_show(49f6e7a06ebc5aa8). ();
6613 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
6614 }
6615 static void do_plusObjectcxx . . $ do_plusObject(49f6e7a06ebc5aa8). () {
6616 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6617 for (int iobject = 1; iobject <= n -> numbercxx . . $ structStackel#$anonymous_type_0#number.; iobject ++) {
6618 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6619 if (object -> whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6620 const integercxx . . $ integer# IOBJECT = praat_findObjectByIdcxx . . $ praat_findObjectById(8ce0d1b217db7fd1). (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (object -> numbercxx . . $ structStackel#$anonymous_type_0#number.));
6621 praat_selectcxx . . $ praat_select(1624ee8275b10bda). (IOBJECT);
6622 } else if (object -> whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6623 const integercxx . . $ integer# IOBJECT = praat_findObjectByNamecxx . . $ praat_findObjectByName(c94c67ff4219bf83). (object -> getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6624 praat_selectcxx . . $ praat_select(1624ee8275b10bda). (IOBJECT);
6625 } else if (object -> whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
6626 const VECcxx . . $ VEC# vec = object -> numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
6627 for (integercxx . . $ integer# ielm = 1; ielm <= vec.sizecxx . . $ vector#size.; ielm ++) {
6628 const integercxx . . $ integer# IOBJECT = praat_findObjectByIdcxx . . $ praat_findObjectById(8ce0d1b217db7fd1). (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (vec [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).ielm]));
6629 praat_selectcxx . . $ praat_select(1624ee8275b10bda). (IOBJECT);
6630 }
6631 } else {
6632 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “plusObject” takes numbers, strings, or numeric vectors, not ", object->whichText(), U".");
6633 }
6634 }
6635 praat_showcxx . . $ praat_show(49f6e7a06ebc5aa8). ();
6636 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
6637 }
6638 static void do_minusObjectcxx . . $ do_minusObject(49f6e7a06ebc5aa8). () {
6639 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6640 for (int iobject = 1; iobject <= n -> numbercxx . . $ structStackel#$anonymous_type_0#number.; iobject ++) {
6641 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6642 if (object -> whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6643 const integercxx . . $ integer# IOBJECT = praat_findObjectByIdcxx . . $ praat_findObjectById(8ce0d1b217db7fd1). (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (object -> numbercxx . . $ structStackel#$anonymous_type_0#number.));
6644 praat_deselectcxx . . $ praat_deselect(1624ee8275b10bda). (IOBJECT);
6645 } else if (object -> whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6646 const integercxx . . $ integer# IOBJECT = praat_findObjectByNamecxx . . $ praat_findObjectByName(c94c67ff4219bf83). (object -> getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6647 praat_deselectcxx . . $ praat_deselect(1624ee8275b10bda). (IOBJECT);
6648 } else if (object -> whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
6649 const VECcxx . . $ VEC# vec = object -> numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
6650 for (integercxx . . $ integer# ielm = 1; ielm <= vec.sizecxx . . $ vector#size.; ielm ++) {
6651 const integercxx . . $ integer# IOBJECT = praat_findObjectByIdcxx . . $ praat_findObjectById(8ce0d1b217db7fd1). (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (vec [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).ielm]));
6652 praat_deselectcxx . . $ praat_deselect(1624ee8275b10bda). (IOBJECT);
6653 }
6654 } else {
6655 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “minusObject” takes numbers, strings, or numeric vectors, not ", object->whichText(), U".");
6656 }
6657 }
6658 praat_showcxx . . $ praat_show(49f6e7a06ebc5aa8). ();
6659 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
6660 }
6661 static void do_removeObjectcxx . . $ do_removeObject(49f6e7a06ebc5aa8). () {
6662 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6663 for (int iobject = 1; iobject <= n -> numbercxx . . $ structStackel#$anonymous_type_0#number.; iobject ++) {
6664 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6665 if (object -> whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6666 const integercxx . . $ integer# IOBJECT = praat_findObjectByIdcxx . . $ praat_findObjectById(8ce0d1b217db7fd1). (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (object -> numbercxx . . $ structStackel#$anonymous_type_0#number.));
6667 praat_removeObjectcxx . . $ praat_removeObject(1624ee8275b10bda). (IOBJECT);
6668 } else if (object -> whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6669 const integercxx . . $ integer# IOBJECT = praat_findObjectByNamecxx . . $ praat_findObjectByName(c94c67ff4219bf83). (object -> getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6670 praat_removeObjectcxx . . $ praat_removeObject(1624ee8275b10bda). (IOBJECT);
6671 } else if (object -> whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
6672 const VECcxx . . $ VEC# vec = object -> numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
6673 for (integercxx . . $ integer# ielm = 1; ielm <= vec.sizecxx . . $ vector#size.; ielm ++) {
6674 const integercxx . . $ integer# IOBJECT = praat_findObjectByIdcxx . . $ praat_findObjectById(8ce0d1b217db7fd1). (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (vec [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).ielm]));
6675 praat_removeObjectcxx . . $ praat_removeObject(1624ee8275b10bda). (IOBJECT);
6676 }
6677 } else {
6678 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “removeObject” takes numbers, strings, or numeric vectors, not ", object->whichText(), U".");
6679 }
6680 }
6681 praat_showcxx . . $ praat_show(49f6e7a06ebc5aa8). ();
6682 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
6683 }
6684 static Daatacxx . . $ Daata# _do_objectcxx . . $ _do_object(6955a0de141752c). (Stackelcxx . . $ Stackel# object, conststring32cxx . . $ conststring32# expressionMessage) {
6685 Daatacxx . . $ Daata# data;
6686 if (object -> whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6687 const integercxx . . $ integer# IOBJECT = praat_findObjectByIdcxx . . $ praat_findObjectById(8ce0d1b217db7fd1). (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (object -> numbercxx . . $ structStackel#$anonymous_type_0#number.));
6688 data = OBJECTcxx . . $ `sys/praat.h:203:9`!;
6689 } else if (object -> whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6690 const integercxx . . $ integer# IOBJECT = praat_findObjectByNamecxx . . $ praat_findObjectByName(c94c67ff4219bf83). (object -> getStringcxx . . $ structStackel#getString(1912f6684645c851).());
6691 data = OBJECTcxx . . $ `sys/praat.h:203:9`!;
6692 } else if (object -> whichcxx . . $ structStackel#which. == Stackel_OBJECTcxx . . $ `sys/Formula.h:54:10`!) {
6693 data = object -> objectcxx . . $ structStackel#$anonymous_type_0#object.;
6694 } else {
6695 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The expression “", expressionMessage, U"” requires xx to be a number or a string, not ", object->whichText(), U".");
6696 }
6697 return data;
6698 }
6699 static void do_object_xmincxx . . $ do_object_xmin(49f6e7a06ebc5aa8). () {
6700 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6701 const Daatacxx . . $ Daata# data = _do_objectcxx . . $ _do_object(6955a0de141752c). (object, U"object[xx].xmin");
6702 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (data -> v_hasGetXmin (),
6703 U"An object of type ", Thing_className (data), U" has no “xmin” attribute.");
6704 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (data -> v_getXmincxx . . $ structDaata#v_getXmin(21b6c25e127938e2). ());
6705 }
6706 static void do_object_xmaxcxx . . $ do_object_xmax(49f6e7a06ebc5aa8). () {
6707 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6708 const Daatacxx . . $ Daata# data = _do_objectcxx . . $ _do_object(6955a0de141752c). (object, U"object[xx].xmax");
6709 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (data -> v_hasGetXmax (),
6710 U"An object of type ", Thing_className (data), U" has no “xmax” attribute.");
6711 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (data -> v_getXmaxcxx . . $ structDaata#v_getXmax(21b6c25e127938e2). ());
6712 }
6713 static void do_object_ymincxx . . $ do_object_ymin(49f6e7a06ebc5aa8). () {
6714 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6715 const Daatacxx . . $ Daata# data = _do_objectcxx . . $ _do_object(6955a0de141752c). (object, U"object[xx].ymin");
6716 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (data -> v_hasGetYmin (),
6717 U"An object of type ", Thing_className (data), U" has no “ymin” attribute.");
6718 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (data -> v_getYmincxx . . $ structDaata#v_getYmin(21b6c25e127938e2). ());
6719 }
6720 static void do_object_ymaxcxx . . $ do_object_ymax(49f6e7a06ebc5aa8). () {
6721 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6722 const Daatacxx . . $ Daata# data = _do_objectcxx . . $ _do_object(6955a0de141752c). (object, U"object[xx].ymax");
6723 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (data -> v_hasGetYmax (),
6724 U"An object of type ", Thing_className (data), U" has no “ymax” attribute.");
6725 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (data -> v_getYmaxcxx . . $ structDaata#v_getYmax(21b6c25e127938e2). ());
6726 }
6727 static void do_object_nxcxx . . $ do_object_nx(49f6e7a06ebc5aa8). () {
6728 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6729 const Daatacxx . . $ Daata# data = _do_objectcxx . . $ _do_object(6955a0de141752c). (object, U"object[xx].nx");
6730 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (data -> v_hasGetNx (),
6731 U"An object of type ", Thing_className (data), U" has no “nx” attribute.");
6732 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (data -> v_getNxcxx . . $ structDaata#v_getNx(21b6c25e127938e2). ());
6733 }
6734 static void do_object_nycxx . . $ do_object_ny(49f6e7a06ebc5aa8). () {
6735 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6736 const Daatacxx . . $ Daata# data = _do_objectcxx . . $ _do_object(6955a0de141752c). (object, U"object[xx].ny");
6737 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (data -> v_hasGetNy (),
6738 U"An object of type ", Thing_className (data), U" has no “ny” attribute.");
6739 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (data -> v_getNycxx . . $ structDaata#v_getNy(21b6c25e127938e2). ());
6740 }
6741 static void do_object_dxcxx . . $ do_object_dx(49f6e7a06ebc5aa8). () {
6742 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6743 const Daatacxx . . $ Daata# data = _do_objectcxx . . $ _do_object(6955a0de141752c). (object, U"object[xx].dx");
6744 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (data -> v_hasGetDx (),
6745 U"An object of type ", Thing_className (data), U" has no “dx” attribute.");
6746 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (data -> v_getDxcxx . . $ structDaata#v_getDx(21b6c25e127938e2). ());
6747 }
6748 static void do_object_dycxx . . $ do_object_dy(49f6e7a06ebc5aa8). () {
6749 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6750 const Daatacxx . . $ Daata# data = _do_objectcxx . . $ _do_object(6955a0de141752c). (object, U"object[xx].dy");
6751 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (data -> v_hasGetDy (),
6752 U"An object of type ", Thing_className (data), U" has no “dy” attribute.");
6753 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (data -> v_getDycxx . . $ structDaata#v_getDy(21b6c25e127938e2). ());
6754 }
6755 static void do_object_nrowcxx . . $ do_object_nrow(49f6e7a06ebc5aa8). () {
6756 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6757 const Daatacxx . . $ Daata# data = _do_objectcxx . . $ _do_object(6955a0de141752c). (object, U"object[xx].nrow");
6758 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (data -> v_hasGetNrow (),
6759 U"An object of type ", Thing_className (data), U" has no “nrow” attribute.");
6760 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (data -> v_getNrowcxx . . $ structDaata#v_getNrow(21b6c25e127938e2). ());
6761 }
6762 static void do_object_ncolcxx . . $ do_object_ncol(49f6e7a06ebc5aa8). () {
6763 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6764 const Daatacxx . . $ Daata# data = _do_objectcxx . . $ _do_object(6955a0de141752c). (object, U"object[xx].ncol");
6765 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (data -> v_hasGetNcol (),
6766 U"An object of type ", Thing_className (data), U" has no “ncol” attribute.");
6767 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (data -> v_getNcolcxx . . $ structDaata#v_getNcol(21b6c25e127938e2). ());
6768 }
6769 static void do_object_row_STRcxx . . $ do_object_row_STR(49f6e7a06ebc5aa8). () {
6770 const Stackelcxx . . $ Stackel# index = popcxx . . $ `sys/Formula.cpp:2387:9`!, object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6771 const Daatacxx . . $ Daata# data = _do_objectcxx . . $ _do_object(6955a0de141752c). (object, U"object[xx].row$[]");
6772 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (data -> v_hasGetRowStr (),
6773 U"An object of type ", Thing_className (data), U" has no “row$[]” attribute.");
6774 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (index -> which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
6775 U"The expression “object[].row$[xx]” requires xx to be a number, not ", index->whichText(), U".");
6776 const integercxx . . $ integer# number = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (index->numbercxx . . $ structStackel#$anonymous_type_0#number.);
6777 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (data -> v_getRowStrcxx . . $ structDaata#v_getRowStr(ddccc6a34553c711). (number));
6778 if (! result)
6779 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Row index out of bounds.");
6780 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6781 }
6782 static void do_object_col_STRcxx . . $ do_object_col_STR(49f6e7a06ebc5aa8). () {
6783 const Stackelcxx . . $ Stackel# index = popcxx . . $ `sys/Formula.cpp:2387:9`!, object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6784 const Daatacxx . . $ Daata# data = _do_objectcxx . . $ _do_object(6955a0de141752c). (object, U"object[xx].col$[]");
6785 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (data -> v_hasGetColStr (),
6786 U"An object of type ", Thing_className (data), U" has no “col$[]” attribute.");
6787 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (index -> which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
6788 U"The expression “object[].col$[xx]” requires xx to be a number, not ", index->whichText(), U".");
6789 const integercxx . . $ integer# number = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (index->numbercxx . . $ structStackel#$anonymous_type_0#number.);
6790 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (data -> v_getColStrcxx . . $ structDaata#v_getColStr(ddccc6a34553c711). (number));
6791 if (! result)
6792 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Column index out of bounds.");
6793 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6794 }
6795 static void do_string_STRcxx . . $ do_string_STR(49f6e7a06ebc5aa8). () {
6796 const Stackelcxx . . $ Stackel# value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6797 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6798 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_doublecxx . . $ Melder_double(f05d861d9dbec9b2). (value->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6799 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6800 } else {
6801 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “string$” requires a number, not ", value->whichText(), U".");
6802 }
6803 }
6804 static void do_horizontal_STRcxx . . $ do_horizontal_STR(49f6e7a06ebc5aa8). () {
6805 const Stackelcxx . . $ Stackel# array = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6806 if (array->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!) {
6807 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (horizontal_STRcxx . . $ horizontal_STR(e6ef03305d70aad8). (arraycxx . . $ _conststringvector#_conststringvector(93d9e701af42cb0d).->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray.));
6808 } else {
6809 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “horizontal$” requires a string array.");
6810 }
6811 }
6812 static void do_vertical_STRcxx . . $ do_vertical_STR(49f6e7a06ebc5aa8). () {
6813 const Stackelcxx . . $ Stackel# array = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6814 if (array->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!) {
6815 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (vertical_STRcxx . . $ vertical_STR(e6ef03305d70aad8). (arraycxx . . $ _conststringvector#_conststringvector(93d9e701af42cb0d).->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray.));
6816 } else {
6817 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “vertical$” requires a string array.");
6818 }
6819 }
6820 static void do_numbers_VECcxx . . $ do_numbers_VEC(49f6e7a06ebc5aa8). () {
6821 /*
6822 result# = numbers# (strings$#)
6823 */
6824 const Stackelcxx . . $ Stackel# stringsel = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6825 if (stringsel->whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!) {
6826 const constSTRVECcxx . . $ constSTRVEC# strings = stringselcxx . . $ _conststringvector#_conststringvector(93d9e701af42cb0d).->stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray.;
6827 autoVECcxx . . $ autoVEC# result = zero_VECcxx . . $ zero_VEC(e4395f764b859b1e). (strings.sizecxx . . $ _conststringvector#size.);
6828 for (integercxx . . $ integer# i = 1; i <= strings.sizecxx . . $ _conststringvector#size.; i ++)
6829 result [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).i] = Melder_atofcxx . . $ Melder_atof(13d725aae188c0cd). (strings [cxx . . $ _conststringvector#`operator[]`(2065423e0524e64a).i]);
6830 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
6831 } else {
6832 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “numbers#” requires a string array, not ", stringsel->whichText(), U".");
6833 }
6834 }
6835 static void do_sleepcxx . . $ do_sleep(49f6e7a06ebc5aa8). () {
6836 const Stackelcxx . . $ Stackel# value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6837 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6838 Melder_sleepcxx . . $ Melder_sleep(ba8836b59fb42830). (value->numbercxx . . $ structStackel#$anonymous_type_0#number.);
6839 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
6840 } else {
6841 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “sleep” requires a number, not ", value->whichText(), U".");
6842 }
6843 }
6844 static void do_unicodecxx . . $ do_unicode(49f6e7a06ebc5aa8). () {
6845 const Stackelcxx . . $ Stackel# value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6846 if (value->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6847 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (value->getStringcxx . . $ structStackel#getString(1912f6684645c851).() [0]);
6848 } else {
6849 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “unicode” requires a character, not ", value->whichText(), U".");
6850 }
6851 }
6852 static void do_unicode_STRcxx . . $ do_unicode_STR(49f6e7a06ebc5aa8). () {
6853 const Stackelcxx . . $ Stackel# value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6854 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6855 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (value->number >= 0.0 && value->number < (double) (1 << 21),
6856 U"A unicode number cannot be greater than ", (1 << 21) - 1, U".");
6857 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (value->number < 0xD800 || value->number > 0xDFFF,
6858 U"A unicode number cannot lie between 0xD800 and 0xDFFF. Those are “surrogates”.");
6859 char32cxx . . $ char32# string [2] = { U'\0', U'\0' };
6860 string [0] = (char32cxx . . $ char32#) value->numbercxx . . $ structStackel#$anonymous_type_0#number.;
6861 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ _autostring#_autostring(39021ecceedcc7d2). (string).movecxx . . $ _autostring#move(bd43c759570f178f).());
6862 } else {
6863 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “unicode$” requires a number, not ", value->whichText(), U".");
6864 }
6865 }
6866 static void do_fixed_STRcxx . . $ do_fixed_STR(49f6e7a06ebc5aa8). () {
6867 const Stackelcxx . . $ Stackel# precision = popcxx . . $ `sys/Formula.cpp:2387:9`!, value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6868 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && precision->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6869 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (value->numbercxx . . $ structStackel#$anonymous_type_0#number., Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (precision->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6870 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6871 } else if (value->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! && precision->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6872 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_fixedcxx . . $ Melder_fixed(4e9012a2e3a396d0). (valuecxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (precision->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6873 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6874 } else if (value->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && precision->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6875 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_fixedcxx . . $ Melder_fixed(d058aa82cc22b5d). (valuecxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (precision->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6876 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6877 } else {
6878 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “fixed$” requires a number or a vector or a matrix, and a number (the precision), not ", value->whichText(), U" and ", precision->whichText(), U".");
6879 }
6880 }
6881 static void do_percent_STRcxx . . $ do_percent_STR(49f6e7a06ebc5aa8). () {
6882 const Stackelcxx . . $ Stackel# precision = popcxx . . $ `sys/Formula.cpp:2387:9`!, value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6883 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && precision->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6884 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_percentcxx . . $ Melder_percent(5b9062840a6ade99). (value->numbercxx . . $ structStackel#$anonymous_type_0#number., Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (precision->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6885 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6886 } else {
6887 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “percent$” requires two numbers (value and precision), not ", value->whichText(), U" and ", precision->whichText(), U".");
6888 }
6889 }
6890 static void do_graphicalPercent_STRcxx . . $ do_graphicalPercent_STR(49f6e7a06ebc5aa8). () {
6891 const Stackelcxx . . $ Stackel# precision = popcxx . . $ `sys/Formula.cpp:2387:9`!, value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6892 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && precision->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6893 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_graphicalPercentcxx . . $ Melder_graphicalPercent(5b9062840a6ade99). (value->numbercxx . . $ structStackel#$anonymous_type_0#number., Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (precision->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6894 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6895 } else {
6896 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “graphicalPercent$” requires two numbers (value and precision), not ", value->whichText(), U" and ", precision->whichText(), U".");
6897 }
6898 }
6899 static void do_bigInteger_STRcxx . . $ do_bigInteger_STR(49f6e7a06ebc5aa8). () {
6900 const Stackelcxx . . $ Stackel# value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6901 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6902 if (value->numbercxx . . $ structStackel#$anonymous_type_0#number. < INT54_MINcxx . . $ `melder/melder_int.h:61:10`! || value->numbercxx . . $ structStackel#$anonymous_type_0#number. > INT54_MAXcxx . . $ `melder/melder_int.h:60:10`!)
6903 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"bigInteger(): the number ", value->number, U" cannot be represented precisely as an integer.");
6904 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_bigIntegercxx . . $ Melder_bigInteger(7b348ebc2004441d). (int64cxx . . $ int64# (value->numbercxx . . $ structStackel#$anonymous_type_0#number.))); // guarded cast
6905 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6906 } else {
6907 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “bigInteger$” requires a number, not ", value->whichText(), U".");
6908 }
6909 }
6910 static void do_half_STRcxx . . $ do_half_STR(49f6e7a06ebc5aa8). () {
6911 const Stackelcxx . . $ Stackel# value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6912 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6913 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_halfcxx . . $ Melder_half(f05d861d9dbec9b2). (value->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6914 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6915 } else {
6916 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “half$” requires a number, not ", value->whichText(), U".");
6917 }
6918 }
6919 static void do_graphicalHalf_STRcxx . . $ do_graphicalHalf_STR(49f6e7a06ebc5aa8). () {
6920 const Stackelcxx . . $ Stackel# value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6921 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6922 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (value->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6923 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6924 } else {
6925 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “graphicalHalf$” requires a number, not ", value->whichText(), U".");
6926 }
6927 }
6928 static void do_single_STRcxx . . $ do_single_STR(49f6e7a06ebc5aa8). () {
6929 const Stackelcxx . . $ Stackel# value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6930 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6931 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_singlecxx . . $ Melder_single(f05d861d9dbec9b2). (value->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6932 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6933 } else {
6934 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “single$” requires a number, not ", value->whichText(), U".");
6935 }
6936 }
6937 static void do_graphicalSingle_STRcxx . . $ do_graphicalSingle_STR(49f6e7a06ebc5aa8). () {
6938 const Stackelcxx . . $ Stackel# value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6939 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6940 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_graphicalSinglecxx . . $ Melder_graphicalSingle(f05d861d9dbec9b2). (value->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6941 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6942 } else {
6943 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “graphicalSingle$” requires a number, not ", value->whichText(), U".");
6944 }
6945 }
6946 static void do_double_STRcxx . . $ do_double_STR(49f6e7a06ebc5aa8). () {
6947 const Stackelcxx . . $ Stackel# value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6948 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6949 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_doublecxx . . $ Melder_double(f05d861d9dbec9b2). (value->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6950 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6951 } else {
6952 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “double$” requires a number, not ", value->whichText(), U".");
6953 }
6954 }
6955 static void do_graphicalDouble_STRcxx . . $ do_graphicalDouble_STR(49f6e7a06ebc5aa8). () {
6956 const Stackelcxx . . $ Stackel# value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6957 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6958 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_graphicalDoublecxx . . $ Melder_graphicalDouble(f05d861d9dbec9b2). (value->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6959 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6960 } else {
6961 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “graphicalDouble$” requires a number, not ", value->whichText(), U".");
6962 }
6963 }
6964 static void do_naturalLogarithm_STRcxx . . $ do_naturalLogarithm_STR(49f6e7a06ebc5aa8). () {
6965 const Stackelcxx . . $ Stackel# value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6966 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6967 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_naturalLogarithmcxx . . $ Melder_naturalLogarithm(f05d861d9dbec9b2). (value->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6968 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6969 } else {
6970 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “naturalLogarithm$” requires a number, not ", value->whichText(), U".");
6971 }
6972 }
6973 static void do_graphicalNaturalLogarithm_STRcxx . . $ do_graphicalNaturalLogarithm_STR(49f6e7a06ebc5aa8). () {
6974 const Stackelcxx . . $ Stackel# value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6975 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6976 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_graphicalNaturalLogarithmcxx . . $ Melder_graphicalNaturalLogarithm(f05d861d9dbec9b2). (value->numbercxx . . $ structStackel#$anonymous_type_0#number.));
6977 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6978 } else {
6979 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “graphicalNaturalLogarithm$” requires a number, not ", value->whichText(), U".");
6980 }
6981 }
6982 static void do_hexadecimal_STRcxx . . $ do_hexadecimal_STR(49f6e7a06ebc5aa8). () {
6983 const Stackelcxx . . $ Stackel# precision = popcxx . . $ `sys/Formula.cpp:2387:9`!, value = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6984 if (value->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && precision->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
6985 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_hexadecimalcxx . . $ Melder_hexadecimal(3e477d5ccb44e5a4). (Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (value->numbercxx . . $ structStackel#$anonymous_type_0#number.), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (precision->numbercxx . . $ structStackel#$anonymous_type_0#number.)));
6986 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
6987 } else {
6988 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “hexadecimal$” requires two numbers (value and precision), not ", value->whichText(), U" and ", precision->whichText(), U".");
6989 }
6990 }
6991 static void do_deleteFilecxx . . $ do_deleteFile(49f6e7a06ebc5aa8). () {
6992 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
6993 U"The function “deleteFile” is not available inside manuals.");
6994 const Stackelcxx . . $ Stackel# f = popcxx . . $ `sys/Formula.cpp:2387:9`!;
6995 if (f->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
6996 structMelderFilecxx . . $ structMelderFile# file { };
6997 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (f->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & file);
6998 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"delete the file\n", & file);
6999 MelderFile_deletecxx . . $ MelderFile_delete(1145552d769d7b5d). (& file);
7000 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7001 } else {
7002 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “deleteFile” requires a string, not ", f->whichText(), U".");
7003 }
7004 }
7005 static void do_moveAndOrRenameFilecxx . . $ do_moveAndOrRenameFile(49f6e7a06ebc5aa8). () {
7006 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7007 U"The function “moveAndOrRenameFile” is not available inside manuals.");
7008 const Stackelcxx . . $ Stackel# to = popcxx . . $ `sys/Formula.cpp:2387:9`!, from = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7009 if (from->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && to->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7010 structMelderFilecxx . . $ structMelderFile# fromFile { }, toFile { };
7011 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (from->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & fromFile);
7012 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (to->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & toFile);
7013 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"move or rename the file\n", & fromFile, U" to ", & toFile);
7014 MelderFile_moveAndOrRenamecxx . . $ MelderFile_moveAndOrRename(551642421266be1d). (& fromFile, & toFile);
7015 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7016 } else {
7017 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “moveAndOrRenameFile” requires two strings, not ", from->whichText(), U" and ", to->whichText(), U".");
7018 }
7019 }
7020 static void do_createFoldercxx . . $ do_createFolder(49f6e7a06ebc5aa8). () {
7021 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7022 U"The function “createFolder” is not available inside manuals.");
7023 const Stackelcxx . . $ Stackel# f = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7024 if (f->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7025 structMelderFoldercxx . . $ structMelderFolder# folder { };
7026 Melder_relativePathToFoldercxx . . $ Melder_relativePathToFolder(f9a4643b225086b8). (f->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & folder);
7027 if (! MelderFolder_existscxx . . $ MelderFolder_exists(f2f3cbeb84a71ab3). (& folder)) { // don't check for trust if the folder exists
7028 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"create the folder\n", & folder);
7029 MelderFolder_createcxx . . $ MelderFolder_create(63f38d3b6b86d1dc). (& folder);
7030 }
7031 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7032 } else {
7033 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “createFolder” requires a string, not ", f->whichText(), U".");
7034 }
7035 }
7036 static void do_createDirectorycxx . . $ do_createDirectory(49f6e7a06ebc5aa8). () {
7037 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7038 U"The function “createDirectory” is not available inside manuals.");
7039 const Stackelcxx . . $ Stackel# f = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7040 if (f->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7041 structMelderFoldercxx . . $ structMelderFolder# folder { };
7042 Melder_relativePathToFoldercxx . . $ Melder_relativePathToFolder(f9a4643b225086b8). (f->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & folder);
7043 if (! MelderFolder_existscxx . . $ MelderFolder_exists(f2f3cbeb84a71ab3). (& folder)) { // don't check for trust if the folder exists
7044 Melder_checkTrustcxx . . $ Melder_checkTrust(8b7b14572fe8c0b7). (theInterpretercxx . . $ theInterpreter., U"create the directory\n", & folder);
7045 MelderFolder_createcxx . . $ MelderFolder_create(63f38d3b6b86d1dc). (& folder);
7046 }
7047 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7048 } else {
7049 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “createDirectory” requires a string, not ", f->whichText(), U".");
7050 }
7051 }
7052 static void do_setWorkingDirectorycxx . . $ do_setWorkingDirectory(49f6e7a06ebc5aa8). () {
7053 const Stackelcxx . . $ Stackel# f = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7054 if (f->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7055 structMelderFoldercxx . . $ structMelderFolder# folder { };
7056 Melder_relativePathToFoldercxx . . $ Melder_relativePathToFolder(f9a4643b225086b8). (f->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & folder);
7057 Melder_setCurrentFoldercxx . . $ Melder_setCurrentFolder(63f38d3b6b86d1dc). (& folder);
7058 MelderFolder_copycxx . . $ MelderFolder_copy(29f3fed5dc56c318). (& folder, & theInterpretercxx . . $ theInterpreter. -> workingDirectorycxx . . $ structInterpreter#workingDirectory.);
7059 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (MelderFolder_equal (Melder_peekWorkingDirectory(), & theInterpreter -> workingDirectory));
7060 //TRACE
7061 tracecxx . . $ `melder/melder_debug.h:60:10`! (U"Set the working directory to ", Melder_peekWorkingDirectory());
7062 tracecxx . . $ `melder/melder_debug.h:60:10`! (U"Set the working directory of interpreter ", Melder_pointer (theInterpreter), U" to ", & theInterpreter -> workingDirectory);
7063 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7064 } else {
7065 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “setWorkingDirectory” requires a string, not ", f->whichText(), U".");
7066 }
7067 }
7068 static void do_variableExistscxx . . $ do_variableExists(49f6e7a06ebc5aa8). () {
7069 const Stackelcxx . . $ Stackel# f = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7070 if (f->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7071 bool result = !! Interpreter_hasVariablecxx . . $ Interpreter_hasVariable(17b277cbad23fdab). (theInterpretercxx . . $ theInterpreter., f->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
7072 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
7073 } else {
7074 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “variableExists” requires a string, not ", f->whichText(), U".");
7075 }
7076 }
7077 static void do_readFilecxx . . $ do_readFile(49f6e7a06ebc5aa8). () {
7078 const Stackelcxx . . $ Stackel# f = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7079 if (f->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7080 structMelderFilecxx . . $ structMelderFile# file { };
7081 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (f->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & file);
7082 autostring32cxx . . $ autostring32# text = MelderFile_readTextcxx . . $ MelderFile_readText(2312d39ae70aea26). (& file);
7083 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (Melder_atofcxx . . $ Melder_atof(13d725aae188c0cd). (text.getcxx . . $ _autostring#get(5a2a78a048fb49a8).()));
7084 } else {
7085 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “readFile” requires a string (a file name), not ", f->whichText(), U".");
7086 }
7087 }
7088 static void do_readFile_STRcxx . . $ do_readFile_STR(49f6e7a06ebc5aa8). () {
7089 const Stackelcxx . . $ Stackel# f = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7090 if (f->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7091 structMelderFilecxx . . $ structMelderFile# file { };
7092 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (f->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & file);
7093 autostring32cxx . . $ autostring32# text = MelderFile_readTextcxx . . $ MelderFile_readText(2312d39ae70aea26). (& file);
7094 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (textcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
7095 } else {
7096 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “readFile$” requires a string (a file name), not ", f->whichText(), U".");
7097 }
7098 }
7099 static void do_readFile_VECcxx . . $ do_readFile_VEC(49f6e7a06ebc5aa8). () {
7100 const Stackelcxx . . $ Stackel# f = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7101 if (f->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7102 structMelderFilecxx . . $ structMelderFile# file { };
7103 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (f->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & file);
7104 autostring32cxx . . $ autostring32# text = MelderFile_readTextcxx . . $ MelderFile_readText(2312d39ae70aea26). (& file);
7105 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (splitByWhitespace_VECcxx . . $ splitByWhitespace_VEC(be643ff064625b8d). (text.getcxx . . $ _autostring#get(5a2a78a048fb49a8).()));
7106 } else {
7107 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “readFile#” requires a string (a file name), not ", f->whichText(), U".");
7108 }
7109 }
7110 static void do_readFile_MATcxx . . $ do_readFile_MAT(49f6e7a06ebc5aa8). () {
7111 const Stackelcxx . . $ Stackel# f = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7112 if (f->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7113 structMelderFilecxx . . $ structMelderFile# file { };
7114 Melder_relativePathToFilecxx . . $ Melder_relativePathToFile(82691f2ee21fbb13). (f->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), & file);
7115 autostring32cxx . . $ autostring32# text = MelderFile_readTextcxx . . $ MelderFile_readText(2312d39ae70aea26). (& file);
7116 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (splitByLinesAndWhitespace_MATcxx . . $ splitByLinesAndWhitespace_MAT(2b142147f85942aa). (text.getcxx . . $ _autostring#get(5a2a78a048fb49a8).()));
7117 } else {
7118 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “readFile##” requires a string (a file name), not ", f->whichText(), U".");
7119 }
7120 }
7121 static void do_tensorLiteralcxx . . $ do_tensorLiteral(49f6e7a06ebc5aa8). () {
7122 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7123 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
7124 integercxx . . $ integer# numberOfElements = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7125 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (numberOfElements >= 0);
7126 if (numberOfElements == 0) {
7127 autoVECcxx . . $ autoVEC# result = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (0);
7128 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
7129 return;
7130 }
7131 /*
7132 The type of the tensor can be a vector, or a matrix, or a tensor3...
7133 This depends on whether the last element is a number, a vector, or a matrix...
7134 */
7135 const Stackelcxx . . $ Stackel# last = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7136 if (last->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
7137 autoVECcxx . . $ autoVEC# result = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (numberOfElements);
7138 result [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).numberOfElements] = last->numbercxx . . $ structStackel#$anonymous_type_0#number.;
7139 for (integercxx . . $ integer# ielement = numberOfElements - 1; ielement > 0; ielement --) {
7140 const Stackelcxx . . $ Stackel# element = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7141 if (element->whichcxx . . $ structStackel#which. != Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
7142 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The tensor elements have to be of the same type, not ", element->whichText(), U" and a number.");
7143 result [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).ielement] = element->numbercxx . . $ structStackel#$anonymous_type_0#number.;
7144 }
7145 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
7146 } else if (last->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
7147 /*@praat
7148 a# = zero# (0) ; edge case
7149 a## = { a#, a# }
7150 assert numberOfRows (a##) = 2
7151 assert numberOfColumns (a##) = 0
7152 @*/
7153 const integercxx . . $ integer# sharedNumberOfColumns = last->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
7154 autoMATcxx . . $ autoMAT# result = raw_MATcxx . . $ raw_MAT(3d09731056d2b97d). (numberOfElements, sharedNumberOfColumns);
7155 resultcxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd)..rowcxx . . $ automatrix#row(2d545b3cb3f8e666). (numberOfElements) <<=cxx . . $ `operator<<=`(adea042513329390). lastcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
7156 for (integercxx . . $ integer# ielement = numberOfElements - 1; ielement > 0; ielement --) {
7157 const Stackelcxx . . $ Stackel# element = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7158 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (element->which == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!,
7159 U"The tensor elements have to be of the same type, not ", element->whichText(), U" and a vector.");
7160 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (element->numericVector.size == sharedNumberOfColumns,
7161 U"The vectors have to be of the same size, not ", element->numericVector.size, U" and ", sharedNumberOfColumns);
7162 resultcxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd)..rowcxx . . $ automatrix#row(2d545b3cb3f8e666). (ielement) <<=cxx . . $ `operator<<=`(adea042513329390). elementcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
7163 }
7164 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (resultcxx . . $ automatrix#automatrix(a69681c49ef9c9eb)..movecxx . . $ automatrix#move(8771494f681de611).());
7165 } else if (last->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7166 autoSTRVECcxx . . $ autoSTRVEC# resultcxx . . $ _autostringautovector#_autostringautovector(1624ee8275b10bda). (numberOfElements);
7167 result [cxx . . $ _autostringautovector#`operator[]`(f191be2b65019068).numberOfElements] =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). last->_stringcxx . . $ structStackel#$anonymous_type_0#_string..movecxx . . $ _autostring#move(bd43c759570f178f).();
7168 for (integercxx . . $ integer# ielement = numberOfElements - 1; ielement > 0; ielement --) {
7169 const Stackelcxx . . $ Stackel# element = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7170 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (element->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7171 U"The tensor elements have to be of the same type, not ", element->whichText(), U" and a string.");
7172 result [cxx . . $ _autostringautovector#`operator[]`(f191be2b65019068).ielement] =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). element->_stringcxx . . $ structStackel#$anonymous_type_0#_string..movecxx . . $ _autostring#move(bd43c759570f178f).();
7173 }
7174 pushStringVectorcxx . . $ pushStringVector(c1f8ac1f3abfc6e2). (stdcxx . . $ _autostringautovector#_autostringautovector(f820baba8b4ac957).::movecxx . . $ std/move(e35c19a1ba7baa26). (result));
7175 } else {
7176 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Cannot (yet?) create a tensor containing ", last->whichText(), U".");
7177 }
7178 }
7179 static void do_tensorLiteralCellcxx . . $ do_tensorLiteralCell(49f6e7a06ebc5aa8). () {
7180 const Stackelcxx . . $ Stackel# index = popcxx . . $ `sys/Formula.cpp:2387:9`!, nelem = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7181 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (nelem->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
7182 const integercxx . . $ integer# numberOfElements = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (nelem->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7183 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (numberOfElements > 0);
7184 const Stackelcxx . . $ Stackel# last = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7185 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (last->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! || last->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7186 U"Cannot index matrix literals.");
7187 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (index->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
7188 U"In vector indexing, the element index should be a number, not ", index->whichText(), U".");
7189 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (isdefined (index->number),
7190 U"The element index is undefined.");
7191 const integercxx . . $ integer# iindex = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (index->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7192 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (iindex >= 1,
7193 U"Element index out of bounds. Your index is ", iindex, U", but the index can range only from 1 to ", numberOfElements, U".");
7194 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (iindex <= numberOfElements,
7195 U"Element index out of bounds. Your index is ", iindex, U", but there are only ", numberOfElements, U" elements.");
7196 if (last->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
7197 double result = last->numbercxx . . $ structStackel#$anonymous_type_0#number.;
7198 for (integercxx . . $ integer# ielement = numberOfElements - 1; ielement > 0; ielement --) {
7199 const Stackelcxx . . $ Stackel# element = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7200 if (element->whichcxx . . $ structStackel#which. != Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
7201 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The tensor elements have to be of the same type, not ", element->whichText(), U" and a number.");
7202 if (ielement == iindex)
7203 result = element->numbercxx . . $ structStackel#$anonymous_type_0#number.;
7204 }
7205 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
7206 } else if (last->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7207 autostring32cxx . . $ autostring32# result = lastcxx . . $ _autostring#_autostring(39021ecceedcc7d2).->_stringcxx . . $ structStackel#$anonymous_type_0#_string..movecxx . . $ _autostring#move(bd43c759570f178f).(); // we can move it, because it's been popped off the stack, so we never return there
7208 for (integercxx . . $ integer# ielement = numberOfElements - 1; ielement > 0; ielement --) {
7209 const Stackelcxx . . $ Stackel# element = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7210 if (element->whichcxx . . $ structStackel#which. != Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
7211 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The tensor elements have to be of the same type, not ", element->whichText(), U" and a string.");
7212 if (ielement == iindex)
7213 result =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). element->_stringcxx . . $ structStackel#$anonymous_type_0#_string..movecxx . . $ _autostring#move(bd43c759570f178f).(); // we can move it, because it's been popped off the stack, so we never return there
7214 }
7215 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
7216 }
7217 }
7218 static void do_row_VECcxx . . $ do_row_VEC(49f6e7a06ebc5aa8). () {
7219 /*
7220 result# = row# (mat##, rowNumber)
7221 */
7222 const Stackelcxx . . $ Stackel# rowNumber_ = popcxx . . $ `sys/Formula.cpp:2387:9`!, mat_ = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7223 if (mat_->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && rowNumber_->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
7224 const constMATcxx . . $ constMAT# mat = mat_cxx . . $ constmatrix#constmatrix(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
7225 const integercxx . . $ integer# rowNumber = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (rowNumber_->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7226 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (rowNumber >= 1 && rowNumber <= mat.nrow,
7227 U"In the function “row#”, the row number should be between 1 and ", mat.nrow, U".");
7228 autoVECcxx . . $ autoVEC# result = copy_VECcxx . . $ copy_VEC(d4415e68b25283a8). (matcxx . . $ constvectorview#constvectorview(fc39adb4395e9baf)..rowcxx . . $ constmatrix#row(aae4ad074ae650ba). (rowNumber));
7229 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
7230 } else {
7231 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “row#” requires a matrix and a row number, not ", mat_->whichText(), U" and ", rowNumber_->whichText(), U".");
7232 }
7233 }
7234 static void do_col_VECcxx . . $ do_col_VEC(49f6e7a06ebc5aa8). () {
7235 /*
7236 result# = col# (mat##, colNumber)
7237 */
7238 const Stackelcxx . . $ Stackel# colNumber_ = popcxx . . $ `sys/Formula.cpp:2387:9`!, mat_ = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7239 if (mat_->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && colNumber_->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
7240 const constMATcxx . . $ constMAT# mat = mat_cxx . . $ constmatrix#constmatrix(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
7241 const integercxx . . $ integer# colNumber = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (colNumber_->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7242 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (colNumber >= 1 && colNumber <= mat.ncol,
7243 U"In the function “col#”, the column number should be between 1 and ", mat.ncol, U".");
7244 autoVECcxx . . $ autoVEC# result = copy_VECcxx . . $ copy_VEC(d4415e68b25283a8). (mat.columncxx . . $ constmatrix#column(7a6174ed67b49158). (colNumber));
7245 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
7246 } else {
7247 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “col#” requires a matrix and a column number, not ", mat_->whichText(), U" and ", colNumber_->whichText(), U".");
7248 }
7249 }
7250 static void do_innercxx . . $ do_inner(49f6e7a06ebc5aa8). () {
7251 /*
7252 result = inner (x#, y#)
7253 */
7254 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7255 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
7256 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMinnercxx . . $ NUMinner(5e5adb47f563a3e3). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.));
7257 } else {
7258 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “inner” requires two vectors, not ", x->whichText(), U" and ", y->whichText(), U".");
7259 }
7260 }
7261 static void do_correlationcxx . . $ do_correlation(49f6e7a06ebc5aa8). () {
7262 /*
7263 result = correlation (x#, y#)
7264 */
7265 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7266 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
7267 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (NUMcorrelationcxx . . $ NUMcorrelation(453baa2d8fbe1ac4). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.));
7268 } else {
7269 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “correlation” requires two vectors, not ", x->whichText(), U" and ", y->whichText(), U".");
7270 }
7271 }
7272 static void do_outer_MATcxx . . $ do_outer_MAT(49f6e7a06ebc5aa8). () {
7273 /*
7274 result## = outer## (x#, y#)
7275 */
7276 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7277 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
7278 autoMATcxx . . $ autoMAT# result = outer_MATcxx . . $ outer_MAT(aaaa557e9be1882f). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.);
7279 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (resultcxx . . $ automatrix#automatrix(a69681c49ef9c9eb)..movecxx . . $ automatrix#move(8771494f681de611).());
7280 } else {
7281 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “outer##” requires two vectors, not ", x->whichText(), U" and ", y->whichText(), U".");
7282 }
7283 }
7284 static void do_mul_VECcxx . . $ do_mul_VEC(49f6e7a06ebc5aa8). () {
7285 /*
7286 result# = mul# (x.., y..)
7287 */
7288 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7289 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
7290 /*
7291 result# = mul# (x#, y##)
7292 */
7293 const integercxx . . $ integer# xSize = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size., yNrow = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.;
7294 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (yNrow == xSize,
7295 U"In the function “mul#”, the dimension of the vector and the number of rows of the matrix should be equal, "
7296 U"not ", xSize, U" and ", yNrow
7297 );
7298 autoVECcxx . . $ autoVEC# result = mul_VECcxx . . $ mul_VEC(b377616a3b7e3ea0). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
7299 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
7300 } else if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
7301 /*
7302 result# = mul# (x##, y#)
7303 */
7304 const integercxx . . $ integer# xNcol = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol., ySize = y->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
7305 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (ySize == xNcol,
7306 U"In the function “mul#”, the number of columns of the matrix and the dimension of the vector should be equal, "
7307 U"not ", xNcol, U" and ", ySize, U"."
7308 );
7309 autoVECcxx . . $ autoVEC# result = mul_VECcxx . . $ mul_VEC(9a5f078c2b4f07dc). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.);
7310 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
7311 } else {
7312 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “mul#” requires a vector and a matrix, not ", x->whichText(), U" and ", y->whichText(), U".");
7313 }
7314 }
7315 static void do_mul_MATcxx . . $ do_mul_MAT(49f6e7a06ebc5aa8). () {
7316 /*
7317 result## = mul## (x.., y..)
7318 */
7319 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7320 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
7321 /*
7322 result# = mul## (x##, y##)
7323 */
7324 const integercxx . . $ integer# xNcol = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol., yNrow = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.;
7325 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (yNrow == xNcol,
7326 U"In the function “mul##”, the number of columns of the first matrix and the number of rows of the second matrix should be equal, "
7327 U"not ", xNcol, U" and ", yNrow, U"."
7328 );
7329 autoMATcxx . . $ autoMAT# result = zero_MATcxx . . $ zero_MAT(3d09731056d2b97d). (x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow., y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.);
7330 _mul_allowAllocation_MAT_outcxx . . $ _mul_allowAllocation_MAT_out(4e78c3c576663480). (resultcxx . . $ matrixview#matrixview(eed9513d24570b3d)..getcxx . . $ automatrix#get(b2b81450b5bdda66).(), xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
7331 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (resultcxx . . $ automatrix#automatrix(a69681c49ef9c9eb)..movecxx . . $ automatrix#move(8771494f681de611).());
7332 } else {
7333 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “mul##” requires two matrices, not ", x->whichText(), U" and ", y->whichText(), U".");
7334 }
7335 }
7336 static void do_mul_metal_MATcxx . . $ do_mul_metal_MAT(49f6e7a06ebc5aa8). () {
7337 /*
7338 result## = mul## (x.., y..)
7339 */
7340 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7341 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
7342 /*
7343 result# = mul## (x##, y##)
7344 */
7345 const integercxx . . $ integer# xNcol = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol., yNrow = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.;
7346 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (yNrow == xNcol,
7347 U"In the function “mul##”, the number of columns of the first matrix and the number of rows of the second matrix should be equal, "
7348 U"not ", xNcol, U" and ", yNrow, U"."
7349 );
7350 autoMATcxx . . $ autoMAT# result = zero_MATcxx . . $ zero_MAT(3d09731056d2b97d). (x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow., y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.);
7351 MATmul_forceMetal_cxx . . $ MATmul_forceMetal_(9e368e0da0f1874a). (resultcxx . . $ matrixview#matrixview(eed9513d24570b3d)..getcxx . . $ automatrix#get(b2b81450b5bdda66).(), xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
7352 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (resultcxx . . $ automatrix#automatrix(a69681c49ef9c9eb)..movecxx . . $ automatrix#move(8771494f681de611).());
7353 } else {
7354 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “mul_metal##” requires two matrices, not ", x->whichText(), U" and ", y->whichText(), U".");
7355 }
7356 }
7357 static void do_mul_fast_MATcxx . . $ do_mul_fast_MAT(49f6e7a06ebc5aa8). () {
7358 /*
7359 result## = mul_fast## (x.., y..)
7360 */
7361 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7362 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
7363 /*
7364 result# = mul_fast## (x##, y##)
7365 */
7366 const integercxx . . $ integer# xNcol = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol., yNrow = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.;
7367 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (yNrow == xNcol,
7368 U"In the function “mul_fast##”, the number of columns of the first matrix and the number of rows of the second matrix should be equal, "
7369 U"not ", xNcol, U" and ", yNrow, U"."
7370 );
7371 autoMATcxx . . $ autoMAT# result = mul_fast_MATcxx . . $ mul_fast_MAT(341c1d932d99e4e3). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
7372 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (resultcxx . . $ automatrix#automatrix(a69681c49ef9c9eb)..movecxx . . $ automatrix#move(8771494f681de611).());
7373 } else {
7374 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “mul_fast##” requires two matrices, not ", x->whichText(), U" and ", y->whichText(), U".");
7375 }
7376 }
7377 static void do_mul_tn_MATcxx . . $ do_mul_tn_MAT(49f6e7a06ebc5aa8). () {
7378 /*
7379 result## = mul_tn## (x.., y..)
7380 */
7381 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7382 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
7383 /*
7384 result# = mul_tn## (x##, y##)
7385 */
7386 const integercxx . . $ integer# xNrow = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow., yNrow = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow.;
7387 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (yNrow == xNrow,
7388 U"In the function “mul_tn##”, the number of rows of the first matrix and the number of rows of the second matrix should be equal, "
7389 U"not ", xNrow, U" and ", yNrow, U"."
7390 );
7391 autoMATcxx . . $ autoMAT# result = mul_allowAllocation_MATcxx . . $ mul_allowAllocation_MAT(341c1d932d99e4e3). (xcxx . . $ constmatrixview#constmatrixview(c98a2930b9469e58).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..transposecxx . . $ matrix#transpose(2114117ba8ed4224).(), ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
7392 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (resultcxx . . $ automatrix#automatrix(a69681c49ef9c9eb)..movecxx . . $ automatrix#move(8771494f681de611).());
7393 } else {
7394 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “mul_tn##” requires two matrices, not ", x->whichText(), U" and ", y->whichText(), U".");
7395 }
7396 }
7397 static void do_mul_nt_MATcxx . . $ do_mul_nt_MAT(49f6e7a06ebc5aa8). () {
7398 /*
7399 result## = mul_nt## (x.., y..)
7400 */
7401 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7402 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
7403 /*
7404 result# = mul_nt## (x##, y##)
7405 */
7406 const integercxx . . $ integer# xNcol = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol., yNcol = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.;
7407 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (yNcol == xNcol,
7408 U"In the function “mul_tn##”, the number of columns of the first matrix and the number of columns of the second matrix should be equal, "
7409 U"not ", xNcol, U" and ", yNcol, U"."
7410 );
7411 autoMATcxx . . $ autoMAT# result = mul_allowAllocation_MATcxx . . $ mul_allowAllocation_MAT(341c1d932d99e4e3). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constmatrixview#constmatrixview(c98a2930b9469e58).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..transposecxx . . $ matrix#transpose(2114117ba8ed4224).());
7412 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (resultcxx . . $ automatrix#automatrix(a69681c49ef9c9eb)..movecxx . . $ automatrix#move(8771494f681de611).());
7413 } else {
7414 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “mul_nt##” requires two matrices, not ", x->whichText(), U" and ", y->whichText(), U".");
7415 }
7416 }
7417 static void do_mul_tt_MATcxx . . $ do_mul_tt_MAT(49f6e7a06ebc5aa8). () {
7418 /*
7419 result## = mul_tt## (x.., y..)
7420 */
7421 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7422 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
7423 /*
7424 result# = mul_tt## (x##, y##)
7425 */
7426 const integercxx . . $ integer# xNrow = x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow., yNcol = y->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.;
7427 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (yNcol == xNrow,
7428 U"In the function “mul_tt##”, the number of rows of the first matrix and the number of columns of the second matrix should be equal, "
7429 U"not ", xNrow, U" and ", yNcol, U"."
7430 );
7431 autoMATcxx . . $ autoMAT# result = mul_allowAllocation_MATcxx . . $ mul_allowAllocation_MAT(341c1d932d99e4e3). (xcxx . . $ constmatrixview#constmatrixview(c98a2930b9469e58).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..transposecxx . . $ matrix#transpose(2114117ba8ed4224).(), ycxx . . $ constmatrixview#constmatrixview(c98a2930b9469e58).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..transposecxx . . $ matrix#transpose(2114117ba8ed4224).());
7432 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (resultcxx . . $ automatrix#automatrix(a69681c49ef9c9eb)..movecxx . . $ automatrix#move(8771494f681de611).());
7433 } else {
7434 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “mul_tt##” requires two matrices, not ", x->whichText(), U" and ", y->whichText(), U".");
7435 }
7436 }
7437 static void do_transpose_MATcxx . . $ do_transpose_MAT(49f6e7a06ebc5aa8). () {
7438 const Stackelcxx . . $ Stackel# x = topOfStackcxx . . $ `sys/Formula.cpp:2388:9`!;
7439 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
7440 if (x->ownedcxx . . $ structStackel#owned.) {
7441 if (NUMisSquarecxx . . $ NUMisSquare(22df7c734db6567e). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.)) {
7442 /*@praat
7443 assert transpose## ({ { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }) = { { 1, 4, 7 }, { 2, 5, 8 }, { 3, 6, 9 } }
7444 @*/
7445 transpose_mustBeSquare_MAT_inoutcxx . . $ transpose_mustBeSquare_MAT_inout(a810c3355071c044). (xcxx . . $ matrixview#matrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
7446 } else {
7447 /*@praat
7448 assert transpose## ({ { 1, 2, 3 }, { 4, 5, 6 } }) = { { 1, 4 }, { 2, 5 }, { 3, 6 } }
7449 @*/
7450 autoMATcxx . . $ autoMAT# newMatrix = transpose_MATcxx . . $ transpose_MAT(a392b09ce3fc3972). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
7451 x->resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
7452 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). newMatrix.releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
7453 }
7454 } else {
7455 /*@praat
7456 a## = { { 1, 2, 3 }, { 4, 5, 6 } }
7457 assert transpose## (a##) = { { 1, 4 }, { 2, 5 }, { 3, 6 } }
7458 assert transpose## (transpose## (a##)) = a##
7459 @*/
7460 x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix. =cxx . . $ matrix#`operator=`(4523e359477ec8fe). transpose_MATcxx . . $ transpose_MAT(a392b09ce3fc3972). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.). releaseToAmbiguousOwnercxx . . $ automatrix#releaseToAmbiguousOwner(e3e8849cc90cf97).();
7461 x->ownedcxx . . $ structStackel#owned. = true;
7462 }
7463 } else {
7464 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “transpose##” requires a matrix, not ", x->whichText(), U".");
7465 }
7466 }
7467 static void do_rowSums_VECcxx . . $ do_rowSums_VEC(49f6e7a06ebc5aa8). () {
7468 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7469 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
7470 autoVECcxx . . $ autoVEC# result = rowSums_VECcxx . . $ rowSums_VEC(81359d2d5440d947). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
7471 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
7472 } else {
7473 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “rowSums#” requires a matrix, not ", x->whichText(), U".");
7474 }
7475 }
7476 static void do_columnSums_VECcxx . . $ do_columnSums_VEC(49f6e7a06ebc5aa8). () {
7477 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7478 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
7479 /*@praat
7480 a## = { { 4, 7, -10 }, { 16, 0, 88 } }
7481 result# = columnSums# (a##)
7482 assert result# = { 20, 7, 78 }
7483 @*/
7484 autoVECcxx . . $ autoVEC# result = columnSums_VECcxx . . $ columnSums_VEC(81359d2d5440d947). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.);
7485 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
7486 } else {
7487 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “columnSums#” requires a matrix, not ", x->whichText(), U".");
7488 }
7489 }
7490 static void do_repeat_VECcxx . . $ do_repeat_VEC(49f6e7a06ebc5aa8). () {
7491 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7492 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! && n->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
7493 const integercxx . . $ integer# n_old = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.;
7494 const integercxx . . $ integer# times = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7495 autoVECcxx . . $ autoVEC# result = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (n_old * times);
7496 for (integercxx . . $ integer# i = 1; i <= times; i ++)
7497 for (integercxx . . $ integer# j = 1; j <= n_old; j ++)
7498 result [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).(i - 1) * n_old + j] = x->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector. [cxx . . $ vector#`operator[]`(8a4599b8835d1ce1).j];
7499 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (resultcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
7500 } else {
7501 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “repeat#” requires a vector and a number, not ", x->whichText(), U" and ", n->whichText(), U".");
7502 }
7503 }
7504 static void do_rowInners_VECcxx . . $ do_rowInners_VEC(49f6e7a06ebc5aa8). () {
7505 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7506 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
7507 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (x->numericMatrix.nrow == y->numericMatrix.nrow && x->numericMatrix.ncol == y->numericMatrix.ncol,
7508 U"In the function rowInners#, the two matrices should have the same shape, not ",
7509 x->numericMatrix.nrow, U"x", x->numericMatrix.ncol, U" and ", y->numericMatrix.nrow, U"x", y->numericMatrix.ncol
7510 );
7511 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (rowInners_VECcxx . . $ rowInners_VEC(95375ac65f562f33). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.));
7512 } else {
7513 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “rowInners#” requires two matrices, not ", x->whichText(), U" and ", y->whichText(), U".");
7514 }
7515 }
7516 static void do_solve_VECcxx . . $ do_solve_VEC(49f6e7a06ebc5aa8). () {
7517 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7518 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
7519 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (x->numericMatrix.nrow == y->numericVector.size,
7520 U"In the function “solve#”, the number of rows of the matrix and the dimension of the vector should be equal, not ",
7521 x->numericMatrix.nrow, U" and ", y->numericVector.size
7522 );
7523 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (solve_VECcxx . . $ solve_VEC(27d4aa16c6844bf6). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., NUMepscxx . . $ `dwsys/NUM2.h:36:9`! * y->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector..sizecxx . . $ vector#size.));
7524 } else {
7525 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “solve#” requires a matrix and a vector, not ", x->whichText(), U" and ", y->whichText(), U".");
7526 }
7527 }
7528
7529 static void do_solveWeaklyConstrained_VECcxx . . $ do_solveWeaklyConstrained_VEC(49f6e7a06ebc5aa8). () {
7530 const Stackelcxx . . $ Stackel# delta = popcxx . . $ `sys/Formula.cpp:2387:9`!, alpha = popcxx . . $ `sys/Formula.cpp:2387:9`!, y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7531 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! && alpha->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && delta->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
7532 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (x->numericMatrix.nrow == y->numericVector.size,
7533 U"In the function “solveWeaklyConstrained#”, the number of rows of the matrix and the dimension of the vector should be equal, not ",
7534 x->numericMatrix.nrow, U" and ", y->numericVector.size
7535 );
7536 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (alpha->number >= 0.0,
7537 U"Argument 3, the weight coefficient of the penalty function should not be negative.");
7538 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (delta->number >= 0.0,
7539 U"Argument 4, the squared length of the solution vector should not be negative.");
7540 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (solveWeaklyConstrainedLinearRegression_VECcxx . . $ solveWeaklyConstrainedLinearRegression_VEC(7c02f05d3410d3c). (xcxx . . $ constmatrix#constmatrix(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constvector#constvector(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., alpha->numbercxx . . $ structStackel#$anonymous_type_0#number., delta->numbercxx . . $ structStackel#$anonymous_type_0#number.));
7541 } else {
7542 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “solveWeaklyConstrained#” requires a matrix, a vector, and two numbers not ", x->whichText(), U", ",
7543 y->whichText(), U", ", alpha->whichText(), U" and ", delta->whichText(), U".");
7544 }
7545 }
7546
7547 static void do_solve_MATcxx . . $ do_solve_MAT(49f6e7a06ebc5aa8). () {
7548 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7549 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
7550 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (x->numericMatrix.nrow == y->numericMatrix.nrow,
7551 U"In the function “solve##”, the two matrices should have the same number of rows, not ",
7552 x->numericMatrix.nrow, U" and ", y->numericMatrix.nrow);
7553 pushNumericMatrixcxx . . $ pushNumericMatrix(c7b10f8332c48a11). (solve_MATcxx . . $ solve_MAT(5d4edd2029231381). (xcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., ycxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix., NUMepscxx . . $ `dwsys/NUM2.h:36:9`! * x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..nrowcxx . . $ matrix#nrow. * x->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix..ncolcxx . . $ matrix#ncol.));
7554 } else {
7555 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “solve##” requires two matrices, not ", x->whichText(), U" and ", y->whichText(), U".");
7556 }
7557 }
7558
7559 static void do_solveSparse_VECcxx . . $ do_solveSparse_VEC(49f6e7a06ebc5aa8). () {
7560 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7561 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n -> which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
7562 if (n -> numbercxx . . $ structStackel#$anonymous_type_0#number. == 6) {
7563 const Stackelcxx . . $ Stackel# info = popcxx . . $ `sys/Formula.cpp:2387:9`!, tol = popcxx . . $ `sys/Formula.cpp:2387:9`!, niter = popcxx . . $ `sys/Formula.cpp:2387:9`!, nonzeros = popcxx . . $ `sys/Formula.cpp:2387:9`!, y = popcxx . . $ `sys/Formula.cpp:2387:9`!, dict = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7564 if (dict->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! &&
7565 nonzeros->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && niter->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! &&
7566 tol->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && info->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
7567 const MATcxx . . $ MAT# d = dict->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
7568 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (d.ncol > d.nrow,
7569 U"The number of columns should be larger than the number of rows (sparse!).");
7570 const VECcxx . . $ VEC# yy = y->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
7571 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (yy.size == d.nrow,
7572 U"The number of rows in the matrix should equal the size of the vector.");
7573 const integercxx . . $ integer# numberOfNonzeros = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (nonzeros->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7574 const integercxx . . $ integer# maximumNumberOfIterations = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (niter ->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7575 const integercxx . . $ integer# infoLevel = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (info->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7576 const double tolerance = tol->numbercxx . . $ structStackel#$anonymous_type_0#number.;
7577 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (solveSparse_IHT_VECcxx . . $ solveSparse_IHT_VEC(f538a6905be9afbb). (dcxx . . $ constmatrixview#constmatrixview(eed9513d24570b3d)., yycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd)., numberOfNonzeros, maximumNumberOfIterations, tolerance, infoLevel));
7578 } else {
7579 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “solveSparse#” requires a matrix, a vector, and four numbers, not ", dict->whichText(), U", ", y->whichText(), U", ", nonzeros->whichText(), U", ",
7580 niter->whichText(), U", ", tol->whichText(), U" and ", info->whichText());
7581 }
7582 } else if (n -> numbercxx . . $ structStackel#$anonymous_type_0#number. == 7) {
7583 const Stackelcxx . . $ Stackel# info = popcxx . . $ `sys/Formula.cpp:2387:9`!, tol = popcxx . . $ `sys/Formula.cpp:2387:9`!, niter = popcxx . . $ `sys/Formula.cpp:2387:9`!, nonzeros = popcxx . . $ `sys/Formula.cpp:2387:9`!, xstart = popcxx . . $ `sys/Formula.cpp:2387:9`!, y = popcxx . . $ `sys/Formula.cpp:2387:9`!, dict = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7584 if (dict->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! &&
7585 xstart->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! &&
7586 nonzeros->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && niter->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! &&
7587 tol->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && info->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
7588 {
7589 const constMATcxx . . $ constMAT# d = dictcxx . . $ constmatrix#constmatrix(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
7590 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (d.ncol > d.nrow,
7591 U"The number of columns should be larger than the number of rows (sparse!).");
7592 const constVECcxx . . $ constVEC# yy = ycxx . . $ constvector#constvector(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
7593 const VECcxx . . $ VEC# x = xstart->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
7594 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (yy.size == d.nrow,
7595 U"The number of rows in the matrix should equal the size of the vector.");
7596 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (x.size == d.ncol,
7597 U"The number of columns in the matrix should equal the size of start vector.");
7598 autoVECcxx . . $ autoVEC# xs = copy_VECcxx . . $ copy_VEC(d4415e68b25283a8). (xcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).);
7599 const integercxx . . $ integer# numberOfNonzeros = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (nonzeros->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7600 const integercxx . . $ integer# maximumNumberOfIterations = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (niter ->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7601 const integercxx . . $ integer# infoLevel = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (info->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7602 const double tolerance = tol->numbercxx . . $ structStackel#$anonymous_type_0#number.;
7603 VECsolveSparse_IHTcxx . . $ VECsolveSparse_IHT(da092c38e9e93446). (xs.allcxx . . $ autovector#all(a26726dad87555bb).(), dcxx . . $ constmatrixview#constmatrixview(5fba671ea590c05b)., yycxx . . $ constvectorview#constvectorview(fc39adb4395e9baf)., numberOfNonzeros, maximumNumberOfIterations, tolerance, infoLevel);
7604 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (xscxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
7605 } else {
7606 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “solveSparse#” requires a matrix, a vector, and four numbers, not ", dict->whichText(), U", ", y->whichText(), U", ", nonzeros->whichText(), U", ",
7607 niter->whichText(), U", ", tol->whichText(), U" and ", info->whichText());
7608 }
7609 } else {
7610 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “solveSparse#” requires six or seven arguments.");
7611 }
7612 }
7613
7614 static void do_solveNonnegative_VECcxx . . $ do_solveNonnegative_VEC(49f6e7a06ebc5aa8). () {
7615 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7616 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (n -> which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
7617 if (n -> numbercxx . . $ structStackel#$anonymous_type_0#number. == 6) {
7618 const Stackelcxx . . $ Stackel# info = popcxx . . $ `sys/Formula.cpp:2387:9`!, tol = popcxx . . $ `sys/Formula.cpp:2387:9`!, itermax = popcxx . . $ `sys/Formula.cpp:2387:9`!, xstart = popcxx . . $ `sys/Formula.cpp:2387:9`!, y = popcxx . . $ `sys/Formula.cpp:2387:9`!, m = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7619 if (m->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! &&
7620 xstart->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! && itermax->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! &&
7621 tol->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && info->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
7622 {
7623 const double tolerance = tol->numbercxx . . $ structStackel#$anonymous_type_0#number.;
7624 const integercxx . . $ integer# maximumNumberOfIterations = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (itermax->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7625 const integercxx . . $ integer# infoLevel = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (info->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7626 const constMATcxx . . $ constMAT# a = mcxx . . $ constmatrix#constmatrix(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
7627 const VECcxx . . $ VEC# yy = y->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
7628 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (a.nrow == yy.size,
7629 U"The number of rows in the matrix should equal the size of the vector.");
7630 autoVECcxx . . $ autoVEC# x = copy_VECcxx . . $ copy_VEC(d4415e68b25283a8). (xstartcxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.);
7631 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (x.size == a.ncol,
7632 U"The size of start vector should equal the number of columns in the matrix.");
7633 VECsolveNonnegativeLeastSquaresRegressioncxx . . $ VECsolveNonnegativeLeastSquaresRegression(2e2c493d9e4ea95e). (xcxx . . $ vectorview#vectorview(eac9d6ec4c4bfecd)..getcxx . . $ autovector#get(e8d1da7fe68a6585).(), acxx . . $ constmatrixview#constmatrixview(5fba671ea590c05b)., yycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd)., maximumNumberOfIterations, tolerance, infoLevel);
7634 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (xcxx . . $ autovector#autovector(d33c649a3aceae2f)..movecxx . . $ autovector#move(57d90d7d77dfc011).());
7635 } else {
7636 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “solveNonnegative#” requires a matrix, a vector, a vector and three numbers, not ", m->whichText(), U", ", y->whichText(), U", ", xstart->whichText(), U", ",
7637 itermax->whichText(), U", ", tol->whichText(), U" and ", info->whichText());
7638 }
7639 } else if (n -> numbercxx . . $ structStackel#$anonymous_type_0#number. == 5) {
7640 const Stackelcxx . . $ Stackel# info = popcxx . . $ `sys/Formula.cpp:2387:9`!, tol = popcxx . . $ `sys/Formula.cpp:2387:9`!, itermax = popcxx . . $ `sys/Formula.cpp:2387:9`!, y = popcxx . . $ `sys/Formula.cpp:2387:9`!, m = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7641 if (m->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`! &&
7642 itermax->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && tol->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && info->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
7643 {
7644 const double tolerance = tol->numbercxx . . $ structStackel#$anonymous_type_0#number.;
7645 const integercxx . . $ integer# maximumNumberOfIterations = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (itermax->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7646 const integercxx . . $ integer# infoLevel = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (info->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7647 const constMATcxx . . $ constMAT# a = mcxx . . $ constmatrix#constmatrix(eed9513d24570b3d).->numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
7648 const VECcxx . . $ VEC# yy = y->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
7649 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (a.nrow == yy.size,
7650 U"The number of rows in the matrix should equal the size of the vector.");
7651 pushNumericVectorcxx . . $ pushNumericVector(51ec359cb834380b). (solveNonnegativeLeastSquaresRegression_VECcxx . . $ solveNonnegativeLeastSquaresRegression_VEC(bc0ba5999309359e). (acxx . . $ constmatrixview#constmatrixview(5fba671ea590c05b)., yycxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd)., maximumNumberOfIterations, tolerance, infoLevel));
7652 } else {
7653 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “solveNonnegative#” requires a matrix, a vector, and three numbers, not ", m->whichText(), U", ", y->whichText(), U", ", itermax->whichText(), U", ", tol->whichText(), U" and ", info->whichText());
7654 }
7655 } else {
7656 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “solveNonnegative#” requires five or six arguments.");
7657 }
7658 }
7659
7660 static void do_askForTrustcxx . . $ do_askForTrust(49f6e7a06ebc5aa8). () {
7661 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7662 U"The function “askForTrust” is not available inside manuals.");
7663 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7664 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 0,
7665 U"The function “askForTrust” should have no arguments.");
7666 const Editorcxx . . $ Editor# optionalTrustWindowOwningEditor = theInterpretercxx . . $ theInterpreter. -> optionalDynamicEnvironmentEditorcxx . . $ structInterpreter#optionalDynamicEnvironmentEditor(480fba2ddcd094f3).();
7667 const GuiWindowcxx . . $ GuiWindow# parentShell = ( optionalTrustWindowOwningEditor ? optionalTrustWindowOwningEditor -> windowFormcxx . . $ structEditor#windowForm. : theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> topShellcxx . . $ structPraatApplication#topShell. );
7668 const bool isAlreadyTrusted = theInterpretercxx . . $ theInterpreter. -> scriptReferencecxx . . $ structInterpreter#scriptReference. && theInterpretercxx . . $ theInterpreter. -> scriptReferencecxx . . $ structInterpreter#scriptReference. -> trustedcxx . . $ structScript#trusted.;
7669 if (! isAlreadyTrusted) {
7670 conststring32cxx . . $ conststring32# message [1+5] = { };
7671 if (theInterpretercxx . . $ theInterpreter. -> scriptReferencecxx . . $ structInterpreter#scriptReference.) {
7672 message [1] = U"The script";
7673 message [2] = Melder_catcxx . . $ Melder_cat(7fbf27f4d367f442). (U"“", theInterpretercxx . . $ theInterpreter. -> scriptReferencecxx . . $ structInterpreter#scriptReference. -> stringcxx . . $ structSimpleString#string..getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), U"”");
7674 } else if (theInterpretercxx . . $ theInterpreter. -> notebookReferencecxx . . $ structInterpreter#notebookReference.) {
7675 message [1] = U"The notebook";
7676 message [2] = Melder_catcxx . . $ Melder_cat(7fbf27f4d367f442). (U"“", theInterpretercxx . . $ theInterpreter. -> notebookReferencecxx . . $ structInterpreter#notebookReference. -> stringcxx . . $ structSimpleString#string..getcxx . . $ _autostring#get(5a2a78a048fb49a8).(), U"”");
7677 } else
7678 message [1] = U"Your untitled script or notebook";
7679 message [3] = U"requests permission to control your computer (e.g. it may want to overwrite files,\n"
7680 "delete folders, run system commands, and/or access the internet).";
7681 message [4] = U"Allow this only if you fully trust the intentions and skills of the author(s),\n"
7682 "AND the intentions and skills of the author(s) of the script(s) called by this script directly or indirectly.";
7683 conststring32cxx . . $ conststring32# option1 = U"CANCEL\n(because I don’t completely trust the authors’ skills and/or intentions)";
7684 conststring32cxx . . $ conststring32# option2 =
7685 theInterpretercxx . . $ theInterpreter. -> scriptReferencecxx . . $ structInterpreter#scriptReference. ?
7686 U"Yes, I allow this script to CONTROL MY COMPUTER, because I fully trust the skills and\n"
7687 "intentions of its authors AND of those of the authors of any scripts called by it directly or indirectly."
7688 : theInterpretercxx . . $ theInterpreter. -> notebookReferencecxx . . $ structInterpreter#notebookReference. ?
7689 U"Yes, I allow this notebook to CONTROL MY COMPUTER, because I fully trust the skills and\n"
7690 "intentions of its authors AND of those of the authors of any scripts called by it directly or indirectly."
7691 :
7692 U"Yes, I allow this script or notebook to CONTROL MY COMPUTER, because I fully trust the skills and\n"
7693 "intentions of its authors AND of those of the authors of any scripts called by it directly or indirectly.";
7694 const bool trusted = GuiTrust_getcxx . . $ GuiTrust_get(46458cd14d966cec). (parentShell, optionalTrustWindowOwningEditor,
7695 message [1], message [2], message [3], message [4], message [5],
7696 option1, option2, nullptr, nullptr, nullptr, theInterpretercxx . . $ theInterpreter.
7697 );
7698 if (trusted) {
7699 if (theInterpretercxx . . $ theInterpreter. -> scriptReferencecxx . . $ structInterpreter#scriptReference.)
7700 theInterpretercxx . . $ theInterpreter. -> scriptReferencecxx . . $ structInterpreter#scriptReference. -> trustedcxx . . $ structScript#trusted. = true;
7701 else if (theInterpretercxx . . $ theInterpreter. -> notebookReferencecxx . . $ structInterpreter#notebookReference.)
7702 theInterpretercxx . . $ theInterpreter. -> notebookReferencecxx . . $ structInterpreter#notebookReference. -> trustedcxx . . $ structNotebook#trusted. = true;
7703 }
7704 }
7705 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7706 }
7707
7708 static void do_beginPausecxx . . $ do_beginPause(49f6e7a06ebc5aa8). () {
7709 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7710 U"The function “beginPause” is not available inside manuals.");
7711 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7712 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
7713 const Stackelcxx . . $ Stackel# title = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7714 if (title->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7715 const Editorcxx . . $ Editor# optionalPauseWindowOwningEditor = theInterpretercxx . . $ theInterpreter. -> optionalDynamicEnvironmentEditorcxx . . $ structInterpreter#optionalDynamicEnvironmentEditor(480fba2ddcd094f3).();
7716 const GuiWindowcxx . . $ GuiWindow# parentShell = ( optionalPauseWindowOwningEditor ? optionalPauseWindowOwningEditor -> windowFormcxx . . $ structEditor#windowForm. : theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> topShellcxx . . $ structPraatApplication#topShell. );
7717 UiPause_begincxx . . $ UiPause_begin(915831b5ca293512). (parentShell, optionalPauseWindowOwningEditor, title->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), theInterpretercxx . . $ theInterpreter.);
7718 } else {
7719 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “beginPause” requires a string (the title), not ", title->whichText(), U".");
7720 }
7721 } else {
7722 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “beginPause” requires 1 argument (a title), not ", n->number, U".");
7723 }
7724 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7725 }
7726 static void do_realcxx . . $ do_real(49f6e7a06ebc5aa8). () {
7727 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7728 U"The function “real” is not available inside manuals.");
7729 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7730 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 2,
7731 U"The function “real” requires 2 arguments (a label text and a default value), not ", n->number, U".");
7732 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7733 conststring32cxx . . $ conststring32# defaultString = nullptr;
7734 if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
7735 defaultString = defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).();
7736 else if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
7737 defaultString = Melder_doublecxx . . $ Melder_double(f05d861d9dbec9b2). (defaultValue->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7738 else
7739 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The second argument of “real” (the default value) should be a string or a number, not ", defaultValue->whichText(), U".");
7740 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7741 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7742 U"The first argument of “real” (the label text) should be a string, not ", label->whichText(), U".");
7743 UiPause_realcxx . . $ UiPause_real(cc7657622ff166ed). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), defaultString);
7744 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7745 }
7746 static void do_positivecxx . . $ do_positive(49f6e7a06ebc5aa8). () {
7747 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7748 U"The function “positive” is not available inside manuals.");
7749 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7750 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 2,
7751 U"The function “positive” requires 2 arguments (a label text and a default value), not ", n->number, U".");
7752 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7753 conststring32cxx . . $ conststring32# defaultString = nullptr;
7754 if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7755 defaultString = defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).();
7756 } else if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
7757 defaultString = Melder_doublecxx . . $ Melder_double(f05d861d9dbec9b2). (defaultValue->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7758 } else {
7759 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The second argument of “positive” (the default value) should be a string or a number, not ", defaultValue->whichText(), U".");
7760 }
7761 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7762 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7763 U"The first argument of “positive” (the label text) should be a string, not ", label->whichText(), U".");
7764 UiPause_positivecxx . . $ UiPause_positive(cc7657622ff166ed). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), defaultString);
7765 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7766 }
7767 static void do_integercxx . . $ do_integer(49f6e7a06ebc5aa8). () {
7768 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7769 U"The function “integer” is not available inside manuals.");
7770 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7771 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 2,
7772 U"The function “integer” requires 2 arguments (a label text and a default value), not ", n->number, U".");
7773 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7774 conststring32cxx . . $ conststring32# defaultString = nullptr;
7775 if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7776 defaultString = defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).();
7777 } else if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
7778 defaultString = Melder_doublecxx . . $ Melder_double(f05d861d9dbec9b2). (defaultValue->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7779 } else {
7780 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The second argument of “integer” (the default value) should be a string or a number, not ", defaultValue->whichText(), U".");
7781 }
7782 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7783 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7784 U"The first argument of “integer” (the label text) should be a string, not ", label->whichText(), U".");
7785 UiPause_integercxx . . $ UiPause_integer(cc7657622ff166ed). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), defaultString);
7786 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7787 }
7788 static void do_naturalcxx . . $ do_natural(49f6e7a06ebc5aa8). () {
7789 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7790 U"The function “natural” is not available inside manuals.");
7791 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7792 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 2,
7793 U"The function “natural” requires 2 arguments (a label text and a default value), not ", n->number, U".");
7794 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7795 conststring32cxx . . $ conststring32# defaultString = nullptr;
7796 if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
7797 defaultString = defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).();
7798 } else if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
7799 defaultString = Melder_doublecxx . . $ Melder_double(f05d861d9dbec9b2). (defaultValue->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7800 } else {
7801 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The second argument of “natural” (the default value) should be a string or a number, not ", defaultValue->whichText(), U".");
7802 }
7803 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7804 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7805 U"The first argument of “natural” (the label text) should be a string, not ", label->whichText(), U".");
7806 UiPause_naturalcxx . . $ UiPause_natural(cc7657622ff166ed). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), defaultString);
7807 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7808 }
7809 static void do_wordcxx . . $ do_word(49f6e7a06ebc5aa8). () {
7810 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7811 U"The function “word” is not available inside manuals.");
7812 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7813 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 2,
7814 U"The function “word” requires 2 arguments (a label text and a default value), not ", n->number, U".");
7815 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7816 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (defaultValue->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7817 U"The second argument of “word” (the default value) should be a string, not ", defaultValue->whichText(), U".");
7818 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7819 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7820 U"The first argument of “word” (the label text) should be a string, not ", label->whichText(), U".");
7821 UiPause_wordcxx . . $ UiPause_word(cc7657622ff166ed). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
7822 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7823 }
7824 static void do_sentencecxx . . $ do_sentence(49f6e7a06ebc5aa8). () {
7825 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7826 U"The function “sentence” is not available inside manuals.");
7827 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7828 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 2,
7829 U"The function “sentence” requires 2 arguments (a label text and a default value), not ", n->number, U".");
7830 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7831 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (defaultValue->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7832 U"The second argument of “sentence” (the default value) should be a string, not ", defaultValue->whichText(), U".");
7833 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7834 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7835 U"The first argument of “sentence” (the label text) should be a string, not ", label->whichText(), U".");
7836 UiPause_sentencecxx . . $ UiPause_sentence(cc7657622ff166ed). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
7837 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7838 }
7839 static void do_textcxx . . $ do_text(49f6e7a06ebc5aa8). () {
7840 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7841 U"The function “text” is not available inside manuals.");
7842 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7843 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 2 && n->number <= 3,
7844 U"The function “text” requires 2 or 3 arguments (an optional number of lines, a label text, and a default value), not ", n->number, U".");
7845 integercxx . . $ integer# numberOfLines = 1; // the default
7846 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 3) {
7847 /*
7848 For compatibility, the number of lines might be at the end.
7849 */
7850 const Stackelcxx . . $ Stackel# arg3 = popcxx . . $ `sys/Formula.cpp:2387:9`!, arg2 = popcxx . . $ `sys/Formula.cpp:2387:9`!, arg1 = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7851 if (arg1->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && arg2->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && arg3->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
7852 UiPause_textcxx . . $ UiPause_text(a2fa6afbb5f03f2). (arg1->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), arg2->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (arg3->numbercxx . . $ structStackel#$anonymous_type_0#number.));
7853 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7854 return;
7855 }
7856 const Stackelcxx . . $ Stackel# defaultValue = arg3;
7857 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (defaultValue->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7858 U"The third argument of “text” (the default value) should be a string, not ", defaultValue->whichText(), U".");
7859 const Stackelcxx . . $ Stackel# label = arg2;
7860 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7861 U"The second argument of “text” (the label) should be a string, not ", label->whichText(), U".");
7862 const Stackelcxx . . $ Stackel# _numberOfLines = arg1;
7863 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (_numberOfLines->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
7864 U"The first argument of “text” (the number of lines) should be a number, not ", _numberOfLines->whichText(), U".");
7865 numberOfLines = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (_numberOfLines->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7866 UiPause_textcxx . . $ UiPause_text(a2fa6afbb5f03f2). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), numberOfLines);
7867 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7868 return;
7869 }
7870 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7871 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (defaultValue->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7872 U"The second argument of “text” (the default value) should be a string, not ", defaultValue->whichText(), U".");
7873 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7874 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7875 U"The first argument of “text” (the label text) should be a string, not ", label->whichText(), U".");
7876 UiPause_textcxx . . $ UiPause_text(a2fa6afbb5f03f2). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), numberOfLines);
7877 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7878 }
7879 static void do_infilecxx . . $ do_infile(49f6e7a06ebc5aa8). () {
7880 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7881 U"The function “infile” is not available inside manuals.");
7882 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7883 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 2 && n->number <= 3,
7884 U"The function “infile” requires 2 or 3 arguments (an optional number of lines, a label text, and a default value), not ", n->number, U".");
7885 integercxx . . $ integer# numberOfLines = 3; // the default
7886 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7887 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (defaultValue->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7888 U"The last argument of “infile” (the default value) should be a string, not ", defaultValue->whichText(), U".");
7889 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7890 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7891 U"The penultimate argument of “infile” (the label text) should be a string, not ", label->whichText(), U".");
7892 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 3) {
7893 const Stackelcxx . . $ Stackel# _numberOfLines = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7894 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (_numberOfLines->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
7895 U"The first argument of “infile” (the number of lines) should be a number, not ", _numberOfLines->whichText(), U".");
7896 numberOfLines = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (_numberOfLines->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7897 }
7898 UiPause_infilecxx . . $ UiPause_infile(a2fa6afbb5f03f2). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), numberOfLines);
7899 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7900 }
7901 static void do_outfilecxx . . $ do_outfile(49f6e7a06ebc5aa8). () {
7902 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7903 U"The function “outfile” is not available inside manuals.");
7904 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7905 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 2 && n->number <= 3,
7906 U"The function “outfile” requires 2 or 3 arguments (an optional number of lines, a label text, and a default value), not ", n->number, U".");
7907 integercxx . . $ integer# numberOfLines = 3; // the default
7908 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7909 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (defaultValue->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7910 U"The last argument of “outfile” (the default value) should be a string, not ", defaultValue->whichText(), U".");
7911 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7912 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7913 U"The penultimate argument of “outfile” (the label text) should be a string, not ", label->whichText(), U".");
7914 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 3) {
7915 const Stackelcxx . . $ Stackel# _numberOfLines = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7916 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (_numberOfLines->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
7917 U"The first argument of “outfile” (the number of lines) should be a number, not ", _numberOfLines->whichText(), U".");
7918 numberOfLines = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (_numberOfLines->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7919 }
7920 UiPause_outfilecxx . . $ UiPause_outfile(a2fa6afbb5f03f2). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), numberOfLines);
7921 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7922 }
7923 static void do_foldercxx . . $ do_folder(49f6e7a06ebc5aa8). () {
7924 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7925 U"The function “folder” is not available inside manuals.");
7926 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7927 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 2 && n->number <= 3,
7928 U"The function “folder” requires 2 or 3 arguments (an optional number of lines, a label text, and a default value), not ", n->number, U".");
7929 integercxx . . $ integer# numberOfLines = 3; // the default
7930 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7931 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (defaultValue->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7932 U"The last argument of “folder” (the default value) should be a string, not ", defaultValue->whichText(), U".");
7933 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7934 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7935 U"The penultimate argument of “folder” (the label text) should be a string, not ", label->whichText(), U".");
7936 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 3) {
7937 const Stackelcxx . . $ Stackel# _numberOfLines = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7938 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (_numberOfLines->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
7939 U"The first argument of “folder” (the number of lines) should be a number, not ", _numberOfLines->whichText(), U".");
7940 numberOfLines = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (_numberOfLines->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7941 }
7942 UiPause_foldercxx . . $ UiPause_folder(a2fa6afbb5f03f2). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), numberOfLines);
7943 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7944 }
7945 static void do_realvectorcxx . . $ do_realvector(49f6e7a06ebc5aa8). () {
7946 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7947 U"The function “realvector” is not available inside manuals.");
7948 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7949 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 3 && n->number <= 4,
7950 U"The function “realvector” requires 3 or 4 arguments (an optional number of lines, a label text, a format, and a default value), not ", n->number, U".");
7951 integercxx . . $ integer# numberOfLines = 7; // the default
7952 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7953 conststring32cxx . . $ conststring32# defaultString;
7954 if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
7955 defaultString = defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).();
7956 else if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!)
7957 defaultString = Melder_VECcxx . . $ Melder_VEC(b17600fbee77d577). (defaultValuecxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., true);
7958 else
7959 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The last argument of “realvector” (the default value) should be a string or a numeric vector, not ", defaultValue->whichText(), U".");
7960 const Stackelcxx . . $ Stackel# _format = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7961 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (_format->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7962 U"The penultimate argument of “realvector” (the format) should be a string, not ", _format->whichText(), U".");
7963 kUi_realVectorFormatcxx . . $ kUi_realVectorFormat# format = kUi_realVectorFormat_getValuecxx . . $ kUi_realVectorFormat_getValue(4ba8bb6d771ea220). (_format->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
7964 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (format != kUi_realVectorFormat::UNDEFINED,
7965 U"The format should be “(whitespace-separated)” or “(formula)”, not “", _format->getString(), U"”.");
7966 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7967 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7968 U"The antepenultimate argument of “realvector” (the label text) should be a string, not ", label->whichText(), U".");
7969 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 4) {
7970 const Stackelcxx . . $ Stackel# _numberOfLines = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7971 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (_numberOfLines->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
7972 U"The first argument of “realvector” (the number of lines) should be a number, not ", _numberOfLines->whichText(), U".");
7973 numberOfLines = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (_numberOfLines->numbercxx . . $ structStackel#$anonymous_type_0#number.);
7974 }
7975 UiPause_realvectorcxx . . $ UiPause_realvector(ddd988eb2be69905). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), format, defaultString, numberOfLines);
7976 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
7977 }
7978 static void do_positivevectorcxx . . $ do_positivevector(49f6e7a06ebc5aa8). () {
7979 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
7980 U"The function “positivevector” is not available inside manuals.");
7981 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7982 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 3 && n->number <= 4,
7983 U"The function “positivevector” requires 3 or 4 arguments (an optional number of lines, a label text, a format, and a default value), not ", n->number, U".");
7984 integercxx . . $ integer# numberOfLines = 7; // the default
7985 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7986 conststring32cxx . . $ conststring32# defaultString;
7987 if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
7988 defaultString = defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).();
7989 else if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!)
7990 defaultString = Melder_VECcxx . . $ Melder_VEC(b17600fbee77d577). (defaultValuecxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., true);
7991 else
7992 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The last argument of “positivevector” (the default value) should be a string or a numeric vector, not ", defaultValue->whichText(), U".");
7993 const Stackelcxx . . $ Stackel# _format = popcxx . . $ `sys/Formula.cpp:2387:9`!;
7994 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (_format->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
7995 U"The penultimate argument of “positivevector” (the format) should be a string, not ", _format->whichText(), U".");
7996 kUi_realVectorFormatcxx . . $ kUi_realVectorFormat# format = kUi_realVectorFormat_getValuecxx . . $ kUi_realVectorFormat_getValue(4ba8bb6d771ea220). (_format->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
7997 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (format != kUi_realVectorFormat::UNDEFINED,
7998 U"The format should be “(whitespace-separated)” or “(formula)”, not “", _format->getString(), U"”.");
7999 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8000 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8001 U"The antepenultimate argument of “positivevector” (the label text) should be a string, not ", label->whichText(), U".");
8002 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 4) {
8003 const Stackelcxx . . $ Stackel# _numberOfLines = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8004 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (_numberOfLines->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
8005 U"The first argument of “positivevector” (the number of lines) should be a number, not ", _numberOfLines->whichText(), U".");
8006 numberOfLines = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (_numberOfLines->numbercxx . . $ structStackel#$anonymous_type_0#number.);
8007 }
8008 UiPause_positivevectorcxx . . $ UiPause_positivevector(ddd988eb2be69905). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), format, defaultString, numberOfLines);
8009 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
8010 }
8011 static void do_integervectorcxx . . $ do_integervector(49f6e7a06ebc5aa8). () {
8012 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
8013 U"The function “integervector” is not available inside manuals.");
8014 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8015 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 3 && n->number <= 4,
8016 U"The function “integervector” requires 3 or 4 arguments (an optional number of lines, a label text, a format, and a default value), not ", n->number, U".");
8017 integercxx . . $ integer# numberOfLines = 7; // the default
8018 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8019 conststring32cxx . . $ conststring32# defaultString;
8020 if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
8021 defaultString = defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).();
8022 else if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!)
8023 defaultString = Melder_VECcxx . . $ Melder_VEC(b17600fbee77d577). (defaultValuecxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., true);
8024 else
8025 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The last argument of “integervector” (the default value) should be a string or a numeric vector, not ", defaultValue->whichText(), U".");
8026 const Stackelcxx . . $ Stackel# _format = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8027 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (_format->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8028 U"The penultimate argument of “integervector” (the format) should be a string, not ", _format->whichText(), U".");
8029 kUi_integerVectorFormatcxx . . $ kUi_integerVectorFormat# format = kUi_integerVectorFormat_getValuecxx . . $ kUi_integerVectorFormat_getValue(84fcc95e9379afcd). (_format->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
8030 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (format != kUi_integerVectorFormat::UNDEFINED,
8031 U"The format should be “(whitespace-separated)”, “(ranges)”, or “(formula)”, not “", _format->getString(), U"”.");
8032 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8033 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8034 U"The antepenultimate argument of “integervector” (the label text) should be a string, not ", label->whichText(), U".");
8035 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 4) {
8036 const Stackelcxx . . $ Stackel# _numberOfLines = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8037 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (_numberOfLines->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
8038 U"The first argument of “integervector” (the number of lines) should be a number, not ", _numberOfLines->whichText(), U".");
8039 numberOfLines = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (_numberOfLines->numbercxx . . $ structStackel#$anonymous_type_0#number.);
8040 }
8041 UiPause_integervectorcxx . . $ UiPause_integervector(446f5aedaf4459fc). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), format, defaultString, numberOfLines);
8042 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
8043 }
8044 static void do_naturalvectorcxx . . $ do_naturalvector(49f6e7a06ebc5aa8). () {
8045 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
8046 U"The function “naturalvector” is not available inside manuals.");
8047 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8048 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number >= 3 && n->number <= 4,
8049 U"The function “naturalvector” requires 3 or 4 arguments (an optional number of lines, a label text, a format, and a default value), not ", n->number, U".");
8050 integercxx . . $ integer# numberOfLines = 7; // the default
8051 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8052 conststring32cxx . . $ conststring32# defaultString;
8053 if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
8054 defaultString = defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).();
8055 else if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!)
8056 defaultString = Melder_VECcxx . . $ Melder_VEC(b17600fbee77d577). (defaultValuecxx . . $ constvectorview#constvectorview(eac9d6ec4c4bfecd).->numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector., true);
8057 else
8058 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The last argument of “naturalector” (the default value) should be a string or a numeric vector, not ", defaultValue->whichText(), U".");
8059 const Stackelcxx . . $ Stackel# _format = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8060 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (_format->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8061 U"The penultimate argument of “naturalvector” (the format) should be a string, not ", _format->whichText(), U".");
8062 kUi_integerVectorFormatcxx . . $ kUi_integerVectorFormat# format = kUi_integerVectorFormat_getValuecxx . . $ kUi_integerVectorFormat_getValue(84fcc95e9379afcd). (_format->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
8063 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (format != kUi_integerVectorFormat::UNDEFINED,
8064 U"The format should be “(whitespace-separated)”, “(ranges)”, or “(formula)”, not “", _format->getString(), U"”.");
8065 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8066 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8067 U"The antepenultimate argument of “naturalvector” (the label text) should be a string, not ", label->whichText(), U".");
8068 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 4) {
8069 const Stackelcxx . . $ Stackel# _numberOfLines = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8070 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (_numberOfLines->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
8071 U"The first argument of “naturalvector” (the number of lines) should be a number, not ", _numberOfLines->whichText(), U".");
8072 numberOfLines = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (_numberOfLines->numbercxx . . $ structStackel#$anonymous_type_0#number.);
8073 }
8074 UiPause_naturalvectorcxx . . $ UiPause_naturalvector(446f5aedaf4459fc). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), format, defaultString, numberOfLines);
8075 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
8076 }
8077 static void do_booleancxx . . $ do_boolean(49f6e7a06ebc5aa8). () {
8078 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
8079 U"The function “boolean” is not available inside manuals.");
8080 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8081 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 2,
8082 U"The function “boolean” requires 2 arguments (a label text and a default value), not ", n->number, U".");
8083 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8084 double defaultNumber = undefinedcxx . . $ undefined.;
8085 if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
8086 conststring32cxx . . $ conststring32# defaultString = defaultValue->getStringcxx . . $ structStackel#getString(1912f6684645c851).();
8087 if (
8088 str32equcxx . . $ `melder/melder_str32.h:122:9`! (defaultString, U"on") || str32equcxx . . $ `melder/melder_str32.h:122:9`! (defaultString, U"yes") ||
8089 str32equcxx . . $ `melder/melder_str32.h:122:9`! (defaultString, U"ON") || str32equcxx . . $ `melder/melder_str32.h:122:9`! (defaultString, U"YES") ||
8090 str32equcxx . . $ `melder/melder_str32.h:122:9`! (defaultString, U"On") || str32equcxx . . $ `melder/melder_str32.h:122:9`! (defaultString, U"Yes")
8091 )
8092 defaultNumber = 1;
8093 else if (
8094 str32equcxx . . $ `melder/melder_str32.h:122:9`! (defaultString, U"off") || str32equcxx . . $ `melder/melder_str32.h:122:9`! (defaultString, U"no") ||
8095 str32equcxx . . $ `melder/melder_str32.h:122:9`! (defaultString, U"OFF") || str32equcxx . . $ `melder/melder_str32.h:122:9`! (defaultString, U"NO") ||
8096 str32equcxx . . $ `melder/melder_str32.h:122:9`! (defaultString, U"Off") || str32equcxx . . $ `melder/melder_str32.h:122:9`! (defaultString, U"No")
8097 )
8098 defaultNumber = 0;
8099 else
8100 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"If the second argument of “boolean” is a string, it can only be "
8101 "“yes”, “no”, “on”, or “off”, not “", defaultString, U"”.");
8102 } else if (defaultValue->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
8103 defaultNumber = defaultValue->numbercxx . . $ structStackel#$anonymous_type_0#number.;
8104 } else {
8105 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The second argument of “boolean” (the default value) should be a number (0 or 1) "
8106 "or a string (“yes”, “no”, “on”, “off”), not ", defaultValue->whichText(), U".");
8107 }
8108 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8109 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8110 U"The first argument of “boolean” (the label text) should be a string, not ", label->whichText(), U".");
8111 UiPause_booleancxx . . $ UiPause_boolean(7004b68cc6c23ea2). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), defaultNumber != 0.0);
8112 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
8113 }
8114 static void do_choicecxx . . $ do_choice(49f6e7a06ebc5aa8). () {
8115 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
8116 U"The function “choice” is not available inside manuals.");
8117 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8118 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 2,
8119 U"The function “choice” requires 2 arguments (a label text and a default value), not ", n->number, U".");
8120 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8121 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (defaultValue->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
8122 U"The second argument of “choice” (the default value) should be a whole number, not ", defaultValue->whichText(), U".");
8123 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8124 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8125 U"The first argument of “choice” (the label text) should be a string, not ", label->whichText(), U".");
8126 UiPause_choicecxx . . $ UiPause_choice(4a10cabd38284ee2). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (defaultValue->numbercxx . . $ structStackel#$anonymous_type_0#number.));
8127 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
8128 }
8129 static void do_optionmenucxx . . $ do_optionmenu(49f6e7a06ebc5aa8). () {
8130 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
8131 U"The function “optionmenu” is not available inside manuals.");
8132 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8133 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 2,
8134 U"The function “optionmenu” requires 2 arguments (a label text and a default value), not ", n->number, U".");
8135 const Stackelcxx . . $ Stackel# defaultValue = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8136 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (defaultValue->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!,
8137 U"The second argument of “optionmenu” (the default value) should be a whole number, not ", defaultValue->whichText(), U".");
8138 const Stackelcxx . . $ Stackel# label = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8139 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (label->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8140 U"The first argument of “optionmenu” (the label text) should be a string, not ", label->whichText(), U".");
8141 UiPause_optionmenucxx . . $ UiPause_optionmenu(4a10cabd38284ee2). (label->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (defaultValue->numbercxx . . $ structStackel#$anonymous_type_0#number.));
8142 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
8143 }
8144 static void do_optioncxx . . $ do_option(49f6e7a06ebc5aa8). () {
8145 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
8146 U"The function “option” is not available inside manuals.");
8147 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8148 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
8149 U"The function “option” requires 1 argument (a text), not ", n->number, U".");
8150 const Stackelcxx . . $ Stackel# text = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8151 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (text->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8152 U"The argument of “option” should be a string (the text), not ", text->whichText(), U".");
8153 UiPause_optioncxx . . $ UiPause_option(ff00d524ab0355ec). (text->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
8154 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
8155 }
8156 static void do_headingcxx . . $ do_heading(49f6e7a06ebc5aa8). () {
8157 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
8158 U"The function “heading” is not available inside manuals.");
8159 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8160 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
8161 U"The function “heading” requires 1 argument (a text), not ", n->number, U".");
8162 const Stackelcxx . . $ Stackel# text = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8163 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (text->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8164 U"The argument of “heading” should be a string (the text), not ", text->whichText(), U".");
8165 UiPause_headingcxx . . $ UiPause_heading(ff00d524ab0355ec). (text->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
8166 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
8167 }
8168 static void do_commentcxx . . $ do_comment(49f6e7a06ebc5aa8). () {
8169 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
8170 U"The function “comment” is not available inside manuals.");
8171 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8172 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
8173 U"The function “comment” requires 1 argument (a text), not ", n->number, U".");
8174 const Stackelcxx . . $ Stackel# text = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8175 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (text->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8176 U"The argument of “comment” should be a string (the text), not ", text->whichText(), U".");
8177 UiPause_commentcxx . . $ UiPause_comment(ff00d524ab0355ec). (text->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
8178 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
8179 }
8180 static void do_endPausecxx . . $ do_endPause(49f6e7a06ebc5aa8). () {
8181 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
8182 U"The function “endPause” is not available inside manuals.");
8183 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8184 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. < 2 || n->numbercxx . . $ structStackel#$anonymous_type_0#number. > 12)
8185 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “endPause” requires 2 to 12 arguments, not ", n->number, U".");
8186 const Stackelcxx . . $ Stackel# d = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8187 if (d->whichcxx . . $ structStackel#which. != Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
8188 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The last argument of “endPause” should be a number (the default or cancel continue button), not ", d->whichText(), U".");
8189 /* mutable */ integercxx . . $ integer# numberOfContinueButtons = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (n->numbercxx . . $ structStackel#$anonymous_type_0#number.) - 1;
8190 /* mutable */ integercxx . . $ integer# cancelContinueButton = 0, defaultContinueButton = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (d->numbercxx . . $ structStackel#$anonymous_type_0#number.);
8191 Stackelcxx . . $ Stackel# ca = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8192 if (ca->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
8193 cancelContinueButton = defaultContinueButton;
8194 defaultContinueButton = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (ca->numbercxx . . $ structStackel#$anonymous_type_0#number.);
8195 numberOfContinueButtons -= 1;
8196 if (cancelContinueButton < 0 || cancelContinueButton > numberOfContinueButtons)
8197 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Your last argument of “endPause” is the number of the cancel button; it cannot be ", cancelContinueButton,
8198 U" but should be 0 (no cancel or stop button) or lie between 1 and ", numberOfContinueButtons, U".");
8199 if (cancelContinueButton == 0)
8200 cancelContinueButton = -1;
8201 }
8202 Stackelcxx . . $ Stackel# co [1+10] = { 0 };
8203 for (integercxx . . $ integer# i = numberOfContinueButtons; i >= 1; i --) {
8204 co [i] = ( cancelContinueButton != 0 || i != numberOfContinueButtons ? popcxx . . $ `sys/Formula.cpp:2387:9`! : ca );
8205 if (co[i]->whichcxx . . $ structStackel#which. != Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
8206 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Each of the first ", numberOfContinueButtons,
8207 U" argument(s) of “endPause” should be a string (a button text), not ", co[i]->whichText(), U".");
8208 }
8209 const integercxx . . $ integer# buttonClicked = UiPause_endcxx . . $ UiPause_end(79c1d48e2fb715c0). (numberOfContinueButtons, defaultContinueButton, cancelContinueButton,
8210 ! co [1] ? nullptr : co[1]->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), ! co [2] ? nullptr : co[2]->getStringcxx . . $ structStackel#getString(1912f6684645c851).(),
8211 ! co [3] ? nullptr : co[3]->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), ! co [4] ? nullptr : co[4]->getStringcxx . . $ structStackel#getString(1912f6684645c851).(),
8212 ! co [5] ? nullptr : co[5]->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), ! co [6] ? nullptr : co[6]->getStringcxx . . $ structStackel#getString(1912f6684645c851).(),
8213 ! co [7] ? nullptr : co[7]->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), ! co [8] ? nullptr : co[8]->getStringcxx . . $ structStackel#getString(1912f6684645c851).(),
8214 ! co [9] ? nullptr : co[9]->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), ! co [10] ? nullptr : co[10]->getStringcxx . . $ structStackel#getString(1912f6684645c851).(),
8215 theInterpretercxx . . $ theInterpreter.);
8216 //Melder_casual (U"Button ", buttonClicked);
8217 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (buttonClicked);
8218 }
8219 static void do_lowerCaseAppNameStrcxx . . $ do_lowerCaseAppNameStr(49f6e7a06ebc5aa8). () {
8220 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8221 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 0,
8222 U"The function “lowerCaseAppName$” requires 0 arguments, not ", n->number, U".");
8223 return pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_lowerCaseAppNamecxx . . $ Melder_lowerCaseAppName(1912f6684645c851).()));
8224 }
8225 static void do_upperCaseAppNameStrcxx . . $ do_upperCaseAppNameStr(49f6e7a06ebc5aa8). () {
8226 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8227 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 0,
8228 U"The function “upperCaseAppName$” requires 0 arguments, not ", n->number, U".");
8229 return pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_upperCaseAppNamecxx . . $ Melder_upperCaseAppName(1912f6684645c851).()));
8230 }
8231 static void do_clockcxx . . $ do_clock(49f6e7a06ebc5aa8). () {
8232 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8233 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 0,
8234 U"The function “clock” requires 0 arguments, not ", n->number, U".");
8235 return pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (Melder_clockcxx . . $ Melder_clock(31fa7155c10fdd13). ());
8236 }
8237 static void do_appVersioncxx . . $ do_appVersion(49f6e7a06ebc5aa8). () {
8238 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8239 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 0,
8240 U"The function “appVersion” requires 0 arguments, not ", n->number, U".");
8241 return pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (Melder_appVersioncxx . . $ Melder_appVersion(da6335ded91d79c2).());
8242 }
8243 static void do_appVersionStrcxx . . $ do_appVersionStr(49f6e7a06ebc5aa8). () {
8244 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8245 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 0,
8246 U"The function “appVersion$” requires 0 arguments, not ", n->number, U".");
8247 return pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_appVersionSTRcxx . . $ Melder_appVersionSTR(1912f6684645c851).()));
8248 }
8249 static void do_appYearcxx . . $ do_appYear(49f6e7a06ebc5aa8). () {
8250 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8251 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 0,
8252 U"The function “appYear” requires 0 arguments, not ", n->number, U".");
8253 return pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (Melder_appYearcxx . . $ Melder_appYear(da6335ded91d79c2).());
8254 }
8255 static void do_appMonthcxx . . $ do_appMonth(49f6e7a06ebc5aa8). () {
8256 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8257 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 0,
8258 U"The function “appMonth” requires 0 arguments, not ", n->number, U".");
8259 return pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (Melder_appMonthcxx . . $ Melder_appMonth(da6335ded91d79c2).());
8260 }
8261 static void do_appMonthStrcxx . . $ do_appMonthStr(49f6e7a06ebc5aa8). () {
8262 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8263 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 0,
8264 U"The function “appMonth$” requires 0 arguments, not ", n->number, U".");
8265 return pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (Melder_appMonthSTRcxx . . $ Melder_appMonthSTR(1912f6684645c851).()));
8266 }
8267 static void do_appDaycxx . . $ do_appDay(49f6e7a06ebc5aa8). () {
8268 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8269 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 0,
8270 U"The function “appDay” requires 0 arguments, not ", n->number, U".");
8271 return pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (Melder_appDaycxx . . $ Melder_appDay(da6335ded91d79c2).());
8272 }
8273 static void do_chooseReadFileStrcxx . . $ do_chooseReadFileStr(49f6e7a06ebc5aa8). () {
8274 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
8275 U"The function “chooseReadFile$” is not available inside manuals.");
8276 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8277 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
8278 U"The function “chooseReadFile$” requires 1 argument (a title), not ", n->number, U".");
8279 const Stackelcxx . . $ Stackel# title = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8280 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (title->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8281 U"The argument of “chooseReadFile$” should be a string (the title), not ", title->whichText(), U".");
8282 autoStringSetcxx . . $ autoStringSet# fileNames = GuiFileSelect_getInfileNamescxx . . $ GuiFileSelect_getInfileNames(5a0c946482488abf). (nullptr, title->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), false);
8283 if (fileNames->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab).sizecxx . . $ CollectionOf#size. == 0)
8284 return pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (U""));
8285 SimpleStringcxx . . $ SimpleString# fileName = fileNames->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab).atcxx . . $ CollectionOf#at. [cxx . . $ ArrayOf#`operator[]`(a7f36fee1ae21897).1];
8286 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (fileName -> stringcxx . . $ structSimpleString#string..getcxx . . $ _autostring#get(5a2a78a048fb49a8).()));
8287 }
8288 static void do_chooseWriteFileStrcxx . . $ do_chooseWriteFileStr(49f6e7a06ebc5aa8). () {
8289 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
8290 U"The function “chooseWriteFile$” is not available inside manuals.");
8291 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8292 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 2,
8293 U"The function “chooseWriteFile$” requires 2 arguments (a title and a default name), not ", n->number, U".");
8294 const Stackelcxx . . $ Stackel# defaultName = popcxx . . $ `sys/Formula.cpp:2387:9`!, title = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8295 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (title->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`! && defaultName->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8296 U"The arguments of “chooseWriteFile$” should be two strings (the title and the default name).");
8297 autostring32cxx . . $ autostring32# result = GuiFileSelect_getOutfileNamecxx . . $ GuiFileSelect_getOutfileName(575be6c40acafffe). (nullptr, title->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), defaultName->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
8298 if (! result)
8299 result =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (U"");
8300 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
8301 }
8302 static void do_chooseFolder_STRcxx . . $ do_chooseFolder_STR(49f6e7a06ebc5aa8). () {
8303 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
8304 U"The function “chooseFolder$” is not available inside manuals.");
8305 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8306 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
8307 U"The function “chooseFolder$” requires 1 argument (a title), not ", n->number, U".");
8308 const Stackelcxx . . $ Stackel# title = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8309 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (title->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8310 U"The argument of “chooseFolder$” should be a string (the title).");
8311 autostring32cxx . . $ autostring32# result = GuiFileSelect_getFolderNamecxx . . $ GuiFileSelect_getFolderName(5af1513ecf60daff). (nullptr, title->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
8312 if (! result)
8313 result =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (U"");
8314 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
8315 }
8316 static void do_chooseDirectory_STRcxx . . $ do_chooseDirectory_STR(49f6e7a06ebc5aa8). () {
8317 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (praat_commandsWithExternalSideEffectsAreAllowed (),
8318 U"The function “chooseDirectory$” is not available inside manuals.");
8319 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8320 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (n->number == 1,
8321 U"The function “chooseDirectory$” requires 1 argument (a title), not ", n->number, U".");
8322 const Stackelcxx . . $ Stackel# title = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8323 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (title->which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!,
8324 U"The argument of “chooseDirectory$” should be a string (the title).");
8325 autostring32cxx . . $ autostring32# result = GuiFileSelect_getFolderNamecxx . . $ GuiFileSelect_getFolderName(5af1513ecf60daff). (nullptr, title->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
8326 if (! result)
8327 result =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (U"");
8328 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
8329 }
8330 static void do_demoWindowTitlecxx . . $ do_demoWindowTitle(49f6e7a06ebc5aa8). () {
8331 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8332 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
8333 const Stackelcxx . . $ Stackel# title = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8334 if (title->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
8335 Demo_windowTitlecxx . . $ Demo_windowTitle(e049ab16a3067c7). (title->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
8336 } else {
8337 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The argument of “demoWindowTitle” should be a string (the title), not ", title->whichText(), U".");
8338 }
8339 } else {
8340 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “demoWindowTitle” requires 1 argument (a title), not ", n->number, U".");
8341 }
8342 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
8343 }
8344 static void do_demoShowcxx . . $ do_demoShow(49f6e7a06ebc5aa8). () {
8345 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8346 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. != 0)
8347 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “demoShow” requires 0 arguments, not ", n->number, U".");
8348 Demo_showcxx . . $ Demo_show(b126dc7c1de90089). ();
8349 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
8350 }
8351 static void do_demoWaitForInputcxx . . $ do_demoWaitForInput(49f6e7a06ebc5aa8). () {
8352 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8353 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. != 0)
8354 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “demoWaitForInput” requires 0 arguments, not ", n->number, U".");
8355 Demo_waitForInputcxx . . $ Demo_waitForInput(448c181fe9dacca8). (theInterpretercxx . . $ theInterpreter.);
8356 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
8357 }
8358 static void do_demoPeekInputcxx . . $ do_demoPeekInput(49f6e7a06ebc5aa8). () {
8359 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8360 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. != 0)
8361 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “demoPeekInput” requires 0 arguments, not ", n->number, U".");
8362 Demo_peekInputcxx . . $ Demo_peekInput(448c181fe9dacca8). (theInterpretercxx . . $ theInterpreter.);
8363 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1);
8364 }
8365 static void do_demoInputcxx . . $ do_demoInput(49f6e7a06ebc5aa8). () {
8366 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8367 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 1) {
8368 const Stackelcxx . . $ Stackel# keys = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8369 if (keys->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
8370 const bool result = Demo_inputcxx . . $ Demo_input(2df281243f91fe91). (keys->getStringcxx . . $ structStackel#getString(1912f6684645c851).());
8371 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
8372 } else {
8373 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The argument of “demoInput” should be a string (the keys), not ", keys->whichText(), U".");
8374 }
8375 } else {
8376 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “demoInput” requires 1 argument (keys), not ", n->number, U".");
8377 }
8378 }
8379 static void do_demoClickedIncxx . . $ do_demoClickedIn(49f6e7a06ebc5aa8). () {
8380 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8381 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. == 4) {
8382 const Stackelcxx . . $ Stackel# top = popcxx . . $ `sys/Formula.cpp:2387:9`!, bottom = popcxx . . $ `sys/Formula.cpp:2387:9`!, right = popcxx . . $ `sys/Formula.cpp:2387:9`!, left = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8383 if (left->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && right->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && bottom->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && top->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
8384 const bool result = Demo_clickedIncxx . . $ Demo_clickedIn(ad3a29c0330224a3). (left->numbercxx . . $ structStackel#$anonymous_type_0#number., right->numbercxx . . $ structStackel#$anonymous_type_0#number., bottom->numbercxx . . $ structStackel#$anonymous_type_0#number., top->numbercxx . . $ structStackel#$anonymous_type_0#number.);
8385 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
8386 } else {
8387 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"All arguments of “demoClickedIn” should be numbers (the x and y ranges).");
8388 }
8389 } else {
8390 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “demoClickedIn” requires 4 arguments (x and y ranges), not ", n->number, U".");
8391 }
8392 }
8393 static void do_demoClickedcxx . . $ do_demoClicked(49f6e7a06ebc5aa8). () {
8394 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8395 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. != 0)
8396 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “demoClicked” requires 0 arguments, not ", n->number, U".");
8397 const bool result = Demo_clickedcxx . . $ Demo_clicked(c9857a73d68e59ba). ();
8398 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
8399 }
8400 static void do_demoXcxx . . $ do_demoX(49f6e7a06ebc5aa8). () {
8401 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8402 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. != 0)
8403 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “demoX” requires 0 arguments, not ", n->number, U".");
8404 const double result = Demo_xcxx . . $ Demo_x(31fa7155c10fdd13). ();
8405 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
8406 }
8407 static void do_demoYcxx . . $ do_demoY(49f6e7a06ebc5aa8). () {
8408 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8409 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. != 0)
8410 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “demoY” requires 0 arguments, not ", n->number, U".");
8411 const double result = Demo_ycxx . . $ Demo_y(31fa7155c10fdd13). ();
8412 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
8413 }
8414 static void do_demoKeyPressedcxx . . $ do_demoKeyPressed(49f6e7a06ebc5aa8). () {
8415 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8416 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. != 0)
8417 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “demoKeyPressed” requires 0 arguments, not ", n->number, U".");
8418 const bool result = Demo_keyPressedcxx . . $ Demo_keyPressed(c9857a73d68e59ba). ();
8419 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
8420 }
8421 static void do_demoKeycxx . . $ do_demoKey(49f6e7a06ebc5aa8). () {
8422 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8423 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. != 0)
8424 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “demoKey” requires 0 arguments, not ", n->number, U".");
8425 autostring32cxx . . $ autostring32# keycxx . . $ _autostring#_autostring(f153f132b2bc41c2). (1);
8426 key [cxx . . $ _autostring#`operator[]`(b190d49faf30c5be).0] = Demo_keycxx . . $ Demo_key(6dd2c6f75f2e2a2f). ();
8427 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (keycxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
8428 }
8429 static void do_demoShiftKeyPressedcxx . . $ do_demoShiftKeyPressed(49f6e7a06ebc5aa8). () {
8430 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8431 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. != 0)
8432 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “demoShiftKeyPressed” requires 0 arguments, not ", n->number, U".");
8433 const bool result = Demo_shiftKeyPressedcxx . . $ Demo_shiftKeyPressed(c9857a73d68e59ba). ();
8434 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
8435 }
8436 static void do_demoCommandKeyPressedcxx . . $ do_demoCommandKeyPressed(49f6e7a06ebc5aa8). () {
8437 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8438 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. != 0)
8439 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “demoCommandKeyPressed” requires 0 arguments, not ", n->number, U".");
8440 const bool result = Demo_commandKeyPressedcxx . . $ Demo_commandKeyPressed(c9857a73d68e59ba). ();
8441 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
8442 }
8443 static void do_demoOptionKeyPressedcxx . . $ do_demoOptionKeyPressed(49f6e7a06ebc5aa8). () {
8444 const Stackelcxx . . $ Stackel# n = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8445 if (n->numbercxx . . $ structStackel#$anonymous_type_0#number. != 0)
8446 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The function “demoOptionKeyPressed” requires 0 arguments, not ", n->number, U".");
8447 const bool result = Demo_optionKeyPressedcxx . . $ Demo_optionKeyPressed(c9857a73d68e59ba). ();
8448 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (result);
8449 }
8450 static integercxx . . $ integer# Stackel_getRowNumbercxx . . $ Stackel_getRowNumber(7fe6244bc36361fe). (Stackelcxx . . $ Stackel# row, Daatacxx . . $ Daata# thee) {
8451 integercxx . . $ integer# result = 0;
8452 if (row->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
8453 result = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (row->numbercxx . . $ structStackel#$anonymous_type_0#number.);
8454 } else if (row->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
8455 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetRowIndexcxx . . $ structDaata#v_hasGetRowIndex(50ce9a9e25b4a850). ())
8456 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Objects of type ", Thing_className (thee), U" do not have row labels, so row indexes have to be numbers.");
8457 result = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (thycxx . . $ `melder/melder.h:45:9`! v_getRowIndexcxx . . $ structDaata#v_getRowIndex(7ac99ac30f1b1e93). (row->getStringcxx . . $ structStackel#getString(1912f6684645c851).()));
8458 if (result == 0)
8459 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Object “", thycxx . . $ `melder/melder.h:45:9`! name.get(), U"” has no row labelled “", row->getString(), U"”.");
8460 } else {
8461 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"A row index should be a number or a string, not ", row->whichText(), U".");
8462 }
8463 return result;
8464 }
8465 static integercxx . . $ integer# Stackel_getColumnNumbercxx . . $ Stackel_getColumnNumber(7fe6244bc36361fe). (Stackelcxx . . $ Stackel# column, Daatacxx . . $ Daata# thee) {
8466 integercxx . . $ integer# result = 0;
8467 if (column->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
8468 result = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (column->numbercxx . . $ structStackel#$anonymous_type_0#number.);
8469 } else if (column->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
8470 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetColIndexcxx . . $ structDaata#v_hasGetColIndex(50ce9a9e25b4a850). ())
8471 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Objects of type ", Thing_className (thee), U" do not have column labels, so column indexes have to be numbers.");
8472 result = Melder_iroundcxx . . $ `melder/melder_ftoi.h:78:9`! (thycxx . . $ `melder/melder.h:45:9`! v_getColIndexcxx . . $ structDaata#v_getColIndex(7ac99ac30f1b1e93). (column->getStringcxx . . $ structStackel#getString(1912f6684645c851).()));
8473 if (result == 0)
8474 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Object ", thee, U" has no column labelled “", column->getString(), U"”.");
8475 } else {
8476 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"A column index should be a number or a string, not ", column->whichText(), U".");
8477 }
8478 return result;
8479 }
8480 static void do_self0cxx . . $ do_self0(a8896fd0f69df779). (integercxx . . $ integer# irow, integercxx . . $ integer# icol) {
8481 const Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
8482 if (! me)
8483 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The name “self” is restricted to formulas for objects.");
8484 if (mycxx . . $ `melder/melder.h:44:9`! v_hasGetCellcxx . . $ structDaata#v_hasGetCell(50ce9a9e25b4a850). ()) {
8485 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (mycxx . . $ `melder/melder.h:44:9`! v_getCellcxx . . $ structDaata#v_getCell(21b6c25e127938e2). ());
8486 } else if (mycxx . . $ `melder/melder.h:44:9`! v_hasGetVectorcxx . . $ structDaata#v_hasGetVector(50ce9a9e25b4a850). ()) {
8487 if (icol == 0) {
8488 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop, hence no implicit column index for the current ",
8489 Thing_className (me), U" object (self).\nTry using the [column] index explicitly.");
8490 } else {
8491 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (mycxx . . $ `melder/melder.h:44:9`! v_getVectorcxx . . $ structDaata#v_getVector(f7a1f362ba849873). (irow, icol));
8492 }
8493 } else if (mycxx . . $ `melder/melder.h:44:9`! v_hasGetMatrixcxx . . $ structDaata#v_hasGetMatrix(50ce9a9e25b4a850). ()) {
8494 if (irow == 0) {
8495 if (icol == 0) {
8496 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop over rows and columns,\n"
8497 U"hence no implicit row and column indexing for the current ",
8498 Thing_className (me), U" object (self).\n"
8499 U"Try using both [row, column] indexes explicitly.");
8500 } else {
8501 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop over columns only,\n"
8502 U"hence no implicit row index for the current ",
8503 Thing_className (me), U" object (self).\n"
8504 U"Try using the [row] index explicitly.");
8505 }
8506 } else {
8507 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (mycxx . . $ `melder/melder.h:44:9`! v_getMatrixcxx . . $ structDaata#v_getMatrix(f7a1f362ba849873). (irow, icol));
8508 }
8509 } else {
8510 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (me), U" objects (like self) accept no [] indexing.");
8511 }
8512 }
8513 static void do_selfStr0cxx . . $ do_selfStr0(a8896fd0f69df779). (integercxx . . $ integer# irow, integercxx . . $ integer# icol) {
8514 const Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
8515 if (! me)
8516 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The name “self$” is restricted to formulas for objects.");
8517 if (mycxx . . $ `melder/melder.h:44:9`! v_hasGetCellStrcxx . . $ structDaata#v_hasGetCellStr(50ce9a9e25b4a850). ()) {
8518 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (mycxx . . $ `melder/melder.h:44:9`! v_getCellStrcxx . . $ structDaata#v_getCellStr(d608cbfe2b610d03). ()));
8519 } else if (mycxx . . $ `melder/melder.h:44:9`! v_hasGetVectorStrcxx . . $ structDaata#v_hasGetVectorStr(50ce9a9e25b4a850). ()) {
8520 if (icol == 0) {
8521 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop, hence no implicit column index for the current ",
8522 Thing_className (me), U" object (self).\nTry using the [column] index explicitly.");
8523 } else {
8524 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (mycxx . . $ `melder/melder.h:44:9`! v_getVectorStrcxx . . $ structDaata#v_getVectorStr(ddccc6a34553c711). (icol)));
8525 }
8526 } else if (mycxx . . $ `melder/melder.h:44:9`! v_hasGetMatrixStrcxx . . $ structDaata#v_hasGetMatrixStr(50ce9a9e25b4a850). ()) {
8527 if (irow == 0) {
8528 if (icol == 0) {
8529 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop over rows and columns,\n"
8530 U"hence no implicit row and column indexing for the current ",
8531 Thing_className (me), U" object (self).\n"
8532 U"Try using both [row, column] indexes explicitly.");
8533 } else {
8534 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop over columns only,\n"
8535 U"hence no implicit row index for the current ",
8536 Thing_className (me), U" object (self).\n"
8537 U"Try using the [row] index explicitly.");
8538 }
8539 } else {
8540 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (mycxx . . $ `melder/melder.h:44:9`! v_getMatrixStrcxx . . $ structDaata#v_getMatrixStr(c8b99bd074b1acbd). (irow, icol)));
8541 }
8542 } else {
8543 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (me), U" objects (like self) accept no [] indexing.");
8544 }
8545 }
8546 static void do_toObjectcxx . . $ do_toObject(49f6e7a06ebc5aa8). () {
8547 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8548 Daatacxx . . $ Daata# thee = nullptr;
8549 if (object->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
8550 integercxx . . $ integer# i = theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> ncxx . . $ structPraatObjects#n.;
8551 while (i > 0 && object->numbercxx . . $ structStackel#$anonymous_type_0#number. != theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> listcxx . . $ structPraatObjects#list. [i]. idcxx . . $ structPraat_Object#id.)
8552 i --;
8553 if (i == 0)
8554 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"No such object: ", object->number);
8555 thee = (Daatacxx . . $ Daata#) theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> listcxx . . $ structPraatObjects#list. [i]. objectcxx . . $ structPraat_Object#object.;
8556 } else if (object->whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
8557 integercxx . . $ integer# i = theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> ncxx . . $ structPraatObjects#n.;
8558 while (i > 0 && ! Melder_equcxx . . $ `melder/melder_str32.h:124:9`! (object->getStringcxx . . $ structStackel#getString(1912f6684645c851).(), theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> listcxx . . $ structPraatObjects#list. [i]. namecxx . . $ structPraat_Object#name..getcxx . . $ _autostring#get(5a2a78a048fb49a8).()))
8559 i --;
8560 if (i == 0)
8561 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"No such object: ", object->getString());
8562 thee = (Daatacxx . . $ Daata#) theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. -> listcxx . . $ structPraatObjects#list. [i]. objectcxx . . $ structPraat_Object#object.;
8563 } else {
8564 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The first argument to “object” should be a number (unique ID) or a string (name), not ", object->whichText(), U".");
8565 }
8566 pushObjectcxx . . $ pushObject(fde123624714e72). (thee);
8567 }
8568 static void do_objectCell0cxx . . $ do_objectCell0(a8896fd0f69df779). (integercxx . . $ integer# irow, integercxx . . $ integer# icol) {
8569 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8570 const Daatacxx . . $ Daata# thee = object->objectcxx . . $ structStackel#$anonymous_type_0#object.;
8571 if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetCellcxx . . $ structDaata#v_hasGetCell(50ce9a9e25b4a850). ()) {
8572 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getCellcxx . . $ structDaata#v_getCell(21b6c25e127938e2). ());
8573 } else if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetVectorcxx . . $ structDaata#v_hasGetVector(50ce9a9e25b4a850). ()) {
8574 if (icol == 0) {
8575 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop,\n"
8576 U"hence no implicit column index for this ", Thing_className (thee), U" object.\n"
8577 U"Try using: object [id, column].");
8578 } else {
8579 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getVectorcxx . . $ structDaata#v_getVector(f7a1f362ba849873). (irow, icol));
8580 }
8581 } else if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetMatrixcxx . . $ structDaata#v_hasGetMatrix(50ce9a9e25b4a850). ()) {
8582 if (irow == 0) {
8583 if (icol == 0) {
8584 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop over rows and columns,\n"
8585 U"hence no implicit row and column indexing for this ", Thing_className (thee), U" object.\n"
8586 U"Try using: object [id, row, column].");
8587 } else {
8588 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop over columns only,\n"
8589 U"hence no implicit row index for this ", Thing_className (thee), U" object.\n"
8590 U"Try using: object [id, row].");
8591 }
8592 } else {
8593 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getMatrixcxx . . $ structDaata#v_getMatrix(f7a1f362ba849873). (irow, icol));
8594 }
8595 } else {
8596 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no [] indexing.");
8597 }
8598 }
8599 static void do_matrix0cxx . . $ do_matrix0(a8896fd0f69df779). (integercxx . . $ integer# irow, integercxx . . $ integer# icol) {
8600 const Daatacxx . . $ Daata# thee = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.;
8601 if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetCellcxx . . $ structDaata#v_hasGetCell(50ce9a9e25b4a850). ()) {
8602 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getCellcxx . . $ structDaata#v_getCell(21b6c25e127938e2). ());
8603 } else if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetVectorcxx . . $ structDaata#v_hasGetVector(50ce9a9e25b4a850). ()) {
8604 if (icol == 0) {
8605 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop,\n"
8606 U"hence no implicit column index for this ", Thing_className (thee), U" object.\n"
8607 U"Try using the [column] index explicitly.");
8608 } else {
8609 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getVectorcxx . . $ structDaata#v_getVector(f7a1f362ba849873). (irow, icol));
8610 }
8611 } else if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetMatrixcxx . . $ structDaata#v_hasGetMatrix(50ce9a9e25b4a850). ()) {
8612 if (irow == 0) {
8613 if (icol == 0) {
8614 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop over rows and columns,\n"
8615 U"hence no implicit row and column indexing for this ", Thing_className (thee), U" object.\n"
8616 U"Try using both [row, column] indexes explicitly.");
8617 } else {
8618 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop over columns only,\n"
8619 U"hence no implicit row index for this ", Thing_className (thee), U" object.\n"
8620 U"Try using the [row] index explicitly.");
8621 }
8622 } else {
8623 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getMatrixcxx . . $ structDaata#v_getMatrix(f7a1f362ba849873). (irow, icol));
8624 }
8625 } else {
8626 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no [] indexing.");
8627 }
8628 }
8629 static void do_selfMatrix1cxx . . $ do_selfMatrix1(1624ee8275b10bda). (integercxx . . $ integer# irow) {
8630 const Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
8631 const Stackelcxx . . $ Stackel# column = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8632 if (! me)
8633 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The name “self” is restricted to formulas for objects.");
8634 integercxx . . $ integer# icol = Stackel_getColumnNumbercxx . . $ Stackel_getColumnNumber(7fe6244bc36361fe). (column, me);
8635 if (mycxx . . $ `melder/melder.h:44:9`! v_hasGetVectorcxx . . $ structDaata#v_hasGetVector(50ce9a9e25b4a850). ()) {
8636 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (mycxx . . $ `melder/melder.h:44:9`! v_getVectorcxx . . $ structDaata#v_getVector(f7a1f362ba849873). (irow, icol));
8637 } else if (mycxx . . $ `melder/melder.h:44:9`! v_hasGetMatrixcxx . . $ structDaata#v_hasGetMatrix(50ce9a9e25b4a850). ()) {
8638 if (irow == 0) {
8639 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop,\n"
8640 U"hence no implicit row index for the current ", Thing_className (me), U" object (self).\n"
8641 U"Try using both [row, column] indexes instead.");
8642 } else {
8643 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (mycxx . . $ `melder/melder.h:44:9`! v_getMatrixcxx . . $ structDaata#v_getMatrix(f7a1f362ba849873). (irow, icol));
8644 }
8645 } else {
8646 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (me), U" objects (like self) accept no [column] indexes.");
8647 }
8648 }
8649 static void do_selfMatrix1_STRcxx . . $ do_selfMatrix1_STR(1624ee8275b10bda). (integercxx . . $ integer# irow) {
8650 const Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
8651 const Stackelcxx . . $ Stackel# column = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8652 if (! me)
8653 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The name “self$” is restricted to formulas for objects.");
8654 const integercxx . . $ integer# icol = Stackel_getColumnNumbercxx . . $ Stackel_getColumnNumber(7fe6244bc36361fe). (column, me);
8655 if (mycxx . . $ `melder/melder.h:44:9`! v_hasGetVectorStrcxx . . $ structDaata#v_hasGetVectorStr(50ce9a9e25b4a850). ()) {
8656 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (mycxx . . $ `melder/melder.h:44:9`! v_getVectorStrcxx . . $ structDaata#v_getVectorStr(ddccc6a34553c711). (icol)));
8657 } else if (mycxx . . $ `melder/melder.h:44:9`! v_hasGetMatrixStrcxx . . $ structDaata#v_hasGetMatrixStr(50ce9a9e25b4a850). ()) {
8658 if (irow == 0) {
8659 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop,\n"
8660 U"hence no implicit row index for the current ", Thing_className (me), U" object (self).\n"
8661 U"Try using both [row, column] indexes instead.");
8662 } else {
8663 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (mycxx . . $ `melder/melder.h:44:9`! v_getMatrixStrcxx . . $ structDaata#v_getMatrixStr(c8b99bd074b1acbd). (irow, icol)));
8664 }
8665 } else {
8666 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (me), U" objects (like self) accept no [column] indexes.");
8667 }
8668 }
8669 static void do_objectCell1cxx . . $ do_objectCell1(1624ee8275b10bda). (integercxx . . $ integer# irow) {
8670 const Stackelcxx . . $ Stackel# column = popcxx . . $ `sys/Formula.cpp:2387:9`!, object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8671 const Daatacxx . . $ Daata# thee = object->objectcxx . . $ structStackel#$anonymous_type_0#object.;
8672 const integercxx . . $ integer# icol = Stackel_getColumnNumbercxx . . $ Stackel_getColumnNumber(7fe6244bc36361fe). (column, thee);
8673 if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetVectorcxx . . $ structDaata#v_hasGetVector(50ce9a9e25b4a850). ()) {
8674 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getVectorcxx . . $ structDaata#v_getVector(f7a1f362ba849873). (irow, icol));
8675 } else if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetMatrixcxx . . $ structDaata#v_hasGetMatrix(50ce9a9e25b4a850). ()) {
8676 if (irow == 0) {
8677 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop,\n"
8678 U"hence no implicit row index for this ", Thing_className (thee), U" object.\n"
8679 U"Try using: object [id, row, column].");
8680 } else {
8681 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getMatrixcxx . . $ structDaata#v_getMatrix(f7a1f362ba849873). (irow, icol));
8682 }
8683 } else {
8684 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no [column] indexes.");
8685 }
8686 }
8687 static void do_matrix1cxx . . $ do_matrix1(1624ee8275b10bda). (integercxx . . $ integer# irow) {
8688 const Daatacxx . . $ Daata# thee = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.;
8689 const Stackelcxx . . $ Stackel# column = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8690 const integercxx . . $ integer# icol = Stackel_getColumnNumbercxx . . $ Stackel_getColumnNumber(7fe6244bc36361fe). (column, thee);
8691 if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetVectorcxx . . $ structDaata#v_hasGetVector(50ce9a9e25b4a850). ()) {
8692 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getVectorcxx . . $ structDaata#v_getVector(f7a1f362ba849873). (irow, icol));
8693 } else if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetMatrixcxx . . $ structDaata#v_hasGetMatrix(50ce9a9e25b4a850). ()) {
8694 if (irow == 0) {
8695 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop,\n"
8696 U"hence no implicit row index for this ", Thing_className (thee), U" object.\n"
8697 U"Try using both [row, column] indexes instead.");
8698 } else {
8699 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getMatrixcxx . . $ structDaata#v_getMatrix(f7a1f362ba849873). (irow, icol));
8700 }
8701 } else {
8702 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no [column] indexes.");
8703 }
8704 }
8705 static void do_objectCell1_STRcxx . . $ do_objectCell1_STR(1624ee8275b10bda). (integercxx . . $ integer# irow) {
8706 const Stackelcxx . . $ Stackel# column = popcxx . . $ `sys/Formula.cpp:2387:9`!, object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8707 const Daatacxx . . $ Daata# thee = object->objectcxx . . $ structStackel#$anonymous_type_0#object.;
8708 const integercxx . . $ integer# icol = Stackel_getColumnNumbercxx . . $ Stackel_getColumnNumber(7fe6244bc36361fe). (column, thee);
8709 if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetVectorStrcxx . . $ structDaata#v_hasGetVectorStr(50ce9a9e25b4a850). ()) {
8710 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (thycxx . . $ `melder/melder.h:45:9`! v_getVectorStrcxx . . $ structDaata#v_getVectorStr(ddccc6a34553c711). (icol)));
8711 } else if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetMatrixStrcxx . . $ structDaata#v_hasGetMatrixStr(50ce9a9e25b4a850). ()) {
8712 if (irow == 0) {
8713 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop,\n"
8714 U"hence no implicit row index for this ", Thing_className (thee), U" object.\n"
8715 U"Try using: object [id, row, column].");
8716 } else {
8717 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (thycxx . . $ `melder/melder.h:45:9`! v_getMatrixStrcxx . . $ structDaata#v_getMatrixStr(c8b99bd074b1acbd). (irow, icol)));
8718 }
8719 } else {
8720 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no [column] indexes for string cells.");
8721 }
8722 }
8723 static void do_matrix1_STRcxx . . $ do_matrix1_STR(1624ee8275b10bda). (integercxx . . $ integer# irow) {
8724 const Daatacxx . . $ Daata# thee = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.;
8725 const Stackelcxx . . $ Stackel# column = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8726 const integercxx . . $ integer# icol = Stackel_getColumnNumbercxx . . $ Stackel_getColumnNumber(7fe6244bc36361fe). (column, thee);
8727 if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetVectorStrcxx . . $ structDaata#v_hasGetVectorStr(50ce9a9e25b4a850). ()) {
8728 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (thycxx . . $ `melder/melder.h:45:9`! v_getVectorStrcxx . . $ structDaata#v_getVectorStr(ddccc6a34553c711). (icol)));
8729 } else if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetMatrixStrcxx . . $ structDaata#v_hasGetMatrixStr(50ce9a9e25b4a850). ()) {
8730 if (irow == 0) {
8731 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"We are not in a loop,\n"
8732 U"hence no implicit row index for this ", Thing_className (thee), U" object.\n"
8733 U"Try using both [row, column] indexes instead.");
8734 } else {
8735 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (thycxx . . $ `melder/melder.h:45:9`! v_getMatrixStrcxx . . $ structDaata#v_getMatrixStr(c8b99bd074b1acbd). (irow, icol)));
8736 }
8737 } else {
8738 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no [column] indexes for string cells.");
8739 }
8740 }
8741 static void do_selfMatrix2cxx . . $ do_selfMatrix2(49f6e7a06ebc5aa8). () {
8742 const Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
8743 Stackelcxx . . $ Stackel# column = popcxx . . $ `sys/Formula.cpp:2387:9`!, row = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8744 if (! me)
8745 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The name “self” is restricted to formulas for objects.");
8746 const integercxx . . $ integer# irow = Stackel_getRowNumbercxx . . $ Stackel_getRowNumber(7fe6244bc36361fe). (row, me);
8747 const integercxx . . $ integer# icol = Stackel_getColumnNumbercxx . . $ Stackel_getColumnNumber(7fe6244bc36361fe). (column, me);
8748 if (! mycxx . . $ `melder/melder.h:44:9`! v_hasGetMatrixcxx . . $ structDaata#v_hasGetMatrix(50ce9a9e25b4a850). ())
8749 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (me), U" objects like “self” accept no [row, column] indexing.");
8750 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (mycxx . . $ `melder/melder.h:44:9`! v_getMatrixcxx . . $ structDaata#v_getMatrix(f7a1f362ba849873). (irow, icol));
8751 }
8752 static void do_selfMatrix2_STRcxx . . $ do_selfMatrix2_STR(49f6e7a06ebc5aa8). () {
8753 const Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
8754 const Stackelcxx . . $ Stackel# column = popcxx . . $ `sys/Formula.cpp:2387:9`!, row = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8755 if (! me)
8756 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The name “self$” is restricted to formulas for objects.");
8757 const integercxx . . $ integer# irow = Stackel_getRowNumbercxx . . $ Stackel_getRowNumber(7fe6244bc36361fe). (row, me);
8758 const integercxx . . $ integer# icol = Stackel_getColumnNumbercxx . . $ Stackel_getColumnNumber(7fe6244bc36361fe). (column, me);
8759 if (! mycxx . . $ `melder/melder.h:44:9`! v_hasGetMatrixStrcxx . . $ structDaata#v_hasGetMatrixStr(50ce9a9e25b4a850). ())
8760 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (me), U" objects like “self$” accept no [row, column] indexing for string cells.");
8761 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (mycxx . . $ `melder/melder.h:44:9`! v_getMatrixStrcxx . . $ structDaata#v_getMatrixStr(c8b99bd074b1acbd). (irow, icol)));
8762 }
8763 static void do_objectCell2cxx . . $ do_objectCell2(49f6e7a06ebc5aa8). () {
8764 const Stackelcxx . . $ Stackel# column = popcxx . . $ `sys/Formula.cpp:2387:9`!, row = popcxx . . $ `sys/Formula.cpp:2387:9`!, object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8765 const Daatacxx . . $ Daata# thee = object->objectcxx . . $ structStackel#$anonymous_type_0#object.;
8766 const integercxx . . $ integer# irow = Stackel_getRowNumbercxx . . $ Stackel_getRowNumber(7fe6244bc36361fe). (row, thee);
8767 const integercxx . . $ integer# icol = Stackel_getColumnNumbercxx . . $ Stackel_getColumnNumber(7fe6244bc36361fe). (column, thee);
8768 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetMatrixcxx . . $ structDaata#v_hasGetMatrix(50ce9a9e25b4a850). ())
8769 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no [id, row, column] indexing.");
8770 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getMatrixcxx . . $ structDaata#v_getMatrix(f7a1f362ba849873). (irow, icol));
8771 }
8772 static void do_matrix2cxx . . $ do_matrix2(49f6e7a06ebc5aa8). () {
8773 const Daatacxx . . $ Daata# thee = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.;
8774 const Stackelcxx . . $ Stackel# column = popcxx . . $ `sys/Formula.cpp:2387:9`!, row = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8775 const integercxx . . $ integer# irow = Stackel_getRowNumbercxx . . $ Stackel_getRowNumber(7fe6244bc36361fe). (row, thee);
8776 const integercxx . . $ integer# icol = Stackel_getColumnNumbercxx . . $ Stackel_getColumnNumber(7fe6244bc36361fe). (column, thee);
8777 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetMatrixcxx . . $ structDaata#v_hasGetMatrix(50ce9a9e25b4a850). ())
8778 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no [row, column] indexing.");
8779 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getMatrixcxx . . $ structDaata#v_getMatrix(f7a1f362ba849873). (irow, icol));
8780 }
8781 static void do_objectCell2_STRcxx . . $ do_objectCell2_STR(49f6e7a06ebc5aa8). () {
8782 const Stackelcxx . . $ Stackel# column = popcxx . . $ `sys/Formula.cpp:2387:9`!, row = popcxx . . $ `sys/Formula.cpp:2387:9`!, object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8783 const Daatacxx . . $ Daata# thee = object->objectcxx . . $ structStackel#$anonymous_type_0#object.;
8784 const integercxx . . $ integer# irow = Stackel_getRowNumbercxx . . $ Stackel_getRowNumber(7fe6244bc36361fe). (row, thee);
8785 const integercxx . . $ integer# icol = Stackel_getColumnNumbercxx . . $ Stackel_getColumnNumber(7fe6244bc36361fe). (column, thee);
8786 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetMatrixStrcxx . . $ structDaata#v_hasGetMatrixStr(50ce9a9e25b4a850). ())
8787 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no [id, row, column] indexing for string cells.");
8788 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (thycxx . . $ `melder/melder.h:45:9`! v_getMatrixStrcxx . . $ structDaata#v_getMatrixStr(c8b99bd074b1acbd). (irow, icol)));
8789 }
8790 static void do_matrix2_STRcxx . . $ do_matrix2_STR(49f6e7a06ebc5aa8). () {
8791 const Daatacxx . . $ Daata# thee = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.;
8792 const Stackelcxx . . $ Stackel# column = popcxx . . $ `sys/Formula.cpp:2387:9`!, row = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8793 const integercxx . . $ integer# irow = Stackel_getRowNumbercxx . . $ Stackel_getRowNumber(7fe6244bc36361fe). (row, thee);
8794 const integercxx . . $ integer# icol = Stackel_getColumnNumbercxx . . $ Stackel_getColumnNumber(7fe6244bc36361fe). (column, thee);
8795 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetMatrixStrcxx . . $ structDaata#v_hasGetMatrixStr(50ce9a9e25b4a850). ())
8796 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no [row, column] indexing for string cells.");
8797 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (thycxx . . $ `melder/melder.h:45:9`! v_getMatrixStrcxx . . $ structDaata#v_getMatrixStr(c8b99bd074b1acbd). (irow, icol)));
8798 }
8799 static void do_objectLocation0cxx . . $ do_objectLocation0(a8896fd0f69df779). (integercxx . . $ integer# irow, integercxx . . $ integer# icol) {
8800 const Stackelcxx . . $ Stackel# object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8801 const Daatacxx . . $ Daata# thee = object->objectcxx . . $ structStackel#$anonymous_type_0#object.;
8802 if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetFunction0cxx . . $ structDaata#v_hasGetFunction0(50ce9a9e25b4a850). ()) {
8803 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getFunction0cxx . . $ structDaata#v_getFunction0(21b6c25e127938e2). ());
8804 } else if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetFunction1cxx . . $ structDaata#v_hasGetFunction1(50ce9a9e25b4a850). ()) {
8805 const Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
8806 if (! me)
8807 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"No current object (we are not in a Formula command),\n"
8808 U"hence no implicit x value for this ", Thing_className (thee), U" object.\n"
8809 U"Try using: object (id, x).");
8810 if (! mycxx . . $ `melder/melder.h:44:9`! v_hasGetXcxx . . $ structDaata#v_hasGetX(50ce9a9e25b4a850). ())
8811 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The current ", Thing_className (me),
8812 U" object gives no implicit x values,\nhence no implicit x value for this ",
8813 Thing_className (thee), " object.\n"
8814 U"Try using: object (id, x).");
8815 const double x = mycxx . . $ `melder/melder.h:44:9`! v_getXcxx . . $ structDaata#v_getX(9db9ea2d2e621dac). (icol);
8816 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getFunction1cxx . . $ structDaata#v_getFunction1(6525b878db7c2448). (irow, x));
8817 } else if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetFunction2cxx . . $ structDaata#v_hasGetFunction2(50ce9a9e25b4a850). ()) {
8818 const Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
8819 if (! me)
8820 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"No current object (we are not in a Formula command),\n"
8821 U"hence no implicit x or y values for this ", Thing_className (thee), U" object.\n"
8822 U"Try using: object (id, x, y).");
8823 if (! mycxx . . $ `melder/melder.h:44:9`! v_hasGetXcxx . . $ structDaata#v_hasGetX(50ce9a9e25b4a850). ())
8824 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The current ", Thing_className (me), U" object gives no implicit x values,\n"
8825 U"hence no implicit x value for this ", Thing_className (thee), U" object.\n"
8826 U"Try using: object (id, x, y).");
8827 const double x = mycxx . . $ `melder/melder.h:44:9`! v_getXcxx . . $ structDaata#v_getX(9db9ea2d2e621dac). (icol);
8828 if (! mycxx . . $ `melder/melder.h:44:9`! v_hasGetYcxx . . $ structDaata#v_hasGetY(50ce9a9e25b4a850). ())
8829 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The current ", Thing_className (me), U" object gives no implicit y values,\n"
8830 U"hence no implicit y value for this ", Thing_className (thee), U" object.\n"
8831 U"Try using: object (id, y).");
8832 const double y = mycxx . . $ `melder/melder.h:44:9`! v_getYcxx . . $ structDaata#v_getY(9db9ea2d2e621dac). (irow);
8833 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getFunction2cxx . . $ structDaata#v_getFunction2(726307d3d9a4aee5). (x, y));
8834 } else {
8835 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no () values.");
8836 }
8837 }
8838 static void do_function0cxx . . $ do_function0(a8896fd0f69df779). (integercxx . . $ integer# irow, integercxx . . $ integer# icol) {
8839 const Daatacxx . . $ Daata# thee = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.;
8840 if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetFunction0cxx . . $ structDaata#v_hasGetFunction0(50ce9a9e25b4a850). ()) {
8841 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getFunction0cxx . . $ structDaata#v_getFunction0(21b6c25e127938e2). ());
8842 } else if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetFunction1cxx . . $ structDaata#v_hasGetFunction1(50ce9a9e25b4a850). ()) {
8843 const Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
8844 if (! me)
8845 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"No current object (we are not in a Formula command),\n"
8846 U"hence no implicit x value for this ", Thing_className (thee), U" object.\n"
8847 U"Try using the (x) argument explicitly.");
8848 if (! mycxx . . $ `melder/melder.h:44:9`! v_hasGetXcxx . . $ structDaata#v_hasGetX(50ce9a9e25b4a850). ())
8849 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The current ", Thing_className (me),
8850 U" object gives no implicit x values,\nhence no implicit x value for this ",
8851 Thing_className (thee), U" object.\n"
8852 U"Try using the (x) argument explicitly.");
8853 const double x = mycxx . . $ `melder/melder.h:44:9`! v_getXcxx . . $ structDaata#v_getX(9db9ea2d2e621dac). (icol);
8854 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getFunction1cxx . . $ structDaata#v_getFunction1(6525b878db7c2448). (irow, x));
8855 } else if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetFunction2cxx . . $ structDaata#v_hasGetFunction2(50ce9a9e25b4a850). ()) {
8856 const Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
8857 if (! me)
8858 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"No current object (we are not in a Formula command),\n"
8859 U"hence no implicit x or y values for this ", Thing_className (thee), U" object.\n"
8860 U"Try using both (x, y) arguments explicitly.");
8861 if (! mycxx . . $ `melder/melder.h:44:9`! v_hasGetXcxx . . $ structDaata#v_hasGetX(50ce9a9e25b4a850). ())
8862 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The current ", Thing_className (me), U" object gives no implicit x values,\n"
8863 U"hence no implicit x value for this ", Thing_className (thee), U" object.\n"
8864 U"Try using both (x, y) arguments explicitly.");
8865 const double x = mycxx . . $ `melder/melder.h:44:9`! v_getXcxx . . $ structDaata#v_getX(9db9ea2d2e621dac). (icol);
8866 if (! mycxx . . $ `melder/melder.h:44:9`! v_hasGetYcxx . . $ structDaata#v_hasGetY(50ce9a9e25b4a850). ())
8867 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The current ", Thing_className (me), U" object gives no implicit y values,\n"
8868 U"hence no implicit y value for this ", Thing_className (thee), U" object.\n"
8869 U"Try using the (y) argument explicitly.");
8870 const double y = mycxx . . $ `melder/melder.h:44:9`! v_getYcxx . . $ structDaata#v_getY(9db9ea2d2e621dac). (irow);
8871 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getFunction2cxx . . $ structDaata#v_getFunction2(726307d3d9a4aee5). (x, y));
8872 } else {
8873 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no () values.");
8874 }
8875 }
8876 static void do_selfFunction1cxx . . $ do_selfFunction1(1624ee8275b10bda). (integercxx . . $ integer# irow) {
8877 const Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
8878 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8879 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
8880 if (! me)
8881 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The name “self” is restricted to formulas for objects.");
8882 if (mycxx . . $ `melder/melder.h:44:9`! v_hasGetFunction1cxx . . $ structDaata#v_hasGetFunction1(50ce9a9e25b4a850). ()) {
8883 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (mycxx . . $ `melder/melder.h:44:9`! v_getFunction1cxx . . $ structDaata#v_getFunction1(6525b878db7c2448). (irow, x->numbercxx . . $ structStackel#$anonymous_type_0#number.));
8884 } else if (mycxx . . $ `melder/melder.h:44:9`! v_hasGetFunction2cxx . . $ structDaata#v_hasGetFunction2(50ce9a9e25b4a850). ()) {
8885 if (! mycxx . . $ `melder/melder.h:44:9`! v_hasGetYcxx . . $ structDaata#v_hasGetY(50ce9a9e25b4a850). ())
8886 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The current ", Thing_className (me), U" object (self) accepts no implicit y values.\n"
8887 U"Try using both (x, y) arguments instead.");
8888 const double y = mycxx . . $ `melder/melder.h:44:9`! v_getYcxx . . $ structDaata#v_getY(9db9ea2d2e621dac). (irow);
8889 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (mycxx . . $ `melder/melder.h:44:9`! v_getFunction2cxx . . $ structDaata#v_getFunction2(726307d3d9a4aee5). (x->numbercxx . . $ structStackel#$anonymous_type_0#number., y));
8890 } else {
8891 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (me), U" objects like “self” accept no (x) values.");
8892 }
8893 } else {
8894 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (me), U" objects like “self” accept only numeric x values.");
8895 }
8896 }
8897 static void do_objectLocation1cxx . . $ do_objectLocation1(1624ee8275b10bda). (integercxx . . $ integer# irow) {
8898 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!, object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8899 const Daatacxx . . $ Daata# thee = object->objectcxx . . $ structStackel#$anonymous_type_0#object.;
8900 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
8901 if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetFunction1cxx . . $ structDaata#v_hasGetFunction1(50ce9a9e25b4a850). ()) {
8902 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getFunction1cxx . . $ structDaata#v_getFunction1(6525b878db7c2448). (irow, x->numbercxx . . $ structStackel#$anonymous_type_0#number.));
8903 } else if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetFunction2cxx . . $ structDaata#v_hasGetFunction2(50ce9a9e25b4a850). ()) {
8904 const Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
8905 if (! me)
8906 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"No current object (we are not in a Formula command),\n"
8907 U"hence no implicit y value for this ", Thing_className (thee), U" object.\n"
8908 U"Try using: object (id, x, y).");
8909 if (! mycxx . . $ `melder/melder.h:44:9`! v_hasGetYcxx . . $ structDaata#v_hasGetY(50ce9a9e25b4a850). ())
8910 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The current ", Thing_className (me), U" object gives no implicit y values,\n"
8911 U"hence no implicit y value for this ", Thing_className (thee), U" object.\n"
8912 U"Try using: object (id, x, y).");
8913 const double y = mycxx . . $ `melder/melder.h:44:9`! v_getYcxx . . $ structDaata#v_getY(9db9ea2d2e621dac). (irow);
8914 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getFunction2cxx . . $ structDaata#v_getFunction2(726307d3d9a4aee5). (x->numbercxx . . $ structStackel#$anonymous_type_0#number., y));
8915 } else {
8916 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no (x) values.");
8917 }
8918 } else {
8919 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept only numeric x values.");
8920 }
8921 }
8922 static void do_function1cxx . . $ do_function1(1624ee8275b10bda). (integercxx . . $ integer# irow) {
8923 const Daatacxx . . $ Daata# thee = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.;
8924 const Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8925 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
8926 if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetFunction1cxx . . $ structDaata#v_hasGetFunction1(50ce9a9e25b4a850). ()) {
8927 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getFunction1cxx . . $ structDaata#v_getFunction1(6525b878db7c2448). (irow, x->numbercxx . . $ structStackel#$anonymous_type_0#number.));
8928 } else if (thycxx . . $ `melder/melder.h:45:9`! v_hasGetFunction2cxx . . $ structDaata#v_hasGetFunction2(50ce9a9e25b4a850). ()) {
8929 const Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
8930 if (! me)
8931 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"No current object (we are not in a Formula command),\n"
8932 U"hence no implicit y value for this ", Thing_className (thee), U" object.\n"
8933 U"Try using both (x, y) arguments instead.");
8934 if (! mycxx . . $ `melder/melder.h:44:9`! v_hasGetYcxx . . $ structDaata#v_hasGetY(50ce9a9e25b4a850). ())
8935 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The current ", Thing_className (me), U" object gives no implicit y values,\n"
8936 U"hence no implicit y value for this ", Thing_className (thee), U" object.\n"
8937 U"Try using both (x, y) arguments instead.");
8938 const double y = mycxx . . $ `melder/melder.h:44:9`! v_getYcxx . . $ structDaata#v_getY(9db9ea2d2e621dac). (irow);
8939 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getFunction2cxx . . $ structDaata#v_getFunction2(726307d3d9a4aee5). (x->numbercxx . . $ structStackel#$anonymous_type_0#number., y));
8940 } else {
8941 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no (x) values.");
8942 }
8943 } else {
8944 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept only numeric x values.");
8945 }
8946 }
8947 static void do_selfFunction2cxx . . $ do_selfFunction2(49f6e7a06ebc5aa8). () {
8948 const Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
8949 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8950 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
8951 if (! me)
8952 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The name “self” is restricted to formulas for objects.");
8953 if (! mycxx . . $ `melder/melder.h:44:9`! v_hasGetFunction2cxx . . $ structDaata#v_hasGetFunction2(50ce9a9e25b4a850). ())
8954 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (me), U" objects like “self” accept no (x, y) values.");
8955 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (mycxx . . $ `melder/melder.h:44:9`! v_getFunction2cxx . . $ structDaata#v_getFunction2(726307d3d9a4aee5). (x->numbercxx . . $ structStackel#$anonymous_type_0#number., y->numbercxx . . $ structStackel#$anonymous_type_0#number.));
8956 } else {
8957 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (me), U" objects accept only numeric x values.");
8958 }
8959 }
8960 static void do_objectLocation2cxx . . $ do_objectLocation2(49f6e7a06ebc5aa8). () {
8961 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!, object = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8962 const Daatacxx . . $ Daata# thee = object->objectcxx . . $ structStackel#$anonymous_type_0#object.;
8963 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
8964 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetFunction2cxx . . $ structDaata#v_hasGetFunction2(50ce9a9e25b4a850). ())
8965 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no (x, y) values.");
8966 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getFunction2cxx . . $ structDaata#v_getFunction2(726307d3d9a4aee5). (x->numbercxx . . $ structStackel#$anonymous_type_0#number., y->numbercxx . . $ structStackel#$anonymous_type_0#number.));
8967 } else {
8968 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept only numeric x values.");
8969 }
8970 }
8971 static void do_function2cxx . . $ do_function2(49f6e7a06ebc5aa8). () {
8972 const Daatacxx . . $ Daata# thee = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.;
8973 const Stackelcxx . . $ Stackel# y = popcxx . . $ `sys/Formula.cpp:2387:9`!, x = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8974 if (x->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`! && y->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
8975 if (! thycxx . . $ `melder/melder.h:45:9`! v_hasGetFunction2cxx . . $ structDaata#v_hasGetFunction2(50ce9a9e25b4a850). ())
8976 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept no (x, y) values.");
8977 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (thycxx . . $ `melder/melder.h:45:9`! v_getFunction2cxx . . $ structDaata#v_getFunction2(726307d3d9a4aee5). (x->numbercxx . . $ structStackel#$anonymous_type_0#number., y->numbercxx . . $ structStackel#$anonymous_type_0#number.));
8978 } else {
8979 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (Thing_className (thee), U" objects accept only numeric x values.");
8980 }
8981 }
8982 static void do_row_STRcxx . . $ do_row_STR(49f6e7a06ebc5aa8). () {
8983 const Daatacxx . . $ Daata# thee = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.;
8984 const Stackelcxx . . $ Stackel# row = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8985 const integercxx . . $ integer# irow = Stackel_getRowNumbercxx . . $ Stackel_getRowNumber(7fe6244bc36361fe). (row, thee);
8986 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (thycxx . . $ `melder/melder.h:45:9`! v_getRowStrcxx . . $ structDaata#v_getRowStr(ddccc6a34553c711). (irow));
8987 if (! result)
8988 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Row index out of bounds.");
8989 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
8990 }
8991 static void do_col_STRcxx . . $ do_col_STR(49f6e7a06ebc5aa8). () {
8992 const Daatacxx . . $ Daata# thee = parsecxx . . $ parse. [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.;
8993 const Stackelcxx . . $ Stackel# col = popcxx . . $ `sys/Formula.cpp:2387:9`!;
8994 const integercxx . . $ integer# icol = Stackel_getColumnNumbercxx . . $ Stackel_getColumnNumber(7fe6244bc36361fe). (col, thee);
8995 autostring32cxx . . $ autostring32# result = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (thycxx . . $ `melder/melder.h:45:9`! v_getColStrcxx . . $ structDaata#v_getColStr(ddccc6a34553c711). (icol));
8996 if (! result)
8997 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Column index out of bounds.");
8998 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
8999 }
9000
9001 static double NUMerfcxx . . $ NUMerf(447c67c6676f75c3). (double x) {
9002 return 1.0 - NUMerfcccxx . . $ NUMerfcc(447c67c6676f75c3). (x);
9003 }
9004
9005 void Formula_runcxx . . $ Formula_run(4cd939002183d562). (integercxx . . $ integer# row, integercxx . . $ integer# col, Formula_Resultcxx . . $ Formula_Result# *result) {
9006 FormulaInstructioncxx . . $ FormulaInstruction# f = parsecxx . . $ parse.;
9007 programPointercxx . . $ programPointer. = 1; // first symbol of the program
9008 if (! theStackcxx . . $ theStack.) {
9009 theStackcxx . . $ theStack. = Melder_calloc_fcxx . . $ `melder/melder_alloc.h:36:9`! (structStackel, 1+Formula_MAXIMUM_STACK_SIZEcxx . . $ `sys/Formula.h:40:9`!);
9010 if (! theStackcxx . . $ theStack.)
9011 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Out of memory during formula computation.");
9012 }
9013 stackPointercxx . . $ stackPointer. = 0; // start new stack
9014 stackPointerMaxcxx . . $ stackPointerMax. = 0; // start new stack
9015 try {
9016 while (programPointercxx . . $ programPointer. <= numberOfInstructionscxx . . $ numberOfInstructions.) {
9017 integercxx . . $ integer# symbol;
9018 switch (symbol = f [programPointercxx . . $ programPointer.]. symbolcxx . . $ structFormulaInstruction#symbol.) {
9019
9020 case NUMBER_cxx . . $ NUMBER_.: { pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (f [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..numbercxx . . $ structFormulaInstruction#$anonymous_type_0#number.);
9021 } break; case STOPWATCH_cxx . . $ STOPWATCH_.: { pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (Melder_stopwatchcxx . . $ Melder_stopwatch(31fa7155c10fdd13). ());
9022 } break; case ROW_cxx . . $ ROW_.: { pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (row);
9023 } break; case COL_cxx . . $ COL_.: { pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (col);
9024 } break; case X_cxx . . $ X_.: {
9025 Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
9026 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (mycxx . . $ `melder/melder.h:44:9`! v_hasGetX (),
9027 U"No values for “x” for this object.");
9028 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (mycxx . . $ `melder/melder.h:44:9`! v_getXcxx . . $ structDaata#v_getX(9db9ea2d2e621dac). (col));
9029 } break; case Y_cxx . . $ Y_.: {
9030 Daatacxx . . $ Daata# me = theSourcecxx . . $ theSource.;
9031 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (mycxx . . $ `melder/melder.h:44:9`! v_hasGetY (),
9032 U"No values for “y” for this object.");
9033 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (mycxx . . $ `melder/melder.h:44:9`! v_getYcxx . . $ structDaata#v_getY(9db9ea2d2e621dac). (row));
9034 } break; case NOT_cxx . . $ NOT_.: { do_notcxx . . $ do_not(49f6e7a06ebc5aa8). ();
9035 } break; case EQ_cxx . . $ EQ_.: { do_eqcxx . . $ do_eq(49f6e7a06ebc5aa8). ();
9036 } break; case NE_cxx . . $ NE_.: { do_necxx . . $ do_ne(49f6e7a06ebc5aa8). ();
9037 } break; case LE_cxx . . $ LE_.: { do_lecxx . . $ do_le(49f6e7a06ebc5aa8). ();
9038 } break; case LT_cxx . . $ LT_.: { do_ltcxx . . $ do_lt(49f6e7a06ebc5aa8). ();
9039 } break; case GE_cxx . . $ GE_.: { do_gecxx . . $ do_ge(49f6e7a06ebc5aa8). ();
9040 } break; case GT_cxx . . $ GT_.: { do_gtcxx . . $ do_gt(49f6e7a06ebc5aa8). ();
9041 } break; case ADD_cxx . . $ ADD_.: { do_addcxx . . $ do_add(49f6e7a06ebc5aa8). ();
9042 } break; case SUB_cxx . . $ SUB_.: { do_subcxx . . $ do_sub(49f6e7a06ebc5aa8). ();
9043 } break; case MUL_cxx . . $ MUL_.: { do_mulcxx . . $ do_mul(49f6e7a06ebc5aa8). ();
9044 } break; case RDIV_cxx . . $ RDIV_.: { do_rdivcxx . . $ do_rdiv(49f6e7a06ebc5aa8). ();
9045 } break; case IDIV_cxx . . $ IDIV_.: { do_idivcxx . . $ do_idiv(49f6e7a06ebc5aa8). ();
9046 } break; case MOD_cxx . . $ MOD_.: { do_modcxx . . $ do_mod(49f6e7a06ebc5aa8). ();
9047 } break; case MINUS_cxx . . $ MINUS_.: { do_minuscxx . . $ do_minus(49f6e7a06ebc5aa8). ();
9048 } break; case POWER_cxx . . $ POWER_.: { do_powercxx . . $ do_power(49f6e7a06ebc5aa8). ();
9049 /********** Functions of 1 variable: **********/
9050
9051 #define CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`!(label, function) \
9052 } break; case label: { function (); \
9053 } break; case label##VEC_: { function##_VEC (); \
9054 } break; case label##MAT_: { function##_MAT ();
9055 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (ABS_, do_abs)
9056 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (ROUND_, do_round)
9057 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (FLOOR_, do_floor)
9058 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (CEILING_, do_ceiling)
9059 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (RECTIFY_, do_rectify)
9060 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (SQRT_, do_sqrt)
9061 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (SIN_, do_sin)
9062 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (COS_, do_cos)
9063 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (TAN_, do_tan)
9064 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (ARCSIN_, do_arcsin)
9065 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (ARCCOS_, do_arccos)
9066 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (ARCTAN_, do_arctan)
9067 } break; case SINC_cxx . . $ SINC_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMsinccxx . . $ NUMsinc(447c67c6676f75c3).);
9068 } break; case SINCPI_cxx . . $ SINCPI_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMsincpicxx . . $ NUMsincpi(447c67c6676f75c3).);
9069 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (EXP_, do_exp)
9070 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (SINH_, do_sinh)
9071 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (COSH_, do_cosh)
9072 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (TANH_, do_tanh)
9073 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (ARCSINH_, do_arcsinh)
9074 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (ARCCOSH_, do_arccosh)
9075 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (ARCTANH_, do_arctanh)
9076 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (SIGMOID_, do_sigmoid)
9077 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (INV_SIGMOID_, do_invSigmoid)
9078 } break; case SOFTMAX_VEC_cxx . . $ SOFTMAX_VEC_.: { do_softmax_VECcxx . . $ do_softmax_VEC(49f6e7a06ebc5aa8). ();
9079 } break; case SOFTMAX_PER_ROW_MAT_cxx . . $ SOFTMAX_PER_ROW_MAT_.: { do_softmaxPerRow_MATcxx . . $ do_softmaxPerRow_MAT(49f6e7a06ebc5aa8). ();
9080 } break; case ERF_cxx . . $ ERF_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMerfcxx . . $ NUMerf(447c67c6676f75c3).);
9081 } break; case ERFC_cxx . . $ ERFC_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMerfcccxx . . $ NUMerfcc(447c67c6676f75c3).);
9082 } break; case GAUSS_P_cxx . . $ GAUSS_P_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMgaussPcxx . . $ NUMgaussP(447c67c6676f75c3).);
9083 } break; case GAUSS_Q_cxx . . $ GAUSS_Q_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMgaussQcxx . . $ NUMgaussQ(447c67c6676f75c3).);
9084 } break; case INV_GAUSS_Q_cxx . . $ INV_GAUSS_Q_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMinvGaussQcxx . . $ NUMinvGaussQ(447c67c6676f75c3).);
9085 } break; case RANDOM_BERNOULLI_cxx . . $ RANDOM_BERNOULLI_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMrandomBernoulli_realcxx . . $ NUMrandomBernoulli_real(447c67c6676f75c3).);
9086 } break; case RANDOM_BERNOULLI_VEC_cxx . . $ RANDOM_BERNOULLI_VEC_.: { do_functionvec_n_ncxx . . $ do_functionvec_n_n(40db9e5e35a950bf). (NUMrandomBernoulli_realcxx . . $ NUMrandomBernoulli_real(447c67c6676f75c3).);
9087 } break; case RANDOM_POISSON_cxx . . $ RANDOM_POISSON_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMrandomPoissoncxx . . $ NUMrandomPoisson(447c67c6676f75c3).);
9088 } break; case TRANSPOSE_MAT_cxx . . $ TRANSPOSE_MAT_.: { do_transpose_MATcxx . . $ do_transpose_MAT(49f6e7a06ebc5aa8). ();
9089 } break; case ROW_SUMS_VEC_cxx . . $ ROW_SUMS_VEC_.: { do_rowSums_VECcxx . . $ do_rowSums_VEC(49f6e7a06ebc5aa8). ();
9090 } break; case COLUMN_SUMS_VEC_cxx . . $ COLUMN_SUMS_VEC_.: { do_columnSums_VECcxx . . $ do_columnSums_VEC(49f6e7a06ebc5aa8). ();
9091 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (LOG2_, do_log2)
9092 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (LN_, do_ln)
9093 CASE_NUM_WITH_TENSORScxx . . $ `sys/Formula.cpp:9051:9`! (LOG10_, do_log10)
9094 } break; case LN_GAMMA_cxx . . $ LN_GAMMA_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMlnGammacxx . . $ NUMlnGamma(447c67c6676f75c3).);
9095 } break; case HERTZ_TO_BARK_cxx . . $ HERTZ_TO_BARK_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMhertzToBarkcxx . . $ NUMhertzToBark(447c67c6676f75c3).);
9096 } break; case BARK_TO_HERTZ_cxx . . $ BARK_TO_HERTZ_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMbarkToHertzcxx . . $ NUMbarkToHertz(447c67c6676f75c3).);
9097 } break; case PHON_TO_DIFFERENCE_LIMENS_cxx . . $ PHON_TO_DIFFERENCE_LIMENS_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMphonToDifferenceLimenscxx . . $ NUMphonToDifferenceLimens(447c67c6676f75c3).);
9098 } break; case DIFFERENCE_LIMENS_TO_PHON_cxx . . $ DIFFERENCE_LIMENS_TO_PHON_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMdifferenceLimensToPhoncxx . . $ NUMdifferenceLimensToPhon(447c67c6676f75c3).);
9099 } break; case HERTZ_TO_MEL_cxx . . $ HERTZ_TO_MEL_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMhertzToMelcxx . . $ NUMhertzToMel(447c67c6676f75c3).);
9100 } break; case MEL_TO_HERTZ_cxx . . $ MEL_TO_HERTZ_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMmelToHertzcxx . . $ NUMmelToHertz(447c67c6676f75c3).);
9101 } break; case HERTZ_TO_SEMITONES_cxx . . $ HERTZ_TO_SEMITONES_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMhertzToSemitonescxx . . $ NUMhertzToSemitones(447c67c6676f75c3).);
9102 } break; case SEMITONES_TO_HERTZ_cxx . . $ SEMITONES_TO_HERTZ_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMsemitonesToHertzcxx . . $ NUMsemitonesToHertz(447c67c6676f75c3).);
9103 } break; case ERB_cxx . . $ ERB_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMerbcxx . . $ NUMerb(447c67c6676f75c3).);
9104 } break; case HERTZ_TO_ERB_cxx . . $ HERTZ_TO_ERB_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMhertzToErbcxx . . $ NUMhertzToErb(447c67c6676f75c3).);
9105 } break; case ERB_TO_HERTZ_cxx . . $ ERB_TO_HERTZ_.: { do_function_n_ncxx . . $ do_function_n_n(40db9e5e35a950bf). (NUMerbToHertzcxx . . $ NUMerbToHertz(447c67c6676f75c3).);
9106 } break; case SUM_cxx . . $ SUM_.: { do_sumcxx . . $ do_sum(49f6e7a06ebc5aa8). ();
9107 } break; case MEAN_cxx . . $ MEAN_.: { do_meancxx . . $ do_mean(49f6e7a06ebc5aa8). ();
9108 } break; case STDEV_cxx . . $ STDEV_.: { do_stdevcxx . . $ do_stdev(49f6e7a06ebc5aa8). ();
9109 } break; case CENTER_cxx . . $ CENTER_.: { do_centercxx . . $ do_center(49f6e7a06ebc5aa8). ();
9110 } break; case RANDOM_IMAX_cxx . . $ RANDOM_IMAX_.: { do_randomImaxcxx . . $ do_randomImax(49f6e7a06ebc5aa8). ();
9111 } break; case EVALUATE_cxx . . $ EVALUATE_.: { do_evaluatecxx . . $ do_evaluate(49f6e7a06ebc5aa8). ();
9112 } break; case EVALUATE_NOCHECK_cxx . . $ EVALUATE_NOCHECK_.: { do_evaluate_nocheckcxx . . $ do_evaluate_nocheck(49f6e7a06ebc5aa8). ();
9113 } break; case EVALUATE_STR_cxx . . $ EVALUATE_STR_.: { do_evaluate_STRcxx . . $ do_evaluate_STR(49f6e7a06ebc5aa8). ();
9114 } break; case EVALUATE_NOCHECK_STR_cxx . . $ EVALUATE_NOCHECK_STR_.: { do_evaluate_nocheck_STRcxx . . $ do_evaluate_nocheck_STR(49f6e7a06ebc5aa8). ();
9115 /********** Functions of 2 numerical variables: **********/
9116 } break; case ARCTAN2_cxx . . $ ARCTAN2_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (atan2cxx . . $ atan2(b71928d39fde4295).);
9117 } break; case RANDOM_UNIFORM_cxx . . $ RANDOM_UNIFORM_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (NUMrandomUniformcxx . . $ NUMrandomUniform(d8e7e0733fa41c87).);
9118 } break; case RANDOM_INTEGER_cxx . . $ RANDOM_INTEGER_.: { do_function_ll_lcxx . . $ do_function_ll_l(4a9476eac209e08c). (NUMrandomIntegercxx . . $ NUMrandomInteger(d0a0e4c270da0eca).);
9119 } break; case RANDOM_GAUSS_cxx . . $ RANDOM_GAUSS_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (NUMrandomGausscxx . . $ NUMrandomGauss(d8e7e0733fa41c87).);
9120 } break; case RANDOM_BINOMIAL_cxx . . $ RANDOM_BINOMIAL_.: { do_function_dl_dcxx . . $ do_function_dl_d(e8868729b2108f7f). (NUMrandomBinomial_realcxx . . $ NUMrandomBinomial_real(3b6c2eefe8d0b5cf).);
9121 } break; case RANDOM_GAMMA_cxx . . $ RANDOM_GAMMA_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (NUMrandomGammacxx . . $ NUMrandomGamma(d8e7e0733fa41c87).);
9122 } break; case CHI_SQUARE_P_cxx . . $ CHI_SQUARE_P_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (NUMchiSquarePcxx . . $ NUMchiSquareP(d8e7e0733fa41c87).);
9123 } break; case CHI_SQUARE_Q_cxx . . $ CHI_SQUARE_Q_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (NUMchiSquareQcxx . . $ NUMchiSquareQ(d8e7e0733fa41c87).);
9124 } break; case INCOMPLETE_GAMMAP_cxx . . $ INCOMPLETE_GAMMAP_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (NUMincompleteGammaPcxx . . $ NUMincompleteGammaP(d8e7e0733fa41c87).);
9125 } break; case INV_CHI_SQUARE_Q_cxx . . $ INV_CHI_SQUARE_Q_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (NUMinvChiSquareQcxx . . $ NUMinvChiSquareQ(d8e7e0733fa41c87).);
9126 } break; case STUDENT_P_cxx . . $ STUDENT_P_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (NUMstudentPcxx . . $ NUMstudentP(d8e7e0733fa41c87).);
9127 } break; case STUDENT_Q_cxx . . $ STUDENT_Q_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (NUMstudentQcxx . . $ NUMstudentQ(d8e7e0733fa41c87).);
9128 } break; case INV_STUDENT_Q_cxx . . $ INV_STUDENT_Q_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (NUMinvStudentQcxx . . $ NUMinvStudentQ(d8e7e0733fa41c87).);
9129 } break; case BETA_cxx . . $ BETA_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (NUMbetacxx . . $ NUMbeta(d8e7e0733fa41c87).);
9130 } break; case BETA2_cxx . . $ BETA2_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (NUMbeta2cxx . . $ NUMbeta2(d8e7e0733fa41c87).);
9131 } break; case BESSEL_I_cxx . . $ BESSEL_I_.: { do_function_ld_dcxx . . $ do_function_ld_d(b7174d60ae04a31). (NUMbesselIcxx . . $ NUMbesselI(9976ed6c9a6c4849).);
9132 } break; case BESSEL_K_cxx . . $ BESSEL_K_.: { do_function_ld_dcxx . . $ do_function_ld_d(b7174d60ae04a31). (NUMbesselKcxx . . $ NUMbesselK(9976ed6c9a6c4849).);
9133 } break; case LN_BETA_cxx . . $ LN_BETA_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (NUMlnBetacxx . . $ NUMlnBeta(d8e7e0733fa41c87).);
9134 } break; case SOUND_PRESSURE_TO_PHON_cxx . . $ SOUND_PRESSURE_TO_PHON_.: { do_function_dd_dcxx . . $ do_function_dd_d(bade7320795910d8). (NUMsoundPressureToPhoncxx . . $ NUMsoundPressureToPhon(d8e7e0733fa41c87).);
9135 } break; case OBJECTS_ARE_IDENTICAL_cxx . . $ OBJECTS_ARE_IDENTICAL_.: { do_objects_are_identicalcxx . . $ do_objects_are_identical(49f6e7a06ebc5aa8). ();
9136 /********** Functions of 3 numerical variables: **********/
9137 } break; case FISHER_P_cxx . . $ FISHER_P_.: { do_function_ddd_dcxx . . $ do_function_ddd_d(9f374a7370847bbd). (NUMfisherPcxx . . $ NUMfisherP(7678bba071383ab).);
9138 } break; case FISHER_Q_cxx . . $ FISHER_Q_.: { do_function_ddd_dcxx . . $ do_function_ddd_d(9f374a7370847bbd). (NUMfisherQcxx . . $ NUMfisherQ(7678bba071383ab).);
9139 } break; case INV_FISHER_Q_cxx . . $ INV_FISHER_Q_.: { do_function_ddd_dcxx . . $ do_function_ddd_d(9f374a7370847bbd). (NUMinvFisherQcxx . . $ NUMinvFisherQ(7678bba071383ab).);
9140 } break; case BINOMIAL_P_cxx . . $ BINOMIAL_P_.: { do_function_ddd_dcxx . . $ do_function_ddd_d(9f374a7370847bbd). (NUMbinomialPcxx . . $ NUMbinomialP(7678bba071383ab).);
9141 } break; case BINOMIAL_Q_cxx . . $ BINOMIAL_Q_.: { do_function_ddd_dcxx . . $ do_function_ddd_d(9f374a7370847bbd). (NUMbinomialQcxx . . $ NUMbinomialQ(7678bba071383ab).);
9142 } break; case INCOMPLETE_BETA_cxx . . $ INCOMPLETE_BETA_.: { do_function_ddd_dcxx . . $ do_function_ddd_d(9f374a7370847bbd). (NUMincompleteBetacxx . . $ NUMincompleteBeta(7678bba071383ab).);
9143 } break; case INV_BINOMIAL_P_cxx . . $ INV_BINOMIAL_P_.: { do_function_ddd_dcxx . . $ do_function_ddd_d(9f374a7370847bbd). (NUMinvBinomialPcxx . . $ NUMinvBinomialP(7678bba071383ab).);
9144 } break; case INV_BINOMIAL_Q_cxx . . $ INV_BINOMIAL_Q_.: { do_function_ddd_dcxx . . $ do_function_ddd_d(9f374a7370847bbd). (NUMinvBinomialQcxx . . $ NUMinvBinomialQ(7678bba071383ab).);
9145 /********** Functions of a variable number of variables: **********/
9146 } break; case DO_cxx . . $ DO_. : { do_docxx . . $ do_do(49f6e7a06ebc5aa8). ();
9147 } break; case DOSTR_cxx . . $ DOSTR_.: { do_do_STRcxx . . $ do_do_STR(49f6e7a06ebc5aa8). ();
9148 } break; case WRITE_INFO_cxx . . $ WRITE_INFO_. : { do_writeInfocxx . . $ do_writeInfo(49f6e7a06ebc5aa8). ();
9149 } break; case WRITE_INFO_LINE_cxx . . $ WRITE_INFO_LINE_. : { do_writeInfoLinecxx . . $ do_writeInfoLine(49f6e7a06ebc5aa8). ();
9150 } break; case APPEND_INFO_cxx . . $ APPEND_INFO_. : { do_appendInfocxx . . $ do_appendInfo(49f6e7a06ebc5aa8). ();
9151 } break; case APPEND_INFO_LINE_cxx . . $ APPEND_INFO_LINE_.: { do_appendInfoLinecxx . . $ do_appendInfoLine(49f6e7a06ebc5aa8). ();
9152 } break; case WRITE_FILE_cxx . . $ WRITE_FILE_. : { do_writeFilecxx . . $ do_writeFile(49f6e7a06ebc5aa8). ();
9153 } break; case WRITE_FILE_LINE_cxx . . $ WRITE_FILE_LINE_. : { do_writeFileLinecxx . . $ do_writeFileLine(49f6e7a06ebc5aa8). ();
9154 } break; case APPEND_FILE_cxx . . $ APPEND_FILE_. : { do_appendFilecxx . . $ do_appendFile(49f6e7a06ebc5aa8). ();
9155 } break; case APPEND_FILE_LINE_cxx . . $ APPEND_FILE_LINE_.: { do_appendFileLinecxx . . $ do_appendFileLine(49f6e7a06ebc5aa8). ();
9156 } break; case PAUSE_SCRIPT_cxx . . $ PAUSE_SCRIPT_.: { do_pauseScriptcxx . . $ do_pauseScript(49f6e7a06ebc5aa8). ();
9157 } break; case EXIT_SCRIPT_cxx . . $ EXIT_SCRIPT_.: { do_exitScriptcxx . . $ do_exitScript(49f6e7a06ebc5aa8). ();
9158 } break; case RUN_SCRIPT_cxx . . $ RUN_SCRIPT_.: { do_runScriptcxx . . $ do_runScript(49f6e7a06ebc5aa8). ();
9159 } break; case RUN_SCRIPT_WITH_FORM_cxx . . $ RUN_SCRIPT_WITH_FORM_.: { do_runScriptWithFormcxx . . $ do_runScriptWithForm(49f6e7a06ebc5aa8). ();
9160 } break; case RUN_NOTEBOOK_cxx . . $ RUN_NOTEBOOK_.: { do_runNotebookcxx . . $ do_runNotebook(49f6e7a06ebc5aa8). ();
9161 } break; case RUN_SYSTEM_cxx . . $ RUN_SYSTEM_.: { do_runSystemcxx . . $ do_runSystem(49f6e7a06ebc5aa8). ();
9162 } break; case RUN_SYSTEM_STR_cxx . . $ RUN_SYSTEM_STR_.: { do_runSystem_STRcxx . . $ do_runSystem_STR(49f6e7a06ebc5aa8). ();
9163 } break; case RUN_SYSTEM_NOCHECK_cxx . . $ RUN_SYSTEM_NOCHECK_.: { do_runSystem_nocheckcxx . . $ do_runSystem_nocheck(49f6e7a06ebc5aa8). ();
9164 } break; case RUN_SUBPROCESS_cxx . . $ RUN_SUBPROCESS_.: { do_runSubprocesscxx . . $ do_runSubprocess(49f6e7a06ebc5aa8). ();
9165 } break; case RUN_SUBPROCESS_STR_cxx . . $ RUN_SUBPROCESS_STR_.: { do_runSubprocess_STRcxx . . $ do_runSubprocess_STR(49f6e7a06ebc5aa8). ();
9166 } break; case MIN_cxx . . $ MIN_.: { do_mincxx . . $ do_min(49f6e7a06ebc5aa8). ();
9167 } break; case MIN_E_cxx . . $ MIN_E_.: { do_min_ecxx . . $ do_min_e(49f6e7a06ebc5aa8). ();
9168 } break; case MIN_IGNORE_UNDEFINED_cxx . . $ MIN_IGNORE_UNDEFINED_.: { do_min_removeUndefinedcxx . . $ do_min_removeUndefined(49f6e7a06ebc5aa8). ();
9169 } break; case MAX_cxx . . $ MAX_.: { do_maxcxx . . $ do_max(49f6e7a06ebc5aa8). ();
9170 } break; case MAX_E_cxx . . $ MAX_E_.: { do_max_ecxx . . $ do_max_e(49f6e7a06ebc5aa8). ();
9171 } break; case MAX_IGNORE_UNDEFINED_cxx . . $ MAX_IGNORE_UNDEFINED_.: { do_max_removeUndefinedcxx . . $ do_max_removeUndefined(49f6e7a06ebc5aa8). ();
9172 } break; case IMIN_cxx . . $ IMIN_.: { do_imincxx . . $ do_imin(49f6e7a06ebc5aa8). ();
9173 } break; case IMIN_E_cxx . . $ IMIN_E_.: { do_imin_ecxx . . $ do_imin_e(49f6e7a06ebc5aa8). ();
9174 } break; case IMIN_IGNORE_UNDEFINED_cxx . . $ IMIN_IGNORE_UNDEFINED_.: { do_imin_removeUndefinedcxx . . $ do_imin_removeUndefined(49f6e7a06ebc5aa8). ();
9175 } break; case IMAX_cxx . . $ IMAX_.: { do_imaxcxx . . $ do_imax(49f6e7a06ebc5aa8). ();
9176 } break; case IMAX_E_cxx . . $ IMAX_E_.: { do_imax_ecxx . . $ do_imax_e(49f6e7a06ebc5aa8). ();
9177 } break; case IMAX_IGNORE_UNDEFINED_cxx . . $ IMAX_IGNORE_UNDEFINED_.: { do_imax_removeUndefinedcxx . . $ do_imax_removeUndefined(49f6e7a06ebc5aa8). ();
9178 } break; case QUANTILE_cxx . . $ QUANTILE_.: { do_quantilecxx . . $ do_quantile(49f6e7a06ebc5aa8). ();
9179 } break; case NORM_cxx . . $ NORM_.: { do_normcxx . . $ do_norm(49f6e7a06ebc5aa8). ();
9180 } break; case ZERO_VEC_cxx . . $ ZERO_VEC_.: { do_zero_VECcxx . . $ do_zero_VEC(49f6e7a06ebc5aa8). ();
9181 } break; case ZERO_MAT_cxx . . $ ZERO_MAT_.: { do_zero_MATcxx . . $ do_zero_MAT(49f6e7a06ebc5aa8). ();
9182 } break; case LINEAR_VEC_cxx . . $ LINEAR_VEC_.: { do_linear_VECcxx . . $ do_linear_VEC(49f6e7a06ebc5aa8). ();
9183 } break; case TO_VEC_cxx . . $ TO_VEC_.: { do_to_VECcxx . . $ do_to_VEC(49f6e7a06ebc5aa8). ();
9184 } break; case FROM_TO_VEC_cxx . . $ FROM_TO_VEC_.: { do_from_to_VECcxx . . $ do_from_to_VEC(49f6e7a06ebc5aa8). ();
9185 } break; case FROM_TO_BY_VEC_cxx . . $ FROM_TO_BY_VEC_.: { do_from_to_by_VECcxx . . $ do_from_to_by_VEC(49f6e7a06ebc5aa8). ();
9186 } break; case FROM_TO_COUNT_VEC_cxx . . $ FROM_TO_COUNT_VEC_.: { do_from_to_count_VECcxx . . $ do_from_to_count_VEC(49f6e7a06ebc5aa8). ();
9187 } break; case BETWEEN_BY_VEC_cxx . . $ BETWEEN_BY_VEC_.: { do_between_by_VECcxx . . $ do_between_by_VEC(49f6e7a06ebc5aa8). ();
9188 } break; case BETWEEN_COUNT_VEC_cxx . . $ BETWEEN_COUNT_VEC_.: { do_between_count_VECcxx . . $ do_between_count_VEC(49f6e7a06ebc5aa8). ();
9189 } break; case SORT_VEC_cxx . . $ SORT_VEC_.: { do_sort_VECcxx . . $ do_sort_VEC(49f6e7a06ebc5aa8). ();
9190 } break; case SORT_REMOVE_UNDEFINED_VEC_cxx . . $ SORT_REMOVE_UNDEFINED_VEC_.: { do_sort_removeUndefined_VECcxx . . $ do_sort_removeUndefined_VEC(49f6e7a06ebc5aa8). ();
9191 } break; case SORT_STRVEC_cxx . . $ SORT_STRVEC_.: { do_sort_STRVECcxx . . $ do_sort_STRVEC(49f6e7a06ebc5aa8). ();
9192 } break; case SORT_NUMBER_AWARE_STRVEC_cxx . . $ SORT_NUMBER_AWARE_STRVEC_.: { do_sort_numberAware_STRVECcxx . . $ do_sort_numberAware_STRVEC(49f6e7a06ebc5aa8). ();
9193 } break; case SHUFFLE_VEC_cxx . . $ SHUFFLE_VEC_.: { do_shuffle_VECcxx . . $ do_shuffle_VEC(49f6e7a06ebc5aa8). ();
9194 } break; case SHUFFLE_STRVEC_cxx . . $ SHUFFLE_STRVEC_.: { do_shuffle_STRVECcxx . . $ do_shuffle_STRVEC(49f6e7a06ebc5aa8). ();
9195 } break; case RANDOM_UNIFORM_VEC_cxx . . $ RANDOM_UNIFORM_VEC_.: { do_function_VECdd_dcxx . . $ do_function_VECdd_d(bade7320795910d8). (NUMrandomUniformcxx . . $ NUMrandomUniform(d8e7e0733fa41c87).);
9196 } break; case RANDOM_UNIFORM_MAT_cxx . . $ RANDOM_UNIFORM_MAT_.: { do_function_MATdd_dcxx . . $ do_function_MATdd_d(bade7320795910d8). (NUMrandomUniformcxx . . $ NUMrandomUniform(d8e7e0733fa41c87).);
9197 } break; case RANDOM_INTEGER_VEC_cxx . . $ RANDOM_INTEGER_VEC_.: { do_function_VECll_lcxx . . $ do_function_VECll_l(4a9476eac209e08c). (NUMrandomIntegercxx . . $ NUMrandomInteger(d0a0e4c270da0eca).);
9198 } break; case RANDOM_INTEGER_MAT_cxx . . $ RANDOM_INTEGER_MAT_.: { do_function_MATll_lcxx . . $ do_function_MATll_l(4a9476eac209e08c). (NUMrandomIntegercxx . . $ NUMrandomInteger(d0a0e4c270da0eca).);
9199 } break; case RANDOM_GAUSS_VEC_cxx . . $ RANDOM_GAUSS_VEC_.: { do_function_VECdd_dcxx . . $ do_function_VECdd_d(bade7320795910d8). (NUMrandomGausscxx . . $ NUMrandomGauss(d8e7e0733fa41c87).);
9200 } break; case RANDOM_GAUSS_MAT_cxx . . $ RANDOM_GAUSS_MAT_.: { do_function_MATdd_dcxx . . $ do_function_MATdd_d(bade7320795910d8). (NUMrandomGausscxx . . $ NUMrandomGauss(d8e7e0733fa41c87).);
9201 } break; case RANDOM_GAMMA_VEC_cxx . . $ RANDOM_GAMMA_VEC_.: { do_function_VECdd_dcxx . . $ do_function_VECdd_d(bade7320795910d8). (NUMrandomGammacxx . . $ NUMrandomGamma(d8e7e0733fa41c87).);
9202 } break; case RANDOM_GAMMA_MAT_cxx . . $ RANDOM_GAMMA_MAT_.: { do_function_MATdd_dcxx . . $ do_function_MATdd_d(bade7320795910d8). (NUMrandomGammacxx . . $ NUMrandomGamma(d8e7e0733fa41c87).);
9203 } break; case SOLVE_SPARSE_VEC_cxx . . $ SOLVE_SPARSE_VEC_. : { do_solveSparse_VECcxx . . $ do_solveSparse_VEC(49f6e7a06ebc5aa8). ();
9204 } break; case SOLVE_NONNEGATIVE_VEC_cxx . . $ SOLVE_NONNEGATIVE_VEC_. : { do_solveNonnegative_VECcxx . . $ do_solveNonnegative_VEC(49f6e7a06ebc5aa8). ();
9205 } break; case PEAKS_MAT_cxx . . $ PEAKS_MAT_.: { do_peaks_MATcxx . . $ do_peaks_MAT(49f6e7a06ebc5aa8). ();
9206 } break; case SIZE_cxx . . $ SIZE_.: { do_sizecxx . . $ do_size(49f6e7a06ebc5aa8). ();
9207 } break; case NUMBER_OF_ROWS_cxx . . $ NUMBER_OF_ROWS_.: { do_numberOfRowscxx . . $ do_numberOfRows(49f6e7a06ebc5aa8). ();
9208 } break; case NUMBER_OF_COLUMNS_cxx . . $ NUMBER_OF_COLUMNS_.: { do_numberOfColumnscxx . . $ do_numberOfColumns(49f6e7a06ebc5aa8). ();
9209 } break; case COMBINE_VEC_cxx . . $ COMBINE_VEC_.: { do_combine_VECcxx . . $ do_combine_VEC(49f6e7a06ebc5aa8). ();
9210 } break; case BLAKE3_VEC_cxx . . $ BLAKE3_VEC_.: { do_blake3_VECcxx . . $ do_blake3_VEC(49f6e7a06ebc5aa8). ();
9211 } break; case PART_VEC_cxx . . $ PART_VEC_.: { do_part_VECcxx . . $ do_part_VEC(49f6e7a06ebc5aa8). ();
9212 } break; case PART_MAT_cxx . . $ PART_MAT_.: { do_part_MATcxx . . $ do_part_MAT(49f6e7a06ebc5aa8). ();
9213 } break; case EDITOR_cxx . . $ EDITOR_.: { do_editorcxx . . $ do_editor(49f6e7a06ebc5aa8). ();
9214 } break; case RANDOM__INITIALIZE_WITH_SEED_UNSAFELY_BUT_PREDICTABLY_cxx . . $ RANDOM__INITIALIZE_WITH_SEED_UNSAFELY_BUT_PREDICTABLY_.: { do_random_initializeWithSeedUnsafelyButPredictablycxx . . $ do_random_initializeWithSeedUnsafelyButPredictably(49f6e7a06ebc5aa8). ();
9215 } break; case RANDOM__INITIALIZE_SAFELY_AND_UNPREDICTABLY_cxx . . $ RANDOM__INITIALIZE_SAFELY_AND_UNPREDICTABLY_.: { do_random_initializeSafelyAndUnpredictablycxx . . $ do_random_initializeSafelyAndUnpredictably(49f6e7a06ebc5aa8). ();
9216 } break; case HASH_cxx . . $ HASH_.: { do_hashcxx . . $ do_hash(49f6e7a06ebc5aa8). ();
9217 } break; case HEX_STR_cxx . . $ HEX_STR_.: { do_hex_STRcxx . . $ do_hex_STR(49f6e7a06ebc5aa8). ();
9218 } break; case UNHEX_STR_cxx . . $ UNHEX_STR_.: { do_unhex_STRcxx . . $ do_unhex_STR(49f6e7a06ebc5aa8). ();
9219 } break; case EMPTY_STRVEC_cxx . . $ EMPTY_STRVEC_.: { do_empty_STRVECcxx . . $ do_empty_STRVEC(49f6e7a06ebc5aa8). ();
9220 } break; case READ_LINES_FROM_FILE_STRVEC_cxx . . $ READ_LINES_FROM_FILE_STRVEC_.: { do_readLinesFromFile_STRVECcxx . . $ do_readLinesFromFile_STRVEC(49f6e7a06ebc5aa8). ();
9221 } break; case FILE_NAMES_STRVEC_cxx . . $ FILE_NAMES_STRVEC_.: { do_fileNames_STRVECcxx . . $ do_fileNames_STRVEC(49f6e7a06ebc5aa8). ();
9222 } break; case FOLDER_NAMES_STRVEC_cxx . . $ FOLDER_NAMES_STRVEC_.: { do_folderNames_STRVECcxx . . $ do_folderNames_STRVEC(49f6e7a06ebc5aa8). ();
9223 } break; case FILE_NAMES_CASE_INSENSITIVE_STRVEC_cxx . . $ FILE_NAMES_CASE_INSENSITIVE_STRVEC_.: { do_fileNames_caseInsensitive_STRVECcxx . . $ do_fileNames_caseInsensitive_STRVEC(49f6e7a06ebc5aa8). ();
9224 } break; case FOLDER_NAMES_CASE_INSENSITIVE_STRVEC_cxx . . $ FOLDER_NAMES_CASE_INSENSITIVE_STRVEC_.: { do_folderNames_caseInsensitive_STRVECcxx . . $ do_folderNames_caseInsensitive_STRVEC(49f6e7a06ebc5aa8). ();
9225 } break; case SPLIT_BY_WHITESPACE_STRVEC_cxx . . $ SPLIT_BY_WHITESPACE_STRVEC_.: { do_splitByWhitespace_STRVECcxx . . $ do_splitByWhitespace_STRVEC(49f6e7a06ebc5aa8). ();
9226 } break; case SPLIT_BY_STRVEC_cxx . . $ SPLIT_BY_STRVEC_.: { do_splitBy_STRVECcxx . . $ do_splitBy_STRVEC(49f6e7a06ebc5aa8). ();
9227 } break; case LOWER_CASE_STR_cxx . . $ LOWER_CASE_STR_.: { do_lowerCase_STRcxx . . $ do_lowerCase_STR(49f6e7a06ebc5aa8). ();
9228 } break; case LOWER_CAMEL_CASE_STR_cxx . . $ LOWER_CAMEL_CASE_STR_.: { do_lowerCamelCase_STRcxx . . $ do_lowerCamelCase_STR(49f6e7a06ebc5aa8). ();
9229 } break; case LOWER_SNAKE_CASE_STR_cxx . . $ LOWER_SNAKE_CASE_STR_.: { do_lowerSnakeCase_STRcxx . . $ do_lowerSnakeCase_STR(49f6e7a06ebc5aa8). ();
9230 } break; case UPPER_CASE_STR_cxx . . $ UPPER_CASE_STR_.: { do_upperCase_STRcxx . . $ do_upperCase_STR(49f6e7a06ebc5aa8). ();
9231 } break; case UPPER_CAMEL_CASE_STR_cxx . . $ UPPER_CAMEL_CASE_STR_.: { do_upperCamelCase_STRcxx . . $ do_upperCamelCase_STR(49f6e7a06ebc5aa8). ();
9232 } break; case UPPER_SNAKE_CASE_STR_cxx . . $ UPPER_SNAKE_CASE_STR_.: { do_upperSnakeCase_STRcxx . . $ do_upperSnakeCase_STR(49f6e7a06ebc5aa8). ();
9233 /********** String functions of 1 variable: **********/
9234 } break; case LENGTH_cxx . . $ LENGTH_.: { do_lengthcxx . . $ do_length(49f6e7a06ebc5aa8). ();
9235 } break; case STRING_TO_NUMBER_cxx . . $ STRING_TO_NUMBER_.: { do_numbercxx . . $ do_number(49f6e7a06ebc5aa8). ();
9236 } break; case FILE_READABLE_cxx . . $ FILE_READABLE_.: { do_fileReadablecxx . . $ do_fileReadable(49f6e7a06ebc5aa8). ();
9237 } break; case FOLDER_EXISTS_cxx . . $ FOLDER_EXISTS_.: { do_folderExistscxx . . $ do_folderExists(49f6e7a06ebc5aa8). ();
9238 } break; case TRY_TO_WRITE_FILE_cxx . . $ TRY_TO_WRITE_FILE_.: { do_tryToWriteFilecxx . . $ do_tryToWriteFile(49f6e7a06ebc5aa8). ();
9239 } break; case TRY_TO_APPEND_FILE_cxx . . $ TRY_TO_APPEND_FILE_.: { do_tryToAppendFilecxx . . $ do_tryToAppendFile(49f6e7a06ebc5aa8). ();
9240 /********** String functions of 0 variables: **********/
9241 } break; case DATE_STR_cxx . . $ DATE_STR_.: { do_date_STRcxx . . $ do_date_STR(49f6e7a06ebc5aa8). ();
9242 } break; case DATE_UTC_STR_cxx . . $ DATE_UTC_STR_.: { do_date_utc_STRcxx . . $ do_date_utc_STR(49f6e7a06ebc5aa8). ();
9243 } break; case DATE_ISO_STR_cxx . . $ DATE_ISO_STR_.: { do_date_iso_STRcxx . . $ do_date_iso_STR(49f6e7a06ebc5aa8). ();
9244 } break; case DATE_UTC_ISO_STR_cxx . . $ DATE_UTC_ISO_STR_.: { do_date_utc_iso_STRcxx . . $ do_date_utc_iso_STR(49f6e7a06ebc5aa8). ();
9245 } break; case DATE_VEC_cxx . . $ DATE_VEC_.: { do_date_VECcxx . . $ do_date_VEC(49f6e7a06ebc5aa8). ();
9246 } break; case DATE_UTC_VEC_cxx . . $ DATE_UTC_VEC_.: { do_date_utc_VECcxx . . $ do_date_utc_VEC(49f6e7a06ebc5aa8). ();
9247 } break; case INFO_STR_cxx . . $ INFO_STR_.: { do_info_STRcxx . . $ do_info_STR(49f6e7a06ebc5aa8). ();
9248 /********** String functions of 2 variables: **********/
9249 } break; case LEFT_STR_cxx . . $ LEFT_STR_.: { do_left_STRcxx . . $ do_left_STR(49f6e7a06ebc5aa8). ();
9250 } break; case RIGHT_STR_cxx . . $ RIGHT_STR_.: { do_right_STRcxx . . $ do_right_STR(49f6e7a06ebc5aa8). ();
9251 } break; case MID_STR_cxx . . $ MID_STR_.: { do_mid_STRcxx . . $ do_mid_STR(49f6e7a06ebc5aa8). ();
9252 } break; case PAD_LEFT_STR_cxx . . $ PAD_LEFT_STR_.: { do_padLeft_STRcxx . . $ do_padLeft_STR(49f6e7a06ebc5aa8). ();
9253 } break; case PAD_RIGHT_STR_cxx . . $ PAD_RIGHT_STR_.: { do_padRight_STRcxx . . $ do_padRight_STR(49f6e7a06ebc5aa8). ();
9254 } break; case TRUNCATE_LEFT_STR_cxx . . $ TRUNCATE_LEFT_STR_.: { do_truncateLeft_STRcxx . . $ do_truncateLeft_STR(49f6e7a06ebc5aa8). ();
9255 } break; case TRUNCATE_RIGHT_STR_cxx . . $ TRUNCATE_RIGHT_STR_.: { do_truncateRight_STRcxx . . $ do_truncateRight_STR(49f6e7a06ebc5aa8). ();
9256 } break; case PAD_OR_TRUNCATE_LEFT_STR_cxx . . $ PAD_OR_TRUNCATE_LEFT_STR_.: { do_padOrTruncateLeft_STRcxx . . $ do_padOrTruncateLeft_STR(49f6e7a06ebc5aa8). ();
9257 } break; case PAD_OR_TRUNCATE_RIGHT_STR_cxx . . $ PAD_OR_TRUNCATE_RIGHT_STR_.: { do_padOrTruncateRight_STRcxx . . $ do_padOrTruncateRight_STR(49f6e7a06ebc5aa8). ();
9258 } break; case UNICODE_TO_BACKSLASH_TRIGRAPHS_STR_cxx . . $ UNICODE_TO_BACKSLASH_TRIGRAPHS_STR_.: { do_unicodeToBackslashTrigraphs_STRcxx . . $ do_unicodeToBackslashTrigraphs_STR(49f6e7a06ebc5aa8). ();
9259 } break; case BACKSLASH_TRIGRAPHS_TO_UNICODE_STR_cxx . . $ BACKSLASH_TRIGRAPHS_TO_UNICODE_STR_.: { do_backslashTrigraphsToUnicode_STRcxx . . $ do_backslashTrigraphsToUnicode_STR(49f6e7a06ebc5aa8). ();
9260 } break; case ENVIRONMENT_STR_cxx . . $ ENVIRONMENT_STR_.: { do_environment_STRcxx . . $ do_environment_STR(49f6e7a06ebc5aa8). ();
9261 } break; case INDEX_cxx . . $ INDEX_.: { do_indexcxx . . $ do_index(49f6e7a06ebc5aa8). ();
9262 } break; case INDEX_CASE_INSENSITIVE_cxx . . $ INDEX_CASE_INSENSITIVE_.: { do_index_caseInsensitivecxx . . $ do_index_caseInsensitive(49f6e7a06ebc5aa8). ();
9263 } break; case RINDEX_cxx . . $ RINDEX_.: { do_rindexcxx . . $ do_rindex(49f6e7a06ebc5aa8). ();
9264 } break; case RINDEX_CASE_INSENSITIVE_cxx . . $ RINDEX_CASE_INSENSITIVE_.: { do_rindex_caseInsensitivecxx . . $ do_rindex_caseInsensitive(49f6e7a06ebc5aa8). ();
9265 } break; case STARTS_WITH_cxx . . $ STARTS_WITH_.: { do_stringMatchesCriterioncxx . . $ do_stringMatchesCriterion(925fbc6ea24b1276). (kMelder_stringcxx . . $ kMelder_string#::STARTS_WITHcxx . . $ kMelder_string#STARTS_WITH., true);
9266 } break; case STARTS_WITH_CASE_INSENSITIVE_cxx . . $ STARTS_WITH_CASE_INSENSITIVE_.: { do_stringMatchesCriterioncxx . . $ do_stringMatchesCriterion(925fbc6ea24b1276). (kMelder_stringcxx . . $ kMelder_string#::STARTS_WITHcxx . . $ kMelder_string#STARTS_WITH., false);
9267 } break; case ENDS_WITH_cxx . . $ ENDS_WITH_.: { do_stringMatchesCriterioncxx . . $ do_stringMatchesCriterion(925fbc6ea24b1276). (kMelder_stringcxx . . $ kMelder_string#::ENDS_WITHcxx . . $ kMelder_string#ENDS_WITH., true);
9268 } break; case ENDS_WITH_CASE_INSENSITIVE_cxx . . $ ENDS_WITH_CASE_INSENSITIVE_.: { do_stringMatchesCriterioncxx . . $ do_stringMatchesCriterion(925fbc6ea24b1276). (kMelder_stringcxx . . $ kMelder_string#::ENDS_WITHcxx . . $ kMelder_string#ENDS_WITH., false);
9269 } break; case INDEX_REGEX_cxx . . $ INDEX_REGEX_.: { do_index_regexcxx . . $ do_index_regex(d4f767463ce0a6b3). (false);
9270 } break; case RINDEX_REGEX_cxx . . $ RINDEX_REGEX_.: { do_index_regexcxx . . $ do_index_regex(d4f767463ce0a6b3). (true);
9271 } break; case EXTRACT_NUMBER_cxx . . $ EXTRACT_NUMBER_.: { do_extractNumbercxx . . $ do_extractNumber(49f6e7a06ebc5aa8). ();
9272 /********** Other string functions: **********/
9273 } break; case EXTRACT_WORD_STR_cxx . . $ EXTRACT_WORD_STR_.: { do_extractText_STRcxx . . $ do_extractText_STR(b45ddcbc8423892c). (true);
9274 } break; case EXTRACT_LINE_STR_cxx . . $ EXTRACT_LINE_STR_.: { do_extractText_STRcxx . . $ do_extractText_STR(b45ddcbc8423892c). (false);
9275 } break; case REPLACE_STR_cxx . . $ REPLACE_STR_.: { do_replace_STRcxx . . $ do_replace_STR(49f6e7a06ebc5aa8). ();
9276 } break; case REPLACE_REGEX_STR_cxx . . $ REPLACE_REGEX_STR_.: { do_replace_regex_STRcxx . . $ do_replace_regex_STR(49f6e7a06ebc5aa8). ();
9277 } break; case SELECTED_cxx . . $ SELECTED_.: { do_selectedcxx . . $ do_selected(49f6e7a06ebc5aa8). ();
9278 } break; case SELECTED_STR_cxx . . $ SELECTED_STR_.: { do_selected_STRcxx . . $ do_selected_STR(49f6e7a06ebc5aa8). ();
9279 } break; case NUMBER_OF_SELECTED_cxx . . $ NUMBER_OF_SELECTED_.: { do_numberOfSelectedcxx . . $ do_numberOfSelected(49f6e7a06ebc5aa8). ();
9280 } break; case SELECTED_VEC_cxx . . $ SELECTED_VEC_.: { do_selected_VECcxx . . $ do_selected_VEC(49f6e7a06ebc5aa8). ();
9281 } break; case SELECTED_STRVEC_cxx . . $ SELECTED_STRVEC_.: { do_selected_STRVECcxx . . $ do_selected_STRVEC(49f6e7a06ebc5aa8). ();
9282 } break; case SELECT_OBJECT_cxx . . $ SELECT_OBJECT_.: { do_selectObjectcxx . . $ do_selectObject(49f6e7a06ebc5aa8). ();
9283 } break; case PLUS_OBJECT_cxx . . $ PLUS_OBJECT_. : { do_plusObjectcxx . . $ do_plusObject(49f6e7a06ebc5aa8). ();
9284 } break; case MINUS_OBJECT_cxx . . $ MINUS_OBJECT_. : { do_minusObjectcxx . . $ do_minusObject(49f6e7a06ebc5aa8). ();
9285 } break; case REMOVE_OBJECT_cxx . . $ REMOVE_OBJECT_.: { do_removeObjectcxx . . $ do_removeObject(49f6e7a06ebc5aa8). ();
9286 } break; case OBJECT_XMIN_cxx . . $ OBJECT_XMIN_.: { do_object_xmincxx . . $ do_object_xmin(49f6e7a06ebc5aa8). ();
9287 } break; case OBJECT_XMAX_cxx . . $ OBJECT_XMAX_.: { do_object_xmaxcxx . . $ do_object_xmax(49f6e7a06ebc5aa8). ();
9288 } break; case OBJECT_YMIN_cxx . . $ OBJECT_YMIN_.: { do_object_ymincxx . . $ do_object_ymin(49f6e7a06ebc5aa8). ();
9289 } break; case OBJECT_YMAX_cxx . . $ OBJECT_YMAX_.: { do_object_ymaxcxx . . $ do_object_ymax(49f6e7a06ebc5aa8). ();
9290 } break; case OBJECT_NX_cxx . . $ OBJECT_NX_.: { do_object_nxcxx . . $ do_object_nx(49f6e7a06ebc5aa8). ();
9291 } break; case OBJECT_NY_cxx . . $ OBJECT_NY_.: { do_object_nycxx . . $ do_object_ny(49f6e7a06ebc5aa8). ();
9292 } break; case OBJECT_DX_cxx . . $ OBJECT_DX_.: { do_object_dxcxx . . $ do_object_dx(49f6e7a06ebc5aa8). ();
9293 } break; case OBJECT_DY_cxx . . $ OBJECT_DY_.: { do_object_dycxx . . $ do_object_dy(49f6e7a06ebc5aa8). ();
9294 } break; case OBJECT_NROW_cxx . . $ OBJECT_NROW_.: { do_object_nrowcxx . . $ do_object_nrow(49f6e7a06ebc5aa8). ();
9295 } break; case OBJECT_NCOL_cxx . . $ OBJECT_NCOL_.: { do_object_ncolcxx . . $ do_object_ncol(49f6e7a06ebc5aa8). ();
9296 } break; case OBJECT_ROW_STR_cxx . . $ OBJECT_ROW_STR_.: { do_object_row_STRcxx . . $ do_object_row_STR(49f6e7a06ebc5aa8). ();
9297 } break; case OBJECT_COL_STR_cxx . . $ OBJECT_COL_STR_.: { do_object_col_STRcxx . . $ do_object_col_STR(49f6e7a06ebc5aa8). ();
9298 } break; case STRING_STR_cxx . . $ STRING_STR_.: { do_string_STRcxx . . $ do_string_STR(49f6e7a06ebc5aa8). ();
9299 } break; case HORIZONTAL_STR_cxx . . $ HORIZONTAL_STR_.: { do_horizontal_STRcxx . . $ do_horizontal_STR(49f6e7a06ebc5aa8). ();
9300 } break; case VERTICAL_STR_cxx . . $ VERTICAL_STR_.: { do_vertical_STRcxx . . $ do_vertical_STR(49f6e7a06ebc5aa8). ();
9301 } break; case NUMBERS_VEC_cxx . . $ NUMBERS_VEC_.: { do_numbers_VECcxx . . $ do_numbers_VEC(49f6e7a06ebc5aa8). ();
9302 } break; case SLEEP_cxx . . $ SLEEP_.: { do_sleepcxx . . $ do_sleep(49f6e7a06ebc5aa8). ();
9303 } break; case UNICODE_cxx . . $ UNICODE_.: { do_unicodecxx . . $ do_unicode(49f6e7a06ebc5aa8). ();
9304 } break; case UNICODE_STR_cxx . . $ UNICODE_STR_.: { do_unicode_STRcxx . . $ do_unicode_STR(49f6e7a06ebc5aa8). ();
9305 } break; case FIXED_STR_cxx . . $ FIXED_STR_.: { do_fixed_STRcxx . . $ do_fixed_STR(49f6e7a06ebc5aa8). ();
9306 } break; case PERCENT_STR_cxx . . $ PERCENT_STR_.: { do_percent_STRcxx . . $ do_percent_STR(49f6e7a06ebc5aa8). ();
9307 } break; case GRAPHICAL_PERCENT_STR_cxx . . $ GRAPHICAL_PERCENT_STR_.: { do_graphicalPercent_STRcxx . . $ do_graphicalPercent_STR(49f6e7a06ebc5aa8). ();
9308 } break; case BIG_INTEGER_STR_cxx . . $ BIG_INTEGER_STR_.: { do_bigInteger_STRcxx . . $ do_bigInteger_STR(49f6e7a06ebc5aa8). ();
9309 } break; case HALF_STR_cxx . . $ HALF_STR_.: { do_half_STRcxx . . $ do_half_STR(49f6e7a06ebc5aa8). ();
9310 } break; case GRAPHICAL_HALF_STR_cxx . . $ GRAPHICAL_HALF_STR_.: { do_graphicalHalf_STRcxx . . $ do_graphicalHalf_STR(49f6e7a06ebc5aa8). ();
9311 } break; case SINGLE_STR_cxx . . $ SINGLE_STR_.: { do_single_STRcxx . . $ do_single_STR(49f6e7a06ebc5aa8). ();
9312 } break; case GRAPHICAL_SINGLE_STR_cxx . . $ GRAPHICAL_SINGLE_STR_.: { do_graphicalSingle_STRcxx . . $ do_graphicalSingle_STR(49f6e7a06ebc5aa8). ();
9313 } break; case DOUBLE_STR_cxx . . $ DOUBLE_STR_.: { do_double_STRcxx . . $ do_double_STR(49f6e7a06ebc5aa8). ();
9314 } break; case GRAPHICAL_DOUBLE_STR_cxx . . $ GRAPHICAL_DOUBLE_STR_.: { do_graphicalDouble_STRcxx . . $ do_graphicalDouble_STR(49f6e7a06ebc5aa8). ();
9315 } break; case NATURAL_LOGARITHM_STR_cxx . . $ NATURAL_LOGARITHM_STR_.: { do_naturalLogarithm_STRcxx . . $ do_naturalLogarithm_STR(49f6e7a06ebc5aa8). ();
9316 } break; case GRAPHICAL_NATURAL_LOGARITHM_STR_cxx . . $ GRAPHICAL_NATURAL_LOGARITHM_STR_.: { do_graphicalNaturalLogarithm_STRcxx . . $ do_graphicalNaturalLogarithm_STR(49f6e7a06ebc5aa8). ();
9317 } break; case HEXADECIMAL_STR_cxx . . $ HEXADECIMAL_STR_.: { do_hexadecimal_STRcxx . . $ do_hexadecimal_STR(49f6e7a06ebc5aa8). ();
9318 } break; case DELETE_FILE_cxx . . $ DELETE_FILE_.: { do_deleteFilecxx . . $ do_deleteFile(49f6e7a06ebc5aa8). ();
9319 } break; case MOVE_AND_OR_RENAME_FILE_cxx . . $ MOVE_AND_OR_RENAME_FILE_.: { do_moveAndOrRenameFilecxx . . $ do_moveAndOrRenameFile(49f6e7a06ebc5aa8). ();
9320 } break; case CREATE_FOLDER_cxx . . $ CREATE_FOLDER_.: { do_createFoldercxx . . $ do_createFolder(49f6e7a06ebc5aa8). ();
9321 } break; case CREATE_DIRECTORY_cxx . . $ CREATE_DIRECTORY_.: { do_createDirectorycxx . . $ do_createDirectory(49f6e7a06ebc5aa8). (); // deprecated 2020
9322 } break; case SET_WORKING_DIRECTORY_cxx . . $ SET_WORKING_DIRECTORY_.: { do_setWorkingDirectorycxx . . $ do_setWorkingDirectory(49f6e7a06ebc5aa8). (); // deprecated 2020
9323 } break; case VARIABLE_EXISTS_cxx . . $ VARIABLE_EXISTS_.: { do_variableExistscxx . . $ do_variableExists(49f6e7a06ebc5aa8). ();
9324 } break; case READ_FILE_cxx . . $ READ_FILE_.: { do_readFilecxx . . $ do_readFile(49f6e7a06ebc5aa8). ();
9325 } break; case READ_FILE_STR_cxx . . $ READ_FILE_STR_.: { do_readFile_STRcxx . . $ do_readFile_STR(49f6e7a06ebc5aa8). ();
9326 } break; case READ_FILE_VEC_cxx . . $ READ_FILE_VEC_.: { do_readFile_VECcxx . . $ do_readFile_VEC(49f6e7a06ebc5aa8). ();
9327 } break; case READ_FILE_MAT_cxx . . $ READ_FILE_MAT_.: { do_readFile_MATcxx . . $ do_readFile_MAT(49f6e7a06ebc5aa8). ();
9328 /********** Matrix functions: **********/
9329 } break; case ROW_VEC_cxx . . $ ROW_VEC_.: { do_row_VECcxx . . $ do_row_VEC(49f6e7a06ebc5aa8). ();
9330 } break; case COL_VEC_cxx . . $ COL_VEC_.: { do_col_VECcxx . . $ do_col_VEC(49f6e7a06ebc5aa8). ();
9331 } break; case INNER_cxx . . $ INNER_.: { do_innercxx . . $ do_inner(49f6e7a06ebc5aa8). ();
9332 } break; case CORRELATION_cxx . . $ CORRELATION_.: { do_correlationcxx . . $ do_correlation(49f6e7a06ebc5aa8). ();
9333 } break; case OUTER_MAT_cxx . . $ OUTER_MAT_.: { do_outer_MATcxx . . $ do_outer_MAT(49f6e7a06ebc5aa8). ();
9334 } break; case MUL_VEC_cxx . . $ MUL_VEC_.: { do_mul_VECcxx . . $ do_mul_VEC(49f6e7a06ebc5aa8). ();
9335 } break; case MUL_MAT_cxx . . $ MUL_MAT_.: { do_mul_MATcxx . . $ do_mul_MAT(49f6e7a06ebc5aa8). ();
9336 } break; case MUL_FAST_MAT_cxx . . $ MUL_FAST_MAT_.: { do_mul_fast_MATcxx . . $ do_mul_fast_MAT(49f6e7a06ebc5aa8). ();
9337 } break; case MUL_METAL_MAT_cxx . . $ MUL_METAL_MAT_.: { do_mul_metal_MATcxx . . $ do_mul_metal_MAT(49f6e7a06ebc5aa8). ();
9338 } break; case MUL_TN_MAT_cxx . . $ MUL_TN_MAT_.: { do_mul_tn_MATcxx . . $ do_mul_tn_MAT(49f6e7a06ebc5aa8). ();
9339 } break; case MUL_NT_MAT_cxx . . $ MUL_NT_MAT_.: { do_mul_nt_MATcxx . . $ do_mul_nt_MAT(49f6e7a06ebc5aa8). ();
9340 } break; case MUL_TT_MAT_cxx . . $ MUL_TT_MAT_.: { do_mul_tt_MATcxx . . $ do_mul_tt_MAT(49f6e7a06ebc5aa8). ();
9341 } break; case REPEAT_VEC_cxx . . $ REPEAT_VEC_.: { do_repeat_VECcxx . . $ do_repeat_VEC(49f6e7a06ebc5aa8). ();
9342 } break; case ROW_INNERS_VEC_cxx . . $ ROW_INNERS_VEC_.: { do_rowInners_VECcxx . . $ do_rowInners_VEC(49f6e7a06ebc5aa8). ();
9343 } break; case SOLVE_VEC_cxx . . $ SOLVE_VEC_.: { do_solve_VECcxx . . $ do_solve_VEC(49f6e7a06ebc5aa8). ();
9344 } break; case SOLVE_MAT_cxx . . $ SOLVE_MAT_.: { do_solve_MATcxx . . $ do_solve_MAT(49f6e7a06ebc5aa8). ();
9345 } break; case SOLVE_WEAKLYCONSTRAINED_VEC_cxx . . $ SOLVE_WEAKLYCONSTRAINED_VEC_.: { do_solveWeaklyConstrained_VECcxx . . $ do_solveWeaklyConstrained_VEC(49f6e7a06ebc5aa8). ();
9346 /********** Pause window functions: **********/
9347 } break; case ASK_FOR_TRUST_cxx . . $ ASK_FOR_TRUST_.: { do_askForTrustcxx . . $ do_askForTrust(49f6e7a06ebc5aa8). ();
9348 } break; case BEGIN_PAUSE_cxx . . $ BEGIN_PAUSE_.: { do_beginPausecxx . . $ do_beginPause(49f6e7a06ebc5aa8). ();
9349 } break; case REAL_cxx . . $ REAL_.: { do_realcxx . . $ do_real(49f6e7a06ebc5aa8). ();
9350 } break; case POSITIVE_cxx . . $ POSITIVE_.: { do_positivecxx . . $ do_positive(49f6e7a06ebc5aa8). ();
9351 } break; case INTEGER_cxx . . $ INTEGER_.: { do_integercxx . . $ do_integer(49f6e7a06ebc5aa8). ();
9352 } break; case NATURAL_cxx . . $ NATURAL_.: { do_naturalcxx . . $ do_natural(49f6e7a06ebc5aa8). ();
9353 } break; case WORD_cxx . . $ WORD_.: { do_wordcxx . . $ do_word(49f6e7a06ebc5aa8). ();
9354 } break; case SENTENCE_cxx . . $ SENTENCE_.: { do_sentencecxx . . $ do_sentence(49f6e7a06ebc5aa8). ();
9355 } break; case TEXT_cxx . . $ TEXT_.: { do_textcxx . . $ do_text(49f6e7a06ebc5aa8). ();
9356 } break; case BOOLEAN_cxx . . $ BOOLEAN_.: { do_booleancxx . . $ do_boolean(49f6e7a06ebc5aa8). ();
9357 } break; case CHOICE_cxx . . $ CHOICE_.: { do_choicecxx . . $ do_choice(49f6e7a06ebc5aa8). ();
9358 } break; case OPTIONMENU_cxx . . $ OPTIONMENU_.: { do_optionmenucxx . . $ do_optionmenu(49f6e7a06ebc5aa8). ();
9359 } break; case OPTION_MENU_cxx . . $ OPTION_MENU_.: { do_optionmenucxx . . $ do_optionmenu(49f6e7a06ebc5aa8). (); // alternative spelling, deprecated 2023
9360 } break; case OPTION_cxx . . $ OPTION_.: { do_optioncxx . . $ do_option(49f6e7a06ebc5aa8). ();
9361 } break; case INFILE_cxx . . $ INFILE_.: { do_infilecxx . . $ do_infile(49f6e7a06ebc5aa8). ();
9362 } break; case OUTFILE_cxx . . $ OUTFILE_.: { do_outfilecxx . . $ do_outfile(49f6e7a06ebc5aa8). ();
9363 } break; case FOLDER_cxx . . $ FOLDER_.: { do_foldercxx . . $ do_folder(49f6e7a06ebc5aa8). ();
9364 } break; case REALVECTOR_cxx . . $ REALVECTOR_.: { do_realvectorcxx . . $ do_realvector(49f6e7a06ebc5aa8). ();
9365 } break; case POSITIVEVECTOR_cxx . . $ POSITIVEVECTOR_.: { do_positivevectorcxx . . $ do_positivevector(49f6e7a06ebc5aa8). ();
9366 } break; case INTEGERVECTOR_cxx . . $ INTEGERVECTOR_.: { do_integervectorcxx . . $ do_integervector(49f6e7a06ebc5aa8). ();
9367 } break; case NATURALVECTOR_cxx . . $ NATURALVECTOR_.: { do_naturalvectorcxx . . $ do_naturalvector(49f6e7a06ebc5aa8). ();
9368 } break; case HEADING_cxx . . $ HEADING_.: { do_headingcxx . . $ do_heading(49f6e7a06ebc5aa8). ();
9369 } break; case COMMENT_cxx . . $ COMMENT_.: { do_commentcxx . . $ do_comment(49f6e7a06ebc5aa8). ();
9370 } break; case END_PAUSE_cxx . . $ END_PAUSE_.: { do_endPausecxx . . $ do_endPause(49f6e7a06ebc5aa8). ();
9371 } break; case LOWER_CASE_APP_NAME_STR_cxx . . $ LOWER_CASE_APP_NAME_STR_.: { do_lowerCaseAppNameStrcxx . . $ do_lowerCaseAppNameStr(49f6e7a06ebc5aa8). ();
9372 } break; case UPPER_CASE_APP_NAME_STR_cxx . . $ UPPER_CASE_APP_NAME_STR_.: { do_upperCaseAppNameStrcxx . . $ do_upperCaseAppNameStr(49f6e7a06ebc5aa8). ();
9373 } break; case CLOCK_cxx . . $ CLOCK_.: { do_clockcxx . . $ do_clock(49f6e7a06ebc5aa8). ();
9374 } break; case APP_VERSION_cxx . . $ APP_VERSION_.: { do_appVersioncxx . . $ do_appVersion(49f6e7a06ebc5aa8). ();
9375 } break; case APP_VERSION_STR_cxx . . $ APP_VERSION_STR_.: { do_appVersionStrcxx . . $ do_appVersionStr(49f6e7a06ebc5aa8). ();
9376 } break; case APP_YEAR_cxx . . $ APP_YEAR_.: { do_appYearcxx . . $ do_appYear(49f6e7a06ebc5aa8). ();
9377 } break; case APP_MONTH_cxx . . $ APP_MONTH_.: { do_appMonthcxx . . $ do_appMonth(49f6e7a06ebc5aa8). ();
9378 } break; case APP_MONTH_STR_cxx . . $ APP_MONTH_STR_.: { do_appMonthStrcxx . . $ do_appMonthStr(49f6e7a06ebc5aa8). ();
9379 } break; case APP_DAY_cxx . . $ APP_DAY_.: { do_appDaycxx . . $ do_appDay(49f6e7a06ebc5aa8). ();
9380 } break; case CHOOSE_READ_FILE_STR_cxx . . $ CHOOSE_READ_FILE_STR_.: { do_chooseReadFileStrcxx . . $ do_chooseReadFileStr(49f6e7a06ebc5aa8). ();
9381 } break; case CHOOSE_WRITE_FILE_STR_cxx . . $ CHOOSE_WRITE_FILE_STR_.: { do_chooseWriteFileStrcxx . . $ do_chooseWriteFileStr(49f6e7a06ebc5aa8). ();
9382 } break; case CHOOSE_FOLDER_STR_cxx . . $ CHOOSE_FOLDER_STR_.: { do_chooseFolder_STRcxx . . $ do_chooseFolder_STR(49f6e7a06ebc5aa8). ();
9383 } break; case CHOOSE_DIRECTORY_STR_cxx . . $ CHOOSE_DIRECTORY_STR_.: { do_chooseDirectory_STRcxx . . $ do_chooseDirectory_STR(49f6e7a06ebc5aa8). (); // deprecated 2020
9384 /********** Demo window functions: **********/
9385 } break; case DEMO_WINDOW_TITLE_cxx . . $ DEMO_WINDOW_TITLE_.: { do_demoWindowTitlecxx . . $ do_demoWindowTitle(49f6e7a06ebc5aa8). ();
9386 } break; case DEMO_SHOW_cxx . . $ DEMO_SHOW_.: { do_demoShowcxx . . $ do_demoShow(49f6e7a06ebc5aa8). ();
9387 } break; case DEMO_WAIT_FOR_INPUT_cxx . . $ DEMO_WAIT_FOR_INPUT_.: { do_demoWaitForInputcxx . . $ do_demoWaitForInput(49f6e7a06ebc5aa8). ();
9388 } break; case DEMO_PEEK_INPUT_cxx . . $ DEMO_PEEK_INPUT_.: { do_demoPeekInputcxx . . $ do_demoPeekInput(49f6e7a06ebc5aa8). ();
9389 } break; case DEMO_INPUT_cxx . . $ DEMO_INPUT_.: { do_demoInputcxx . . $ do_demoInput(49f6e7a06ebc5aa8). ();
9390 } break; case DEMO_CLICKED_IN_cxx . . $ DEMO_CLICKED_IN_.: { do_demoClickedIncxx . . $ do_demoClickedIn(49f6e7a06ebc5aa8). ();
9391 } break; case DEMO_CLICKED_cxx . . $ DEMO_CLICKED_.: { do_demoClickedcxx . . $ do_demoClicked(49f6e7a06ebc5aa8). ();
9392 } break; case DEMO_X_cxx . . $ DEMO_X_.: { do_demoXcxx . . $ do_demoX(49f6e7a06ebc5aa8). ();
9393 } break; case DEMO_Y_cxx . . $ DEMO_Y_.: { do_demoYcxx . . $ do_demoY(49f6e7a06ebc5aa8). ();
9394 } break; case DEMO_KEY_PRESSED_cxx . . $ DEMO_KEY_PRESSED_.: { do_demoKeyPressedcxx . . $ do_demoKeyPressed(49f6e7a06ebc5aa8). ();
9395 } break; case DEMO_KEY_cxx . . $ DEMO_KEY_.: { do_demoKeycxx . . $ do_demoKey(49f6e7a06ebc5aa8). ();
9396 } break; case DEMO_SHIFT_KEY_PRESSED_cxx . . $ DEMO_SHIFT_KEY_PRESSED_.: { do_demoShiftKeyPressedcxx . . $ do_demoShiftKeyPressed(49f6e7a06ebc5aa8). ();
9397 } break; case DEMO_COMMAND_KEY_PRESSED_cxx . . $ DEMO_COMMAND_KEY_PRESSED_.: { do_demoCommandKeyPressedcxx . . $ do_demoCommandKeyPressed(49f6e7a06ebc5aa8). ();
9398 } break; case DEMO_OPTION_KEY_PRESSED_cxx . . $ DEMO_OPTION_KEY_PRESSED_.: { do_demoOptionKeyPressedcxx . . $ do_demoOptionKeyPressed(49f6e7a06ebc5aa8). ();
9399 /********** **********/
9400 } break; case TRUE_cxx . . $ TRUE_.: {
9401 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (1.0);
9402 } break; case FALSE_cxx . . $ FALSE_.: {
9403 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (0.0);
9404 } break; case IFTRUE_cxx . . $ IFTRUE_.: {
9405 Stackelcxx . . $ Stackel# condition = popcxx . . $ `sys/Formula.cpp:2387:9`!;
9406 if (condition->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
9407 if (condition->numbercxx . . $ structStackel#$anonymous_type_0#number. != 0.0) {
9408 /* Possible compiler BUG: some compilers cannot handle the following assignment. */
9409 /* Those compilers will have trouble with praat's AND and OR. */
9410 programPointercxx . . $ programPointer. = f [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. - theOptimizecxx . . $ theOptimize.;
9411 }
9412 } else {
9413 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"A condition between “if” and “then” should be a number, not ", condition->whichText(), U".");
9414 }
9415 } break; case IFFALSE_cxx . . $ IFFALSE_.: {
9416 Stackelcxx . . $ Stackel# condition = popcxx . . $ `sys/Formula.cpp:2387:9`!;
9417 if (condition->whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
9418 if (condition->numbercxx . . $ structStackel#$anonymous_type_0#number. == 0.0) {
9419 programPointercxx . . $ programPointer. = f [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. - theOptimizecxx . . $ theOptimize.;
9420 }
9421 } else {
9422 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"A condition between “if” and “then” should be a number, not ", condition->whichText(), U".");
9423 }
9424 } break; case GOTO_cxx . . $ GOTO_.: {
9425 programPointercxx . . $ programPointer. = f [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. - theOptimizecxx . . $ theOptimize.;
9426 } break; case LABEL_cxx . . $ LABEL_.: {
9427 ;
9428 } break; case DECREMENT_AND_ASSIGN_cxx . . $ DECREMENT_AND_ASSIGN_.: {
9429 Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!, v = popcxx . . $ `sys/Formula.cpp:2387:9`!;
9430 InterpreterVariablecxx . . $ InterpreterVariable# var = v->variablecxx . . $ structStackel#$anonymous_type_0#variable.;
9431 var -> numericValuecxx . . $ structInterpreterVariable#numericValue. = x->numbercxx . . $ structStackel#$anonymous_type_0#number. - 1.0;
9432 //Melder_casual (U"starting value ", var -> numericValue);
9433 pushVariablecxx . . $ pushVariable(3a00ba7a47150c6c). (var);
9434 } break; case INCREMENT_GREATER_GOTO_cxx . . $ INCREMENT_GREATER_GOTO_.: {
9435 //Melder_casual (U"top of loop, stack depth ", stackPointer);
9436 Stackelcxx . . $ Stackel# e = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer.], v = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. - 1];
9437 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (e->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
9438 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (v->which == Stackel_VARIABLEcxx . . $ `sys/Formula.h:53:10`!);
9439 InterpreterVariablecxx . . $ InterpreterVariable# var = v->variablecxx . . $ structStackel#$anonymous_type_0#variable.;
9440 //Melder_casual (U"loop variable ", var -> numericValue);
9441 var -> numericValuecxx . . $ structInterpreterVariable#numericValue. += 1.0;
9442 //Melder_casual (U"loop variable ", var -> numericValue);
9443 //Melder_casual (U"end value ", e->number);
9444 if (var -> numericValuecxx . . $ structInterpreterVariable#numericValue. > e->numbercxx . . $ structStackel#$anonymous_type_0#number.) {
9445 programPointercxx . . $ programPointer. = f [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..labelcxx . . $ structFormulaInstruction#$anonymous_type_0#label. - theOptimizecxx . . $ theOptimize.;
9446 }
9447 } break; case ADD_3DOWN_cxx . . $ ADD_3DOWN_.: {
9448 Stackelcxx . . $ Stackel# x = popcxx . . $ `sys/Formula.cpp:2387:9`!, s = & theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer. - 2];
9449 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (x->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
9450 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (s->which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
9451 //Melder_casual (U"to add ", x->number);
9452 s->numbercxx . . $ structStackel#$anonymous_type_0#number. += x->numbercxx . . $ structStackel#$anonymous_type_0#number.;
9453 //Melder_casual (U"sum ", s->number);
9454 } break; case POP_2_cxx . . $ POP_2_.: {
9455 stackPointercxx . . $ stackPointer. -= 2;
9456 //Melder_casual (U"total ", theStack [stackPointer]. number);
9457 } break; case VEC_CELL_cxx . . $ VEC_CELL_.: { do_numericVectorElementcxx . . $ do_numericVectorElement(49f6e7a06ebc5aa8). ();
9458 } break; case MAT_CELL_cxx . . $ MAT_CELL_.: { do_numericMatrixElementcxx . . $ do_numericMatrixElement(49f6e7a06ebc5aa8). ();
9459 } break; case STRVEC_CELL_cxx . . $ STRVEC_CELL_.: { do_stringVectorElementcxx . . $ do_stringVectorElement(49f6e7a06ebc5aa8). ();
9460 } break; case INDEXED_NUMERIC_VARIABLE_cxx . . $ INDEXED_NUMERIC_VARIABLE_.: { do_indexedNumericVariablecxx . . $ do_indexedNumericVariable(49f6e7a06ebc5aa8). ();
9461 } break; case INDEXED_STRING_VARIABLE_cxx . . $ INDEXED_STRING_VARIABLE_.: { do_indexedStringVariablecxx . . $ do_indexedStringVariable(49f6e7a06ebc5aa8). ();
9462 } break; case VARIABLE_REFERENCE_cxx . . $ VARIABLE_REFERENCE_.: {
9463 InterpreterVariablecxx . . $ InterpreterVariable# var = f [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.;
9464 pushVariablecxx . . $ pushVariable(3a00ba7a47150c6c). (var);
9465 } break; case SELF0_cxx . . $ SELF0_.: { do_self0cxx . . $ do_self0(a8896fd0f69df779). (row, col);
9466 } break; case SELFSTR0_cxx . . $ SELFSTR0_.: { do_selfStr0cxx . . $ do_selfStr0(a8896fd0f69df779). (row, col);
9467 } break; case OBJECT_cxx . . $ OBJECT_.: { pushObjectcxx . . $ pushObject(fde123624714e72). (f [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..objectcxx . . $ structFormulaInstruction#$anonymous_type_0#object.);
9468 } break; case TO_OBJECT_cxx . . $ TO_OBJECT_.: { do_toObjectcxx . . $ do_toObject(49f6e7a06ebc5aa8). ();
9469 } break; case SELFMATRIX1_cxx . . $ SELFMATRIX1_.: { do_selfMatrix1cxx . . $ do_selfMatrix1(1624ee8275b10bda). (row);
9470 } break; case SELFMATRIX1_STR_cxx . . $ SELFMATRIX1_STR_.: { do_selfMatrix1_STRcxx . . $ do_selfMatrix1_STR(1624ee8275b10bda). (row);
9471 } break; case SELFMATRIX2_cxx . . $ SELFMATRIX2_.: { do_selfMatrix2cxx . . $ do_selfMatrix2(49f6e7a06ebc5aa8). ();
9472 } break; case SELFMATRIX2_STR_cxx . . $ SELFMATRIX2_STR_.: { do_selfMatrix2_STRcxx . . $ do_selfMatrix2_STR(49f6e7a06ebc5aa8). ();
9473 } break; case SELFFUNCTION1_cxx . . $ SELFFUNCTION1_.: { do_selfFunction1cxx . . $ do_selfFunction1(1624ee8275b10bda). (row);
9474 } break; case SELFFUNCTION2_cxx . . $ SELFFUNCTION2_.: { do_selfFunction2cxx . . $ do_selfFunction2(49f6e7a06ebc5aa8). ();
9475 } break; case OBJECTCELL0_cxx . . $ OBJECTCELL0_.: { do_objectCell0cxx . . $ do_objectCell0(a8896fd0f69df779). (row, col);
9476 } break; case OBJECTCELL1_cxx . . $ OBJECTCELL1_.: { do_objectCell1cxx . . $ do_objectCell1(1624ee8275b10bda). (row);
9477 } break; case OBJECTCELL1_STR_cxx . . $ OBJECTCELL1_STR_.: { do_objectCell1_STRcxx . . $ do_objectCell1_STR(1624ee8275b10bda). (row);
9478 } break; case OBJECTCELL2_cxx . . $ OBJECTCELL2_.: { do_objectCell2cxx . . $ do_objectCell2(49f6e7a06ebc5aa8). ();
9479 } break; case OBJECTCELL2_STR_cxx . . $ OBJECTCELL2_STR_.: { do_objectCell2_STRcxx . . $ do_objectCell2_STR(49f6e7a06ebc5aa8). ();
9480 } break; case OBJECTLOCATION0_cxx . . $ OBJECTLOCATION0_.: { do_objectLocation0cxx . . $ do_objectLocation0(a8896fd0f69df779). (row, col);
9481 } break; case OBJECTLOCATION1_cxx . . $ OBJECTLOCATION1_.: { do_objectLocation1cxx . . $ do_objectLocation1(1624ee8275b10bda). (row);
9482 } break; case OBJECTLOCATION2_cxx . . $ OBJECTLOCATION2_.: { do_objectLocation2cxx . . $ do_objectLocation2(49f6e7a06ebc5aa8). ();
9483 } break; case MATRIX0_cxx . . $ MATRIX0_.: { do_matrix0cxx . . $ do_matrix0(a8896fd0f69df779). (row, col);
9484 } break; case MATRIX1_cxx . . $ MATRIX1_.: { do_matrix1cxx . . $ do_matrix1(1624ee8275b10bda). (row);
9485 } break; case MATRIX1_STR_cxx . . $ MATRIX1_STR_.: { do_matrix1_STRcxx . . $ do_matrix1_STR(1624ee8275b10bda). (row);
9486 } break; case MATRIX2_cxx . . $ MATRIX2_.: { do_matrix2cxx . . $ do_matrix2(49f6e7a06ebc5aa8). ();
9487 } break; case MATRIX2_STR_cxx . . $ MATRIX2_STR_.: { do_matrix2_STRcxx . . $ do_matrix2_STR(49f6e7a06ebc5aa8). ();
9488 } break; case FUNCTION0_cxx . . $ FUNCTION0_.: { do_function0cxx . . $ do_function0(a8896fd0f69df779). (row, col);
9489 } break; case FUNCTION1_cxx . . $ FUNCTION1_.: { do_function1cxx . . $ do_function1(1624ee8275b10bda). (row);
9490 } break; case FUNCTION2_cxx . . $ FUNCTION2_.: { do_function2cxx . . $ do_function2(49f6e7a06ebc5aa8). ();
9491 } break; case ROW_STR_cxx . . $ ROW_STR_.: { do_row_STRcxx . . $ do_row_STR(49f6e7a06ebc5aa8). ();
9492 } break; case COL_STR_cxx . . $ COL_STR_.: { do_col_STRcxx . . $ do_col_STR(49f6e7a06ebc5aa8). ();
9493 } break; case SQR_cxx . . $ SQR_.: { do_sqrcxx . . $ do_sqr(49f6e7a06ebc5aa8). ();
9494 } break; case STRING_cxx . . $ STRING_.: {
9495 autostring32cxx . . $ autostring32# string = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (f [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..stringcxx . . $ structFormulaInstruction#$anonymous_type_0#string.);
9496 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (stringcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
9497 } break; case TENSOR_LITERAL_cxx . . $ TENSOR_LITERAL_.: { do_tensorLiteralcxx . . $ do_tensorLiteral(49f6e7a06ebc5aa8). ();
9498 } break; case TENSOR_LITERAL_CELL_cxx . . $ TENSOR_LITERAL_CELL_.: { do_tensorLiteralCellcxx . . $ do_tensorLiteralCell(49f6e7a06ebc5aa8). ();
9499 } break; case NUMERIC_VARIABLE_cxx . . $ NUMERIC_VARIABLE_.: {
9500 InterpreterVariablecxx . . $ InterpreterVariable# var = f [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.;
9501 pushNumbercxx . . $ pushNumber(ba8836b59fb42830). (var -> numericValuecxx . . $ structInterpreterVariable#numericValue.);
9502 } break; case NUMERIC_VECTOR_VARIABLE_cxx . . $ NUMERIC_VECTOR_VARIABLE_.: {
9503 InterpreterVariablecxx . . $ InterpreterVariable# var = f [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.;
9504 pushNumericVectorReferencecxx . . $ pushNumericVectorReference(33ae648fa537298c). (var -> numericVectorValuecxx . . $ structInterpreterVariable#numericVectorValue..getcxx . . $ autovector#get(e8d1da7fe68a6585).());
9505 } break; case NUMERIC_MATRIX_VARIABLE_cxx . . $ NUMERIC_MATRIX_VARIABLE_.: {
9506 InterpreterVariablecxx . . $ InterpreterVariable# var = f [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.;
9507 pushNumericMatrixReferencecxx . . $ pushNumericMatrixReference(f301d87584f52a18). (var -> numericMatrixValuecxx . . $ structInterpreterVariable#numericMatrixValue..getcxx . . $ automatrix#get(b2b81450b5bdda66).());
9508 } break; case STRING_VARIABLE_cxx . . $ STRING_VARIABLE_.: {
9509 InterpreterVariablecxx . . $ InterpreterVariable# var = f [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.;
9510 autostring32cxx . . $ autostring32# string = Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (var -> stringValuecxx . . $ structInterpreterVariable#stringValue..getcxx . . $ _autostring#get(5a2a78a048fb49a8).());
9511 pushStringcxx . . $ pushString(c3bcb1467d3e4c86). (stringcxx . . $ _autostring#_autostring(39021ecceedcc7d2)..movecxx . . $ _autostring#move(bd43c759570f178f).());
9512 } break; case STRING_ARRAY_VARIABLE_cxx . . $ STRING_ARRAY_VARIABLE_.: {
9513 InterpreterVariablecxx . . $ InterpreterVariable# var = f [programPointercxx . . $ programPointer.]. contentcxx . . $ structFormulaInstruction#content..variablecxx . . $ structFormulaInstruction#$anonymous_type_0#variable.;
9514 pushStringVectorReferencecxx . . $ pushStringVectorReference(f69ae485e82fc38d). (var -> stringArrayValuecxx . . $ structInterpreterVariable#stringArrayValue..getcxx . . $ _autostringautovector#get(9d56076a9ef7dd02).());
9515 } break; default: Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Symbol “", Formula_instructionNames [parse [programPointer]. symbol], U"” without action.");
9516 } // endswitch
9517 programPointercxx . . $ programPointer. ++;
9518 } // endwhile
9519 if (stackPointercxx . . $ stackPointer. != 1)
9520 Melder_crashcxx . . $ `melder/melder_error.h:98:9`! (U"Formula: stackpointer ends at ", stackPointer, U" instead of 1.");
9521 /*
9522 Move the result from the stack to `result`.
9523 */
9524 result -> resetcxx . . $ Formula_Result#reset(49f6e7a06ebc5aa8).();
9525 if (theExpressionTypecxx . . $ theExpressionType. [theLevelcxx . . $ theLevel.] == kFormula_EXPRESSION_TYPE_NUMERICcxx . . $ `sys/Formula.h:24:9`!) {
9526 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
9527 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a string expression instead of a numeric expression.");
9528 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!)
9529 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a vector expression instead of a numeric expression.");
9530 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!)
9531 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a matrix expression instead of a numeric expression.");
9532 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!)
9533 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a string vector expression instead of a numeric expression.");
9534 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (theStack [1]. which == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!);
9535 result -> expressionTypecxx . . $ Formula_Result#expressionType. = kFormula_EXPRESSION_TYPE_NUMERICcxx . . $ `sys/Formula.h:24:9`!;
9536 result -> numericResultcxx . . $ Formula_Result#numericResult. = theStackcxx . . $ theStack. [1]. numbercxx . . $ structStackel#$anonymous_type_0#number.;
9537 } else if (theExpressionTypecxx . . $ theExpressionType. [theLevelcxx . . $ theLevel.] == kFormula_EXPRESSION_TYPE_STRINGcxx . . $ `sys/Formula.h:25:9`!) {
9538 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
9539 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a numeric expression (value ", theStack [1]. number, U") instead of a string expression.");
9540 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!)
9541 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a vector expression instead of a string expression.");
9542 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!)
9543 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a matrix expression instead of a string expression.");
9544 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!)
9545 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a string vector expression instead of a string expression.");
9546 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (theStack [1]. which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!);
9547 result -> expressionTypecxx . . $ Formula_Result#expressionType. = kFormula_EXPRESSION_TYPE_STRINGcxx . . $ `sys/Formula.h:25:9`!;
9548 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (! result -> stringResult);
9549 result -> stringResultcxx . . $ Formula_Result#stringResult. =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). theStackcxx . . $ theStack. [1]. moveStringcxx . . $ structStackel#moveString(19b925b58261db21).();
9550 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (theStack [1]. which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!);
9551 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (! theStack [1]. getString());
9552 } else if (theExpressionTypecxx . . $ theExpressionType. [theLevelcxx . . $ theLevel.] == kFormula_EXPRESSION_TYPE_NUMERIC_VECTORcxx . . $ `sys/Formula.h:26:9`!) {
9553 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
9554 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a numeric expression instead of a vector expression.");
9555 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
9556 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a string expression instead of a vector expression.");
9557 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!)
9558 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a matrix expression instead of a vector expression.");
9559 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!)
9560 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a string vector expression instead of a numeric vector expression.");
9561 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (theStack [1]. which == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!);
9562 result -> expressionTypecxx . . $ Formula_Result#expressionType. = kFormula_EXPRESSION_TYPE_NUMERIC_VECTORcxx . . $ `sys/Formula.h:26:9`!;
9563 result -> numericVectorResultcxx . . $ Formula_Result#numericVectorResult. =cxx . . $ vector#`operator=`(958c14910af86093). theStackcxx . . $ theStack. [1]. numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
9564 result -> ownedcxx . . $ Formula_Result#owned. = theStackcxx . . $ theStack. [1]. ownedcxx . . $ structStackel#owned.;
9565 theStackcxx . . $ theStack. [1]. ownedcxx . . $ structStackel#owned. = false;
9566 } else if (theExpressionTypecxx . . $ theExpressionType. [theLevelcxx . . $ theLevel.] == kFormula_EXPRESSION_TYPE_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:27:9`!) {
9567 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
9568 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a numeric expression instead of a matrix expression.");
9569 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
9570 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a string expression instead of a matrix expression.");
9571 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!)
9572 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a vector expression instead of a matrix expression.");
9573 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!)
9574 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a string vector expression instead of a numeric matrix expression.");
9575 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (theStack [1]. which == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!);
9576 result -> expressionTypecxx . . $ Formula_Result#expressionType. = kFormula_EXPRESSION_TYPE_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:27:9`!;
9577 result -> numericMatrixResultcxx . . $ Formula_Result#numericMatrixResult. =cxx . . $ matrix#`operator=`(5dfd60dc70a2bbd2). theStackcxx . . $ theStack. [1]. numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
9578 result -> ownedcxx . . $ Formula_Result#owned. = theStackcxx . . $ theStack. [1]. ownedcxx . . $ structStackel#owned.;
9579 theStackcxx . . $ theStack. [1]. ownedcxx . . $ structStackel#owned. = false;
9580 } else if (theExpressionTypecxx . . $ theExpressionType. [theLevelcxx . . $ theLevel.] == kFormula_EXPRESSION_TYPE_STRING_ARRAYcxx . . $ `sys/Formula.h:30:9`!) {
9581 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!)
9582 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a numeric expression instead of a string vector expression.");
9583 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!)
9584 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a string expression instead of a string vector expression.");
9585 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!)
9586 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a vector expression instead of a string vector expression.");
9587 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!)
9588 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Found a matrix expression instead of a string vector expression.");
9589 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (theStack [1]. which == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!);
9590 result -> expressionTypecxx . . $ Formula_Result#expressionType. = kFormula_EXPRESSION_TYPE_STRING_ARRAYcxx . . $ `sys/Formula.h:30:9`!;
9591 result -> stringArrayResultcxx . . $ Formula_Result#stringArrayResult. =cxx . . $ _stringvector#`operator=`(15d94a005602ee33). theStackcxx . . $ theStack. [1]. stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray.;
9592 result -> ownedcxx . . $ Formula_Result#owned. = theStackcxx . . $ theStack. [1]. ownedcxx . . $ structStackel#owned.;
9593 theStackcxx . . $ theStack. [1]. ownedcxx . . $ structStackel#owned. = false;
9594 } else {
9595 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (theExpressionType [theLevel] == kFormula_EXPRESSION_TYPE_UNKNOWNcxx . . $ `sys/Formula.h:31:9`!);
9596 if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMBERcxx . . $ `sys/Formula.h:46:10`!) {
9597 result -> expressionTypecxx . . $ Formula_Result#expressionType. = kFormula_EXPRESSION_TYPE_NUMERICcxx . . $ `sys/Formula.h:24:9`!;
9598 result -> numericResultcxx . . $ Formula_Result#numericResult. = theStackcxx . . $ theStack. [1]. numbercxx . . $ structStackel#$anonymous_type_0#number.;
9599 } else if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!) {
9600 result -> expressionTypecxx . . $ Formula_Result#expressionType. = kFormula_EXPRESSION_TYPE_STRINGcxx . . $ `sys/Formula.h:25:9`!;
9601 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (! result -> stringResult);
9602 result -> stringResultcxx . . $ Formula_Result#stringResult. =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). theStackcxx . . $ theStack. [1]. moveStringcxx . . $ structStackel#moveString(19b925b58261db21).();
9603 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (theStack [1]. which == Stackel_STRINGcxx . . $ `sys/Formula.h:47:10`!);
9604 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (! theStack [1]. getString());
9605 } else if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMERIC_VECTORcxx . . $ `sys/Formula.h:48:10`!) {
9606 result -> expressionTypecxx . . $ Formula_Result#expressionType. = kFormula_EXPRESSION_TYPE_NUMERIC_VECTORcxx . . $ `sys/Formula.h:26:9`!;
9607 result -> numericVectorResultcxx . . $ Formula_Result#numericVectorResult. =cxx . . $ vector#`operator=`(958c14910af86093). theStackcxx . . $ theStack. [1]. numericVectorcxx . . $ structStackel#$anonymous_type_0#numericVector.;
9608 result -> ownedcxx . . $ Formula_Result#owned. = theStackcxx . . $ theStack. [1]. ownedcxx . . $ structStackel#owned.;
9609 theStackcxx . . $ theStack. [1]. ownedcxx . . $ structStackel#owned. = false;
9610 } else if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:49:10`!) {
9611 result -> expressionTypecxx . . $ Formula_Result#expressionType. = kFormula_EXPRESSION_TYPE_NUMERIC_MATRIXcxx . . $ `sys/Formula.h:27:9`!;
9612 result -> numericMatrixResultcxx . . $ Formula_Result#numericMatrixResult. =cxx . . $ matrix#`operator=`(5dfd60dc70a2bbd2). theStackcxx . . $ theStack. [1]. numericMatrixcxx . . $ structStackel#$anonymous_type_0#numericMatrix.;
9613 result -> ownedcxx . . $ Formula_Result#owned. = theStackcxx . . $ theStack. [1]. ownedcxx . . $ structStackel#owned.;
9614 theStackcxx . . $ theStack. [1]. ownedcxx . . $ structStackel#owned. = false;
9615 } else if (theStackcxx . . $ theStack. [1]. whichcxx . . $ structStackel#which. == Stackel_STRING_ARRAYcxx . . $ `sys/Formula.h:52:10`!) {
9616 result -> expressionTypecxx . . $ Formula_Result#expressionType. = kFormula_EXPRESSION_TYPE_STRING_ARRAYcxx . . $ `sys/Formula.h:30:9`!;
9617 result -> stringArrayResultcxx . . $ Formula_Result#stringArrayResult. =cxx . . $ _stringvector#`operator=`(15d94a005602ee33). theStackcxx . . $ theStack. [1]. stringArraycxx . . $ structStackel#$anonymous_type_0#stringArray.;
9618 result -> ownedcxx . . $ Formula_Result#owned. = theStackcxx . . $ theStack. [1]. ownedcxx . . $ structStackel#owned.;
9619 theStackcxx . . $ theStack. [1]. ownedcxx . . $ structStackel#owned. = false;
9620 } else {
9621 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Don't know yet how to write ", theStack [1]. whichText(), U".");
9622 }
9623 }
9624 /*
9625 Clean up the stack (theStack [1] has probably been disowned).
9626 */
9627 for (stackPointercxx . . $ stackPointer. = stackPointerMaxcxx . . $ stackPointerMax.; stackPointercxx . . $ stackPointer. > 0; stackPointercxx . . $ stackPointer. --)
9628 theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer.]. resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
9629 } catch (MelderErrorcxx . . $ MelderError#) {
9630 /*
9631 Clean up the stack (theStack [1] has probably not been disowned).
9632 */
9633 for (stackPointercxx . . $ stackPointer. = stackPointerMaxcxx . . $ stackPointerMax.; stackPointercxx . . $ stackPointer. > 0; stackPointercxx . . $ stackPointer. --)
9634 theStackcxx . . $ theStack. [stackPointercxx . . $ stackPointer.]. resetcxx . . $ structStackel#reset(49f6e7a06ebc5aa8).();
9635 if (Melder_hasErrorcxx . . $ Melder_hasError(2df281243f91fe91). (U"Script exited.")) {
9636 throw;
9637 } else {
9638 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Formula not run.");
9639 }
9640 }
9641 }
9642
9643 /* End of file Formula.cpp */