ABL(1)

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

πŸ’– ABL(1) β€” the abl page, bestie edition πŸ’–

okay so this is abl, a page from the cao-vlsi reference manual, and it's literally all about prefixed representation for boolean functions. yes we're doing boolean algebra today. slay. 🧚✨


🌸 NAME 🌸

abl β€” prefixed representation for boolean functions. that's it, that's the whole vibe. πŸ’…


πŸ¦‹ ORIGIN πŸ¦‹

this software belongs to the ALLIANCE CAD SYSTEM, built by the ASIM team at the LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France. πŸ‡«πŸ‡·βœ¨

like they really said "we're in Paris and we do CAD" and honestly? iconic. πŸ‘‘


✨ DESCRIPTION ✨

libablmmm.a is a library that lets you represent a boolean function in a LISP-like form. an ABL is a prefixed internal representation for a boolean function that has the standard operators β€” OR, NOR, NAND, XOR, NOT and AND. πŸ”₯

an ABL is only made up of doublets. a doublet is composed of two fields, and you get to them through the functionnal #define CAR and CDR. a doublet is implemented with a MBK chain_list. (iykyk)

Expression is the generic term for a boolean function represented by an ABL. an expression can be an atomic expression or an operator expression. the function f = a is represented by an atomic expression, whereas f = (or a b) is represented by an operator expression. πŸ’«

an atomic expression is made up of a single doublet having the NEXT pointer equal to NULL and DATA pointer equal to the identifier pointer. a constant atomic expression is an atomic expression having the string "'0'" or "'1'" as identifier.

an operator expression is more complicated than an atomic expression. it's a list of items: the first item is the head operator of the expression, and the following items are the arguments of the expression. it's possible to go through the arguments by calling the functionnal #define CDR. then each argument is accessible by the functionnal #define CAR. an argument can be recursively an atomic or an operator expression. the arity of an operator expression is the number of arguments of the first level. πŸŽ€

functions are divided into two groups: the low level functions are written with #define and are used to manage the ABL internal form, and the high level functions are used to manage the boolean expressions. all functions are defined in the file "prefbib.c" (#define in "logmmm.h"). ⭐

🧚 Functionnal #define 🧚

  • ATOM β€” checks the kind of an expression (atomic or operator expression).
  • CAR β€” returns the DATA pointer of a doublet.
  • CADR β€” returns the DATA pointer of the NEXT pointer of a doublet.
  • CDR β€” returns the NEXT pointer of a doublet.
  • OPER β€” returns the operator number of an operator expression.
  • VALUE_ATOM β€” returns the associated char * of an atomic expression.

🫢 Functions and procedures 🫢

okay bestie this is the big list, drink some water first πŸ’§

  • addHExpr β€” adds a new arguments at the head of an operator expression.
  • addQExpr β€” adds a new arguments at the queue of an operator expression.
  • anyExpr β€” returns the value of a logical OR applied on the results of the application of a function on the arguments of an operator expression.
  • changeOperExpr β€” changes the operator of the head of an expression.
  • charToOper β€” converts an operator string into an operator number.
  • copyExpr β€” copies an expression.
  • createAtom β€” creates an atomic expression.
  • createBinExpr β€” creates a binary operator expression with an eventual merging of the operator.
  • createExpr β€” creates the head of an operator expression.
  • deleteNumExpr β€” removes the i-th argument in an operator expression.
  • devXor2Expr β€” converts XOR 2 to OR-AND.
  • devXorExpr β€” removes XOR in an expression.
  • displayExpr β€” displays an expression in a prefixed notation.
  • displayInfExpr β€” displays an expression in infixed notation.
  • equalExpr β€” checks that two expressions are strictly equal.
  • equalVarExpr β€” checks that two expressions are syntactically equal.
  • everyExpr β€” returns the value of a logical AND applied on the results of the application of a function on the arguments of an operator expression.
  • exprToChar β€” converts an expression into a string.
  • charToExpr β€” converts a string into an expression.
  • flatArityExpr β€” flattens the operators of an expression.
  • flatPolarityExpr β€” translates the inverters of an expression to the level of atomic expressions.
  • freeExpr β€” frees an expression.
  • identExpr β€” gives an identifier from an operator expression.
  • lengthExpr β€” returns the number of arguments in an expression.
  • mapCarExpr β€” creates a new expression by applying a function to all arguments of an operator expression.
  • mapExpr β€” applies a procedure to all the arguments of an operator expression.
  • maxExpr β€” returns the highest argument of an operator expression.
  • minExpr β€” returns the lowest argument of an operator expression.
  • normExpr β€” normalizes an expression.
  • notExpr β€” complements an expression and eventually does a simplification.
  • numberAtomExpr β€” returns the number of atoms in an expression.
  • numberOccExpr β€” returns the number of time an atom appears in an expression.
  • numberOperBinExpr β€” returns the number of equivalent binary operators in an expression.
  • operToChar β€” converts an operator number into an operator string.
  • profExpr β€” returns the depth of an expression.
  • profAOExpr β€” returns the depth of an expression without taking the inverters into account.
  • searchExpr β€” searches for a specific atom in an expression.
  • searchNumExpr β€” fetches the i-th argument in an operator expression.
  • searchOperExpr β€” searches for an operator in an expression.
  • simplif10Expr β€” makes simplifications on an expression including constant atomic expressions.
  • simplifNotExpr β€” makes simplifications on an expression including inverters.
  • sortExpr β€” sorts an expression.
  • substExpr β€” copies an expression by substituting a given atom by an expression.
  • substPhyExpr β€” substitutes an atomic expression by an expression within an expression.
  • supportChain_listExpr β€” returns the support of an expression in a chain_list.
  • supportPtype_listExpr β€” returns the support of an expression in a ptype_list.
  • wPMExpr β€” returns 1 if the pattern matching is possible between two expressions.

🌈 SEE ALSO 🌈

log(1), mbk(1), addHExpr(3), addQExpr(3), anyExpr(3), changeOperExpr(3), charToExpr(3), charToOper(3), copyExpr(3), createAtom(3), createBinExpr(3), createExpr(3), deleteNumExpr(3), devXor2Expr(3), devXorExpr(3), displayExpr(3), displayInfExpr(3), equalExpr(3), equalVarExpr(3), everyExpr(3), exprToChar(3), flatArityExpr(3), flatPolarityExpr(3), freeExpr(3), identExpr(3), lengthExpr(3), mapCarExpr(3), mapExpr(3), maxExpr(3), minExpr(3), notExpr(3), normExpr(3), numberAtomExpr(3), numberOccExpr(3), numberOperBinExpr(3), operToChar(3), profExpr(3), profAOExpr(3), searchExpr(3), searchNumExpr(3), searchOperExpr(3), simplif10Expr(3), simplifNotExpr(3), sortExpr(3), substExpr(3), substPhyExpr(3), supportChain_listExpr(3), supportPtype_listExpr(3). PMExpr(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, please tell them. πŸ₯ΊπŸ“¬


ASIM/LIP6 Β· October 1, 1997 β€” yeah this page is a lil vintage bestie, born back in 1997 and still serving πŸ’– thanks for reading all the way to the bottom, you're the main character. πŸŽ€πŸ¦‹βœ¨