if strcmp TOGGLE attrvalue scopetype UCDB_TOGGLE else if strcmp BRANCH

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
if (!strcmp("TOGGLE",attrvalue)) scopetype = UCDB_TOGGLE;
else if (!strcmp("BRANCH",attrvalue)) scopetype = UCDB_BRANCH;
else if (!strcmp("EXPR",attrvalue)) scopetype = UCDB_EXPR;
else if (!strcmp("COND",attrvalue)) scopetype = UCDB_COND;
else if (!strcmp("INSTANCE",attrvalue)) scopetype = UCDB_INSTANCE;
else if (!strcmp("PROCESS",attrvalue)) scopetype = UCDB_PROCESS;
else if (!strcmp("BLOCK",attrvalue)) scopetype = UCDB_BLOCK;
else if (!strcmp("FUNCTION",attrvalue)) scopetype = UCDB_FUNCTION;
else if (!strcmp("FORKJOIN",attrvalue)) scopetype = UCDB_FORKJOIN;
else if (!strcmp("GENERATE",attrvalue)) scopetype = UCDB_GENERATE;
else if (!strcmp("GENERIC",attrvalue)) scopetype = UCDB_GENERIC;
else if (!strcmp("CLASS",attrvalue)) scopetype = UCDB_CLASS;
else if (!strcmp("COVERGROUP",attrvalue)) scopetype = UCDB_COVERGROUP;
else if (!strcmp("COVERINSTANCE",attrvalue)) scopetype = UCDB_COVERINSTANCE;
else if (!strcmp("COVERPOINT",attrvalue)) scopetype = UCDB_COVERPOINT;
else if (!strcmp("CROSS",attrvalue)) scopetype = UCDB_CROSS;
else if (!strcmp("COVER",attrvalue)) scopetype = UCDB_COVER;
else if (!strcmp("ASSERT",attrvalue)) scopetype = UCDB_ASSERT;
else if (!strcmp("PROGRAM",attrvalue)) scopetype = UCDB_PROGRAM;
else if (!strcmp("PACKAGE",attrvalue)) scopetype = UCDB_PACKAGE;
else if (!strcmp("TASK",attrvalue)) scopetype = UCDB_TASK;
else if (!strcmp("INTERFACE",attrvalue)) scopetype = UCDB_INTERFACE;
else if (!strcmp("FSM",attrvalue)) scopetype = UCDB_FSM;
else if (!strcmp("TESTPLAN",attrvalue)) scopetype = UCDB_TESTPLAN;
else if (!strcmp("DU_MODULE",attrvalue)) scopetype = UCDB_DU_MODULE;
else if (!strcmp("DU_ARCH",attrvalue)) scopetype = UCDB_DU_ARCH;
else if (!strcmp("DU_PACKAGE",attrvalue)) scopetype = UCDB_DU_PACKAGE;
else if (!strcmp("DU_PROGRAM",attrvalue)) scopetype = UCDB_DU_PROGRAM;
else if (!strcmp("DU_INTERFACE",attrvalue)) scopetype = UCDB_DU_INTERFACE;
else if (!strcmp("FSM_STATES",attrvalue)) scopetype = UCDB_FSM_STATES;
else if (!strcmp("FSM_TRANS",attrvalue)) scopetype = UCDB_FSM_TRANS;
else scopetype = ucdbix_binhex2type(attrvalue);