SUBSTDUPABLEXPR(3)
π 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 oneExprhere while the synopsis is out there calling itExpr2; 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
- nixos 26.05: alliance 5.1.1-unstable-2025-02-24
- nixpkgs unstable: alliance 5.1.1-unstable-2025-02-24
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms