You are not logged in.
I have to process part program blocks like this:
......
N10 #1=10 #2=#1*5
.....
The correct values of the variables (#1 and #2) after processing this block should be #1=10 and #2=50, but VeriCUT says "nc_variable 1 not defined - defaulting to 0.0" and the result is #1=10 and #2=0.
Is it possible to obtain the correct result ? :?:
Thank you.
Offline
This is not currently possible, do they have to be on the same line ?
I would suggest submitting an example to your regional tech support so an enhancement request can be logged.
Offline
VERICUT reads a line in 3 steps:
-First, it separates the expressions into tokens
N10 , #1=10 and #2=#1*5
-They are then assigned to separate objects as var1=10 and var2 = 0*5 (at this point #1 is not defifined therefore defaults to 0)
-finally the objects are processed and the expressions are resolved, #1=10 and #2=0
So, you can assign values to multiple variable on the same line, but you cannot use a variable value assigned on the same line.
Valid:
#1=5
#3=5 #4=#1*5
invalid:
#1=5 #3=5 #4=#1*5
I will enter an enhancement request on your behalf
Offline