Previous: , Up: Using Probability Variables   [Contents][Index]


5.9.4 Auxiliary Variables

Auxiliary probability variables are probability variables, which are neither controlled nor output ones and which are used in assembler programs merely for convenience purposes. Auxiliary probability variables are replaced with their values specified in ‘prob’ directives at the time of loading an assembler program into a node. Information on auxiliary probability variables is not stored in a node, and they cannot be accessed after loading an assembler program into the node.

To load the memory representation of an assembler program, which contains auxiliary probability variables, into a node, you need to pass the QSMM_ASM_VAR_AUX flag to the function qsmm_node_asm. The use of a probability variable in an assembler program will not raise an error if the probability variable is the controlled and/or the output one, or if the QSMM_ASM_VAR_AUX flag is passed to the function qsmm_node_asm. Note that controlled probability variables must be registered in the instruction class set, and to enable the use of output probability variables, you need to pass the QSMM_ASM_VAR_OUT flag to the function qsmm_node_asm.