Giter Site home page Giter Site logo

cudd.jl's Introduction

CUDD.jl

Build Status codecov

A Julia wrapper for the CUDD C library to manipulate Algebraic Decision Diagrams (ADDs) and Binary Decision Diagrams (BDDs).

Basic usage:

>>> using CUDD
>>> manager = initialize_cudd()
>>> x1 = add_var(manager)
>>> ref(x1)
>>> x2 = add_var(manager)
>>> ref(x2)
>>> f = add_apply(manager, add_plus_c, x1, x2)
>>> get_value(evaluate(manager, f, Cint[1, 1]))
2.0

For further examples, see the Julia notebook in the docs folder.

Installation

using Pkg; Pkg.add("CUDD")

License

This code is licensed under the MIT license. See LICENSE for details.

cudd.jl's People

Contributors

blegat avatar guyvdbroeck avatar juliatagbot avatar kozross avatar maximebouton avatar mykelk avatar tomerarnon avatar wenting-zhao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cudd.jl's Issues

Info about upcoming removal of packages in the General registry

As described in https://discourse.julialang.org/t/ann-plans-for-removing-packages-that-do-not-yet-support-1-0-from-the-general-registry/ we are planning on removing packages that do not support 1.0 from the General registry. This package has been detected to not support 1.0 and is thus slated to be removed. The removal of packages from the registry will happen approximately a month after this issue is open.

To transition to the new Pkg system using Project.toml, see https://github.com/JuliaRegistries/Registrator.jl#transitioning-from-require-to-projecttoml.
To then tag a new version of the package, see https://github.com/JuliaRegistries/Registrator.jl#via-the-github-app.

If you believe this package has erroneously been detected as not supporting 1.0 or have any other questions, don't hesitate to discuss it here or in the thread linked at the top of this post.

Use BinaryBuilder

Use BinaryBuilder instead of compiling the library when building the package

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

BDD complement/negation functionality?

I believe the way to negate/complement a BDD is by calling Cudd_Complement or Cudd_Not in CUDD? That function is not available in CUDD.jl.
Or it could be by manipulating the pointer bits to become complemented, I am not sure, perhaps there can be a native Julia implementation of that?

Julia v1.5 failure because of @eval in __init__

Loading CUDD in another package gives

ERROR: LoadError: LoadError: InitError: Evaluation into the closed module `CUDD` breaks incremental compilation because the side effects will not be permanent. This is likely due to some other module mutating `CUDD` with `eval` during precompilation - don't do this.
Stacktrace:
 [1] eval at ./boot.jl:331 [inlined]
 [2] __init__() at /home/travis/.julia/packages/CUDD/s7EqP/src/ADD_apply.jl:45

Because of this line which uses @eval in __init__:

@eval $(Symbol(name, "_c"))[] = @cfunction($name, Ptr{Node}, (Ptr{Manager}, Ptr{Ptr{Node}}, Ptr{Ptr{Node}}))

See https://travis-ci.com/github/blegat/Dionysos.jl/jobs/422264066#L607

What's the reason it is used in __init__?

CUDD on Apple M1

CUDD is working on the Apple M1 platform using Julia v1.9 for Apple silicon.
But it has to be handled a special way to get it started.
This works for me: (1) start Julia v1.9 for M1, (2) do Pkg.add("CUDD"), (3) do using CUDD---will get ERROR telling you that the platform is not compatible, (4) repeat using CUDD---everything will work properly from this point on. At least that's my experience.
So the ISSUE is that you have to work around a starting problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.