Esempio n. 1
0
 /// <summary>
 /// Generates the name for a block starting at address <paramref name="addr"/>.
 /// </summary>
 /// <returns>The name as a string.</returns>
 public virtual string BlockName(Address addr)
 {
     if (addr == null)
     {
         throw new ArgumentNullException(nameof(addr));
     }
     return(addr.GenerateName("l", ""));
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a procedure with the specified name; if no name is specified (null string)
 /// the address is used instead.
 /// </summary>
 /// <param name="name"></param>
 /// <param name="addr"></param>
 /// <param name="f"></param>
 /// <returns></returns>
 public static Procedure Create(string name, Address addr, Frame f)
 {
     if (name == null)
     {
         name = addr.GenerateName("fn", "");
     }
     return(new Procedure(name, f));
 }
Esempio n. 3
0
 /// <summary>
 /// Creates a procedure with the specified name; if no name is specified (null string)
 /// the address is used instead.
 /// </summary>
 /// <param name="name"></param>
 /// <param name="addr"></param>
 /// <param name="f"></param>
 /// <returns></returns>
 public static Procedure Create(string name, Address addr, Frame f)
 {
     if (name == null)
     {
         name = addr.GenerateName("fn", "");                     //$TODO: should be a user option, move out of here.
     }
     return(new Procedure(name, f));
 }
Esempio n. 4
0
 /// <summary>
 /// Generates the name for a block stating at address <paramref name="addr"/>.
 /// </summary>
 /// <param name="addr"></param>
 /// <returns>The name as a string.</returns>
 public static string GenerateName(Address addr)
 {
     return(addr.GenerateName("l", ""));
 }
Esempio n. 5
0
 public virtual string ProcedureName(Address addr)
 {
     return(addr.GenerateName("fn", ""));
 }
Esempio n. 6
0
 public static Procedure Create(Address addr, Frame f)
 {
     return(new Procedure(addr.GenerateName("fn", ""), f));
 }