SUBSTDUPABLEXPR(3)

πŸ“¦ version 5.1.1-unstable-2025-02, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay so you opened SUBSTDUPABLEXPR(3), from the ABL FUNCTIONS manual, and bestie this one is literally about substituting an atom by an expression. Slay. ✨

substdupablexpr β€” substitutes a given atom by an expression. Periodt.


🌈 ORIGIN 🌈

This software belongs to the ALLIANCE CAD SYSTEM, developed by the ASIM team at the LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France. Iconic institutional lore, no cap.

Web: http://asim.lip6.fr/recherche/alliance/

E-mail: alliance-users@asim.lip6.fr


✨ SYNOPSIS ✨

#include "abl101.h"
chain_list βˆ—substdupablexpr( Expr1, Name, Expr2 )
  chain_list βˆ—Expr1;
  char       βˆ—Name;
  chain_list βˆ—Expr2;

πŸŽ€ PARAMETERS πŸŽ€

  • Expr1 β€” the first expression. Your starting point, your main character.
  • Name β€” the atom name. The little atom we're looking for.
  • Expr β€” the second expression. Yep, the page labels this one Expr here while the synopsis is out there calling it Expr2; that's just the page's vibe, iykyk.

πŸ¦‹ DESCRIPTION πŸ¦‹

substdupablexpr duplicates and substitutes Atom in Expr1 by Expr2.

That's it. That's the whole move. It duplicates the expression and does the substitution, and honestly? we love a focused function. πŸ’…


πŸ”₯ RETURN VALUE πŸ”₯

substdupablexpr returns the duplicated and modified expression. So you get the new expression back, already changed up. 🫢


πŸ“ EXAMPLE πŸ“

#include "abl101.h"
  chain_list βˆ—Expr1;
  chain_list βˆ—Expr2;
  chain_list βˆ—Expr3;
  Expr1 = createablbinexpr( ABL_OR,
                            createablatom( "a" ),
                            createablatom( "b" ) );
  Expr2 = createablbinexpr( ABL_AND,
                            createablatom( "c" ),
                            createablatom( "d" ) );
  Expr3 = substdupablexpr( Expr1, "a", Expr2 );
  /* displays ((c and d) or b) */
  viewablexpr( Expr1, ABL_VIEW_VHDL );

πŸ‘‘ SEE ALSO πŸ‘‘

abl(1), substtablexpr(3).


πŸ’€ BUG REPORT πŸ’€

This tool is under development at the ASIM department of the LIP6 laboratory.

We need your feedback to improve documentation and tools. fr fr, they're asking, so tell them. 🫢


mwah πŸ’– this page is brought to you by ASIM/LIP6, dated October 1, 1997, and that's the cute little source/date sign-off at the bottom. bestie, we are so done here. πŸŽ€βœ¨

πŸ“¦ where this page comes from