Cilk Plus
1 program
Added 2026-02-25T00:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled
Evidence
Report issue
View issues
Aliases: CilkPlus, Intel Cilk Plus
Provenance: commit 6ad30a7e4b · authored 2026-02-25T18:37:04+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
3 sources · pl_id:
pl/cilk-plusRelated languages
LLM-contributed programs
Parallel Fibonacci
Provenance: commit 6ad30a7e4b · authored 2026-02-25T18:37:04+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
#include <cilk/cilk.h>
#include <assert.h>
int fib(int n) {
if (n < 2)
return n;
int a = cilk_spawn fib(n-1);
int b = fib(n-2);
cilk_sync;
return a + b;
}
int main() {
int result = fib(30);
assert(result == 832040);
return 0;
}
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)