EnglishFrenchSpanish

Ad


OnWorks favicon

abl - Online in the Cloud

Run abl in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command abl that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


abl - Prefixed representation for boolean functions

DESCRIPTION


libablmmm.a is a library that enables to represent a boolean function in a LISP-like form.
An ABL is a prefixed internal representation for a boolean function having standard
operators as OR,NOR,NAND,XOR,NOT and AND. An ABL is only made up of doublets. A doublet is
composed of two fields wich are accessible by the functionnal #define CAR and CDR. A
doublet is implemented with a MBK chain_list.
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 trough 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, 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

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.

Use abl online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Canon EOS DIGITAL Info
    Canon EOS DIGITAL Info
    Canon doesn�t have shutter count
    included on the EXIF information of an
    image file, as opposed to Nikon and
    Pentax. There�s no official Canon based
    application ...
    Download Canon EOS DIGITAL Info
  • 2
    rEFInd
    rEFInd
    rEFInd is a fork of the rEFIt boot
    manager. Like rEFIt, rEFInd can
    auto-detect your installed EFI boot
    loaders and it presents a pretty GUI
    menu of boot option...
    Download rEFInd
  • 3
    ExpressLuke GSI
    ExpressLuke GSI
    This SourceForge download page was to
    grant users to download my source built
    GSIs, based upon phhusson's great
    work. I build both Android Pie and
    Android 1...
    Download ExpressLuke GSI
  • 4
    Music Caster
    Music Caster
    Music Caster is a tray music player
    that lets you cast your local music to a
    Google Cast device. On the first run,
    you will need to click the arrow in your
    tas...
    Download Music Caster
  • 5
    PyQt
    PyQt
    PyQt is the Python bindings for
    Digia's Qt cross-platform
    application development framework. It
    supports Python v2 and v3 and Qt v4 and
    Qt v5. PyQt is avail...
    Download PyQt
  • 6
    Sardi
    Sardi
    Sardi is a complete restyling and
    optimisation of svg code. 6 choices for
    your applications and 10 kind of folders
    to use in your file manager. The sardi
    icons...
    Download Sardi
  • More »

Linux commands

  • 1
    abi-tracker
    abi-tracker
    abi-tracker - visualize ABI changes
    timeline of a C/C++ software library.
    DESCRIPTION: NAME: ABI Tracker
    (abi-tracker) Visualize ABI changes
    timeline of a C/C+...
    Run abi-tracker
  • 2
    abicheck
    abicheck
    abicheck - check application binaries
    for calls to private or evolving symbols
    in libraries and for static linking of
    some system libraries. ...
    Run abicheck
  • 3
    cpanmp
    cpanmp
    cpanm - get, unpack build and install
    modules from CPAN ...
    Run cpanmp
  • 4
    cpanpp
    cpanpp
    cpanp - The CPANPLUS launcher ...
    Run cpanpp
  • 5
    gajim-remote
    gajim-remote
    gajim-remote � a remote control utility
    for gajim(1) ...
    Run gajim-remote
  • 6
    gajim
    gajim
    gajim � a Jabber/XMPP client ...
    Run gajim
  • More »

Ad