Generate unique identifier with prefix. */
| 103 | } |
| 104 | /** Generate unique identifier with prefix. */ |
| 105 | string stmt_uid(const char* prefix) { |
| 106 | string result(prefix); |
| 107 | result += "_"; |
| 108 | result += std::to_string((*stmt_seq)[result]++); |
| 109 | return result; |
| 110 | } |
| 111 | /** Reset unique identifier counters. */ |
| 112 | void new_stmt() { |
| 113 | stmt_seq = std::make_shared<map<string,unsigned int> >(); |
no outgoing calls
no test coverage detected