Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
content badge
swh:1:cnt:8c0aa108dbfc00c443bb1234d122f09a23c329dd

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
(requires biblatex-software package)
Generating citation ...
#include "ipasir.h"
#include "ccadical.h"

extern "C" {

const char * ipasir_signature () {
  return ccadical_signature ();
}

void * ipasir_init () {
  return ccadical_init (); }

void ipasir_release (void * solver) {
  ccadical_release ((CCaDiCaL*) solver);
}

void ipasir_add (void * solver, int lit) {
  ccadical_add ((CCaDiCaL *) solver, lit);
}

void ipasir_add_lits (void * solver, int * lits, int length) {
  for (int i=0; i<length; i++) {
    ccadical_add ((CCaDiCaL *) solver, lits[i]);
  }
}
  
void ipasir_assume (void * solver, int lit) {
  ccadical_assume ((CCaDiCaL *) solver, lit);
}

int ipasir_solve (void * solver) {
  return ccadical_solve ((CCaDiCaL *) solver);
}

int ipasir_val (void * solver, int lit) {
  return ccadical_val ((CCaDiCaL *) solver, lit);
}

int ipasir_failed (void * solver, int lit) {
  return ccadical_failed ((CCaDiCaL *) solver, lit);
}

void ipasir_set_terminate (void * solver,
                           void * state, int (*terminate)(void * state)) {
  ccadical_set_terminate ((CCaDiCaL *) solver, state, terminate);
}

void ipasir_set_learn (void * solver,
                         void * state, int max_length,
                         void (*learn)(void * state, int * clause)) {
  ccadical_set_learn ((CCaDiCaL*) solver, state, max_length, learn);
}

}

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API