CBMC
rename.h File Reference
#include "irep.h"
+ Include dependency graph for rename.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

irep_idt get_new_name (const irep_idt &name, const namespacet &ns, char delimiter='_')
 Build and identifier not yet present in the namespace ns based on name. More...
 

Function Documentation

◆ get_new_name()

irep_idt get_new_name ( const irep_idt name,
const namespacet ns,
char  delimiter = '_' 
)

Build and identifier not yet present in the namespace ns based on name.

If name is not in the namespace, just returns name.

Parameters
nameinitial candidate identifier
nsnamespace
delimitercharacter to separate the name and a newly generated suffix
Returns
Identifier that is not yet part of the namespace.

Definition at line 16 of file rename.cpp.