GETABLEXPRMIN(3)

πŸ“¦ version 5.1.1, in fedora 43, fedora 44

πŸ’– GETABLEXPRMIN πŸ’–

okay bestie, gather round, because we're about to talk about getablexprmin from the ABL FUNCTIONS crew (that's section 3 of the manual, iykyk). she's a real one. she takes your expression, runs your little cost function over every single operand, and hands you back the winner. main character energy fr fr. πŸŽ€


🌸 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. ✨ (yes we're being international about it, slay)


✨ SYNOPSIS ✨

#include "abl101.h"
chain_list βˆ—getablexprmin( Function, Expr )
  int       (βˆ—Function)();
  chain_list βˆ—Expr;

🫢 PARAMETERS 🫢

  • Function β€” the cost function. she's the one doing the judging, no pressure babe πŸ’…
  • Expr β€” the expression we're scanning. the subject of the vibe check. πŸ”

πŸ’œ DESCRIPTION πŸ’œ

getablexprmin applies the cost function Function to all the operands of Expr. like, every single one. nobody gets skipped. πŸ’–


⭐ RETURN VALUE ⭐

getablexprmin returns the operand for which the function gives the minimum cost. the cheapest one. the budget queen. πŸ‘‘

🚨 BESTIE LISTEN 🚨 the expression pointer returned MUSTN'T be modified after the call to this function. not even a little. hands off. no cap. 😭

πŸ’€ ERRORS πŸ’€

getablexprmin error ...


🌈 EXAMPLE 🌈

#include "abl101.h"
    int MapFunction( MapExpr )
      chain_list βˆ—MapExpr;
    {
      return( getabldepthexpr( MapExpr ) );
    }
    ...
    chain_list βˆ—Expr;
    chain_list βˆ—Expr1;
    Expr = createablbinexpr( ABL_AND,
                             createablatom( "a" ),
                             createablatom( "b" ) );
   Expr1 = getablexprmin( MapFunction, Expr );

look at her go. iconic behaviour honestly. πŸ”₯


πŸ¦‹ 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. (yes literally, they want your thoughts, drop them in the group chat bestie, it's giving community 🫢)


mwah πŸ’‹ that's the whole page. this one came from ASIM/LIP6, dated October 1, 1997, and it lives in section 3 of the manual as GETABLEXPRMIN(3). go forth and find your minimum. periodt. πŸ’…βœ¨