SUBSTABLEXPR(3)
π SUBSTABLEXPR(3) β the ABL FUNCTIONS girlies π
okay so bestie, you're in the abl101.h cinematic universe now and this is substablexpr(3), a function that's genuinely so iconic. let's get into it π«Ά
β¨ NAME β¨
substablexpr β substitutes a given atom by an expression.
like. that's the whole job. it's giving find-and-replace but make it boolean algebra π
πΈ ORIGIN πΈ
so 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. oui oui, trΓ¨s slay π«π·β¨
- Web : http://asim.lip6.fr/recherche/alliance/
- E-mail : alliance-users@asim.lip6.fr
π SYNOPSIS π
#include "abl101.h"
chain_list βsubstablexpr( Expr1, Name, Expr2 )
chain_list βExpr1;
char βName;
chain_list βExpr2;
π¦ PARAMETERS π¦
Expr1β First expression. (the main character, the one getting the glow-up)Nameβ Atom name. (the atom we're swapping out, by name, fr fr)Exprβ Second expression. (the one moving in, no cap)
π DESCRIPTION π
so substablexpr substitutes Atom in Expr1 by Expr2. that's it, that's the function, and it ate π
β οΈ okay but listen β the expression pointer Expr1 MUSTN'T be used after the call to this function. like, do not touch it afterwards. it's gone, it's not yours anymore, it left the group chat. use the return value instead, bestie π
π RETURN VALUE π
substablexpr returns the modified expression. π that's your new bestie, take it and go.
π₯ EXAMPLE π₯
#include "abl101.h"
chain_list βExpr1;
chain_list βExpr2;
Expr1 = createablbinexpr( ABL_OR,
createablatom( "a" ),
createablatom( "b" ) );
Expr2 = createablbinexpr( ABL_AND,
createablatom( "c" ),
createablatom( "d" ) );
Expr1 = substablexpr( Expr1, "a", Expr2 );
/* displays ((c and d) or b) */
viewablexpr( Expr1, ABL_VIEW_VHDL );
see how the "a" got swapped for (c and d) and then we get ((c and d) or b)?? that's the whole transformation arc. character development. periodt. π
π SEE ALSO π
go read those too, they're part of the lore π
π BUG REPORT π
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools.
(no literally, they're asking, so send the feedback, it's your moment β¨)
that's the whole page bestie, you're officially fluent in substablexpr π
ASIM/LIP6 Β· October 1, 1997 Β· SUBSTABLEXPR(3) β mwah, love u, bye πβ¨
π¦ where this page comes from
- fedora 43: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 43: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 44: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 44: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms