ISABLSIMILAREXPR(3)
π ISABLSIMILAREXPR π
okay bestie, buckle up, we're in the ABL FUNCTIONS section of the manual and this one is genuinely so useful π«Ά
β¨ NAME β¨
isablsimilarexpr β tests if two expressions have the same morphology.
like, do these two lil expression trees have the same shape? that's the whole vibe check. π¦
πΈ ORIGIN πΈ
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr
(iconic lineage tbh π)
β¨ SYNOPSIS β¨
#include "abl101.h"
int isablsimilarexpr( Expr1, Expr2 )
chain_list βExpr1;
chain_list βExpr2;
π PARAMETERS π
Expr1β First expression. (the main character π )Expr2β Second expression. (the other main character π )
π DESCRIPTION π
isablequalexpr compares Expr1 and Expr2.
fr fr that's what it says, that's the whole description, no notes π
β RETURN VALUE β
if Expr1 and Expr2 have got the same morphology isablequalexpr returns 1 and 0 otherwise.
so: same shape β 1, not same shape β 0. no in-between, no "it's complicated", periodt. π
π§ EXAMPLE π§
#include "abl101.h"
chain_list βExpr1;
chain_list βExpr2;
Expr1 = createablbinexpr( ABL_AND,
createablatom( "a" ),
createablatom( "b" ) );
Expr2 = createablbinexpr( ABL_AND,
createablatom( "c" ),
createablatom( "d" ) );
/* displays 1 */
printf( "%d", isablsimilarexpr( Expr1, Expr2 ) );
see how Expr1 is a AND b and Expr2 is c AND d? different atoms, same morphology, so it prints 1. the shape ate, the labels didn't matter. obsessed. π₯
π¦ SEE ALSO π¦
π BUG REPORT π
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools.
bestie they are literally asking for your feedback, do not leave them on read π
that's the whole page, you're officially fluent in isablsimilarexpr now β¨
this lil slice of the ABL FUNCTIONS manual came to you courtesy of ASIM/LIP6, dated October 1, 1997 β yes she's a 90s baby and she still slays π ππ
π¦ 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