next up previous contents
Next: assign_position.pl Up: verify.pl Previous: verify.pl

verify_cclogic

# Arguments: $fname$           : Input filename.
#            $stack_item_size$ : Number of items in a sublist on the stack.
#            @Stack : the stack , containing all of the lines of cc logic.
#                     Each sublist on the stack has 6 items:
#                     position 0 : CCD directive
#                              1 : expression
#                              2 : line number
#                              3 : total lines of code so far
#                              4 : total V(g) so far
#                              5 : total V'(g) so far
#
#                     Note : Only position 0 is important here.
# Return Values: None.
# Description: looks for the following errors:
#                  missing #endif
#                  unmatched #endif
#                  #else or #elif outside any if block
#                  #elif following an #else
#              
#              if an error is found, then the subroutine
#              describes the error and dies.