Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Compile microsat to WebAssembly using emscripten

License

NotificationsYou must be signed in to change notification settings

glnc/microsat-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compile microsat to WebAssembly using emscripten.

This is a fork ofmicrosat 2020-05-14 by Christian Bettinger and Anna Schmitt, originally created by Armin Biere and Marijn Heule.

Tested on Ubuntu 16.04 LTS.

Prerequisites

emscripten

Follow the instructions onhttps://kripken.github.io/emscripten-site/docs/getting_started/downloads.html in order to install emscripten and all of its dependencies.

For microsat

  • make

For Demo Web App

Building

Runbuild.sh to compile microsat using emscripten as well as to build the JavaScript modules (seeUsage).

Runbuild.sh demo to additionally build and run a demo web app listening onhttp://localhost:8080.

Usage

emscripten generates the CommonJS modulerelease/microsat.js. Additionally there is a wrapper modulerelease/Wrapper.js that is recommended to use, since it does some optimization regarding memory consumption.

constmicrosat=require("./Wrapper.js");microsat.setModule(require("./microsat.js"));microsat.setWASM("./microsat.wasm");microsat.run("p cnf 5 3 [...]",["--propagate"]).then(result=>{console.log(result);}).catch(reason=>{console.error(reason);});

Original License

Copyright © 2018 Christian Bettinger and Anna Schmitt
Copyright © 2018 Armin Biere
Copyright © 2014-2018 Marijn Heule

Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp